/* Farmaciudadela Droguería
   Paleta y tipografía según el manual de marca:
   azul rey #001F5B, rojo #FF1F2D, blanco, Montserrat. */

:root {
  --azul: #001F5B;
  --azul-claro: #0B2F78;
  --azul-brillo: #123F9E;  /* solo para resplandores sobre azul */
  --rojo: #FF1F2D;
  --blanco: #fff;
  --hielo: #DFE7F6;        /* azul pálido de las piezas de horario */
  --niebla: #F1F4FB;
  --gris: #47567A;
  --radio: 24px;
  --sombra: 0 30px 70px -24px rgba(0, 12, 44, .6);
  --suave: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--azul);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2 { font-weight: 700; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2.125rem, 5vw, 3.75rem); }
h3 { font-weight: 700; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; }
.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
.ico { width: 1.3em; height: 1.3em; flex: none; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--blanco); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Aparición al hacer scroll (solo con JS, sin él todo se ve normal) */
.js [data-r] {
  opacity: 0; translate: 0 36px;
  transition: opacity .8s var(--suave), translate .8s var(--suave), transform .25s var(--suave), box-shadow .25s, background .2s, color .2s;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s, 0s, 0s;
}
.js [data-r="foto"] { opacity: 1; translate: none; }
.js [data-r="foto"] img { clip-path: inset(100% 0 0 0); scale: 1.16; transition: clip-path 1.1s var(--suave), scale 1.4s var(--suave); transition-delay: var(--d, 0s); }
.js [data-r].es-visto { opacity: 1; translate: none; }
.js [data-r="foto"].es-visto img { clip-path: inset(0); scale: 1; }

/* Botones ---------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 60px; padding: 0 30px;
  border-radius: 999px;
  font-weight: 700; font-size: 1.1875rem; line-height: 1.1;
  text-decoration: none;
  transition: transform .2s var(--suave), box-shadow .2s;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.99); }
.btn--rojo { background: var(--rojo); color: var(--blanco); box-shadow: 0 16px 32px -12px rgba(255, 31, 45, .8); }
.btn--rojo::after {
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg);
  transition: left .6s var(--suave);
}
.btn--rojo:hover::after { left: 125%; }
.btn--pulso { animation: anillo 2.8s ease-out infinite; }
@keyframes anillo {
  0% { box-shadow: 0 0 0 0 rgba(255, 31, 45, .55); }
  60%, 100% { box-shadow: 0 0 0 16px rgba(255, 31, 45, 0); }
}
.btn--blanco { background: var(--blanco); color: var(--azul); min-height: 46px; padding: 0 20px; font-size: .9375rem; }
.btn--full { width: 100%; padding: 0 12px; white-space: nowrap; font-size: clamp(1.0625rem, 5.3vw, 1.1875rem); }

/* Encabezado -------------------------------------------------------- */
.top { background: var(--azul); color: var(--blanco); position: relative; z-index: 20; }
.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--rojo);
  transform: scaleX(var(--scroll, 0)); transform-origin: left;
}
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.top__logo img { width: 176px; }
.top__right { display: flex; align-items: center; gap: 18px; }
.top__cta { display: none; }

.estado {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.estado[hidden] { display: none; }
.estado i { width: 8px; height: 8px; border-radius: 50%; background: var(--hielo); opacity: .6; }
.estado.es-abierto i { background: var(--blanco); opacity: 1; animation: latido 1.6s ease-in-out infinite; }
@keyframes latido {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); }
  50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

/* Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--azul);
  background-image: radial-gradient(60% 50% at 18% 30%, rgba(18, 63, 158, .55), transparent 70%), url("assets/patron.svg");
  background-size: auto, 300px;
  color: var(--blanco);
  padding-bottom: 176px;
}
.hero__foto {
  position: absolute; top: 0; left: 0; right: 0;
  aspect-ratio: 1 / 1.08; max-height: 74svh;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 52%, transparent 96%);
          mask-image: linear-gradient(#000 52%, transparent 96%);
}
.hero__marco { width: 100%; height: 100%; transform-origin: 54% 48%; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.js .hero__foto { animation: abre 1.5s .1s var(--suave) both; }
.js .hero__foto img { animation: acerca 3s .1s var(--suave) both; }
@keyframes abre { from { clip-path: circle(0 at 54% 46%); } to { clip-path: circle(150% at 54% 46%); } }
@keyframes acerca { from { transform: scale(1.22); } to { transform: scale(1); } }

.hero__grid { position: relative; z-index: 5; display: grid; gap: 30px; }
.hero__texto { padding-top: min(88vw, 48svh); }
.hero__tagline { display: none; filter: drop-shadow(0 2px 10px rgba(0, 20, 70, .7)); }
.js .hero__tagline { animation: entra .9s .7s var(--suave) both; }
.hero h1 { font-size: clamp(2.25rem, 11vw, 4.5rem); text-shadow: 0 2px 24px rgba(0, 20, 70, .55); }
.ln { display: block; overflow: hidden; white-space: nowrap; padding: .06em .04em .28em 0; margin-bottom: -.24em; }
.ln > span { display: block; }
.js .ln > span { animation: sube 1s var(--suave) both; }
.js .ln:nth-child(1) > span { animation-delay: .35s; }
.js .ln:nth-child(2) > span { animation-delay: .47s; }
.js .ln:nth-child(3) > span { animation-delay: .59s; }
@keyframes sube { from { transform: translateY(112%); } }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } }
.hero h1 em { position: relative; display: inline-block; font-style: normal; }
.hero h1 em svg { position: absolute; left: 0; bottom: -.12em; width: 100%; height: .16em; overflow: visible; }
.hero h1 em path { fill: none; stroke: var(--rojo); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.js .hero h1 em svg { animation: subraya 1s 1.3s var(--suave) both; }
@keyframes subraya { from { clip-path: inset(-50% 100% -50% 0); } to { clip-path: inset(-50% 0 -50% 0); } }
.hero__sub { margin-top: 18px; color: var(--hielo); max-width: 34em; }
.js .hero__sub { animation: entra .9s .85s var(--suave) both; }
.hero__dir { display: none; }

/* Tarjeta de chat ---------------------------------------------------- */
.chat {
  position: relative;
  background: var(--blanco);
  color: var(--azul);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}
.js .chat { animation: emerge 1.1s 1s var(--suave) both; }
@keyframes emerge { from { opacity: 0; transform: translateY(46px) scale(.97); } }
.chat__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--niebla);
}
.chat__head img { width: 46px; height: 46px; border-radius: 50%; }
.chat__head strong { display: block; font-weight: 700; line-height: 1.25; }
.chat__head span { display: block; font-size: .8125rem; color: var(--gris); line-height: 1.3; }
.chat__body { padding: 16px 18px 18px; display: grid; gap: 12px; }
.conver { position: relative; }
.burbuja {
  max-width: 94%; width: fit-content;
  padding: 11px 15px;
  background: var(--hielo);
  border-radius: 6px 18px 18px 18px;
  font-weight: 600; line-height: 1.4;
}
.escribe {
  position: absolute; left: 0; top: 0;
  display: none; gap: 5px; align-items: center;
  height: 44px; padding: 0 16px;
  background: var(--hielo); border-radius: 6px 18px 18px 18px;
}
.escribe i { width: 7px; height: 7px; border-radius: 50%; background: var(--azul); animation: punto 1s infinite ease-in-out; }
.escribe i:nth-child(2) { animation-delay: .15s; }
.escribe i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat.es-escribiendo .escribe { display: inline-flex; }
.chat.es-escribiendo .burbuja { opacity: 0; }
.chat.es-listo .burbuja { animation: globo .45s var(--suave) both; transform-origin: 0 0; }
@keyframes globo { from { opacity: 0; transform: scale(.8); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--azul); border-radius: 999px;
  font-size: .8125rem; font-weight: 600; text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.chip:hover { background: var(--azul); color: var(--blanco); transform: translateY(-2px); }
.chat.es-escribiendo .chip { opacity: 0; }
.chat.es-listo .chip { animation: globo .4s var(--suave) both; }
.chat.es-listo .chip:nth-child(1) { animation-delay: .2s; }
.chat.es-listo .chip:nth-child(2) { animation-delay: .27s; }
.chat.es-listo .chip:nth-child(3) { animation-delay: .34s; }
.chat.es-listo .chip:nth-child(4) { animation-delay: .41s; }
.chat__label { font-size: .875rem; font-weight: 600; margin-top: 2px; margin-bottom: -6px; }
.chat textarea {
  width: 100%; resize: none; overflow: hidden;
  padding: 12px 14px;
  border: 1.5px solid var(--hielo); border-radius: 14px;
  background: var(--niebla); color: var(--azul);
  font: inherit; font-size: 1rem; line-height: 1.4;
}
.chat textarea::placeholder { color: var(--gris); }
.chat textarea:focus { outline: none; border-color: var(--azul); background: var(--blanco); }
.chat__legal { font-size: .75rem; line-height: 1.4; color: var(--gris); }

/* Línea de pulso */
.pulso { position: absolute; z-index: 1; inset: auto 0 0; height: 150px; overflow: hidden; }
.pulso svg {
  /* s = escala; 1254 = centro del corazón dentro del trazo */
  --s: .5;
  position: absolute; bottom: 34px; left: calc(50% - 1254px * var(--s));
  width: calc(4500px * var(--s)); max-width: none; height: auto;
}
.pulso path {
  stroke: var(--rojo); stroke-width: 15;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.pulso__a { animation: trazo 1.5s .4s cubic-bezier(.5, 0, .3, 1) forwards, brillo 4s 2.6s ease-in-out infinite; }
.pulso__b { animation: trazo 1.3s 1.5s cubic-bezier(.3, 0, .4, 1) forwards, brillo 4s 2.6s ease-in-out infinite; }
@keyframes trazo { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes brillo {
  0%, 62%, 100% { filter: none; }
  70% { filter: drop-shadow(0 0 12px rgba(255, 31, 45, 1)); }
  78% { filter: none; }
  86% { filter: drop-shadow(0 0 16px rgba(255, 31, 45, 1)); }
}

/* Cintas ------------------------------------------------------------- */
.cintas { position: relative; z-index: 3; height: 150px; margin: -62px 0 -40px; overflow: hidden; pointer-events: none; }
.cinta { position: absolute; left: -6vw; width: 112vw; top: 50%; overflow: hidden; }
.cinta__mov { display: flex; align-items: center; gap: 30px; width: max-content; padding: 14px 0; font-weight: 700; font-size: clamp(1.25rem, 3.4vw, 2.125rem); line-height: 1.1; white-space: nowrap; }
.cinta__mov svg { width: 1.9em; height: .86em; flex: none; }
.js .cinta__mov { animation: corre 46s linear infinite; }
.cinta--roja { background: var(--rojo); color: var(--blanco); transform: translateY(-50%) rotate(-2.2deg); box-shadow: 0 14px 30px -14px rgba(0, 12, 44, .5); }
.cinta--hielo { background: var(--hielo); color: var(--azul); transform: translateY(-50%) rotate(2.2deg); }
.cinta--hielo svg { color: var(--rojo); }
.js .cinta--hielo .cinta__mov { animation-direction: reverse; animation-duration: 60s; }
@keyframes corre { to { transform: translateX(-50%); } }

/* Categorías --------------------------------------------------------- */
.cats { padding: 84px 0 80px; }
.cabeza { display: grid; gap: 12px; max-width: 780px; margin-bottom: 32px; }
.cabeza p { color: var(--gris); }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 22px; grid-template-rows: auto 1fr;
  gap: 18px 10px;
  min-height: 186px; padding: 18px;
  background: var(--niebla);
  border-radius: 20px;
  text-decoration: none;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
}
.t:hover { box-shadow: 0 26px 50px -24px rgba(0, 31, 91, .55); }
.t__ico { width: 52px; height: 52px; grid-column: 1; }
.js .t__ico { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.6s .25s ease-out; }
.js .es-visto .t__ico { stroke-dashoffset: 0; }
.t__go { width: 22px; height: 22px; grid-column: 2; grid-row: 1; color: var(--rojo); transition: transform .2s; }
.t:hover .t__go { transform: translateX(4px); }
.t__txt { grid-column: 1 / 3; align-self: end; }
.t__txt strong { display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.t__txt small { display: block; margin-top: 4px; font-size: .875rem; line-height: 1.4; color: var(--gris); font-weight: 500; }
.t--azul { background: var(--azul); color: var(--blanco); }
.t--azul .t__txt small { color: var(--hielo); }
.t--azul .t__go { color: var(--blanco); }
.t--med { grid-column: 1 / -1; min-height: 170px; background-image: radial-gradient(70% 90% at 92% 0%, var(--azul-brillo), transparent 70%); }
.t--foto { grid-column: 1 / -1; min-height: 230px; background: var(--azul); color: var(--blanco); }
.t--foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--suave); }
.t--foto:hover img { transform: scale(1.06); }
.t--foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 31, 91, .96) 8%, rgba(0, 31, 91, .55) 55%, rgba(0, 31, 91, .15)); }
.t--foto .t__txt small { color: var(--blanco); }
.t--foto .t__go { color: var(--blanco); }
.t--rojo { --rojo: #fff; background: #FF1F2D; color: var(--blanco); }
.t--rojo .t__go { color: var(--blanco); }
.t--rojo .t__txt strong { font-size: 1.1875rem; }
.t--rojo .t__txt small { color: var(--blanco); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.t__ico--camion { animation: rueda 1.4s ease-in-out infinite; }
@keyframes rueda { 0%, 100% { translate: 0 0; } 50% { translate: 7px 0; } }

/* Asesoría en video --------------------------------------------------- */
.ases {
  position: relative;
  background-color: var(--azul);
  background-image: radial-gradient(50% 60% at 22% 40%, rgba(18, 63, 158, .7), transparent 70%), url("assets/patron.svg");
  background-size: auto, 300px;
  color: var(--blanco);
  padding: 76px 0;
}
.ases__grid { display: grid; gap: 40px; }
.ases__video { width: min(100%, 300px); margin-inline: auto; }
.tel {
  position: relative; overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 8px solid var(--blanco);
  border-radius: 34px;
  background: var(--azul-claro);
  box-shadow: var(--sombra);
}
.tel video { width: 100%; height: 100%; object-fit: cover; }
.tel__sonido {
  position: absolute; left: 50%; top: 14px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: rgba(0, 31, 91, .82); color: var(--blanco);
  font: inherit; font-size: .8125rem; font-weight: 600; white-space: nowrap;
  cursor: pointer;
}
.ases__ritmo { width: 100%; margin-top: 16px; }
.ases__ritmo path { stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ases__ritmo .fondo { stroke: rgba(223, 231, 246, .3); }
.ases__ritmo .avance { stroke: var(--rojo); stroke-dasharray: 1; stroke-dashoffset: 1; }
.ases__intro { margin-top: 14px; color: var(--hielo); }
.sintomas { margin-top: 24px; border-top: 1px solid rgba(223, 231, 246, .25); }
.sintomas a {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 62px; padding: 12px 6px;
  border-bottom: 1px solid rgba(223, 231, 246, .25);
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem); font-weight: 600; line-height: 1.25;
  text-decoration: none;
  transition: padding .3s var(--suave), color .2s;
}
.sintomas a::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--blanco);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--suave);
}
.sintomas a > * { position: relative; z-index: 1; }
.sintomas .ico { color: var(--rojo); transition: transform .25s; }
.sintomas a:hover, .sintomas a.es-actual { color: var(--azul); padding-inline: 16px; }
.sintomas a:hover::before, .sintomas a.es-actual::before { transform: none; }
.sintomas a:hover .ico, .sintomas a.es-actual .ico { transform: translateX(4px); }
.ases__nota {
  margin-top: 22px; padding: 14px 16px;
  border-left: 4px solid var(--rojo); border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, .07);
  font-size: .9375rem; line-height: 1.5;
}
.ases__nota.es-actual { background: var(--blanco); color: var(--azul); }

/* Pasos --------------------------------------------------------------- */
.pasos { background: var(--hielo); padding: 76px 0; overflow: hidden; }
.pasos h2 { max-width: 15em; }
.pasos__via { position: relative; margin: 44px 0 40px; }
.riel {
  position: absolute; left: 22px; top: 0; bottom: 0; width: 4px; margin-left: -2px;
  background: rgba(0, 31, 91, .16); border-radius: 4px;
}
.riel__carga { position: absolute; inset: 0; background: var(--rojo); border-radius: 4px; transform: scaleY(var(--p, 0)); transform-origin: top; }
.riel__camion {
  position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); z-index: 2;
  display: grid; place-items: center;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--azul); color: var(--blanco);
  box-shadow: 0 10px 22px -8px rgba(0, 31, 91, .7);
}
.riel__camion svg { width: 34px; height: 34px; }
.pasos__lista { position: relative; display: grid; gap: 34px; }
.pasos__lista li { position: relative; padding-left: 68px; min-height: 44px; opacity: .45; transition: opacity .4s; }
.pasos__lista li.es-activo { opacity: 1; }
.pasos__n {
  position: absolute; left: 0; top: 0; z-index: 1;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blanco); color: var(--azul);
  font-weight: 700; font-size: 1.125rem;
  transition: background .3s, color .3s, transform .3s var(--suave);
}
.pasos__lista li.es-activo .pasos__n { background: var(--rojo); color: var(--blanco); transform: scale(1.1); }
.pasos h3 { font-size: 1.3125rem; line-height: 1.25; padding-top: 8px; }
.pasos li p { color: var(--gris); margin-top: 4px; }

/* Nosotros ------------------------------------------------------------ */
.nos { padding: 84px 0; overflow: hidden; }
.nos__grid { display: grid; gap: 44px; }
.nos__texto > p { margin-top: 16px; color: var(--gris); max-width: 32em; }
.nos__texto .btn { margin-top: 26px; }
.nos__nota { font-size: .9rem; }
.nos__fotos { position: relative; display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 1 / .96; }
.nos__fotos figure { position: relative; overflow: hidden; border-radius: 18px; min-height: 0; }
.nos__fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nos__f1 { grid-row: 1 / 3; }
.nos__f2 { --d: .12s; }
.nos__f3 { --d: .24s; }
.sello { position: absolute; left: 60%; top: 86%; z-index: 2; width: clamp(96px, 16vw, 134px); height: auto; translate: -50% -50%; filter: drop-shadow(0 12px 20px rgba(0, 31, 91, .4)); }
.sello text { font-size: 19px; font-weight: 700; }
.sello__giro { transform-origin: 100px 100px; animation: gira 18s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* Visítanos ------------------------------------------------------------ */
.vis { background: var(--niebla); padding: 76px 0; }
.vis__grid { display: grid; gap: 32px; }
.vis__dir { margin-top: 16px; font-weight: 600; font-size: 1.125rem; }
.enlace { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; text-underline-offset: 4px; }
.enlace .ico { color: var(--rojo); width: 1.1em; height: 1.1em; }
.vis h3 { margin-top: 30px; margin-bottom: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.horario { display: grid; gap: 8px; }
.horario > div { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 13px 16px; background: var(--blanco); border-radius: 14px; }
.horario dt { font-weight: 600; }
.horario > div.es-hoy { background: var(--azul); color: var(--blanco); }
.tels { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; }
.tels a { text-underline-offset: 4px; }
.vis__mapa { border-radius: var(--radio); overflow: hidden; min-height: 340px; background: var(--hielo); }
.vis__mapa iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

/* Pie ------------------------------------------------------------------- */
.pie {
  background-color: var(--azul);
  background-image: radial-gradient(60% 40% at 50% 0%, rgba(18, 63, 158, .6), transparent 70%), url("assets/patron.svg");
  background-size: auto, 300px;
  color: var(--blanco);
  padding: 72px 0 112px;
}
.pie__cta { display: grid; gap: 28px; justify-items: start; padding-bottom: 48px; }
.pie__grande { font-weight: 700; font-size: clamp(2.5rem, 7.6vw, 6.25rem); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }

.pie__sellos {
  --rojo: #fff;
  display: grid; gap: 18px;
  padding: 24px 22px;
  border-radius: var(--radio);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(223, 231, 246, .16);
}
.pie__sellos li { display: flex; align-items: center; gap: 14px; }
.pie__sellos svg { width: 40px; height: 40px; flex: none; }
.pie__sellos span { font-size: .875rem; line-height: 1.35; color: var(--hielo); }
.pie__sellos strong { display: block; font-size: 1rem; font-weight: 700; color: var(--blanco); }

.pie__columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; padding: 44px 0 36px; }
.pie__marca { grid-column: 1 / -1; display: grid; gap: 16px; justify-items: start; }
.pie__marca > img { width: 204px; }
.pie__marca > .pie__tagline { width: 140px; }
.pie__col:nth-of-type(n) { min-width: 0; }
.pie__columnas > :nth-child(3) { grid-column: 1 / -1; }
.pie__col h2 {
  margin-bottom: 14px;
  font-size: .8125rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .16em; text-transform: uppercase; color: var(--hielo);
}
.pie__col ul { display: grid; gap: 10px; }
.pie__col li { font-size: .9375rem; line-height: 1.4; }
.pie__col a { text-decoration: none; }
.pie__col a[href]:hover { text-decoration: underline; text-underline-offset: 3px; }
.pie__horas li { color: var(--hielo); }
.pie__horas strong { color: var(--blanco); font-weight: 600; }

.redes { display: flex; gap: 10px; }
.redes a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--blanco); transition: background .15s, color .15s; }
.redes a[href]:hover { background: var(--blanco); color: var(--azul); }
.redes svg { width: 22px; height: 22px; }

.pie__aviso {
  padding: 14px 16px;
  border-left: 4px solid var(--rojo); border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, .07);
  font-size: .875rem; line-height: 1.5; color: var(--hielo);
}
.pie__aviso a { color: var(--blanco); font-weight: 700; }
.pie__base {
  display: grid; gap: 10px;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(223, 231, 246, .25);
  font-size: .8125rem; line-height: 1.5; color: var(--hielo);
}
.pie__entes { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pie__entes a { text-underline-offset: 3px; }

/* Páginas legales -------------------------------------------------------- */
.doc-pagina { display: flex; flex-direction: column; min-height: 100svh; overflow-x: clip; }
.doc-pagina .top { position: relative; }
.doc__volver { color: var(--blanco); font-size: .9375rem; font-weight: 600; text-underline-offset: 4px; }
.doc { flex: 1; max-width: 760px; padding: 48px 0 64px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc__fecha { margin-top: 10px; font-size: .9rem; color: var(--gris); }
.doc h2 { margin: 36px 0 10px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; scroll-margin-top: 24px; }
.doc p, .doc li { color: var(--gris); }
.doc p + p { margin-top: 12px; }
.doc ul { display: grid; gap: 6px; margin: 10px 0; padding-left: 20px; list-style: disc; }
.doc li::marker { color: var(--rojo); }
.doc strong { color: var(--azul); }
.doc a { color: var(--azul); font-weight: 600; text-underline-offset: 3px; }
.doc__enlace { display: inline-block; }
.doc__pie { background: var(--azul); color: var(--hielo); font-size: .875rem; padding: 22px 0; }
.doc__pie .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.doc__pie a { color: var(--blanco); }

/* Página 404 --------------------------------------------------------------- */
.no-encontrada {
  display: grid; place-items: center; min-height: 100svh; padding: 32px 16px;
  background-color: var(--azul);
  background-image: radial-gradient(60% 50% at 50% 30%, rgba(18, 63, 158, .6), transparent 70%), url("assets/patron.svg");
  background-size: auto, 300px;
  color: var(--blanco); text-align: center;
}
.no-encontrada main { display: grid; justify-items: center; gap: 18px; }
.no-encontrada img { width: 240px; }
.no-encontrada h1 { margin-top: 18px; font-size: clamp(2.25rem, 7vw, 4rem); }
.no-encontrada p { color: var(--hielo); }
.no-encontrada .enlace { margin: 0; }

/* Barra fija en celular --------------------------------------------------- */
.barra {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(120%);
  transition: transform .3s var(--suave);
}
.barra.es-visible { transform: none; }

/* Pantallas medianas ------------------------------------------------------- */
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .t--med { grid-column: 1 / 3; }
  .t--foto { grid-column: 3; grid-row: 1 / 3; min-height: 0; }
  .t--rojo { grid-column: 1 / 3; }
  .chat { max-width: 520px; }
  .pie__sellos { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .hero__foto { max-height: 80svh; }
}

/* Escritorio ---------------------------------------------------------------- */
@media (min-width: 960px) {
  html { scroll-padding-top: 80px; }
  .top { position: sticky; top: 0; }
  .top__row { min-height: 80px; }
  .top__logo img { width: 222px; }
  .top__cta { display: inline-flex; }

  .hero { min-height: min(calc(100svh - 80px), 860px); padding: 0 0 176px; }
  .hero__foto {
    left: auto; bottom: 0; width: 50vw; aspect-ratio: auto; max-height: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%);
            mask-image: linear-gradient(to right, transparent 0, #000 34%);
  }
  .hero__grid { grid-template-columns: 1fr minmax(360px, 420px); gap: 40px; align-items: end; min-height: calc(min(calc(100svh - 80px), 860px) - 176px); }
  .hero__texto { padding: 40px 0 0; align-self: start; }
  .hero__tagline { display: block; width: 214px; margin: 0 0 18px -4px; }
  .hero h1 { font-size: clamp(3.5rem, 5.6vw, 5.5rem); }
  .hero__sub { margin-top: 26px; font-size: 1.1875rem; max-width: 30em; }
  .hero__dir { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; }
  .hero__dir .ico { color: var(--rojo); }
  .js .hero__dir { animation: entra .9s .95s var(--suave) both; }
  .chat { margin-bottom: -112px; }
  .js .chat { animation: emerge 1.1s 1s var(--suave) both, flota 7s 2.2s ease-in-out infinite; }
  .chat:focus-within { animation-play-state: paused; }
  @keyframes flota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

  /* En escritorio el corazón va debajo del texto, como en el logo */
  .pulso { height: 200px; }
  .pulso svg { --s: .68; left: calc(24% - 1254px * var(--s)); bottom: 42px; }

  .cintas { height: 190px; margin: -74px 0 -44px; }
  .cats { padding: 110px 0 110px; }
  .cabeza { margin-bottom: 44px; }
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 236px; gap: 16px; }
  .t { padding: 26px; border-radius: var(--radio); min-height: 0; }
  .t__txt strong { font-size: 1.3125rem; }
  .t__txt small { font-size: .95rem; }
  .t--med { grid-column: 1 / 3; grid-row: 1; }
  .t--med .t__txt strong { font-size: 2.25rem; letter-spacing: -.02em; }
  .t--med .t__txt small { font-size: 1.0625rem; }
  .t--med .t__ico { width: 64px; height: 64px; }
  .t--foto { grid-column: 3; grid-row: 1 / 3; }
  .t--bebe { grid-column: 4; grid-row: 1; }
  .t--rojo { grid-column: 1; grid-row: 2; }
  .t--rojo .t__txt strong { font-size: 1.3125rem; }
  .t--bien { grid-column: 2; grid-row: 2; }
  .t--ase { grid-column: 4; grid-row: 2; }

  .ases { padding: 120px 0; }
  .ases__grid { grid-template-columns: 340px 1fr; gap: 88px; align-items: center; }
  .ases__video { width: 100%; }

  .pasos { padding: 110px 0; }
  .pasos__via { margin: 96px 0 56px; }
  .riel { left: -100vw; right: 0; top: 20px; bottom: auto; width: auto; height: 4px; margin: 0; }
  .riel__carga { inset: 0 auto 0 0; width: calc(100vw + var(--p, 0) * (100% - 100vw)); transform: none; }
  .riel__camion { left: calc(100vw + var(--p, 0) * (100% - 100vw)); top: 50%; }
  .pasos__lista { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .pasos__lista li { padding-left: 0; padding-top: 62px; }
  .pasos h3 { padding-top: 0; font-size: 1.5rem; }

  .nos { padding: 120px 0; }
  .nos__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }

  .vis { padding: 110px 0; }
  .vis__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .vis__mapa, .vis__mapa iframe { min-height: 100%; }

  .pie { padding: 96px 0 36px; }
  .pie__cta { grid-template-columns: 1fr auto; align-items: end; }
  .pie__columnas { grid-template-columns: 1.5fr 1fr 1.4fr 1fr 1.1fr; gap: 32px; padding: 52px 0 40px; }
  .pie__marca, .pie__columnas > :nth-child(3) { grid-column: auto; }
  .pie__base { grid-template-columns: 1fr auto; align-items: center; }
  .barra { display: none; }
}

/* Portátiles de poca altura: todo el inicio cabe en la primera pantalla */
@media (min-width: 960px) and (max-height: 800px) {
  .hero__texto { padding-top: 20px; }
  .hero__tagline { width: 150px; margin-bottom: 8px; }
  .hero h1 { font-size: clamp(3rem, 4.6vw, 4.25rem); }
  .hero__sub { margin-top: 16px; font-size: 1.0625rem; }
  .hero__dir { margin-top: 10px; }
  .chat { margin-bottom: -56px; }
  .pulso svg { --s: .5; bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-r] { opacity: 1; translate: none; }
  .js [data-r="foto"] img { clip-path: none; scale: 1; }
  .js .t__ico { stroke-dashoffset: 0; }
  .pulso path { stroke-dashoffset: 0; }
}
