/* Versión B de la landing: la estructura de un tema de veterinaria (foto de portada de lado
   a lado con tarjetas que la pisan, recortes sobre manchas, banda de foto oscura, galería
   despareja), con los colores y las letras de Chicho (src/diseno.css). */
:root {
  --navy: #1f3852;
  --navy-hondo: #162a3e;
  --slate: #3e5367;
  --muted: #54646f;
  --coral: #ff6b5e;          /* sólo decoración, NUNCA con texto blanco */
  --coral-strong: #c8321f;
  --coral-accion: #d63a2b;   /* con texto blanco · 4,67 */
  --blue: #1a5fc4;
  --teal: #0f6b7d;
  --green: #12874a;
  --info-bg: #eef2f7;
  --info-bd: #dde4ec;
  --banda-coral: #ffe6e2;
  --banda-azul: #e5ecf4;
  --banda-teal: #dcf1ee;
  --banda-ambar: #fdf0dc;
  --exito-bg: #e9f6ee;       /* el de la app (diseno.css): fondo de "volvió a casa" */
  --crema: #fdf6ec;
  --blanco: #ffffff;

  --curva: cubic-bezier(0.23, 1, 0.32, 1);
  --sombra-tarjeta: 0 24px 50px -28px rgba(31, 56, 82, 0.45);
  --ancho: 1200px;
  --titulos: 'Fredoka', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --texto: 'Nunito', ui-sans-serif, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--blanco); color: var(--navy);
  font-family: var(--texto); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--navy); }
main:focus { outline: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* Los íconos son los mismos de la app: Material Symbols Rounded, recortada a los que usa
   Chicho (es una copia de public/fonts/material-symbols.woff2 del repo de la app). Van por
   LIGADURA: el texto "pets" se dibuja como la huella. Por eso text-transform: none, y
   font-display: block, para que no se lea la palabra mientras carga. */
@font-face {
  font-family: "Material Symbols Rounded"; font-style: normal; font-weight: 400; font-display: block;
  src: url("fonts/material-symbols.woff2") format("woff2");
}
.mi {
  font-family: "Material Symbols Rounded"; font-weight: 400; font-style: normal; font-size: 24px; line-height: 1;
  text-transform: none; letter-spacing: normal; white-space: nowrap; display: inline-flex;
  -webkit-font-smoothing: antialiased; user-select: none; font-feature-settings: "liga";
}

.ancho { max-width: var(--ancho); margin-inline: auto; padding-inline: 16px; }
.saltar {
  position: absolute; left: 16px; top: -100px; z-index: 30; background: var(--navy); color: var(--blanco);
  padding: 12px 18px; border-radius: 12px; font-family: var(--titulos); font-weight: 500; text-decoration: none;
}
.saltar:focus { top: 12px; }

/* ---------- Botones: más cuadrados que en la versión A, como en la referencia ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 24px; border-radius: 14px; border: 0;
  font-family: var(--titulos); font-weight: 500; font-size: 17px; line-height: 1; text-decoration: none;
  transition: transform 200ms var(--curva), box-shadow 200ms var(--curva);
}
.btn-grande { font-size: 19px; padding: 18px 28px; min-height: 58px; }
.btn-chico { min-height: 44px; padding: 12px 20px; font-size: 16px; }
.btn-accion { background: var(--coral-accion); color: var(--blanco); box-shadow: 0 14px 30px -16px rgba(214, 58, 43, 0.8); }
.btn-navy { background: var(--navy); color: var(--blanco); }
.btn-azul { background: var(--blue); color: var(--blanco); }
/* Sobre la foto oscura de la portada el azul se mezcla con el fondo: un filo claro y un brillo
   azul lo despegan, igual que la sombra coral despega a "Se me perdió" */
.portada .btn-azul { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35), 0 14px 30px -14px rgba(26, 95, 196, 0.95); }
/* Al pasar el mouse el botón se levanta y le crece la sombra; el color no cambia.
   Al apretarlo, se hunde. El :active va DESPUÉS del :hover, si no el hover le gana. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -14px rgba(16, 28, 41, 0.55); }
  .btn-accion:hover { box-shadow: 0 20px 34px -14px rgba(214, 58, 43, 0.85); }
  .btn-azul:hover { box-shadow: 0 18px 30px -14px rgba(26, 95, 196, 0.6); }
  .portada .btn-azul:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5), 0 20px 34px -12px rgba(26, 95, 196, 1); }
}
.btn:active { transform: scale(0.97); transition-duration: 100ms; }

.sello {
  align-self: flex-start; display: inline-block;
  font-family: var(--titulos); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blanco); background: var(--coral-accion); padding: 7px 14px; border-radius: 8px;
}
.titulo { font-family: var(--titulos); font-weight: 600; font-size: clamp(36px, 4.6vw, 58px); line-height: 1; letter-spacing: -0.03em; }
.bajada { font-size: 18px; color: var(--slate); max-width: 520px; }
.link {
  font-family: var(--titulos); font-weight: 500; font-size: 17px; color: var(--navy);
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none;
}
/* Se subraya sólo el texto; la flecha va aparte, en un círculo lleno */
.link-texto { text-decoration: underline; text-underline-offset: 3px; }
.link-flecha {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--navy); color: var(--blanco);
}
.link-flecha .mi { font-size: 18px; }
.link-flecha { transition: translate 200ms var(--curva); }
@media (hover: hover) and (pointer: fine) {
  .link:hover .link-flecha { translate: 4px 0; }
}

/* Dibujos de línea sueltos */
.deco { position: absolute; color: var(--coral); opacity: 0.55; pointer-events: none; }

/* ---------- Encabezado ---------- */
.cabecera { position: sticky; top: 0; z-index: 20; background: var(--blanco); box-shadow: 0 1px 0 var(--info-bd); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.marca { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.marca img { width: 40px; height: 40px; object-fit: contain; }
.marca span { font-family: var(--titulos); font-weight: 600; font-size: 26px; color: var(--navy); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-family: var(--titulos); font-weight: 500; font-size: 16px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Portada ---------- */
.portada { position: relative; min-height: 640px; display: flex; align-items: center; color: var(--blanco); overflow: clip; background: var(--navy-hondo); }
.portada-foto { position: absolute; inset: 0; }
.portada-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; }
/* El navy tapa la mitad del texto y deja ver la foto del otro lado */
.portada-foto::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22, 42, 62, 0.94) 0%, rgba(22, 42, 62, 0.78) 42%, rgba(22, 42, 62, 0.15) 75%);
}
.portada-texto { position: relative; width: 100%; padding-block: 72px 140px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.portada h1 { font-family: var(--titulos); font-weight: 600; font-size: clamp(46px, 6.2vw, 86px); line-height: 0.95; letter-spacing: -0.035em; }
.portada-bajada { font-size: 20px; max-width: 480px; color: var(--banda-azul); }
.portada-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.portada a:focus-visible { outline-color: var(--blanco); }
.tiendas { display: flex; flex-wrap: wrap; gap: 10px; }
.tienda {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.4); color: var(--blanco); text-decoration: none;
  font-family: var(--titulos); font-weight: 500; font-size: 16px; line-height: 1.15;
  background: rgba(22, 42, 62, 0.35);
  transition: transform 200ms var(--curva), border-color 200ms var(--curva), background-color 200ms var(--curva);
}
.tienda span { display: flex; flex-direction: column; }
.tienda small { font-family: var(--texto); font-weight: 600; font-size: 12.5px; color: var(--info-bd); }
@media (hover: hover) and (pointer: fine) {
  .tienda:hover { border-color: var(--blanco); background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
}
.tienda:active { transform: scale(0.97); transition-duration: 100ms; }


/* Las tres tarjetas que pisan el borde de la foto */
.caminos { position: relative; z-index: 2; margin-top: -84px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.camino {
  display: flex; gap: 16px; align-items: flex-start; background: var(--blanco); border-radius: 18px; padding: 24px;
  text-decoration: none; color: var(--navy); box-shadow: var(--sombra-tarjeta);
  transition: transform 200ms var(--curva), box-shadow 200ms var(--curva);
}
@media (hover: hover) and (pointer: fine) {
  .camino:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -28px rgba(31, 56, 82, 0.55); }
}
.camino:active { transform: scale(0.98); transition-duration: 100ms; }
.camino-icono { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.camino-icono .mi { font-size: 30px; }
.ic-coral { background: var(--banda-coral); color: var(--coral-strong); }
.ic-azul { background: var(--banda-azul); color: var(--blue); }
.ic-teal { background: var(--banda-teal); color: var(--teal); }
.camino-texto { display: flex; flex-direction: column; gap: 4px; font-size: 15.5px; color: var(--slate); line-height: 1.4; }
.camino-texto strong { font-family: var(--titulos); font-weight: 600; font-size: 21px; color: var(--navy); }

/* ---------- Bloques con manchas (Si se perdió / Si la encontraste) ---------- */
.nosotros, .beneficios { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 110px; }
.nosotros-texto, .beneficios-texto { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.manchas { position: relative; display: grid; place-items: center; min-height: 560px; }
.mancha { position: absolute; background: var(--crema); }
/* Formas blandas, de distinto tamaño, para que la pantalla no quede en un rectángulo */
.m-a { width: 440px; aspect-ratio: 1; border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; background: var(--banda-coral); left: 4%; top: 8%; }
.m-b { width: 170px; aspect-ratio: 1; border-radius: 50%; background: var(--banda-ambar); right: 6%; bottom: 6%; }
.m-c { width: 440px; aspect-ratio: 1; border-radius: 45% 55% 42% 58% / 56% 44% 56% 44%; background: var(--banda-azul); right: 4%; top: 8%; }
.m-d { width: 150px; aspect-ratio: 1; border-radius: 50%; background: var(--banda-teal); left: 8%; bottom: 10%; }
.deco-4 { width: 70px; height: 35px; left: 2%; bottom: 22%; rotate: 24deg; }
.deco-5 { width: 52px; height: 52px; right: 2%; top: 4%; rotate: -20deg; color: var(--blue); opacity: 0.4; }

.telefono {
  position: relative; width: 270px; aspect-ratio: 780 / 1688; padding: 7px; border-radius: 44px; background: #101c29;
  box-shadow: inset 0 0 0 1.5px #3b4d61, 0 2px 4px rgba(16, 28, 41, 0.25), 0 40px 80px -24px rgba(31, 56, 82, 0.45);
}
.telefono img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; background: var(--blanco); }

.cuadros { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; width: 100%; }
.cuadros li { display: flex; gap: 12px; align-items: flex-start; font-family: var(--titulos); font-weight: 500; font-size: 17px; line-height: 1.25; }
.tilde {
  width: 26px; height: 26px; border-radius: 7px; background: var(--coral-accion); flex: none; position: relative;
}
.tilde::after {
  content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px;
  border: solid var(--blanco); border-width: 0 2.5px 2.5px 0; rotate: 45deg;
}

/* ---------- Banda de foto oscura con los pasos ---------- */
.banda-foto { position: relative; color: var(--blanco); overflow: clip; background: var(--navy-hondo); }
.banda-foto-img { position: absolute; inset: 0; }
.banda-foto-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.banda-foto-img::after { content: ""; position: absolute; inset: 0; background: rgba(22, 42, 62, 0.86); }
.banda-foto-dentro { position: relative; padding-block: 100px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.banda-foto-cabeza { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.pasos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.paso {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.paso-num { font-family: var(--titulos); font-weight: 600; font-size: 44px; line-height: 1; color: var(--coral); }
.paso h3 { font-family: var(--titulos); font-weight: 500; font-size: 21px; line-height: 1.15; }
.paso p { font-size: 15.5px; color: var(--info-bd); }

/* ---------- Acordeón ---------- */
.acordeon { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 520px; }
.acordeon details { background: var(--crema); border-radius: 12px; }
.acordeon summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px;
  font-family: var(--titulos); font-weight: 500; font-size: 17px;
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::before {
  content: "+"; width: 26px; height: 26px; border-radius: 7px; flex: none; display: grid; place-items: center;
  background: var(--blue); color: var(--blanco); font-size: 20px; line-height: 1;
}
.acordeon details[open] summary::before { content: "\2212"; }
.acordeon details p { padding: 0 16px 16px 54px; color: var(--slate); font-size: 16px; }

/* ---------- Tarjetas de "para cuidarla" ---------- */
.servicios { position: relative; background: var(--crema); padding-block: 100px; overflow: clip; }
.deco-6 { width: 60px; height: 60px; left: 6%; top: 70px; color: var(--teal); opacity: 0.35; }
.cabeza { text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; margin-bottom: 52px; }
/* Cada camino con su color, como en la app: Perdí coral, Encontré azul, la red (la campana) verde azulado */
.sello-azul { background: var(--blue); }
.sello-teal { background: var(--teal); }
.cabeza .sello { align-self: center; }
.cabeza .bajada { margin-inline: auto; }
.tarjetas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tarjeta {
  position: relative; background: var(--blanco); border-radius: 20px; padding: 0 0 22px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sombra-tarjeta); overflow: clip;
}
/* Arriba, un panel de color con el teléfono que asoma desde abajo: se ve la parte de arriba
   de la pantalla entera, con su marco, en vez de un recorte suelto de la captura */
.tarjeta-foto { position: relative; height: 250px; overflow: clip; display: flex; justify-content: center; align-items: flex-start; padding-top: 30px; }
.tf-ambar { background: var(--banda-ambar); }
.tf-coral { background: var(--banda-coral); }
.tf-teal { background: var(--banda-teal); }
.telefono-tarjeta { width: 210px; flex: none; box-shadow: inset 0 0 0 1.5px #3b4d61, 0 24px 50px -20px rgba(31, 56, 82, 0.5); }
/* La etiqueta oscura, debajo del panel */
.tarjeta-tab {
  align-self: flex-start; margin: 8px 0 0 22px; position: relative;
  background: var(--navy); color: var(--blanco); border-radius: 12px; padding: 14px 22px;
  font-family: var(--titulos); font-weight: 500; font-size: 22px; line-height: 1;
}
.tarjeta-chapita {
  position: absolute; left: 20px; bottom: 22px; width: 92px; height: 92px; border-radius: 16px; transform: rotate(-8deg);
  background: var(--blanco); box-shadow: 0 16px 32px -14px rgba(31, 56, 82, 0.5);
}
.tarjeta p { padding-inline: 22px; font-size: 16px; color: var(--slate); }
.tarjeta .link { margin-inline: 22px; margin-top: auto; }

/* ---------- Galería ---------- */
.galeria {
  padding-block: 110px; display: grid; gap: 16px;
  grid-template-columns: 1.3fr 0.8fr 1fr; grid-template-rows: 270px 270px;
}
.g { margin: 0; border-radius: 20px; overflow: clip; background: var(--slate); }
.g img { width: 100%; height: 100%; object-fit: cover; }
.g1 { grid-column: 1; grid-row: 1; }
.g2 { grid-column: 2; grid-row: 1 / 3; }
.g3 { grid-column: 3; grid-row: 2; }
.g4 { grid-column: 1; grid-row: 2; }
.g-mision {
  grid-column: 3; grid-row: 1; background: var(--banda-coral); padding: 30px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.comillas { font-family: var(--titulos); font-weight: 600; font-size: 70px; line-height: 0.6; height: 30px; color: var(--coral); }
.g-mision p { font-family: var(--titulos); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; letter-spacing: -0.02em; }
.g-mision cite { font-style: normal; font-size: 14px; color: var(--muted); }

/* ---------- La red ---------- */
.red { background: var(--crema); overflow: clip; }
.red-dentro { padding-block: 100px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.red-texto { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.red-visual { position: relative; min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; }
.circulo { position: absolute; border-radius: 50%; }
.c1 { width: 380px; aspect-ratio: 1; background: var(--banda-teal); left: 50%; top: 50%; translate: -50% -50%; }
.c2 { width: 120px; aspect-ratio: 1; background: var(--banda-coral); right: 8%; top: 4%; }
/* Las ondas que salen de la notificación: el aviso llegando a los vecinos. Quietas no se ven. */
.onda { position: absolute; left: 50%; top: 50%; width: 300px; aspect-ratio: 1; margin: -150px 0 0 -150px; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; pointer-events: none; }
.deco-7 { width: 42px; height: 50px; left: 8%; bottom: 12%; color: var(--teal); opacity: 0.45; }
.notif {
  position: relative; display: flex; gap: 12px; align-items: center; width: min(370px, 100%);
  background: var(--blanco); border-radius: 22px; padding: 14px; box-shadow: 0 24px 50px -16px rgba(31, 56, 82, 0.4);
}
.notif-logo { width: 36px; height: 36px; object-fit: contain; flex: none; align-self: flex-start; }
.notif-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.notif small { font-size: 13px; color: var(--muted); }
.notif strong { font-family: var(--titulos); font-weight: 500; font-size: 17px; line-height: 1.2; }
.notif span { font-size: 15px; color: var(--slate); }
.notif-foto { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.red-visual figcaption { position: relative; font-size: 14px; color: var(--slate); text-align: center; }

/* ---------- La chapita, paso a paso ---------- */
.chapita-pasos { padding-block: 100px 20px; display: flex; flex-direction: column; align-items: center; }
.chapita-pasos .cabeza { margin-bottom: 44px; }
.chpasos { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.chpaso {
  position: relative; background: var(--blanco); border: 1px solid var(--info-bd); border-radius: 20px;
  padding: 52px 18px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: 0 18px 40px -30px rgba(31, 56, 82, 0.45);
}
/* La flecha entre un paso y el siguiente */
.chpaso:not(:last-child)::after {
  content: "arrow_forward"; font-family: "Material Symbols Rounded"; font-size: 22px; line-height: 1; color: var(--teal);
  position: absolute; right: -28px; top: 50%; translate: 0 -50%; text-transform: none;
}
.chpaso-num {
  position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--banda-teal); color: var(--teal);
  font-family: var(--titulos); font-weight: 600; font-size: 15px;
}
.chpaso-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 6px; }
.chpaso-ico .mi { font-size: 34px; }
.ch-coral { background: var(--banda-coral); color: var(--coral-strong); }
.ch-teal { background: var(--banda-teal); color: var(--teal); }
.ch-verde { background: var(--exito-bg); color: var(--green); }
.chpaso h3 { font-family: var(--titulos); font-weight: 600; font-size: 19px; line-height: 1.15; }
.chpaso p { font-size: 15px; color: var(--slate); line-height: 1.45; }
.chapita-privado { display: flex; gap: 10px; align-items: flex-start; max-width: 640px; margin: 36px 0 24px; font-size: 16px; color: var(--slate); text-align: left; }
.chapita-privado .mi { color: var(--teal); font-size: 22px; margin-top: 1px; }

/* ---------- Lo logrado ---------- */
.cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-block: 72px 8px; }
.cifra { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; border-left: 4px solid var(--coral); }
.cifra strong { --tam: clamp(34px, 4vw, 48px); font-family: var(--titulos); font-weight: 600; font-size: var(--tam); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.02em; color: var(--navy); }
.cifra span { font-size: 17px; color: var(--slate); }
.cifra-azul { border-left-color: var(--blue); }
.cifra-teal { border-left-color: var(--teal); }

/* ---------- Pie ---------- */
.pie { background: var(--navy-hondo); color: var(--info-bd); }
.pie-dentro { padding-block: 64px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.pie-marca { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.marca-clara span { color: var(--blanco); }
.pie-marca p { font-size: 15px; max-width: 280px; }
.pie-col { display: flex; flex-direction: column; gap: 4px; }
.pie-col h3 { font-family: var(--titulos); font-weight: 500; font-size: 18px; color: var(--blanco); margin-bottom: 8px; }
.pie-col a { color: var(--info-bd); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; }
.pie-col a:hover { color: var(--blanco); text-decoration: underline; }
.pie a:focus-visible { outline-color: var(--blanco); }
.credito { padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; }

/* ---------- Tablet y celular ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .caminos, .tarjetas { grid-template-columns: minmax(0, 1fr); }
  .cifras { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 56px 0; }
  .chapita-pasos { padding-block: 72px 8px; }
  .chpasos { grid-template-columns: minmax(0, 1fr); gap: 26px; max-width: 560px; }
  .chpaso { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px; text-align: left; align-items: start; padding: 20px 20px 20px 22px; }
  .chpaso-ico { grid-row: 1 / 3; width: 56px; height: 56px; margin: 0; }
  .chpaso-ico .mi { font-size: 30px; }
  .chpaso-num { left: auto; right: 14px; top: 14px; width: 26px; height: 26px; font-size: 13px; }
  .chpaso h3 { padding-right: 34px; }
  .chpaso:not(:last-child)::after { content: "arrow_downward"; right: auto; left: 47px; top: auto; bottom: -26px; translate: 0 0; font-size: 20px; }
  .caminos { margin-top: -60px; gap: 12px; }
  .nosotros, .beneficios, .red-dentro, .banda-foto-dentro { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 72px; }
  .beneficios .manchas { order: -1; }
  .tarjeta-foto { height: 270px; }
  .galeria { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; padding-block: 72px; }
  .g1 { grid-column: 1 / 3; grid-row: 1; }
  .g2 { grid-column: 2; grid-row: 2 / 4; }
  .g-mision { grid-column: 1; grid-row: 2; }
  .g3 { grid-column: 1; grid-row: 3; }
  .g4 { display: none; }
  .pie-dentro { grid-template-columns: 1fr 1fr; }
  .pie-marca { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .portada { min-height: 0; align-items: flex-end; }
  .portada-foto { bottom: auto; height: 340px; }
  .portada-foto img { object-position: 58% 70%; }
  .portada-foto::after { background: linear-gradient(180deg, rgba(22, 42, 62, 0) 0%, rgba(22, 42, 62, 0) 55%, rgba(22, 42, 62, 1) 100%); }
  .portada-texto { padding-block: 290px 100px; gap: 20px; }
  .portada-bajada { font-size: 18px; }
  .btn-grande { width: 100%; }
  .portada-ctas { width: 100%; }
  .tiendas { display: grid; grid-template-columns: max-content; }
  .camino { padding: 18px; }
  .manchas { min-height: 470px; }
  .m-a, .m-c { width: 330px; }
  .m-b, .m-d { width: 110px; }
  .telefono { width: 230px; }
  .cuadros { grid-template-columns: minmax(0, 1fr); }
  .pasos { grid-template-columns: minmax(0, 1fr); }
  .paso { padding: 20px; }
  .servicios { padding-block: 64px; }
  .c1 { width: 300px; }
  .galeria { grid-template-rows: 180px 200px 200px; gap: 12px; }
  .g-mision { padding: 20px; }
  .g-mision p { font-size: 19px; }
  .comillas { font-size: 54px; height: 22px; }
  .pie-dentro { grid-template-columns: minmax(0, 1fr); }
  .deco-6 { display: none; }
  .notif { gap: 10px; padding: 12px; }
  .notif strong { font-size: 16px; }
  .notif span { font-size: 14px; }
  .notif-foto { width: 48px; height: 48px; }
}

/* ---------- Movimiento ---------- */
/* Al cargar, una vez: la foto de la portada se acerca apenas. Los botones no se animan. */
@media (prefers-reduced-motion: no-preference) {
  .portada-foto img { animation: acerca 1800ms var(--curva) both; }
  /* Las tres tarjetas que pisan la foto llegan en cascada, apenas después del título */
  .camino { animation: llega 700ms var(--curva) both; animation-delay: 180ms; }
  .camino:nth-child(2) { animation-delay: 260ms; }
  .camino:nth-child(3) { animation-delay: 340ms; }
  .onda { animation: onda 3.6s cubic-bezier(0.2, 0.6, 0.35, 1) infinite; }
  .onda-2 { animation-delay: 1.8s; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active, .tienda:active, .camino:active, .btn:hover, .tienda:hover, .camino:hover { transform: none; }
  .btn, .tienda, .camino { transition: none; }
}
@keyframes acerca { from { scale: 1.12; } }
@keyframes llega { from { opacity: 0; translate: 0 28px; } }
@keyframes onda { 0% { opacity: 0.55; scale: 0.4; } 100% { opacity: 0; scale: 1.5; } }

/* Atado al scroll. Donde el navegador no lo sabe hacer, todo queda quieto y COMPLETO. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .titulo, .bajada, .cuadros li, .paso, .tarjeta, .acordeon details, .red-texto > .btn, .notif, .cifra, .chpaso {
      animation: sube var(--curva) both; animation-timeline: view(); animation-range: entry 0% cover 28%;
    }
    .cuadros li:nth-child(2n), .paso:nth-child(2), .tarjeta:nth-child(2) { animation-range: entry 8% cover 34%; }
    .paso:nth-child(3) { animation-range: entry 16% cover 40%; }
    .paso:nth-child(4) { animation-range: entry 24% cover 46%; }
    .tarjeta:nth-child(3) { animation-range: entry 16% cover 40%; }
    .cifra:nth-child(2) { animation-range: entry 8% cover 34%; }
    .chpaso:nth-child(2) { animation-range: entry 6% cover 32%; }
    .chpaso:nth-child(3) { animation-range: entry 12% cover 38%; }
    .chpaso:nth-child(4) { animation-range: entry 18% cover 44%; }
    .chpaso:nth-child(5) { animation-range: entry 24% cover 50%; }
    .cifra:nth-child(3) { animation-range: entry 16% cover 40%; }

    /* Las manchas crecen detrás y el teléfono entra girado y se endereza */
    .mancha, .circulo { animation: crece var(--curva) both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .c1 { animation-name: crece-centro; }
    /* Los teléfonos acompañan el scroll de punta a punta: entran girados desde abajo, se
       enderezan cuando están a la vista y, mientras seguís bajando, suben un poco más rápido
       que la página y se inclinan para el otro lado. El de "Si la encontraste" gira al revés. */
    .manchas .telefono { animation: telefono-scroll linear both; animation-timeline: view(); animation-range: cover; }
    .manchas-der .telefono { animation-name: telefono-scroll-der; }

    /* En las tarjetas, el teléfono sale del panel de color a medida que bajás */
    .telefono-tarjeta { animation: asoma linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }

    /* La notificación cae desde arriba, como un push, cuando la sección ya se ve */
    .notif { animation-name: cae-notif; animation-range: entry 20% cover 38%; }

    /* La chapita entra balanceándose, colgada de arriba como del collar */
    .tarjeta-chapita { transform-origin: 50% 0; animation: hamaca linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }

    /* La foto de fondo de los pasos se mueve más despacio que la página */
    .banda-foto-img img { animation: paralaje linear both; animation-timeline: view(); animation-range: cover; }

    /* La galería: cada foto se destapa y se mueve adentro de su marco */
    .g { animation: destapa var(--curva) both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .g2, .g3 { animation-range: entry 10% cover 42%; }
    .g img { animation: camara linear both; animation-timeline: view(); animation-range: cover; }
    .g2 img, .g4 img { animation-name: camara-inversa; }
  }
}
/* Las cifras cuentan desde 0 cuando aparecen en pantalla, en 1,6 s: lo prende el script del
   final de la página, que pone .cuentan en .cifras. Sin ese script (o con menos movimiento
   pedido) se ve el número quieto. El número de verdad sigue en el HTML: el lector de pantalla
   lee ése, y el que cuenta (::after, con texto alternativo vacío) se le esconde. */
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.cifras.lista .cuenta { font-size: 0; counter-reset: n var(--n); }
.cifras.lista .cuenta::after { content: counter(n) / ""; font-size: var(--tam); }
.cifras.cuentan .cuenta { animation: cuenta 1600ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.cifras.cuentan .cifra:nth-child(2) .cuenta { animation-delay: 150ms; }
.cifras.cuentan .cifra:nth-child(3) .cuenta { animation-delay: 300ms; }
@keyframes cuenta { from { --n: 0; } to { --n: var(--hasta); } }
@keyframes sube { from { opacity: 0; translate: 0 40px; } }
@keyframes cae-notif { from { opacity: 0; translate: 0 -36px; scale: 0.94; } }
@keyframes hamaca { 0% { opacity: 0; rotate: -18deg; } 35% { opacity: 1; rotate: 9deg; } 60% { rotate: -4deg; } 80% { rotate: 2deg; } 100% { rotate: 0deg; } }
@keyframes telefono-scroll {
  0% { opacity: 0; translate: 0 90px; rotate: 7deg; }
  35% { opacity: 1; translate: 0 0; rotate: 0deg; }
  100% { opacity: 1; translate: 0 -60px; rotate: -3deg; }
}
@keyframes telefono-scroll-der {
  0% { opacity: 0; translate: 0 90px; rotate: -7deg; }
  35% { opacity: 1; translate: 0 0; rotate: 0deg; }
  100% { opacity: 1; translate: 0 -60px; rotate: 3deg; }
}
@keyframes asoma { from { translate: 0 80px; } }
@keyframes crece { from { opacity: 0; scale: 0.6; } }
@keyframes crece-centro { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }
@keyframes paralaje { from { scale: 1.2; translate: 0 -8%; } to { scale: 1.2; translate: 0 8%; } }
@keyframes destapa { from { clip-path: inset(14% round 20px); opacity: 0.4; } to { clip-path: inset(0 round 20px); } }
@keyframes camara { from { scale: 1.18; translate: 0 -5%; } to { scale: 1.06; translate: 0 5%; } }
@keyframes camara-inversa { from { scale: 1.06; translate: 0 5%; } to { scale: 1.18; translate: 0 -5%; } }
