/* ═══════════════════════════════════════════════════
   PISCINAS EN MÁLAGA — style.css
   Stack: CSS custom properties · grid/flex · mobile-first
   ═══════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────── */
:root {
  --navy:        #0f2a4a;
  --navy-light:  #1a3d62;
  --aqua:        #00b4d8;
  --aqua-dark:   #0096b7;
  --gold:        #f59e0b;
  --gold-dark:   #d97706;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --surface:     #f8fafc;
  --white:       #ffffff;
  --border:      #e2e8f0;
  --shadow-sm:   0 1px 3px rgba(15,42,74,.07);
  --shadow-md:   0 6px 22px rgba(15,42,74,.10);
  --shadow-lg:   0 18px 48px rgba(15,42,74,.16);
  --radius-sm:   8px;
  --radius:      16px;
  --radius-lg:   28px;
  --container:   1200px;
  --transition:  .22s ease;
  --font:        'Manrope', system-ui, -apple-system, sans-serif;
  --font-head:   'Sora', 'Manrope', system-ui, sans-serif;
}

h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.015em; }

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }
img, video, picture { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

/* ── Skip link ──────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--navy); color: #fff;
  padding: .5rem 1.2rem; border-radius: var(--radius-sm);
  z-index: 9999; font-size: .9rem;
}
.skip-link:focus { top: .75rem; }

/* ── Container ──────────────────────────────────── */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.75rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
  min-height: 48px;
}
.btn--primary {
  background: var(--aqua); color: var(--white);
  box-shadow: 0 4px 14px rgba(0,180,216,.35);
}
.btn--primary:hover { background: var(--aqua-dark); box-shadow: 0 6px 20px rgba(0,180,216,.45); transform: translateY(-1px); }
.btn--gold {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn--outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--outline-navy {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--outline-navy:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: .55rem 1.1rem; font-size: .85rem; min-height: 38px; }
.btn--lg { padding: 1rem 2.2rem; font-size: 1.05rem; min-height: 56px; }

/* ── Section shared ─────────────────────────────── */
.section { padding: 5rem 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--navy); color: #fff; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-label {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-dark);
  background: rgba(0,180,216,.09); border: 1px solid rgba(0,180,216,.22);
  padding: .32rem .9rem; border-radius: 999px;
  margin-bottom: .85rem;
}
.section--dark .section-label, .section--pain .section-label {
  color: #7dd3fc; background: rgba(125,211,252,.08); border-color: rgba(125,211,252,.25);
}
.section--dark .section-label { color: #7dd3fc; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.25; color: var(--navy); margin-bottom: .75rem; }
.section--dark .section-header h2 { color: #fff; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }
.section--dark .section-header p { color: rgba(255,255,255,.7); }

/* ── HEADER ─────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: none; transition: box-shadow var(--transition); }
.header.scrolled { box-shadow: var(--shadow-md); }

.header__topbar { background: var(--navy); color: #fff; font-size: .8rem; padding: .45rem 0; }
.header__topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.header__topbar-left, .header__topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar__link, .topbar__info {
  display: flex; align-items: center; gap: .35rem;
  color: rgba(255,255,255,.8); text-decoration: none; font-size: .78rem;
}
.topbar__link:hover { color: #fff; }
.topbar__social {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); width: 28px; height: 28px;
  transition: color var(--transition);
}
.topbar__social:hover { color: #fff; }
.topbar__cta {
  display: flex; align-items: center; gap: .4rem;
  background: var(--aqua); color: #fff;
  padding: .3rem .95rem; border-radius: 999px;
  font-weight: 600; font-size: .8rem;
  transition: background var(--transition);
}
.topbar__cta:hover { background: var(--aqua-dark); }

.header__main {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: .8rem;
}
.header__logo { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.logo-svg { width: 160px; height: 44px; }

#nav-menu { display: flex; }
#nav-menu > ul { display: flex; align-items: center; gap: .25rem; list-style: none; }
#nav-menu a {
  display: block; padding: .5rem .75rem;
  font-size: .9rem; font-weight: 500; color: var(--text);
  border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition);
}
#nav-menu a:hover, #nav-menu a.active { color: var(--aqua); background: rgba(0,180,216,.07); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > button {
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .75rem; font-size: .9rem; font-weight: 500; color: var(--text);
  border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition);
}
.has-dropdown > button:hover { color: var(--aqua); background: rgba(0,180,216,.07); }
.has-dropdown > button svg { transition: transform var(--transition); }
.has-dropdown > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-dropdown > ul {
  display: none; position: absolute; top: calc(100% + .5rem); left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .5rem; min-width: 240px; list-style: none; z-index: 200;
}
.has-dropdown > button[aria-expanded="true"] + ul { display: block; }
.has-dropdown > ul li a {
  display: block; padding: .55rem 1rem; border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--text); white-space: nowrap;
}
.has-dropdown > ul li a:hover { background: var(--surface); color: var(--aqua); }

.header__cta { flex-shrink: 0; }
.nav-toggle { display: none; padding: .4rem; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  #nav-menu {
    display: none; position: fixed; inset: 0; top: 0;
    background: var(--white); flex-direction: column;
    padding: 5rem 2rem 2rem; z-index: 99; overflow-y: auto;
  }
  #nav-menu.is-open { display: flex; }
  #nav-menu > ul { flex-direction: column; gap: 0; width: 100%; }
  #nav-menu a { font-size: 1.1rem; padding: .85rem 1rem; }
  .has-dropdown > button { font-size: 1.1rem; padding: .85rem 1rem; width: 100%; justify-content: space-between; }
  .has-dropdown > ul { position: static; box-shadow: none; border: none; background: var(--surface); }
  .header__topbar-left .topbar__info { display: none; }
  .header__cta { display: none; }
}

/* ── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a7a 50%, #0f3660 100%);
  overflow: hidden; padding: 5rem 0 4rem;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(0,180,216,0.08)' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,128C672,107,768,117,864,138.7C960,160,1056,192,1152,186.7C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
}
.hero .container { position: relative; z-index: 1; }
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero__content { max-width: 560px; }
.hero__label {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(0,180,216,.15); border: 1px solid rgba(0,180,216,.3);
  color: var(--aqua); padding: .35rem .9rem; border-radius: 2rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero__content h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff;
  line-height: 1.15; margin-bottom: 1.25rem;
}
.hero__content h1 span { color: var(--aqua); }
.hero__content p { color: rgba(255,255,255,.8); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero__badge {
  display: flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.9); padding: .4rem .9rem; border-radius: 2rem; font-size: .82rem;
}
.hero__badge svg { color: var(--aqua); flex-shrink: 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__image {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a4a7a, #0f3660);
}
.hero__image picture, .hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__img-placeholder {
  width: 100%; height: 100%; min-height: 360px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, rgba(0,180,216,.15), rgba(0,180,216,.05));
  color: rgba(255,255,255,.5); font-size: .9rem; border: 2px dashed rgba(0,180,216,.25);
  border-radius: var(--radius-lg);
}
.hero__stats {
  display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem;
}
.hero__stat { text-align: left; }
.hero__stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--aqua); }
.hero__stat span { font-size: .8rem; color: rgba(255,255,255,.65); }

@media (max-width: 768px) {
  .hero { padding: 3rem 0 3rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { order: -1; aspect-ratio: 16/9; min-height: 240px; }
  .hero__content h1 { font-size: 1.9rem; }
}

/* ── PAIN POINTS ────────────────────────────────── */
.section--pain { background: var(--navy); padding: 4rem 0; }
.pain-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.pain-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 1.75rem;
  transition: background var(--transition), border-color var(--transition);
}
.pain-card:hover { background: rgba(0,180,216,.1); border-color: rgba(0,180,216,.3); }
.pain-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: rgba(0,180,216,.15); display: flex; align-items: center; justify-content: center;
  color: var(--aqua); margin-bottom: 1rem;
}
.pain-card__keyword {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .4rem;
}
.pain-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.pain-card p { font-size: .9rem; color: rgba(255,255,255,.65); line-height: 1.6; }
@media (max-width: 640px) { .pain-grid { grid-template-columns: 1fr; } }

/* ── SERVICES ───────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__img {
  aspect-ratio: 16/10; background: var(--surface);
  position: relative; overflow: hidden;
}
.service-card__img img { width: 100%; height: 100%; object-fit: cover; }
.service-card__placeholder {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, #e8f4f8, #d0eaf3);
  color: var(--text-muted); font-size: .82rem; border-bottom: 2px dashed var(--border);
}
.service-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-card__num {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--aqua);
  text-transform: uppercase; margin-bottom: .4rem;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.service-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.service-card__link {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.1rem;
  font-size: .88rem; font-weight: 600; color: var(--aqua);
  transition: gap var(--transition);
}
.service-card__link:hover { gap: .6rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services-grid { grid-template-columns: 1fr; } }

/* ── CTA BANNER ─────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--aqua) 0%, var(--aqua-dark) 100%);
  padding: 3.5rem 0; text-align: center;
}
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--white); margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1rem; margin-bottom: 1.75rem; max-width: 560px; margin-inline: auto; margin-bottom: 1.75rem; }
.cta-banner .btn--gold { font-size: 1rem; }

/* ── WHY US ─────────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.why-card { text-align: center; padding: 1.5rem; }
.why-card__icon {
  width: 72px; height: 72px; margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(0,180,216,.12), rgba(0,180,216,.06));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--aqua);
}
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.why-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }
@media (max-width: 768px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .why-grid { grid-template-columns: 1fr; } }

/* ── PROCESS ────────────────────────────────────── */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative;
}
.process-grid::before {
  content: ''; position: absolute; top: 28px; left: calc(12.5% + 28px); right: calc(12.5% + 28px);
  height: 2px; background: linear-gradient(90deg, var(--aqua), var(--aqua-dark)); opacity: .3;
  pointer-events: none;
}
.process-step { text-align: center; padding: 1rem; position: relative; }
.process-step__num {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--aqua); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800;
  box-shadow: 0 0 0 6px rgba(0,180,216,.12);
}
.process-step h3 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.process-step p { font-size: .83rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 768px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
}
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }

/* ── WORKS GALLERY ──────────────────────────────── */
.grid-trabajos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.trabajo-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; margin: 0; }
.trabajo-card__img { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.trabajo-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.trabajo-card:hover .trabajo-card__img img { transform: scale(1.04); }
.trabajo-card__placeholder {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8f4f8, #d0eaf3);
  color: var(--text-muted); font-size: .8rem;
  border-bottom: 2px dashed var(--border);
}
.trabajo-card figcaption { padding: .75rem 1rem; font-size: .85rem; color: var(--text-muted); }
@media (max-width: 900px) { .grid-trabajos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid-trabajos { grid-template-columns: 1fr; } }

/* ── TESTIMONIALS ───────────────────────────────── */
.google-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--border); border-radius: 2rem;
  padding: .4rem 1.1rem; font-size: .82rem; color: var(--text);
  box-shadow: var(--shadow-sm); margin-top: .75rem;
}
.google-badge__stars { display: flex; align-items: center; gap: .15rem; border-left: 1px solid var(--border); padding-left: .5rem; }
.google-badge__stars strong { font-size: .85rem; color: var(--text); margin-left: .25rem; }
.grid-testimonios {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: left;
}
.testimonio-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem;
  box-shadow: var(--shadow-sm);
}
.testimonio-card__stars { display: flex; gap: .15rem; }
.testimonio-card__text p { font-size: .92rem; line-height: 1.7; color: var(--text-muted); font-style: italic; }
.testimonio-card__author { display: flex; flex-direction: column; gap: .15rem; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); }
.testimonio-card__author strong { font-size: .88rem; color: var(--text); }
.testimonio-card__author span { font-size: .78rem; color: #94a3b8; }
@media (max-width: 900px) { .grid-testimonios { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .grid-testimonios { grid-template-columns: 1fr; } }

/* ── ZONES ──────────────────────────────────────── */
.zones-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.zone-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: .75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-decoration: none; color: var(--text);
}
.zone-card:hover { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(0,180,216,.1); }
.zone-card svg { color: var(--aqua); flex-shrink: 0; }
.zone-card strong { font-weight: 600; font-size: .95rem; }
.zone-card span { font-size: .8rem; color: var(--text-muted); }
@media (max-width: 768px) { .zones-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .zones-grid { grid-template-columns: 1fr; } }

/* ── FAQ ────────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; text-align: left; font-size: .97rem; font-weight: 600; color: var(--navy);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--aqua); }
.faq-question svg { flex-shrink: 0; transition: transform var(--transition); color: var(--aqua); }
.faq-question[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 1.4rem 1.25rem; font-size: .9rem; color: var(--text-muted); line-height: 1.7; }
.faq-answer[open] { display: block; }

/* ── MAP ────────────────────────────────────────── */
.map-section { padding: 0; }
.map-wrapper {
  height: 420px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); margin: 3rem 0;
  background: var(--surface); position: relative;
}
.map-wrapper iframe, #map-placeholder { width: 100%; height: 100%; border: 0; }
#map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  background: linear-gradient(135deg, #e8f4f8, #d0eaf3);
  color: var(--text-muted); font-size: .9rem;
}
#map-placeholder svg { color: var(--aqua); }

/* ── STATS BAND ─────────────────────────────────── */
.stats-band { background: var(--navy); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--aqua); line-height: 1; margin-bottom: .35rem; }
.stat-item span { font-size: .85rem; color: rgba(255,255,255,.6); }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── FOOTER ─────────────────────────────────────── */
.footer { background: #0a1f36; color: rgba(255,255,255,.75); }
.footer__main { padding: 4rem 0 2.5rem; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem;
}
.footer__brand p { font-size: .88rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer__col h4 { font-size: .85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer__col ul a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer__col ul a:hover { color: var(--aqua); }
.footer__address { font-style: normal; font-size: .88rem; line-height: 1.8; }
.footer__address a { color: var(--aqua); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem; font-size: .8rem; color: rgba(255,255,255,.4);
}
.footer__bottom a { color: rgba(255,255,255,.4); }
.footer__bottom a:hover { color: rgba(255,255,255,.7); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ── WHATSAPP FLOAT ─────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 80px; right: 1.25rem;
  width: 60px; height: 60px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4); z-index: 900;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ── MOBILE CTA BAR ─────────────────────────────── */
.mobile-cta-bar {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
}
.cta-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem; font-size: .95rem; font-weight: 600; text-decoration: none;
  min-height: 56px;
}
.cta-btn--email { background: var(--navy); color: #fff; }
.cta-btn--wa    { background: #25D366; color: #fff; }

@media (min-width: 768px) {
  .mobile-cta-bar { display: none; }
  .whatsapp-float { bottom: 1.5rem; }
}

/* ── CONTACT FORM ───────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--white); transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--aqua); outline: none; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-privacy { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; }
.form-privacy a { color: var(--aqua); }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }

/* ── SECTION-LAZY ───────────────────────────────── */
.section-lazy { content-visibility: auto; contain-intrinsic-size: 0 600px; }

/* ── HERO WAVE DIVIDER ──────────────────────────── */
.wave-divider { display: block; line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ── BREADCRUMBS ────────────────────────────────── */
.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--border); padding: .65rem 0; font-size: .82rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: .5rem; color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--border); }
.breadcrumbs a { color: var(--navy); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--aqua); }

/* ── HERO PAGE (about, blog, trabajos, contacto) ── */
.hero-page { background: linear-gradient(135deg, #0f2a4a 0%, #1a4a7a 100%); padding: 3.5rem 0 3rem; text-align: center; }
.hero-page h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 1rem; }
.hero-page p { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }

/* ── CONTENT TEXT ───────────────────────────────── */
.content-text p { color: var(--text); line-height: 1.8; margin-bottom: 1.25rem; }
.content-text p:last-child { margin-bottom: 0; }
.content-text strong { color: var(--navy); font-weight: 600; }

/* ── BENEFITS GRID ──────────────────────────────── */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.benefit-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.benefit-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0,180,216,.1), rgba(0,180,216,.05));
  display: flex; align-items: center; justify-content: center;
  color: var(--aqua);
}
.benefit-item h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.benefit-item p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }
@media (max-width: 640px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ── TEAM GRID ──────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.team-card__img { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e8f4f8, #d0eaf3); color: #94a3b8; }
.team-card__body { padding: 1.25rem 1.1rem; text-align: center; }
.team-card__name { font-weight: 700; font-size: 1rem; color: var(--navy); }
.team-card__role { font-size: .82rem; color: var(--aqua); font-weight: 600; margin: .2rem 0 .6rem; }
.team-card__bio { font-size: .83rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

/* ── CERT GRID ──────────────────────────────────── */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cert-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; }
.cert-item svg { color: var(--gold); margin-bottom: .85rem; }
.cert-item h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.cert-item p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }
@media (max-width: 768px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cert-grid { grid-template-columns: 1fr; } }

/* ── BLOG GRID ──────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.post-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card > a { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.post-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--surface); position: relative; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  background: linear-gradient(135deg, #e8f4f8, #d0eaf3); color: var(--text-muted); font-size: .8rem;
}
.post-card__body { padding: 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__cat { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua); margin-bottom: .5rem; }
.post-card__title { font-size: 1.02rem; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: .6rem; }
.post-card__excerpt { font-size: .87rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.post-card__meta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--border); font-size: .78rem; color: var(--text-muted);
}
.post-card__leer { font-size: .82rem; font-weight: 600; color: var(--aqua); display: flex; align-items: center; gap: .3rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .blog-grid { grid-template-columns: 1fr; } }

/* ── TRABAJOS FILTERS ───────────────────────────── */
.trabajos-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
  padding: .45rem 1.1rem; border: 1.5px solid var(--border); border-radius: 2rem;
  font: inherit; font-size: .83rem; font-weight: 600; color: var(--text-muted);
  background: var(--white); cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--aqua); color: var(--aqua); }
.filter-btn[aria-pressed="true"] { background: var(--aqua); border-color: var(--aqua); color: #fff; }

/* ── TRABAJO CARD EXTENDED (portfolio) ─────────── */
.trabajo-card__body { padding: 1rem 1.25rem 1.1rem; }
.trabajo-card__cat { font-size: .71rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua); margin-bottom: .25rem; }
.trabajo-card__title { font-size: .97rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; line-height: 1.35; }
.trabajo-card__zone { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; }
.trabajo-card__zone svg { color: var(--aqua); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   REDESIGN 2026 — componentes nuevos y páginas de servicio
   ═══════════════════════════════════════════════════ */

/* ── SERVICES GRID CENTRADO (8 cards → 3+3+2) ──── */
.services-grid--center { display: flex; flex-wrap: wrap; justify-content: center; }
.services-grid--center .service-card { width: calc((100% - 3rem) / 3); }
@media (max-width: 900px) { .services-grid--center .service-card { width: calc((100% - 1.5rem) / 2); } }
@media (max-width: 540px) { .services-grid--center .service-card { width: 100%; } }

/* ── SPLIT — secciones de valor texto-imagen ────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split + .split { margin-top: 4rem; }
.split__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 4/3; background: var(--surface);
}
.split__media picture, .split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: linear-gradient(135deg, #e8f4f8, #d0eaf3);
  color: var(--text-muted); font-size: .85rem; text-align: center; padding: 1rem;
  border: 2px dashed rgba(0,180,216,.3); border-radius: var(--radius-lg);
}
.split__placeholder svg { color: var(--aqua); }
.split--reverse .split__media { order: 2; }
.split--reverse .split__text  { order: 1; }
.split__text h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--navy);
  line-height: 1.28; margin-bottom: 1rem;
}
.split__text p { color: var(--text); line-height: 1.75; margin-bottom: 1rem; }
.split__text p a { color: var(--aqua-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.split__text p a:hover { color: var(--navy); }
.split__text strong { color: var(--navy); }
.check-list { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.25rem; }
.check-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .93rem; font-weight: 600; color: var(--navy); }
.check-list li svg { color: var(--aqua); flex-shrink: 0; margin-top: .1rem; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 1.75rem; }
  .split--reverse .split__media { order: 0; }
  .split--reverse .split__text  { order: 0; }
  .split + .split { margin-top: 3rem; }
}

/* ── HERO SERVICE (páginas de servicio) ─────────── */
.hero-service {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a7a 50%, #0f3660 100%);
  padding: 3.5rem 0 3rem;
}
.hero-service__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
.hero-service h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 800; color: #fff;
  line-height: 1.2; margin-bottom: 1.1rem;
}
.hero-service__desc { color: rgba(255,255,255,.82); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.75rem; }
.hero-service__image {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a4a7a, #0f3660);
}
.hero-service__image picture, .hero-service__image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .hero-service__inner { grid-template-columns: 1fr; }
  .hero-service__image { aspect-ratio: 16/9; }
}

/* ── CTA BAND (banda intermedia) ────────────────── */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #14395f 100%); padding: 2.25rem 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band strong { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.cta-band span { color: rgba(255,255,255,.72); font-size: .95rem; }
@media (max-width: 640px) { .cta-band__inner { flex-direction: column; text-align: center; } }

/* ── SECTION BANNER (imagen ancha) ──────────────── */
.section-banner { position: relative; }
.section-banner__img { position: relative; height: clamp(220px, 32vw, 380px); overflow: hidden; }
.section-banner__img picture, .section-banner__img img { width: 100%; height: 100%; object-fit: cover; }

/* ── IMG PLACEHOLDER genérico ───────────────────── */
.img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, #e8f4f8, #d0eaf3);
  color: var(--text-muted); font-size: .82rem; text-align: center; padding: 1rem;
}
.img-placeholder svg { color: var(--aqua); }
.img-placeholder--banner { border-block: 2px dashed rgba(0,180,216,.3); }
.service-card__img .img-placeholder { border-bottom: 2px dashed var(--border); }

/* ── GRID 3 CENTRADO ────────────────────────────── */
.grid-3-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.grid-3-center > * { width: calc((100% - 3rem) / 3); min-width: 260px; }
@media (max-width: 900px) { .grid-3-center > * { width: calc((100% - 1.5rem) / 2); } }
@media (max-width: 600px) { .grid-3-center > * { width: 100%; } }

/* ── PRECIOS ────────────────────────────────────── */
.precio-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .4rem;
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.precio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.precio-card--featured { border: 2px solid var(--aqua); box-shadow: 0 8px 30px rgba(0,180,216,.18); }
.precio-card__tag {
  align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--aqua-dark);
  background: rgba(0,180,216,.1); padding: .28rem .8rem; border-radius: 999px; margin-bottom: .5rem;
}
.precio-card--featured .precio-card__tag { background: var(--aqua); color: #fff; }
.precio-card__size { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.precio-card__range { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--aqua-dark); margin-bottom: .75rem; }
.precio-card__list { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.25rem; flex: 1; }
.precio-card__list li { font-size: .88rem; color: var(--text-muted); padding-left: 1.35rem; position: relative; }
.precio-card__list li::before { content: '✓'; position: absolute; left: 0; color: var(--aqua); font-weight: 700; }
.precios-nota { text-align: center; font-size: .85rem; color: var(--text-muted); margin-top: 2rem; }

/* ── SERVICIOS RELACIONADOS ─────────────────────── */
.relacionados-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.relacionados-grid > * { width: calc((100% - 2.5rem) / 3); min-width: 250px; }
.relacionado-card {
  display: flex; align-items: flex-start; gap: .9rem;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.relacionado-card:hover { border-color: var(--aqua); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.relacionado-card svg { color: var(--aqua); flex-shrink: 0; margin-top: .15rem; }
.relacionado-card strong { display: block; font-family: var(--font-head); font-size: .97rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.relacionado-card span { font-size: .85rem; color: var(--text-muted); line-height: 1.55; }
@media (max-width: 820px) { .relacionados-grid > * { width: 100%; } }

/* Consentimiento de formularios (legal 2026-09-30) */
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; line-height: 1.45; color: var(--text-muted); }
.form-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--aqua); cursor: pointer; }
.form-consent label { cursor: pointer; }
.form-consent a { color: var(--aqua); text-decoration: underline; }

/* Estado del envío de formularios (api/lead.php) */

/* ================================================================
   §FORM-STATUS v1 — Feedback de envío de los formularios de lead
   Aplica a #contact-form (contacto.html) y #hero-contact-form (index.html)
   ================================================================ */
.form-status {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    font-size: 0.92rem;
    line-height: 1.5;
    display: none;
}

.form-status.is-pending,
.form-status.is-success,
.form-status.is-error { display: block; }

.form-status.is-pending {
    background: #F1F4F8;
    border-left-color: var(--color-muted);
    color: var(--color-muted);
}

.form-status.is-success {
    background: #ECFAF1;
    border-left-color: #1E9E5A;
    color: #145F38;
    font-weight: 600;
}

.form-status.is-error {
    background: #FDEDED;
    border-left-color: #C0392B;
    color: #8C231A;
}

.form-control[aria-invalid="true"],
.lead-form-field[aria-invalid="true"] {
    border-color: #C0392B;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: progress;
}

/* ===== V2 2026-10-08 · _psc_v2.py ===== */
/* Fuente de la capa V2 (la añade _psc_v2.py al final de css/style.css). Editar aquí, nunca en style.css. */

/* ── Marca ─────────────────────────────────────── */
.header__logo { gap: .65rem; text-decoration: none; }
.logo__badge { width: 48px; height: 48px; border-radius: 11px; flex-shrink: 0; box-shadow: 0 2px 10px rgba(15,42,74,.2); }
.logo__word { display: flex; flex-direction: column; line-height: 1.02; font-family: var(--font-head); }
.logo__word strong { font-size: 1.12rem; font-weight: 800; letter-spacing: .01em; color: var(--navy); text-transform: uppercase; }
.logo__word span { margin-top: .22rem; font-size: .68rem; font-weight: 700; letter-spacing: .26em; color: #0e7490; text-transform: uppercase; }
.logo__word--light strong { color: #fff; }
.logo__word--light span { color: #7dd3fc; }
.footer__logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.footer__logo .logo__badge { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 0 0 1px rgba(125,211,252,.25); }
.author-placeholder { overflow: hidden; }
.author-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.split__media--marca { background: #0f2d4f; }

/* ── Cabeceras con imagen de fondo ─────────────── */
.has-hero-bg { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); }
.has-hero-bg > .hero-bg { position: absolute; inset: 0; z-index: -2; }
.has-hero-bg > .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.has-hero-bg::before { display: none; }
.has-hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(9,27,50,.93) 0%, rgba(15,42,74,.82) 42%, rgba(15,42,74,.5) 100%);
}
.has-hero-bg .container { position: relative; z-index: 1; }
.has-hero-bg h1 { text-shadow: 0 2px 18px rgba(0,0,0,.28); }
.hero-page.has-hero-bg::after, .legal-hero.has-hero-bg::after {
  background: linear-gradient(180deg, rgba(9,27,50,.78) 0%, rgba(15,42,74,.86) 100%);
}
.hero.has-hero-bg { padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(4.5rem, 8vw, 6.5rem); }
.hero.has-hero-bg .hero__inner { grid-template-columns: 1fr; }
.hero.has-hero-bg .hero__content { max-width: 700px; }
.hero-service.has-hero-bg { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hero-service.has-hero-bg .hero-service__inner { grid-template-columns: 1fr; max-width: 760px; }
.hero-page.has-hero-bg { padding: clamp(4rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5rem); }
.post-hero.has-hero-bg { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.legal-hero.has-hero-bg { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }

@media (max-width: 767px) {
  .has-hero-bg::after {
    background: linear-gradient(180deg, rgba(15,42,74,.3) 0%, rgba(9,27,50,.78) 42%, rgba(9,27,50,.94) 100%);
  }
  .hero.has-hero-bg { min-height: 78svh; display: flex; align-items: flex-end; padding: 6rem 0 3rem; }
  .hero.has-hero-bg .hero__content h1 { font-size: clamp(1.75rem, 7.4vw, 2.3rem); }
  .hero.has-hero-bg .hero__content p { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero.has-hero-bg .hero__badges { gap: .5rem; margin-bottom: 1.5rem; }
  .hero-service.has-hero-bg { min-height: 62svh; display: flex; align-items: flex-end; padding: 5rem 0 2.5rem; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}

/* ── Header y cajón de menú (móvil) ────────────── */
@media (max-width: 900px) {
  .header__topbar { display: none; }
  .header__main { padding-block: .55rem; gap: .75rem; }
  .logo__badge { width: 42px; height: 42px; border-radius: 10px; }
  .logo__word strong { font-size: 1rem; }
  .logo__word span { font-size: .62rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .95rem;
    border: 1.5px solid var(--border); border-radius: 999px; background: #fff;
    color: var(--navy); font: 700 .9rem/1 var(--font-head); cursor: pointer;
  }
  #nav-menu {
    display: flex; flex-direction: column; position: fixed; inset: 0 0 0 auto; top: 0;
    width: min(88vw, 380px); height: 100dvh; padding: 0; background: #fff; z-index: 1001;
    transform: translateX(100%); visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
    box-shadow: -12px 0 40px rgba(15,42,74,.25); overflow-y: auto; overscroll-behavior: contain;
  }
  #nav-menu.is-open { display: flex; transform: none; visibility: visible; transition: transform .28s ease; }
  .nav-drawer__head {
    position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
    padding: .85rem 1rem .85rem 1.25rem; background: var(--navy); color: #fff;
  }
  .nav-drawer__title { font: 700 1rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
  .nav-close {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  }
  #nav-menu > ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem .75rem; }
  #nav-menu > ul > li { border-bottom: 1px solid var(--border); }
  #nav-menu a, .has-dropdown > button {
    display: flex; align-items: center; min-height: 52px; padding: .75rem .75rem;
    font-size: 1.05rem; font-weight: 600; color: var(--navy); width: 100%;
  }
  .has-dropdown > button { justify-content: space-between; background: none; border: 0; cursor: pointer; }
  .has-dropdown > ul {
    display: none; position: static; min-width: 0; box-shadow: none; border: 0; border-left: 2px solid var(--aqua);
    border-radius: 0; background: none; margin: 0 0 .6rem .9rem; padding: 0 0 0 .4rem;
  }
  .has-dropdown > ul li a { min-height: 46px; font-size: .98rem; font-weight: 500; color: var(--text); white-space: normal; }
  .nav-drawer__foot { margin-top: auto; display: grid; gap: .8rem; padding: 1.25rem; background: var(--surface); border-top: 1px solid var(--border); }
  .nav-drawer__cta { justify-content: center; width: 100%; min-height: 50px; }
  #nav-menu .nav-drawer__mail { min-height: 44px; padding: 0; font-size: .92rem; font-weight: 600; color: var(--navy); gap: .5rem; }
  .nav-drawer__hours { font-size: .85rem; color: var(--text-muted); margin: 0; }
  body.menu-open { overflow: hidden; }
  body.menu-open .header { z-index: 1002; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: rgba(9,27,50,.55); }
}
@media (min-width: 901px) {
  .nav-drawer__head, .nav-drawer__foot { display: none; }
}

/* ── Accesos rápidos flotantes (sustituyen a WhatsApp y a la barra inferior) ── */
.fab {
  position: fixed; z-index: 900; display: flex; align-items: center; gap: .55rem;
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
}
.fab__btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: .8rem 1.2rem;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 700 .95rem/1 var(--font-head); box-shadow: 0 8px 24px rgba(15,42,74,.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,42,74,.36); }
.fab__btn--cta { background: var(--gold); color: var(--navy); }
.fab__btn--menu { background: var(--navy); color: #fff; }
body.fab-on .fab { opacity: 1; transform: none; pointer-events: auto; }
body.menu-open .fab { display: none; }
.fab__btn--menu { padding: .8rem 1.05rem; }
@media (min-width: 901px) { .fab__btn--menu { display: none; } }
@media (max-width: 900px) { .footer__bottom { padding-bottom: 5.5rem; } }
.whatsapp-float, .mobile-cta-bar { display: none !important; }

/* ── Accesibilidad: contraste AA (aqua solo como fondo/decoración) ── */
.section-label { color: #0e7490; }
.service-card__num, .service-card__link { color: #0e7490; }
.split__text a:not(.btn) { color: #0e7490; text-decoration: underline; text-underline-offset: 2px; }
.section--dark .split__text a:not(.btn), .section--dark .section-label { color: #7dd3fc; }
.process-step__num { background: #0e7490; }
.footer__bottom, .footer__bottom a, .footer__bottom span { color: #a9b6c6; }
.footer__col h2 { font-size: .85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.precio-card__tag { color: #0e7490; }
.precio-card--featured .precio-card__tag { background: #0e7490; color: #fff; }

/* ===== V3 2026-10-16 · _psc_v3.py ===== */
/* Capa v3 2026-10-16: iconos, pasos sin numeración, why-items, servicios, zonas, mapa OSM */
.header__topbar-inner { justify-content: flex-start; }
.ico { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,180,216,.16), rgba(0,180,216,.05)); color: var(--aqua-dark);
  transition: transform .25s ease, background .25s ease, color .25s ease; }
.ico svg { width: 24px; height: 24px; }

/* Pasos (sin números: <ol> semántica + icono) */
.steps { list-style: none; display: grid; gap: 1.25rem; margin: 0; padding: 0; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: 1.1rem; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.35rem;
  box-shadow: 0 10px 30px -22px rgba(15,42,74,.35); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.step .ico { grid-row: span 2; }
.step h3 { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.3; color: var(--navy); margin: .2rem 0 .35rem; }
.step p { font-size: .92rem; line-height: 1.6; color: var(--text-muted); margin: 0; }
.step:hover { transform: translateY(-3px); border-color: rgba(0,180,216,.45); box-shadow: 0 18px 40px -24px rgba(15,42,74,.45); }
.step:hover .ico, .why-item:hover .ico, .feature:hover .ico, .clave:hover .ico { background: var(--aqua); color: #fff; transform: rotate(-6deg); }
.step:not(:last-child)::after { content: ""; position: absolute; left: calc(1.35rem + 25px); bottom: -1.25rem; height: 1.25rem; border-left: 2px dashed rgba(0,180,216,.45); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(var(--n, 4), 1fr); gap: 1.5rem; }
  .step { grid-template-columns: 1fr; padding: 1.6rem 1.4rem 1.5rem; }
  .step .ico { grid-row: auto; margin-bottom: 1rem; }
  .step:not(:last-child)::after { left: calc(1.4rem + 60px); right: calc(-1.5rem + 2px); top: calc(1.6rem + 26px); bottom: auto; height: 0; border-left: 0; border-top: 2px dashed rgba(0,180,216,.45); }
}

/* Why-items con icono (antes cifras) */
.why-grid--icons { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.why-item { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem 1.5rem; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease; }
.section--alt .why-item { background: #fff; }
.why-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-item h3 { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.3; color: var(--navy); margin-bottom: .4rem; }
.why-item p { font-size: .92rem; line-height: 1.65; color: var(--text-muted); }

/* Tarjetas de servicio: título enlazado, icono sobre la foto */
.service-card { position: relative; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card h3 a:focus-visible { outline: none; }
.service-card:focus-within { outline: 3px solid var(--aqua); outline-offset: 3px; }
.service-card:hover h3 { color: var(--aqua-dark); }
.service-card__icon { position: absolute; left: 1rem; bottom: -22px; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; background: #fff; color: var(--aqua-dark); box-shadow: 0 8px 20px -8px rgba(15,42,74,.4); transition: transform .25s ease, background .25s ease, color .25s ease; }
.service-card__img { overflow: visible; }
.service-card__img picture { display: block; height: 100%; overflow: hidden; }
.service-card:hover .service-card__icon { background: var(--aqua); color: #fff; transform: translateY(-3px); }
.service-card__img + .service-card__body { padding-top: 2rem; }

/* Rejilla de características con icono (home: tipos de piscina; zonas: claves) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feature, .clave { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; padding: 1.5rem; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover, .clave:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature h3, .clave h3 { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.3; color: var(--navy); margin: .15rem 0 .35rem; }
.feature p, .clave p { font-size: .9rem; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* Servicio: intro + aside */
.svc-intro { display: grid; gap: 2rem; align-items: start; }
.svc-intro .content-text { max-width: 72ch; }
.svc-intro .content-text > p:first-child { font-size: 1.08rem; color: var(--navy); }
@media (min-width: 1000px) { .svc-intro { grid-template-columns: minmax(0, 1fr) 330px; gap: 3rem; } .svc-aside { position: sticky; top: 110px; } }
.svc-aside { background: linear-gradient(160deg, var(--navy), #163d66); color: #fff; border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-lg); }
.svc-aside__title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin-bottom: 1.1rem; }
.svc-aside ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .85rem; }
.svc-aside li { display: flex; gap: .75rem; align-items: center; font-size: .93rem; color: rgba(255,255,255,.88); }
.svc-aside li .ico { width: 38px; height: 38px; border-radius: 11px; background: rgba(0,180,216,.18); color: #7fe3f5; }
.svc-aside li .ico svg { width: 19px; height: 19px; }
.svc-aside .btn { width: 100%; justify-content: center; }

/* Trabajos: pie con descripción */
.trabajo-card__desc strong { display: block; color: var(--navy); font-size: .92rem; font-weight: 700; line-height: 1.35; margin-bottom: .3rem; }
.trabajo-card__desc span, .trabajo-card__txt { display: block; font-size: .84rem; line-height: 1.55; color: var(--text-muted); }
.trabajo-card__txt { margin: .1rem 0 .45rem; }

/* Zonas: barrios en chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 0; padding: 0; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; background: #fff; border: 1px solid var(--border);
  border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--text); }
.chips li svg { color: var(--aqua); flex-shrink: 0; }
.chips-note { text-align: center; margin-top: 1.5rem; font-size: .9rem; color: var(--text-muted); }

/* Mapa OSM estático y diferido */
.map-osm .map-wrapper { height: auto; aspect-ratio: 16/7; margin: 0; }
.map-osm .map-wrapper iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-osm__foot { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; margin-top: 1rem; font-size: .88rem; color: var(--text-muted); }
.map-osm__foot a { color: var(--aqua-dark); font-weight: 600; }
@media (max-width: 767px) { .map-osm .map-wrapper { aspect-ratio: 4/3; } }

/* Hero: sin badges ni cifras */
.hero__ctas { margin-top: 1.75rem; }
.hero.has-hero-bg .hero__content > p { max-width: 62ch; }

@media (prefers-reduced-motion: reduce) {
  .step, .why-item, .feature, .clave, .ico, .service-card__icon { transition: none; }
  .step:hover, .why-item:hover, .feature:hover, .clave:hover { transform: none; }
}

/* Zonas en la home: título + subtítulo apilados */
.zone-card > div { display: flex; flex-direction: column; gap: .15rem; }

/* Rejillas de 4 elementos: 2×2 (sin huérfanos) */
@media (min-width: 640px) { .features:has(> :nth-child(4):last-child), .why-grid--icons:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }

/* Enlaces en prosa visibles */
.content-text a:not(.btn), .split__text p a, .hero-page p a { color: var(--aqua-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero-page p a { color: #7fe3f5; }

/* ===== V4 2026-10-18 · _psc_v4.py ===== */
/* Capa v4 2026-10-18: refresh premium — neutros cálidos, eyebrows editoriales, hero más luminoso,
   CTA final (formulario solo en /contacto/), rejillas 3×2, botones AA */
:root { --surface: #f6f4ef; --line-warm: #e8e3d9; --aqua-ink: #0e7490; --ink-deep: #08182c;
  --section-y: clamp(4rem, 8vw, 6.5rem); }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--surface); }
.header { border-bottom: 1px solid rgba(15,42,74,.06); }

/* Eyebrow editorial (sin píldora) */
.section-label { display: inline-flex; align-items: center; gap: .65rem; background: none; border: 0; padding: 0; border-radius: 0;
  font-size: .72rem; letter-spacing: .16em; color: var(--aqua-ink); }
.section-label::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--gold); }
.section-header .section-label::after { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--gold); }
.section--dark .section-label, .section--pain .section-label { background: none; border: 0; }
.section--dark .section-label { color: #7fe3f5; }
.section-header { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.section-header h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.18; letter-spacing: -.02em; }

/* Botones: un acento (oro) para la conversión; aqua oscuro con contraste AA */
.btn { letter-spacing: .005em; }
.btn--primary { background: var(--aqua-ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(14,116,144,.7); }
.btn--primary:hover { background: #155e75; box-shadow: 0 10px 24px -10px rgba(14,116,144,.8); }
.btn--gold { box-shadow: 0 10px 24px -12px rgba(245,158,11,.75); }
.header__cta, .header__cta.btn--primary { background: var(--gold); color: var(--navy); box-shadow: none; }
.header__cta:hover { background: var(--gold-dark); color: var(--navy); }
.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-1px); }

/* Hero: la foto respira; velo fuerte solo bajo el texto */
.hero.has-hero-bg { min-height: min(84svh, 780px); display: grid; align-items: center; }
.has-hero-bg::after { background:
  linear-gradient(95deg, rgba(8,24,44,.9) 0%, rgba(8,24,44,.76) 38%, rgba(8,24,44,.34) 68%, rgba(8,24,44,.1) 100%),
  linear-gradient(0deg, rgba(8,24,44,.5) 0%, rgba(8,24,44,0) 38%); }
.hero.has-hero-bg .hero__content h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 1.1rem; }
.hero__content > p { color: rgba(255,255,255,.88); }
.hero__label, .hero-service .hero__label { background: none; border: 0; padding: 0; border-radius: 0; gap: .7rem;
  color: #7fe3f5; letter-spacing: .16em; font-size: .74rem; margin-bottom: 1.1rem; }
.hero__label svg { display: none; }
.hero__label::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--gold); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__ctas .btn { margin: 0; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; list-style: none; margin: 1.6rem 0 0; padding: 0;
  font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.86); }
.hero__trust li { display: inline-flex; align-items: center; gap: .55rem; }
.hero__trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(245,158,11,.22); }
@media (max-width: 767px) {
  .hero.has-hero-bg { min-height: 70svh; }
  .has-hero-bg::after { background: linear-gradient(180deg, rgba(8,24,44,.72) 0%, rgba(8,24,44,.82) 55%, rgba(8,24,44,.9) 100%); }
  .hero__ctas .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
  .hero__trust { flex-direction: column; gap: .5rem; }
}

/* Preocupaciones: sección clara (tras el hero oscuro) */
.section--pain { background: var(--surface); padding: var(--section-y) 0; }
.section--pain h2, .section--pain .section-header h2 { color: var(--navy); }
.section--pain .section-header p { color: var(--text-muted); }
.section--pain .section-label { color: var(--aqua-ink); }
.pain-card { background: #fff; border: 1px solid var(--line-warm); box-shadow: 0 1px 2px rgba(15,42,74,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pain-card:hover { background: #fff; border-color: rgba(14,116,144,.35); box-shadow: 0 22px 44px -26px rgba(15,42,74,.4); transform: translateY(-3px); }
.pain-card__icon { background: rgba(0,180,216,.1); color: var(--aqua-ink); border-radius: 12px; }
.pain-card__keyword { color: #b45309; }
.pain-card h3 { color: var(--navy); }
.pain-card p { color: var(--text-muted); }

/* Cards: borde cálido, sombra larga y zoom suave de la foto */
.service-card, .why-item, .feature, .clave, .step, .zone-card, .testimonio-card, .relacionado-card { border-color: var(--line-warm); }
.service-card { box-shadow: 0 1px 2px rgba(15,42,74,.04); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(15,42,74,.45); }
.service-card__img picture img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.service-card:hover .service-card__img picture img { transform: scale(1.045); }
.service-card h3 { letter-spacing: -.01em; }

/* Rejillas de 3, 6, 9… elementos: 3 columnas (sin huérfanos) */
@media (min-width: 640px) and (max-width: 999px) {
  .features:has(> :nth-child(3n):last-child), .why-grid--icons:has(> :nth-child(3n):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .features:has(> :nth-child(3n):last-child), .why-grid--icons:has(> :nth-child(3n):last-child) { grid-template-columns: repeat(3, 1fr); }
}

/* Banda CTA intermedia: navy sobrio con brillo de agua (sin degradado saturado) */
.cta-banner { background: radial-gradient(110% 140% at 88% 0%, rgba(0,180,216,.24) 0%, rgba(0,180,216,0) 55%), var(--navy);
  padding: clamp(3.5rem, 6vw, 5rem) 0; }
.cta-banner p { color: rgba(255,255,255,.78); }
.cta-band { background: radial-gradient(90% 160% at 100% 0%, rgba(0,180,216,.2) 0%, rgba(0,180,216,0) 60%), var(--navy); }

/* CTA final (sustituye al formulario fuera de /contacto/) */
.cta-final { padding: var(--section-y) 0; }
.cta-final__panel { position: relative; overflow: hidden; display: grid; gap: 2rem; align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-lg); color: #fff; box-shadow: var(--shadow-lg);
  background: radial-gradient(85% 130% at 100% 0%, rgba(0,180,216,.28) 0%, rgba(0,180,216,0) 60%),
              linear-gradient(135deg, var(--ink-deep) 0%, var(--navy) 100%); }
.cta-final__panel::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(127,227,245,.18); box-shadow: 0 0 0 28px rgba(127,227,245,.05), 0 0 0 56px rgba(127,227,245,.03); pointer-events: none; }
.cta-final .section-label { color: #7fe3f5; }
.cta-final h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.2; letter-spacing: -.02em; color: #fff; margin: .6rem 0 .7rem; }
.cta-final p { color: rgba(255,255,255,.8); max-width: 58ch; line-height: 1.65; margin: 0; }
.cta-final__actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.cta-final__note { font-size: .86rem; color: rgba(255,255,255,.72); }
@media (min-width: 900px) {
  .cta-final__panel { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
  .cta-final__actions { align-items: center; text-align: center; }
}
@media (max-width: 539px) {
  .cta-final__actions .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; max-width: 100%; }
}

/* Blog: la columna del post no puede ensancharse por tablas/imágenes (desbordaba a 419 px en móvil) */
.post-layout > * { min-width: 0; }
.post-body table { display: block; max-width: 100%; overflow-x: auto; }
.post-body img { max-width: 100%; height: auto; }

/* Trabajos: imagen ampliable (botón inyectado por main.js) + lightbox <dialog> */
.trabajo-card__img { position: relative; }
.trabajo-card__zoom { position: absolute; inset: 0; z-index: 1; cursor: zoom-in; opacity: 0;
  background: linear-gradient(0deg, rgba(8,24,44,.4) 0%, rgba(8,24,44,0) 50%); transition: opacity .25s ease; }
.trabajo-card__zoom::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  box-shadow: 0 8px 20px -8px rgba(8,24,44,.5);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a4a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 20px no-repeat; }
.trabajo-card:hover .trabajo-card__zoom, .trabajo-card__zoom:focus-visible { opacity: 1; }
.trabajo-card__zoom:focus-visible { outline: 3px solid var(--aqua); outline-offset: -3px; }
@media (hover: none) { .trabajo-card__zoom { opacity: 1; background: none; } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8,24,44,.9); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { margin-top: .8rem; text-align: center; font-size: .95rem; color: #fff; }
.lightbox__close { position: absolute; top: -54px; right: 0; width: 44px; height: 44px; border-radius: 50%; background: #fff;
  color: var(--navy); font-size: 1.7rem; line-height: 1; display: grid; place-items: center; }

/* FAQ y testimonios: más aire y bordes cálidos */
.faq-item { border-color: var(--line-warm); }

@media (prefers-reduced-motion: reduce) {
  .pain-card, .service-card__img picture img { transition: none; }
  .pain-card:hover, .service-card:hover .service-card__img picture img { transform: none; }
}

/* ===== V5 2026-10-18 · _psc_v5.py ===== */
/* Hero de página (zonas): CTA centrado como el título, subtítulo equilibrado */
.hero-page .hero__ctas { justify-content: center; }
.hero-page p { max-width: 62ch; text-wrap: balance; }

/* Intro de zona: columna de lectura cómoda + párrafo destacado */
.content-text--narrow { max-width: 68ch; margin-inline: auto; }
.content-text--narrow p { font-size: 1.02rem; line-height: 1.75; }
.content-text--narrow > p:first-child { font-size: 1.15rem; line-height: 1.7; color: var(--navy);
  padding-left: 1.1rem; border-left: 3px solid var(--gold); margin-bottom: 1.5rem; }

/* Intro de servicio: tipografía uniforme y variante con foto */
.svc-intro .content-text p { font-size: 1.02rem; line-height: 1.75; }
.svc-intro .content-text > p:first-child { font-size: 1.12rem; line-height: 1.7; color: var(--navy); }
.type-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .75rem; }
.type-list li { padding: 1rem 1.1rem 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line-warm);
  border-left: 3px solid var(--aqua); border-radius: 12px; font-size: .97rem; line-height: 1.55; color: var(--text); }
.type-list strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--navy); margin-bottom: .15rem; }
.svc-side { display: grid; gap: 1.25rem; align-content: start; }
.svc-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.svc-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-figure figcaption { padding: .7rem 1.1rem; font-size: .82rem; line-height: 1.45; color: var(--text-muted); }
@media (min-width: 1000px) {
  .svc-intro--media { grid-template-columns: minmax(0, 1fr) 380px; }
  .svc-side { position: sticky; top: 110px; }
  .svc-intro--media .svc-aside { position: static; }
}

/* Negritas de contenido (post-proceso _psc_v5.py) */
main p strong.kw { color: var(--navy); font-weight: 700; }
