/* =========================================================
   Fontanería Catrachos — Sistema de estilos
   Marca: azul #1E4179 (principal) · celeste #00BCE3 (secundario)
   Stack: HTML + CSS + JS vanilla · mobile-first · sin frameworks
   ========================================================= */

:root {
  /* Marca */
  --navy: #1E4179;
  --navy-900: #142b52;
  --navy-800: #18345f;
  --navy-700: #1f4582;
  --navy-50: #eef3fb;
  --celeste: #00BCE3;
  --celeste-600: #02a3c4;
  --celeste-700: #0a86a1;
  --celeste-50: #e4f8fd;

  /* Funcionales */
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --emergency: #e23b3b;     /* solo emergencias */
  --emergency-dark: #c42c2c;

  /* Neutros (off-black, nada de #000) */
  --ink: #15233c;
  --slate-700: #33415c;
  --slate-500: #5e6c84;
  --slate-400: #8794a8;
  --slate-200: #dde3ee;
  --slate-100: #eef1f7;
  --slate-50: #f6f8fc;
  --white: #ffffff;

  /* Sistema */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --shadow-sm: 0 1px 2px rgba(20, 43, 82, .07), 0 2px 8px rgba(20, 43, 82, .05);
  --shadow: 0 10px 30px -12px rgba(20, 43, 82, .22);
  --shadow-lg: 0 30px 60px -25px rgba(20, 43, 82, .35);
  --ring: 0 0 0 4px rgba(0, 188, 227, .25);
  --container: 1200px;
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--celeste-700); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Títulos grandes: Bebas Neue (condensada, mayúsculas, alto impacto) */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400; line-height: .95; letter-spacing: .015em;
  color: var(--navy); margin: 0 0 .35em; text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
/* Subtítulos pequeños: fuente de texto, legibles */
h3, h4 {
  font-family: var(--font-body);
  font-weight: 800; line-height: 1.2; letter-spacing: -.01em;
  color: var(--navy); margin: 0 0 .5em;
}
h3 { font-size: 1.16rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
strong { color: var(--navy); }
:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; border-radius: 6px; }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--slate-50); }
.section--navy { background: var(--navy); color: #cdd9ee; position: relative; overflow: hidden; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--celeste-700); margin-bottom: .8rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--celeste); border-radius: 2px; }
.section--navy .eyebrow { color: #57d6f1; }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: 1.12rem; color: var(--slate-500); line-height: 1.65; }
.section--navy .lead { color: #aebfdb; }
.text-muted { color: var(--slate-500); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Marca / Logo ---------- */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 50px; width: auto; display: block; }
.site-footer .brand__logo { height: 46px; }
@media (max-width: 520px) { .brand__logo { height: 42px; } }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-family: var(--font-body);
  font-weight: 700; font-size: .96rem; background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent; cursor: pointer; line-height: 1; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--navy { --btn-bg: var(--navy); }
.btn--celeste { --btn-bg: var(--celeste); --btn-fg: #04303b; }
.btn--celeste:hover { background: var(--celeste-600); }
.btn--whatsapp { --btn-bg: var(--whatsapp); --btn-fg: #053d23; }
.btn--whatsapp:hover { background: var(--whatsapp-dark); color: #fff; }
.btn--emergency { --btn-bg: var(--emergency); --btn-fg: #fff; }
.btn--emergency:hover { background: var(--emergency-dark); }
.btn--ghost { --btn-bg: #fff; --btn-fg: var(--navy); border-color: var(--slate-200); }
.btn--ghost:hover { border-color: var(--celeste); color: var(--celeste-700); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.32); }
.btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--slate-100);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 76px; flex-wrap: nowrap; }
/* En escritorio: nav + botones en UNA fila, nunca apilados */
.primary-nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.4rem); }
.nav { display: flex; align-items: center; gap: .1rem; }
.nav a {
  color: var(--slate-700); font-weight: 600; font-size: .94rem; padding: .55rem .7rem;
  border-radius: 10px; transition: background .15s, color .15s; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--navy-50); color: var(--navy); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: .5rem; flex: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--slate-200); background: #fff;
  border-radius: 12px; cursor: pointer; padding: 0; place-items: center; flex: none;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--navy); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1024px) {
  .nav-toggle { display: grid; }
  .header-inner { flex-wrap: wrap; }
  .primary-nav { display: none; order: 3; flex-basis: 100%; }
  .primary-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: .35rem; padding: .4rem 0 1rem; }
  .primary-nav.open .nav { flex-direction: column; align-items: stretch; gap: .15rem; }
  .primary-nav.open .nav a { padding: .85rem 1rem; }
  .primary-nav.open .header-cta { flex-direction: column; align-items: stretch; border-top: 1px solid var(--slate-100); margin-top: .5rem; padding-top: 1rem; }
}

/* ---------- Barra de emergencia ---------- */
.topbar {
  background: var(--navy-900); color: #cdd9ee; font-size: .82rem;
}
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.2rem; padding-block: .5rem; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .topbar-emph { display: inline-flex; align-items: center; gap: .45rem; }
.topbar .topbar-emph svg { width: 15px; height: 15px; color: var(--celeste); }
.topbar .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #46e08a; box-shadow: 0 0 0 0 rgba(70,224,138,.6); animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 70% { box-shadow: 0 0 0 7px rgba(70,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(70,224,138,0); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #e7eefb; overflow: hidden; isolation: isolate;
  background-color: var(--navy-900);
  background-image: url("../img/fondo_heroe_image.webp");
  background-size: cover; background-position: center right;
}
/* La imagen ya trae el azul oficial al 90%: NO añadimos más opacidad.
   Solo un leve fundido inferior para empalmar con la sección siguiente. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, var(--navy-900) 0%, transparent 22%);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
/* Entrada escalonada: cada hijo del hero aparece en secuencia */
.hero__content > * { animation: hero-rise .8s var(--ease) both; }
.hero__content > *:nth-child(1) { animation-delay: .08s; }
.hero__content > *:nth-child(2) { animation-delay: .18s; }
.hero__content > *:nth-child(3) { animation-delay: .28s; }
.hero__content > *:nth-child(4) { animation-delay: .38s; }
.hero__content > *:nth-child(5) { animation-delay: .48s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } }

.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-body);
  font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(0,188,227,.12); border: 1px solid rgba(0,188,227,.35);
  padding: .5rem 1rem; border-radius: 999px; color: #6fe0fb; margin-bottom: 1.5rem;
}
.hero__badge svg { width: 15px; height: 15px; color: var(--celeste); }

.hero__title {
  font-size: clamp(2.9rem, 6.8vw, 5.2rem); line-height: .9; letter-spacing: .02em;
  text-transform: uppercase; color: #fff; margin-bottom: 1.2rem; font-weight: 400;
  text-shadow: 0 2px 24px rgba(8,20,40,.45);
}
.hero__title .accent { color: var(--celeste); }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: #d5e2f4; max-width: 46ch; margin-bottom: 2rem; text-shadow: 0 1px 14px rgba(8,20,40,.5); }
.hero .btn-group { margin-bottom: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; font-size: .88rem; color: #aec0dd; }
.hero__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust svg { width: 18px; height: 18px; color: var(--celeste); flex: none; }

/* Botón glass (Ver servicios) */
.btn--glass { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.btn--glass:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }

/* Tarjeta "Estado del servicio" */
.hero__aside { position: relative; animation: hero-rise .7s .15s var(--ease) both; }
.status-card {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-xl);
  padding: 1.5rem; backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), var(--shadow-lg);
}
.status-card__label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #94a9c9; }
.status-avail { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: #fff; margin: .5rem 0 1.2rem; font-size: .98rem; }
.status-avail .pulse-dot { background: #46e08a; box-shadow: 0 0 0 0 rgba(70,224,138,.6); animation: pulse-ring 2s infinite; }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.status-item {
  display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); font-weight: 600; font-size: .92rem; color: #e7eefb;
  transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.status-item:hover { background: rgba(0,188,227,.16); border-color: rgba(0,188,227,.5); }
.status-item__ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(0,188,227,.18); color: var(--celeste); }
.status-item__ic svg { width: 18px; height: 18px; }
/* entrada escalonada de los ítems de la tarjeta */
.status-item { animation: status-in .6s var(--ease) both; }
.status-item:nth-child(1) { animation-delay: .45s; }
.status-item:nth-child(2) { animation-delay: .57s; }
.status-item:nth-child(3) { animation-delay: .69s; }
.status-item:nth-child(4) { animation-delay: .81s; }
@keyframes status-in { from { opacity: 0; transform: translateX(16px); } }

.hero__badge-float {
  position: absolute; right: -.6rem; bottom: -1.4rem; background: var(--celeste); color: #04303b;
  border-radius: var(--radius); padding: .85rem 1.2rem; box-shadow: var(--shadow-lg);
  text-align: center; transform: rotate(-3deg); animation: float-badge 4s ease-in-out infinite;
}
.hero__badge-float b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.hero__badge-float span { font-size: .68rem; font-weight: 700; letter-spacing: .05em; }
@keyframes float-badge { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-7px); } }

@media (max-width: 860px) { .hero__photo { display: none; } }
@media (min-width: 861px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }

/* ---------- Placeholders de imagen ---------- */
.img-ph {
  position: relative; display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: #bcd6ea; border-radius: var(--radius); aspect-ratio: 4 / 3; padding: 1.25rem;
  border: 1px dashed rgba(255,255,255,.28); min-height: 180px;
}
.img-ph--light { background: repeating-linear-gradient(45deg, rgba(0,188,227,.06) 0 12px, transparent 12px 24px), var(--celeste-50); color: var(--celeste-700); border-color: rgba(0,188,227,.4); }
.img-ph__icon { width: 40px; height: 40px; margin-bottom: .6rem; opacity: .9; }
.img-ph__label { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.img-ph__hint { font-size: .73rem; opacity: .78; margin-top: .3rem; max-width: 30ch; }
.img-ph--wide { aspect-ratio: 16 / 7; }

/* ---------- Servicios (bento asimétrico) ---------- */
.services { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(4, 1fr); } .services .service--feature { grid-column: span 2; grid-row: span 2; } }

.service {
  position: relative; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 1.7rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.service::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s var(--ease);
  background: radial-gradient(420px 200px at var(--mx, 80%) 0%, rgba(0,188,227,.10), transparent 70%);
  pointer-events: none;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(0,188,227,.5); }
.service:hover::before { opacity: 1; }
.service__num { font-family: var(--font-display); font-size: .85rem; font-weight: 400; color: var(--celeste-600); letter-spacing: .1em; }
.service__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); margin: .9rem 0 1rem; transition: background .25s, color .25s; }
.service:hover .service__icon { background: var(--celeste); color: #fff; }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { margin-bottom: .45rem; }
.service p { color: var(--slate-500); font-size: .96rem; }
.service--feature { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-900) 100%); border-color: transparent; color: #cbd8ee; }
.service--feature .service__num { color: var(--celeste); }
.service--feature h3 { color: #fff; font-size: 1.5rem; }
.service--feature p { color: #aec0dd; }
.service--feature .service__icon { background: rgba(255,255,255,.1); color: #fff; }
.service--feature:hover .service__icon { background: var(--celeste); }
.service__link { margin-top: auto; padding-top: 1rem; font-weight: 700; font-size: .92rem; color: var(--celeste-700); display: inline-flex; align-items: center; gap: .4rem; }
.service--feature .service__link { color: var(--celeste); }
.service__link svg { width: 16px; height: 16px; transition: transform .15s var(--ease); }
.service:hover .service__link svg { transform: translateX(4px); }

/* ---------- Tarjetas genéricas (servicios internos) ---------- */
.cards { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards--2, .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(0,188,227,.45); }
.card__icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); margin-bottom: 1rem; }
.card__icon svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--slate-500); font-size: .95rem; }
.card__link { margin-top: auto; padding-top: .9rem; font-weight: 700; font-size: .92rem; color: var(--celeste-700); display: inline-flex; align-items: center; gap: .35rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .15s var(--ease); }
.card:hover .card__link svg { transform: translateX(3px); }

/* ---------- "Por qué" (zig-zag features) ---------- */
.feature-grid { display: grid; gap: 1.4rem 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.feature { display: flex; gap: 1rem; }
.feature__icon { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--celeste-50); color: var(--celeste-700); }
.feature__icon svg { width: 25px; height: 25px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.feature p { color: var(--slate-500); font-size: .94rem; margin: 0; }

/* ---------- Proceso ---------- */
.steps { display: grid; gap: 1.2rem; counter-reset: step; grid-template-columns: 1fr; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.6rem; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); }
.step__num { counter-increment: step; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(150deg, var(--navy), var(--celeste-600)); color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; display: grid; place-items: center; margin-bottom: 1rem; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--slate-500); font-size: .9rem; margin: 0; }

/* ---------- Zonas / sectores ---------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--media-first > .split__media { order: -1; } }
.zones { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 520px) { .zones { grid-template-columns: repeat(3, 1fr); } }
.zone { display: flex; align-items: center; gap: .55rem; padding: .8rem .95rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; color: #dbe6f6; }
.zone svg { width: 18px; height: 18px; color: var(--celeste); flex: none; }
/* Sectores: siempre 3 columnas (2 filas de 3), tarjetas uniformes */
.sectors { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
.sector {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  text-align: center; padding: 1.5rem 1rem; min-height: 132px;
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.sector:hover { transform: translateY(-3px); border-color: var(--celeste); box-shadow: var(--shadow-sm); }
.sector svg { width: 30px; height: 30px; color: var(--celeste-600); margin: 0; flex: none; }
.sector span { display: block; font-size: .9rem; font-weight: 700; color: var(--navy); line-height: 1.25; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 840px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 0 1.3rem; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: rgba(0,188,227,.5); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 0; font-family: var(--font-body); font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 20px; height: 20px; flex: none; background: var(--celeste-50); border-radius: 6px; position: relative; transition: transform .2s; }
.faq summary::before { content: "+"; position: absolute; right: 1.3rem; color: var(--celeste-700); font-size: 1.25rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details > p { color: var(--slate-500); margin: 0; padding: 0 0 1.3rem; font-size: .96rem; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-xl);
  background: radial-gradient(700px 360px at 88% 0%, rgba(0,188,227,.45), transparent 60%), linear-gradient(150deg, var(--navy), var(--navy-900));
  padding: clamp(2.2rem, 5vw, 4rem); text-align: center; box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; }
.cta p { color: #bdcde6; max-width: 52ch; margin-inline: auto; }
.cta .btn-group { justify-content: center; margin-top: 1.8rem; }

/* ---------- Emergencia (banda) ---------- */
.emergency {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; color: #fff;
  background:
    radial-gradient(620px 320px at 88% -10%, rgba(0,188,227,.42), transparent 62%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-900) 72%);
  border: 1px solid rgba(0,188,227,.3);
  display: grid; gap: 1.4rem; padding: clamp(1.8rem, 4vw, 2.8rem); align-items: center;
}
/* franja celeste lateral */
.emergency::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--celeste), var(--celeste-700)); pointer-events: none; }
@media (min-width: 760px) { .emergency { grid-template-columns: 1fr auto; } }
.emergency__tag { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6fe0fb; margin-bottom: .7rem; }
.emergency__tag .pulse-dot { background: var(--celeste); box-shadow: 0 0 0 0 rgba(0,188,227,.6); animation: pulse-ring 1.6s infinite; }
.emergency h2 { color: #fff; margin-bottom: .4rem; }
.emergency p { color: #bdcde6; margin: 0; }
.emergency__phone { font-family: var(--font-display); font-weight: 400; letter-spacing: .03em; color: var(--celeste); }

/* ---------- Formularios ---------- */
.form-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-grid .col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field label .req { color: var(--emergency); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; padding: .85rem 1rem; border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm); background: var(--slate-50); color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--celeste); background: #fff; box-shadow: var(--ring); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--emergency); }
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: .78rem; color: var(--slate-400); }
.form-note { font-size: .82rem; color: var(--slate-500); }
.form-status { font-size: .92rem; font-weight: 600; padding: .85rem 1rem; border-radius: var(--radius-sm); margin: 0; }
.form-status.ok { background: rgba(37,211,102,.12); color: var(--whatsapp-dark); }
.form-status.err { background: rgba(226,59,59,.1); color: var(--emergency-dark); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1fr 1.05fr; align-items: start; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.info-item { display: flex; gap: 1rem; padding: 1.1rem; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.info-item:hover { border-color: var(--celeste); transform: translateX(3px); }
.info-item .info-ic { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); }
.info-item .info-ic svg { width: 23px; height: 23px; }
.info-item b { display: block; color: var(--navy); font-family: var(--font-body); font-weight: 700; font-size: .95rem; }
.info-item span, .info-item a { color: var(--slate-500); font-size: .94rem; }
.info-item .label-sm { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--celeste-700); font-weight: 700; }

/* ---------- Páginas internas ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #e7eefb; padding-block: clamp(3rem, 6vw, 4.8rem);
  background-color: var(--navy-900);
  /* Foto con azul oficial + scrim lateral solo para legibilidad del texto */
  background-image:
    linear-gradient(90deg, rgba(20,43,82,.88) 0%, rgba(20,43,82,.55) 48%, rgba(20,43,82,.25) 100%),
    url("../img/fondo_para_heroe_paginas_adicionales.webp");
  background-size: cover; background-position: center;
}
.page-hero h1 { text-shadow: 0 2px 20px rgba(8,20,40,.45); }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(700px 400px at 85% 0%, #000, transparent 75%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #bdcde6; max-width: 60ch; font-size: 1.08rem; }
.breadcrumb { font-size: .85rem; color: #93a8cb; margin-bottom: .9rem; }
.breadcrumb a { color: #cdd9ee; }
.breadcrumb span { opacity: .55; padding: 0 .4rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul li { margin-bottom: .45rem; }
.prose img, .prose .img-ph { margin: 1.5rem 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: var(--celeste-600); flex: none; margin-top: .15rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card .img-ph { border-radius: 0; aspect-ratio: 16/9; min-height: 0; }
.post-card__img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-body figure > img { display: block; width: 100%; height: auto; border-radius: 16px; }
.post-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card__tag { display: inline-flex; align-self: flex-start; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--celeste-700); background: var(--celeste-50); padding: .25rem .6rem; border-radius: 999px; margin-bottom: .7rem; }
.post-card h3 { font-size: 1.12rem; }
.post-card p { color: var(--slate-500); font-size: .92rem; }
.post-card .card__link { margin-top: auto; }
.post-meta { font-size: .82rem; color: var(--slate-400); display: flex; gap: .9rem; margin-bottom: 1.2rem; }
.article-body { max-width: 740px; margin-inline: auto; }
.article-body figure { margin: 1.6rem 0; }
.article-body figcaption { font-size: .8rem; color: var(--slate-400); text-align: center; margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb1d0; padding-block: clamp(2.8rem, 5vw, 4rem) 1.6rem; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.3fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; font-family: var(--font-body); }
.site-footer a { color: #9fb1d0; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .92rem; }
.footer-brand p { font-size: .9rem; max-width: 34ch; margin-top: 1rem; }
.footer-contact { font-size: .9rem; display: grid; gap: .8rem; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; list-style: none; }
.footer-contact svg { width: 18px; height: 18px; color: var(--celeste); flex: none; margin-top: .15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.6rem; padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .82rem; color: #7d92b5; }
.footer-credits { flex-basis: 100%; text-align: left; margin-top: .4rem; }
.footer-credits a { color: #aebfdb; text-decoration: underline; text-underline-offset: 2px; }
.footer-credits a:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: clamp(1rem, 3vw, 1.7rem); bottom: clamp(1rem, 3vw, 1.7rem); z-index: 60; width: 62px; height: 62px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.45); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.08); text-decoration: none; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); animation: wa-pulse 2.2s infinite; pointer-events: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Reveal (aparición al hacer scroll) ---------- */
.reveal {
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity .75s var(--ease), transform .75s var(--ease), filter .75s var(--ease);
  transition-delay: var(--reveal-delay, 0s); will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
/* variantes direccionales */
.reveal--left { transform: translateX(-34px); }
.reveal--right { transform: translateX(34px); }
.reveal--left.is-visible, .reveal--right.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---------- Página padre de Servicios ---------- */
.svc-cards { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .svc-cards { grid-template-columns: repeat(2, 1fr); } }
.svc-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(0,188,227,.4); }
.svc-card__media { position: relative; }
.svc-card__media .img-ph { border-radius: 0; aspect-ratio: 16/9; min-height: 0; }
.svc-card__img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.svc-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.svc-gallery img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .svc-gallery { grid-template-columns: 1fr 1fr; gap: .7rem; } }
.svc-card__icon {
  position: absolute; left: 1.3rem; bottom: -26px; width: 56px; height: 56px; border-radius: 16px;
  background: var(--celeste); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); border: 3px solid #fff;
}
.svc-card__icon svg { width: 27px; height: 27px; }
.svc-card__body { padding: 2.3rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.svc-card__desc { color: var(--slate-500); font-size: .95rem; margin-bottom: 1.1rem; }
.svc-benefits { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .55rem; }
.svc-benefits li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; font-weight: 600; color: var(--navy); }
.svc-benefits svg { width: 20px; height: 20px; color: var(--celeste-600); flex: none; margin-top: .1rem; }
.svc-card .btn { margin-top: auto; align-self: flex-start; }

/* Mini beneficios (sección "por qué", fondo contrastante) */
.mini-benefits { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: 2.2rem; }
@media (min-width: 760px) { .mini-benefits { grid-template-columns: repeat(4, 1fr); } }
.mini-benefit { text-align: center; padding: 1.5rem 1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.mini-benefit__ic { width: 54px; height: 54px; margin: 0 auto .8rem; border-radius: 15px; display: grid; place-items: center; background: rgba(0,188,227,.16); color: var(--celeste); }
.mini-benefit__ic svg { width: 27px; height: 27px; }
.mini-benefit b { display: block; color: #fff; font-size: .98rem; }

/* Tile "¿Por qué elegirnos?" — rellena el bento y equilibra la tarjeta destacada */
.service--why { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); border-color: transparent; color: #cbd8ee; justify-content: center; }
.service--why::before { display: none; }
.service--why .why-eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--celeste); font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.service--why .why-eyebrow svg { width: 18px; height: 18px; }
.service--why h3 { color: #fff; font-size: 1.22rem; margin-bottom: .5rem; }
.service--why p { color: #aec0dd; font-size: .95rem; margin: 0 0 1rem; }
.service--why .service__link { color: var(--celeste); }

/* ---------- Tabla rica (artículos de blog) ---------- */
.rich-table-wrap { overflow-x: auto; margin: 1.8rem 0; border: 1px solid var(--slate-200); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.rich-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 540px; }
.rich-table th, .rich-table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--slate-200); vertical-align: top; line-height: 1.45; }
.rich-table thead th { background: var(--navy); color: #fff; font-family: var(--font-body); font-weight: 700; letter-spacing: .01em; position: sticky; top: 0; }
.rich-table tbody tr:nth-child(even) { background: var(--slate-50); }
.rich-table tbody tr:last-child td { border-bottom: none; }
.rich-table td:first-child, .rich-table th:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ---------- Infografía destacada (centrada en desktop y móvil) ---------- */
.infographic { margin: 2.4rem 0; text-align: center; }
.infographic img { width: 100%; max-width: 760px; height: auto; display: block; margin-inline: auto; border-radius: var(--radius-lg); border: 1px solid var(--slate-200); box-shadow: var(--shadow-lg); }
.infographic figcaption { margin-top: .9rem; font-size: .85rem; color: var(--slate-500); }
.infographic .btn { margin-top: 1rem; }

/* ---------- Nota / callout en artículos ---------- */
.note { background: var(--celeste-50); border: 1px solid rgba(0,188,227,.35); border-left: 4px solid var(--celeste); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.6rem 0; font-size: .95rem; color: var(--slate-700); }
.note strong { color: var(--celeste-700); }
