/* =============================================================
   Fontanería Eneko H. — styles.css
   1. Tokens · 2. Reset · 3. Utilidades · 4. Componentes
   5. Secciones · 6. Responsive · 7. Reduced motion
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  --bg:        #F7F6F3;   /* blanco cálido */
  --bg-2:      #EDEAE3;   /* arena */
  --paper:     #FFFFFF;

  --ink:       #14181F;
  --ink-2:     #39414E;
  --mute:      #6E7783;
  --mute-2:    #98A0AB;

  --azul:      #001A4F;   /* azul de la marca (el del logo) */
  --azul-2:    #000F33;   /* navy profundo para fondos */
  --azul-3:    #1B4390;   /* navy claro: hover y acentos */
  --azul-soft: rgba(0,26,79,.07);
  --ambar:     #C2861F;   /* acento cálido: urgencias */
  --ambar-2:   #A26E14;
  --wa:        #1E9E5A;   /* verde WhatsApp */
  --wa-2:      #16804A;

  --line:      rgba(20,24,31,.12);
  --line-2:    rgba(20,24,31,.22);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --disp: "Fraunces", Georgia, "Times New Roman", serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --maxw: 1200px;
  --radius: 14px;
  --nav-h: 72px;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[hidden] { display: none !important; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 {
  font-family: var(--disp);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
::selection { background: var(--azul); color: #fff; }

:focus-visible {
  outline: 3px solid var(--ambar);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =============================================================
   3. UTILIDADES
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; border-radius: 8px;
  background: var(--ink); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gutter);
}

.kicker {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 1rem;
}
.kicker.light { color: rgba(255,255,255,.82); }

.section { padding-block: clamp(3.8rem, 9vw, 7rem); }
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-title {
  font-size: clamp(1.95rem, 5vw, 3.3rem);
  margin-bottom: 1rem;
}
.section-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--azul);
}
.section-lead { color: var(--mute); font-size: clamp(.98rem, 1.6vw, 1.08rem); max-width: 58ch; }

/* =============================================================
   4. COMPONENTES
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.4rem;
  border-radius: 10px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  white-space: nowrap;
  transition: transform .3s var(--ease-out), background-color .25s var(--ease-out),
              box-shadow .3s var(--ease-out), border-color .25s var(--ease-out);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-lg { padding: 1.02rem 1.7rem; font-size: 1rem; }

.btn-primary { background: var(--azul); color: #fff; box-shadow: 0 6px 18px -8px rgba(0,26,79,.75); }
.btn-primary:hover { background: var(--azul-3); transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0,26,79,.8); }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px -8px rgba(30,158,90,.8); }
.btn-wa:hover { background: var(--wa-2); transform: translateY(-2px); }

.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--azul-2); transform: translateY(-2px); }

.btn-light { background: var(--paper); color: var(--azul-2); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0,0,0,.4); }

.btn-ghost { border: 1.5px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--azul); color: var(--azul); background: var(--azul-soft); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1.1rem;
  font-weight: 600; font-size: .9rem; color: var(--azul);
  border-bottom: 1.5px solid transparent;
  transition: border-color .3s var(--ease-out), gap .3s var(--ease-out);
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease-out); }
.link-arrow:hover { border-bottom-color: var(--azul); }
.link-arrow:hover::after { transform: translateX(3px); }

/* --- Logo --- */
.logo { display: inline-flex; align-items: center; gap: .65rem; }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-text {
  font-size: .76rem;
  line-height: 1.2;
  color: var(--mute);
  letter-spacing: .01em;
}
.logo-text strong {
  display: block;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* =============================================================
   5. BARRA SUPERIOR + NAV
   ============================================================= */
.topbar { background: var(--azul-2); color: rgba(255,255,255,.9); font-size: .82rem; }
.topbar-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: .5rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar-zona { letter-spacing: .02em; }
.topbar-tel { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: #fff; }
.topbar-tel svg { width: 15px; height: 15px; }
.topbar-tel:hover { color: #FFD79A; }

.nav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(247,246,243,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.6); }
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter); height: var(--nav-h);
  display: flex; align-items: center; gap: 1.2rem;
}
.nav-links { display: none; margin-left: auto; gap: 1.7rem; }
.nav-links a {
  font-size: .93rem; font-weight: 500; color: var(--ink-2);
  position: relative; padding-block: .3rem;
  transition: color .25s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--azul);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover { color: var(--azul); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }

.nav-burger {
  margin-left: auto; width: 44px; height: 44px;
  display: grid; place-content: center; gap: 6px;
  border: 1.5px solid var(--line-2); border-radius: 10px;
}
.nav-burger span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease-out);
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav-mobile {
  display: grid; gap: .1rem;
  padding: .4rem var(--gutter) 1.4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a {
  padding: .85rem 0; font-size: 1.02rem; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav-mobile .btn { margin-top: 1rem; border-bottom: 0; justify-content: center; }

/* =============================================================
   6. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 78vh;
  min-height: 78svh;
  display: flex; align-items: flex-end;
  padding-block: clamp(4rem, 12vw, 7rem) clamp(2.5rem, 6vw, 4rem);
  color: #fff;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,33,.62) 0%, rgba(10,22,33,.40) 38%, rgba(10,22,33,.86) 100%),
    linear-gradient(95deg, rgba(14,52,80,.55) 0%, transparent 62%);
}
.hero-inner { position: relative; }
.hero-title {
  font-size: clamp(2.3rem, 6.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(6,14,22,.55);
}
.hero-title em { font-style: italic; font-weight: 600; color: #FFD79A; }
.hero-sub {
  font-size: clamp(1rem, 1.9vw, 1.16rem);
  color: rgba(255,255,255,.9);
  max-width: 48ch;
  margin-bottom: 2rem;
  text-shadow: 0 1px 14px rgba(6,14,22,.5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.4rem; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.25);
}
.hero-proof li {
  position: relative; padding-left: 1.5rem;
  font-size: .89rem; color: rgba(255,255,255,.88);
}
.hero-proof li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 10px; height: 6px;
  border-left: 2px solid #FFD79A; border-bottom: 2px solid #FFD79A;
  transform: rotate(-45deg);
}

/* =============================================================
   7. FRANJA URGENCIAS
   ============================================================= */
.urgencia { background: var(--ambar); color: #241703; }
.urgencia-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding-block: 1.15rem;
}
.urgencia-icon { flex: none; }
.urgencia-icon svg { width: 26px; height: 26px; }
.urgencia p { flex: 1 1 260px; font-size: .94rem; line-height: 1.5; }
.urgencia strong { font-weight: 700; }

/* =============================================================
   8. SERVICIOS
   ============================================================= */
.serv-grid { display: grid; gap: 1rem; }
.serv {
  padding: clamp(1.5rem, 3.2vw, 2.1rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.serv:hover {
  transform: translateY(-3px);
  border-color: rgba(0,26,79,.3);
  box-shadow: 0 20px 44px -30px rgba(20,24,31,.6);
}
.serv-num {
  font-size: .76rem; font-weight: 700; letter-spacing: .1em;
  color: var(--azul); opacity: .55;
}
.serv h3 { font-size: clamp(1.18rem, 2.4vw, 1.45rem); margin: .7rem 0 .6rem; }
.serv p { color: var(--mute); font-size: .94rem; }
.serv--wide { background: linear-gradient(160deg, #FFFFFF, #F3F1EC); border-color: rgba(0,26,79,.22); }

/* =============================================================
   9. TRABAJOS (bento)
   ============================================================= */
.trabajos { background: var(--bg-2); }
.bento { display: grid; gap: .9rem; }
.bento-item {
  position: relative; margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3;
}
.bento-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out), filter .6s var(--ease-out);
}
.bento-item:hover img { transform: scale(1.06); filter: saturate(1.1) brightness(1.04); }
.bento-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.4rem 1.1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(8,16,24,.88));
  color: #fff;
}
.bento-item figcaption strong {
  display: block;
  font-family: var(--disp); font-weight: 600; font-size: 1rem;
  letter-spacing: -0.01em;
}
.bento-item figcaption span { font-size: .8rem; color: rgba(255,255,255,.78); }
.trabajos-nota {
  margin-top: 1.8rem; font-size: .93rem; color: var(--mute);
  padding-left: 1.1rem; border-left: 3px solid var(--azul);
  max-width: 62ch;
}

/* =============================================================
   10. POR QUÉ
   ============================================================= */
.porque-grid { display: grid; gap: 1.6rem; }
.porque-item {
  padding-top: 1.4rem;
  border-top: 3px solid var(--azul);
}
.porque-item h3 { font-size: clamp(1.15rem, 2.3vw, 1.38rem); margin-bottom: .6rem; }
.porque-item p { color: var(--mute); font-size: .94rem; }

/* =============================================================
   11. PASOS
   ============================================================= */
.como { background: var(--azul-2); color: #fff; }
.como .kicker { color: #FFD79A; }
.como .section-title em { color: #FFD79A; }
.pasos { display: grid; gap: 1.5rem; counter-reset: paso; }
.paso {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  align-items: start;
}
.paso-num {
  width: 38px; height: 38px; flex: none;
  display: grid; place-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  font-family: var(--disp); font-weight: 700; font-size: 1rem;
  color: #FFD79A;
}
.paso h3 { font-size: 1.12rem; margin-bottom: .35rem; grid-column: 2; }
.paso p { color: rgba(255,255,255,.75); font-size: .92rem; grid-column: 2; max-width: 46ch; }

/* =============================================================
   12. ZONA + MAPA
   ============================================================= */
.zona-layout { display: grid; gap: 1.6rem; align-items: start; }
.zona-info { display: grid; gap: 1rem; }
.zona-card {
  padding: 1.4rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.zona-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mute-2); margin-bottom: .6rem;
}
.zona-dir {
  font-family: var(--disp); font-weight: 600;
  font-size: 1.18rem; line-height: 1.35; letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
.zona-lista { display: grid; gap: .45rem; }
.zona-lista li {
  position: relative; padding-left: 1.4rem;
  font-size: .93rem; color: var(--ink-2);
}
.zona-lista li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--azul);
}
.zona-card--tel { background: var(--azul); border-color: var(--azul); color: #fff; }
.zona-card--tel .zona-label { color: rgba(255,255,255,.65); }
.zona-tel {
  display: block;
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
}
.zona-tel:hover { color: #FFD79A; }
.zona-nota { font-size: .85rem; color: rgba(255,255,255,.72); margin-top: .35rem; }

.zona-mapa {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  min-height: 340px;
}
.zona-mapa iframe {
  position: relative; z-index: 1;
  width: 100%; height: 100%; min-height: 340px;
  border: 0; background: transparent;
}
/* Se ve solo si el mapa no llega a cargar */
.mapa-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-content: center; justify-items: center; gap: 1rem;
  text-align: center; padding: 1.5rem;
}
.mapa-fallback p { font-family: var(--disp); font-size: 1.05rem; line-height: 1.4; }
.mapa-fallback strong { font-weight: 700; }

/* =============================================================
   13. CONTACTO FINAL
   ============================================================= */
.contacto { background: var(--bg-2); }
.cta {
  padding: clamp(2.2rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3.4rem);
  border-radius: 20px;
  background: linear-gradient(150deg, var(--azul) 0%, var(--azul-2) 70%);
  color: #fff;
  text-align: center;
}
.cta-title {
  font-size: clamp(1.9rem, 5.4vw, 3.2rem);
  margin-bottom: 1rem;
}
.cta-lead {
  color: rgba(255,255,255,.85);
  max-width: 48ch; margin-inline: auto; margin-bottom: 2rem;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.cta-nota { margin-top: 1.4rem; font-size: .84rem; color: rgba(255,255,255,.6); }

/* =============================================================
   14. FOOTER
   ============================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: 3rem 1.6rem; }
.footer .logo-text { color: rgba(255,255,255,.6); }
.footer .logo-text strong { color: #fff; }
.footer-inner { display: grid; gap: 2.2rem; }
.footer-claim { font-size: .9rem; margin-top: 1rem; max-width: 40ch; }
.footer-title {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: .8rem;
}
.footer-col ul { display: grid; gap: .45rem; }
.footer-col li { font-size: .9rem; }
.footer-col a:hover { color: #FFD79A; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between;
  margin-top: 2.4rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .8rem; color: rgba(255,255,255,.5);
}
.footer-credito a {
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.footer-credito a:hover { color: #FFD79A; border-bottom-color: #FFD79A; }

/* =============================================================
   15. FLOTANTES: WHATSAPP + ASISTENTE
   ============================================================= */
.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;
}

.flotantes {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 850;
  display: grid; gap: .6rem; justify-items: center;
}
.flota {
  width: 52px; height: 52px;
  display: grid; place-content: center;
  border-radius: 50%;
  color: #fff;
  position: relative;
  transition: transform .3s var(--ease-out), background-color .25s var(--ease-out);
}
.flota svg { width: 26px; height: 26px; }
.flota:hover { transform: scale(1.07); }
.flota--wa { background: var(--wa); box-shadow: 0 10px 24px -8px rgba(30,158,90,.75); }
.flota--wa:hover { background: var(--wa-2); }
.flota--chat { background: var(--azul); box-shadow: 0 10px 24px -8px rgba(0,26,79,.75); }
.flota--chat:hover { background: var(--azul-3); }
.flota--chat .ico-cerrar { display: none; }
.flota--chat[aria-expanded="true"] .ico-chat { display: none; }
.flota--chat[aria-expanded="true"] .ico-cerrar { display: block; }

.flota-punto {
  position: absolute; top: 2px; right: 2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ambar); border: 2px solid var(--bg);
}
.flota--chat[aria-expanded="true"] .flota-punto { display: none; }

/* --- Panel del asistente --- */
.asistente-panel {
  position: fixed; z-index: 860;
  right: 1rem; bottom: 5.4rem; left: 1rem;
  max-width: 380px;
  margin-left: auto;
  display: flex; flex-direction: column;
  max-height: min(560px, calc(100vh - 8rem));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(10,20,40,.55), 0 0 0 1px rgba(0,26,79,.05);
  overflow: hidden;
}
.js .asistente-panel {
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
}
.js .asistente-panel.is-abierto { opacity: 1; transform: none; }

.ap-top {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1rem;
  background: var(--azul); color: #fff;
}
.ap-avatar { width: 34px; height: 34px; flex: none; }
.ap-avatar svg { width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.ap-id { display: grid; line-height: 1.25; min-width: 0; flex: 1; }
.ap-id strong { font-size: .92rem; font-weight: 600; }
.ap-id span { font-size: .74rem; color: rgba(255,255,255,.72); }
.ap-wa, .ap-cerrar {
  width: 32px; height: 32px; flex: none;
  display: grid; place-content: center;
  border-radius: 8px; color: #fff;
  transition: background-color .25s var(--ease-out);
}
.ap-wa svg { width: 18px; height: 18px; }
.ap-cerrar svg { width: 18px; height: 18px; }
.ap-wa:hover, .ap-cerrar:hover { background: rgba(255,255,255,.16); }

.ap-cuerpo {
  flex: 1; overflow-y: auto;
  padding: 1rem;
  display: grid; gap: .6rem; align-content: start;
  background: var(--bg);
}
.ap-msg { display: flex; }
.ap-msg p {
  max-width: 88%;
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .89rem; line-height: 1.5;
}
.ap-msg--bot p {
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  color: var(--ink);
}
.ap-msg--user { justify-content: flex-end; }
.ap-msg--user p {
  background: var(--azul); color: #fff;
  border-bottom-right-radius: 5px;
}
.ap-msg--aviso p {
  background: #FFF6E2; border: 1px solid #E8CF9A; color: #5A4310;
  font-size: .85rem; max-width: 100%;
}
.ap-puntos { display: flex; gap: 4px; padding: .75rem .9rem; }
.ap-puntos i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mute-2);
  animation: apLatir 1.2s var(--ease-soft) infinite;
}
.ap-puntos i:nth-child(2) { animation-delay: .15s; }
.ap-puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes apLatir {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30%           { opacity: 1; transform: translateY(-3px); }
}

.ap-sugerencias {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: 0 1rem .8rem;
  background: var(--bg);
}
.ap-sugerencias button {
  padding: .42rem .7rem;
  border: 1px solid var(--line-2); border-radius: 100px;
  font-size: .78rem; color: var(--azul);
  background: var(--paper);
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.ap-sugerencias button:hover { background: var(--azul-soft); border-color: var(--azul); }

.ap-pie {
  display: flex; gap: .5rem; align-items: center;
  padding: .7rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.ap-pie input {
  flex: 1; min-width: 0;
  padding: .65rem .9rem;
  border: 1px solid var(--line-2); border-radius: 100px;
  font-size: .88rem; background: var(--bg);
}
.ap-pie input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-soft); }
.ap-pie button {
  width: 38px; height: 38px; flex: none;
  display: grid; place-content: center;
  border-radius: 50%; background: var(--azul); color: #fff;
  transition: background-color .25s var(--ease-out);
}
.ap-pie button svg { width: 18px; height: 18px; }
.ap-pie button:hover { background: var(--azul-3); }
.ap-pie button:disabled { opacity: .45; cursor: default; }

.ap-aviso {
  padding: 0 1rem .8rem;
  font-size: .72rem; color: var(--mute);
  background: var(--paper);
}
.ap-aviso a { color: var(--azul); font-weight: 600; }

/* =============================================================
   16. REVEALS
   ============================================================= */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out);
}
.js .reveal.is-revealed { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .07s; }
.js .reveal:nth-child(3) { transition-delay: .14s; }
.js .reveal:nth-child(4) { transition-delay: .21s; }
.js .reveal:nth-child(5) { transition-delay: .28s; }
.js .reveal:nth-child(6) { transition-delay: .35s; }

/* =============================================================
   17. RESPONSIVE
   ============================================================= */
@media (min-width: 540px) {
  .porque-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .serv-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item--big { grid-column: span 2; aspect-ratio: 16 / 9; }
  .pasos { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.6rem; }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
}

@media (min-width: 960px) {
  :root { --nav-h: 82px; }
  .nav-links, .nav-cta { display: flex; }
  .nav-burger { display: none; }
  .nav-mobile { display: none !important; }

  .serv-grid { grid-template-columns: repeat(3, 1fr); }
  .serv--wide { grid-column: span 2; }

  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .bento-item--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .bento-item--tall { grid-row: span 2; aspect-ratio: auto; }

  .porque-grid { grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
  .pasos { grid-template-columns: repeat(4, 1fr); }

  .zona-layout { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 2rem; }
  .zona-mapa { min-height: 100%; }

  .flotantes { right: 1.6rem; bottom: 1.6rem; }
  .flota { width: 56px; height: 56px; }
  .asistente-panel { right: 1.6rem; bottom: 6.2rem; }
}

/* =============================================================
   18. REDUCED MOTION — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bento-item:hover img { transform: none; }
}
