/* Barbería Oveja Negra. Títulos en Rye (estilo de las letras del logo), texto en Libre Caslon Text.
   Escrito para móvil primero; los @media (min-width) agregan el diseño de escritorio. */
@font-face { font-family: "Rye"; src: url("../fonts/rye.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/caslon-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/caslon-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0c0b0a;
  --bg-2: #151311;
  --bg-3: #1e1b18;
  --line: rgba(240, 234, 224, 0.12);
  --text: #f0eae0;
  --muted: #aaa297;
  --gold: #d4a843;
  --gold-grad: linear-gradient(100deg, #c9a03a 0%, #f0c84a 22%, #b8922a 42%, #fff1bf 50%, #b8922a 58%, #d4a843 100%);
  --platinum: #b0bec5;
  --platinum-grad: linear-gradient(100deg, #9aa5b0 0%, #dfe5ec 22%, #8b95a1 42%, #ffffff 50%, #8b95a1 58%, #b0bec5 100%);
  --display: "Rye", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --max: 1160px;
  --gutter: 20px;
  --radius: 10px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);        /* ease-out fuerte: entradas y UI */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* movimiento en pantalla */
  --z-header: 20;
  --z-bar: 30;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: 84px; /* barra fija de móvil */
}
img, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: 0.01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 7vw, 3.2rem); }
h3 { font-size: 1.125rem; line-height: 1.3; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--bg); font-weight: 700; }
.skip:focus { top: 12px; }
.contenedor { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--text); color: var(--bg);
  border: 1px solid var(--text); border-radius: 999px;
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.16s var(--ease);
}
.boton::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%); transform: translateX(-110%); pointer-events: none; }
.boton:active { transform: scale(0.97); }
.boton-icono { width: 52px; padding: 0; flex: none; }
.boton-icono svg { width: 22px; height: 22px; transition: transform 0.3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .boton:hover { background: #fff; border-color: #fff; }
  .boton:hover::after { transform: translateX(110%); transition: transform 0.7s var(--ease-in-out); }
  .boton-linea:hover::after { background: linear-gradient(105deg, transparent 35%, rgba(240, 234, 224, 0.12) 50%, transparent 65%); }
  .boton-icono:hover svg { transform: scale(1.1) rotate(-6deg); }
}
.boton-linea { background: transparent; color: var(--text); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) { .boton-linea:hover { background: var(--bg-3); border-color: var(--muted); } }
.boton svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.enlace { font-weight: 700; text-decoration: underline; text-decoration-color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color 0.2s var(--ease); }
.enlace:hover { text-decoration-color: var(--text); }

/* Promoción */
.promo { position: relative; display: flex; align-items: center; height: 40px; padding: 0 44px 0 16px; background: var(--text); color: var(--bg); font-size: 0.92rem; }
.promo strong { margin-right: 6px; }
/* Una sola línea. Si el texto no cabe, js/site.js lo duplica y activa .desliza: desfila en loop */
.promo-ventana { flex: 1; min-width: 0; overflow: hidden; display: flex; justify-content: center; }
.promo-pista { display: inline-flex; white-space: nowrap; }
.promo.desliza .promo-ventana { justify-content: flex-start; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.promo.desliza .promo-item { padding-right: 3.5em; }
.promo.desliza .promo-pista { animation: marquesina var(--duracion, 18s) linear infinite; }
@media (hover: hover) and (pointer: fine) { .promo.desliza:hover .promo-pista { animation-play-state: paused; } }
@keyframes marquesina { to { transform: translateX(-50%); } }
.promo-cerrar { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; }
.promo-cerrar:hover { background: rgba(0, 0, 0, 0.08); }
.promo-cerrar svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.promo[hidden] { display: none; }

/* Cabecera: emblema al centro. Móvil: menú a la derecha. Escritorio: enlaces a ambos lados */
.cabecera { position: sticky; top: 0; z-index: var(--z-header); background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.cabecera.con-borde { border-bottom-color: var(--line); }
.cabecera-inner { max-width: var(--max); margin-inline: auto; padding: 7px var(--gutter); min-height: 72px; display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; }
.marca-centro { grid-column: 2; justify-self: center; position: relative; display: block; width: 58px; height: 58px; border-radius: 50%; transition: transform 0.3s var(--ease); }
.marca-centro img { width: 100%; height: 100%; }
/* Emblema vectorial animado. Vive en la cabecera: se dibuja a tamaño grande (--w) y su estado final es
   scale(--k) sobre el hueco de 48/56 px. Al ser siempre el mismo elemento, no hay cambio de logo al llegar. */
.emblema-volador { display: none; position: absolute; left: 50%; top: 50%; z-index: 30; width: var(--w, 400px); aspect-ratio: 1357 / 1355; margin: calc(var(--w, 400px) / -2 * 1355 / 1357) 0 0 calc(var(--w, 400px) / -2); transform: scale(var(--k, 0.12)); pointer-events: none; }
.apuntado .emblema-volador { display: block; }
.apuntado .marca-centro img { visibility: hidden; }
/* Durante la intro el logo fijo no se muestra (evita verlo un instante antes del emblema animado).
   Si JavaScript no llega a calcular la intro, aparece igual a los 3 s. */
.intro .marca-centro img { opacity: 0; }
.intro:not(.apuntado) .marca-centro img { animation: aparece-total 0.3s linear 3s both; }
@keyframes aparece-total { from { opacity: 0; } to { opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .marca-centro:hover { transform: rotate(-8deg) scale(1.05); } }
.menu { display: none; }
.menu-boton { grid-column: 3; display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; background: none; border: 1px solid var(--line); border-radius: 50%; }
.menu-boton span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.menu-boton[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-boton[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu.abierto { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; padding: 4px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); animation: menu-panel 0.18s var(--ease) both; }
.menu.abierto .menu-izq, .menu.abierto .menu-der { display: flex; flex-direction: column; }
.menu.abierto a:not(.boton) { padding: 14px 0; font-size: 1.15rem; text-decoration: none; border-bottom: 1px solid var(--line); animation: menu-enlace 0.22s var(--ease) both; }
.menu.abierto .menu-izq a:nth-child(2) { animation-delay: 20ms; }
.menu.abierto .menu-izq a:nth-child(3) { animation-delay: 40ms; }
.menu.abierto .menu-der a:nth-child(1) { animation-delay: 60ms; }
.menu.abierto .menu-der a:nth-child(2) { animation-delay: 80ms; }
.menu.abierto .cabecera-cta { margin-top: 18px; animation: menu-enlace 0.22s var(--ease) 100ms both; }
@keyframes menu-panel { from { opacity: 0; transform: translateY(-8px); } }
@keyframes menu-enlace { from { opacity: 0; transform: translateX(-12px); } }

/* Hero: video de la entrada a la barbería de fondo y el texto abajo */
.hero { position: relative; display: flex; align-items: flex-end; min-height: calc(100svh - 112px); padding: 96px 0 40px; overflow: hidden; text-align: center; }
.hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bg-3); }
.hero-degradado { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12, 11, 10, 0.55) 0%, rgba(12, 11, 10, 0.12) 30%, rgba(12, 11, 10, 0.5) 62%, rgba(12, 11, 10, 0.97) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 45%; background: linear-gradient(180deg, rgba(12, 11, 10, 0) 0%, rgba(12, 11, 10, 0.7) 45%, var(--bg) 100%); pointer-events: none; }
.hero + .seccion { border-top: 0; }
.hero-velo { position: absolute; inset: 0; z-index: 2; background: rgba(12, 11, 10, 0.8); opacity: 0; pointer-events: none; }
.hero-texto { position: relative; z-index: 3; }
.hero h1 { font-size: clamp(2.35rem, 10vw, 4.8rem); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55); }
/* Cada palabra sube desde una máscara */
.hero h1 .linea { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.16em 0.04em 0.12em; margin: -0.16em -0.04em -0.12em; }
.hero h1 .linea > span { display: inline-block; animation: sube-linea 1s var(--ease) both; }
.hero h1 .linea:nth-child(1) > span { animation-delay: 0.1s; }
.hero h1 .linea:nth-child(2) > span { animation-delay: 0.2s; }
.hero h1 .linea:nth-child(3) > span { animation-delay: 0.3s; }
.hero h1 .linea:nth-child(4) > span { animation-delay: 0.4s; }
@keyframes sube-linea { from { transform: translateY(135%); } }
.hero-bajada, .hero-acciones, .estado { animation: sube 0.9s var(--ease) both; }
.hero-bajada { animation-delay: 0.55s; }
.hero-acciones { animation-delay: 0.67s; }
.estado { animation-delay: 0.79s; }
@keyframes sube { from { opacity: 0; transform: translateY(16px); } }
.hero-bajada { margin-top: 14px; max-width: 34ch; margin-inline: auto; color: #d8d1c6; font-size: 1.1rem; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.hero-acciones { display: flex; gap: 10px; width: 100%; max-width: 360px; margin: 26px auto 0; }
.hero-acciones .boton:first-child { flex: 1; }
.hero-acciones .boton-linea { background: rgba(12, 11, 10, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-color: rgba(240, 234, 224, 0.35); }
.estado { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 0.95rem; color: #d8d1c6; }
.estado-punto { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.estado-abierto { color: var(--text); }
.estado-abierto .estado-punto { position: relative; background: #7fb069; }
.estado-abierto .estado-punto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #7fb069; animation: pulso 2.4s var(--ease) 1.6s infinite; }
@keyframes pulso { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3.2); opacity: 0; } }

/* Intro (html.intro; js/intro.js la quita con movimiento reducido o si se entra a una sección).
   El emblema de la cabecera empieza desplazado (--dx, --dy) al centro del hero y a tamaño completo; se dibuja
   sobre el video atenuado y a los 2,15 s vuelve a su lugar achicándose. js/intro.js calcula los valores
   y agrega .apuntado; sin eso (sin JS) se ve el logo normal de la cabecera y el resto de la intro igual. */
.intro.apuntado .emblema-volador { animation: emblema-vuela 1s var(--ease-in-out) 2.15s both; }
@keyframes emblema-vuela {
  from { transform: translate(var(--dx, 0px), var(--dy, 0px)); }
  to { transform: scale(var(--k, 0.12)); }
}
.intro .hero-velo { animation: velo-sale 1.1s ease 2.15s both; }
@keyframes velo-sale { from { opacity: 1; } to { opacity: 0; } }
.intro .hero h1 { animation: emblema-aparece 0.01s linear 2.5s both; }
.intro .hero h1 .linea:nth-child(1) > span { animation-delay: 2.45s; }
.intro .hero h1 .linea:nth-child(2) > span { animation-delay: 2.55s; }
.intro .hero h1 .linea:nth-child(3) > span { animation-delay: 2.65s; }
.intro .hero h1 .linea:nth-child(4) > span { animation-delay: 2.75s; }
.intro .hero-bajada { animation-delay: 2.9s; }
.intro .hero-acciones { animation-delay: 3.02s; }
.intro .estado { animation-delay: 3.14s; }
.intro .menu-izq, .intro .menu-der, .intro .menu-boton { animation: entra-arriba 0.7s var(--ease) 2.6s both; }
/* En el menú desplegable del celular no se usa el retraso de la intro */
.intro .menu.abierto .menu-izq, .intro .menu.abierto .menu-der { animation: none; }
@keyframes entra-arriba { from { opacity: 0; transform: translateY(-10px); } }

/* Emblema animado (las piezas vienen marcadas por tools/build_logo.py) */
.emblema { width: 100%; height: 100%; overflow: visible; }
.emblema .anillo, .emblema .disco { transform-box: fill-box; transform-origin: center; animation: emblema-anillo 0.8s var(--ease) both; }
.emblema .oveja { animation: emblema-oveja 0.8s var(--ease) 0.15s both; }
.emblema .navaja { animation: emblema-aparece 0.3s ease 0.2s both; }
/* Las hojas se abren desde la bisagra al inicio y terminan antes que las letras (sin cola al final) */
.emblema .hoja-izq { transform-origin: 273.5px 481.5px; animation: emblema-hoja-izq 0.8s var(--ease-in-out) 0.2s both; }
.emblema .hoja-der { transform-origin: 669.5px 481.8px; animation: emblema-hoja-der 0.8s var(--ease-in-out) 0.2s both; }
.emblema .letra { animation: emblema-aparece 0.45s ease both; }
@keyframes emblema-anillo { from { opacity: 0; transform: scale(0.94); } }
@keyframes emblema-oveja { from { opacity: 0; transform: translateY(10px); } }
@keyframes emblema-aparece { from { opacity: 0; } }
@keyframes emblema-hoja-izq { from { transform: rotate(-40deg); } }
@keyframes emblema-hoja-der { from { transform: rotate(40deg); } }
/* logo:inicio */
.emblema .l1 { animation-delay: 0.278s; }
.emblema .l2 { animation-delay: 0.306s; }
.emblema .l3 { animation-delay: 0.334s; }
.emblema .l4 { animation-delay: 0.362s; }
.emblema .l5 { animation-delay: 0.390s; }
.emblema .l6 { animation-delay: 0.418s; }
.emblema .l7 { animation-delay: 0.446s; }
.emblema .l8 { animation-delay: 0.474s; }
.emblema .l9 { animation-delay: 0.502s; }
.emblema .l10 { animation-delay: 0.530s; }
.emblema .l11 { animation-delay: 0.558s; }
.emblema .l12 { animation-delay: 0.586s; }
.emblema .l13 { animation-delay: 0.614s; }
.emblema .l14 { animation-delay: 0.642s; }
.emblema .l15 { animation-delay: 0.670s; }
.emblema .l16 { animation-delay: 0.698s; }
.emblema .l17 { animation-delay: 0.726s; }
.emblema .l18 { animation-delay: 0.754s; }
.emblema .l19 { animation-delay: 0.782s; }
.emblema .l20 { animation-delay: 0.810s; }
.emblema .l21 { animation-delay: 0.838s; }
.emblema .l22 { animation-delay: 0.866s; }
.emblema .l23 { animation-delay: 0.894s; }
.emblema .l24 { animation-delay: 0.922s; }
.emblema .l25 { animation-delay: 0.950s; }
.emblema .l26 { animation-delay: 0.978s; }
.emblema .l27 { animation-delay: 1.006s; }
.emblema .l28 { animation-delay: 1.034s; }
.emblema .l29 { animation-delay: 1.062s; }
.emblema .l30 { animation-delay: 1.090s; }
.emblema .l31 { animation-delay: 1.118s; }
.emblema .l32 { animation-delay: 1.146s; }
.emblema .l33 { animation-delay: 1.174s; }
.emblema .l34 { animation-delay: 1.202s; }
.emblema .l35 { animation-delay: 1.230s; }
.emblema .l36 { animation-delay: 1.258s; }
.emblema .l37 { animation-delay: 1.286s; }
.emblema .l38 { animation-delay: 1.314s; }
.emblema .l39 { animation-delay: 1.342s; }
.emblema .l40 { animation-delay: 1.370s; }
.emblema .l41 { animation-delay: 1.398s; }
.emblema .l42 { animation-delay: 1.426s; }
.emblema .l43 { animation-delay: 1.454s; }
.emblema .l44 { animation-delay: 1.482s; }
.emblema .l45 { animation-delay: 1.510s; }
.emblema .l46 { animation-delay: 1.538s; }
.emblema .l47 { animation-delay: 1.566s; }
/* logo:fin */

/* Secciones */
.seccion { padding: 64px 0 72px; border-top: 1px solid var(--line); }
.seccion-alt { background: var(--bg-2); }
.cabeza { margin-bottom: 28px; }
.cabeza p { margin-top: 12px; color: var(--muted); max-width: 52ch; }
.cabeza a { text-underline-offset: 4px; }

/* Agenda */
.agenda-marco { background: #fff; border-radius: var(--radius); overflow: hidden; margin-inline: calc(var(--gutter) * -0.5); }
.agenda-marco { position: relative; }
.agenda-marco iframe { width: 100%; height: 1060px; border: 0; }
/* La agenda (AgendaPro, pesada) se carga al acercarse; mientras tanto, un aviso discreto arriba */
.agenda-cargando { position: absolute; left: 0; right: 0; top: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #6b655d; font-size: 0.95rem; transition: opacity 0.3s ease; }
.agenda-cargando span { width: 16px; height: 16px; border: 2px solid #d8d2c8; border-top-color: #6b655d; border-radius: 50%; animation: gira 0.8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.agenda-marco.cargada .agenda-cargando { opacity: 0; pointer-events: none; }

/* Membresías */
.planes { display: grid; gap: 20px; }
.plan {
  --metal: var(--gold);
  --metal-grad: var(--gold-grad);
  position: relative;
  border: 1px solid color-mix(in srgb, var(--metal) 38%, transparent);
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--metal) 9%, var(--bg-2)) 0%, var(--bg-2) 55%);
  padding: 26px 20px 22px;
  overflow: hidden;
}
.plan::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--metal-grad); transform-origin: left; transition: transform 1.1s var(--ease-in-out) calc(var(--retraso, 0s) + 0.2s); }
.plan[data-aparece]:not(.visto)::before { transform: scaleX(0); }
.plan.visto h3 { animation: destello 1.8s var(--ease-in-out) calc(var(--retraso, 0s) + 0.5s) both; }
@keyframes destello { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (hover: hover) and (pointer: fine) {
  .plan { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease; }
  .plan:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--metal) 70%, transparent); box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--metal) 55%, transparent); }
}
.plan-platinum { --metal: var(--platinum); --metal-grad: var(--platinum-grad); }
.plan-cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid color-mix(in srgb, var(--metal) 30%, transparent); }
.plan h3 { font-family: var(--display); font-weight: 400; font-size: 2.1rem; line-height: 1.1; background: var(--metal-grad); background-size: 250% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-duracion { color: var(--metal); font-size: 1.05rem; }
.plan table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.plan thead th { padding: 14px 0 6px; font-weight: 400; font-size: 0.92rem; color: var(--muted); text-align: right; line-height: 1.3; }
.plan thead th:first-child { text-align: left; }
.plan tbody th { text-align: left; font-weight: 400; padding: 12px 10px 12px 0; line-height: 1.35; }
.plan td { text-align: right; padding: 12px 0 12px 12px; font-weight: 700; white-space: nowrap; }
.plan tbody tr + tr { border-top: 1px solid var(--line); }
.plan .boton { width: 100%; margin-top: 18px; background: transparent; color: var(--metal); border-color: color-mix(in srgb, var(--metal) 55%, transparent); }
.plan .boton:hover { background: var(--metal); color: var(--bg); border-color: var(--metal); }

/* Tienda: carrusel deslizable en móvil, grilla en escritorio */
.productos { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 10px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
.producto { scroll-snap-align: start; }
.producto a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.producto-imagen { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; }
.producto img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.7s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .producto a:hover img { transform: scale(1.05); }
  .producto a:hover .producto-cta { background-size: 100% 1px; }
}
.producto h3 { margin-top: 14px; }
.producto p { margin-top: 4px; color: var(--muted); font-size: 0.95rem; line-height: 1.5; flex: 1; }
.producto-cta { align-self: flex-start; margin-top: 10px; padding-bottom: 3px; font-weight: 700; background: linear-gradient(currentColor, currentColor) left bottom / 32% 1px no-repeat; transition: background-size 0.45s var(--ease); }
.deslizar { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }
.mas { margin-top: 28px; }

/* Nosotros */
.nosotros-grid { display: grid; gap: 28px; }
.nosotros-texto p { margin-top: 16px; color: var(--muted); max-width: 58ch; }
.nosotros-texto h2 + p { margin-top: 20px; color: var(--text); font-size: 1.15rem; }
.nosotros-figura { position: relative; justify-self: center; width: min(88vw, 440px); margin-bottom: 36px; }
.nosotros-foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
/* La mascota se asoma sobre la esquina de la foto */
.nosotros-mascota { position: absolute; width: 38%; left: -6%; bottom: -12%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6)); rotate: -8deg; }
.nosotros-figura.visto .nosotros-mascota { animation: mascota 0.9s var(--ease) 0.45s both; }
@keyframes mascota { from { opacity: 0; transform: translateY(24px) rotate(10deg); } }

/* Preguntas frecuentes */
.preguntas { border-top: 1px solid var(--line); }
.pregunta { border-bottom: 1px solid var(--line); }
.pregunta summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 1.125rem; font-weight: 700; cursor: pointer; list-style: none; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta-icono { position: relative; width: 14px; height: 14px; flex: none; }
.pregunta-icono::before, .pregunta-icono::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease); }
.pregunta-icono::after { transform: rotate(90deg); }
.pregunta[open] .pregunta-icono::after { transform: rotate(0deg); }
.pregunta p { padding: 0 34px 22px 0; color: var(--muted); max-width: 62ch; }
.pregunta[open] p { animation: respuesta 0.4s var(--ease) both; }
@keyframes respuesta { from { opacity: 0; transform: translateY(-6px); } }
@media (hover: hover) and (pointer: fine) { .pregunta summary:hover { color: #fff; } }
.referencia { display: block; margin-top: 4px; font-size: 0.95rem; color: var(--muted); }

/* Contacto */
.datos { display: grid; gap: 22px; }
.datos dt { color: var(--muted); font-size: 0.95rem; margin-bottom: 2px; }
.datos dd { font-size: 1.125rem; }
.datos address { font-style: normal; }
.datos a { text-underline-offset: 4px; text-decoration-color: var(--muted); }
.horario { border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.horario th { font-weight: 400; text-align: left; padding: 2px 20px 2px 0; }
.horario td { font-weight: 700; }
.contacto-acciones { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.mapa { position: relative; margin-top: 28px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.mapa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 11, 10, 0.55) 0%, transparent 28%, transparent 60%, rgba(12, 11, 10, 0.85) 100%); pointer-events: none; }
.mapa-foto { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mapa-leyenda { position: absolute; z-index: 1; left: 18px; right: 18px; top: 16px; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.mapa-boton { position: absolute; z-index: 1; left: 50%; bottom: 20px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; white-space: nowrap; transition: transform 0.16s var(--ease), background-color 0.25s ease; }
.mapa-boton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mapa-boton:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .mapa:hover .mapa-foto { transform: scale(1.03); }
  .mapa-boton:hover { background: #fff; }
}
.mapa iframe { position: relative; z-index: 2; width: 100%; height: 100%; border: 0; }

/* Pie */
.pie { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--muted); font-size: 0.95rem; text-align: center; }
.pie-marca { display: grid; justify-items: center; gap: 12px; }
.pie-marca strong { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--text); }
.pie-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 24px 0; }
.pie-menu a { text-decoration: none; padding: 6px 0; transition: color 0.2s var(--ease); }
.pie-menu a:hover { color: var(--text); }

/* Barra fija de móvil */
.barra-movil { display: grid; grid-template-columns: 1fr auto; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(12, 11, 10, 0.93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.barra-movil.oculta { transform: translateY(110%); }
.barra-movil { transition: transform 0.35s var(--ease); }

/* Aparición al hacer scroll (js/site.js marca solo lo que empieza fuera de pantalla) */
[data-aparece] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease var(--retraso, 0s), transform 1s var(--ease) var(--retraso, 0s); }
[data-aparece="mascara"] { opacity: 1; clip-path: inset(0 0 100% 0); transform: translateY(0.35em); transition: clip-path 1s var(--ease-in-out) var(--retraso, 0s), transform 1s var(--ease) var(--retraso, 0s); }
[data-aparece="escala"] { transform: scale(0.94); transition: opacity 1s ease var(--retraso, 0s), transform 1.2s var(--ease) var(--retraso, 0s); }
[data-aparece].visto { opacity: 1; transform: none; }
[data-aparece="mascara"].visto { clip-path: inset(-0.3em -0.3em -0.4em -0.3em); }

/* Página 404 */
.error-404 { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding-block: 64px; }
.error-404 h1 { font-size: clamp(2.2rem, 8vw, 4rem); }
.error-404 p { color: var(--muted); max-width: 48ch; }

/* Tablet */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .productos { grid-auto-columns: 42%; }
  .agenda-marco { margin-inline: 0; }
}

/* Escritorio */
@media (min-width: 1024px) {
  body { font-size: 1.125rem; padding-bottom: 0; }
  .barra-movil { display: none; }
  .cabecera-inner { grid-template-columns: 1fr auto 1fr; gap: 32px; min-height: 86px; }
  .marca-centro { width: 68px; height: 68px; }
  .menu { display: contents; }
  .menu-izq, .menu-der { display: flex; align-items: center; gap: 30px; }
  .menu-izq { grid-column: 1; grid-row: 1; justify-self: start; }
  .menu-der { grid-column: 3; grid-row: 1; justify-self: end; }
  .menu a:not(.boton) { text-decoration: none; color: var(--muted); transition: color 0.2s var(--ease); }
  .menu a:not(.boton):hover, .menu a.activo { color: var(--text); }
  .menu-boton { display: none; }
  .cabecera-cta { min-height: 44px; padding: 0 20px; }

  .hero { min-height: min(calc(100svh - 126px), 860px); padding: 120px 0 72px; text-align: left; }
  .hero::after { height: 28%; }
  .hero-degradado { background: linear-gradient(90deg, rgba(12, 11, 10, 0.85) 0%, rgba(12, 11, 10, 0.35) 55%, rgba(12, 11, 10, 0.1) 100%), linear-gradient(180deg, transparent 60%, rgba(12, 11, 10, 0.9) 100%); }
  .hero h1 { max-width: 9ch; font-size: clamp(3.4rem, 6.4vw, 5.6rem); }
  .hero-bajada { margin-inline: 0; font-size: 1.2rem; }
  .hero-acciones { margin-inline: 0; max-width: 300px; }

  .seccion { padding: 104px 0 116px; }
  .cabeza { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 44px; }
  .cabeza p { margin-top: 0; }
  .agenda-marco iframe { height: 900px; }


  .planes { grid-template-columns: 1fr 1fr; gap: 28px; }
  .plan { padding: 34px 32px 30px; }
  .plan h3 { font-size: 2.6rem; }

  .productos { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; overflow: visible; padding: 0; margin: 0; }
  .deslizar { display: none; }

  .nosotros-grid { grid-template-columns: 1.2fr 0.8fr; gap: 72px; align-items: center; }
  .nosotros-figura { width: 100%; max-width: 440px; justify-self: end; margin-bottom: 0; }
  .nosotros-mascota { width: 36%; left: -14%; bottom: -8%; }

  .preguntas-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
  .preguntas-grid .cabeza { display: block; position: sticky; top: 120px; }
  .preguntas-grid .cabeza p { margin-top: 14px; }
  .contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: stretch; }
  .mapa { margin-top: 0; aspect-ratio: auto; min-height: 520px; }

  .pie { text-align: left; }
  .pie-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
  .pie-marca { grid-auto-flow: column; justify-items: start; align-items: center; }
  .pie-menu { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Se conservan los fundidos; se quitan desplazamientos, giros y efectos que se repiten */
  .emblema .anillo, .emblema .disco, .emblema .oveja, .emblema .hoja, .hero h1 .linea > span,
  .hero-bajada, .hero-acciones, .estado, .cabecera-inner > *, .menu.abierto, .menu.abierto a { animation-name: emblema-aparece; }
  .estado-punto::after, .boton::after { display: none; }
  /* Sin desfile: el texto de la promoción se muestra completo en varias líneas */
  .promo { height: auto; padding-block: 8px; }
  .promo-pista { white-space: normal; text-align: center; }
  .plan.visto h3, .nosotros-figura.visto .nosotros-mascota, .pregunta[open] p { animation: none; }
  [data-aparece], [data-aparece="mascara"], [data-aparece="escala"] { transform: none; clip-path: none; }
  .plan::before { transition: none; transform: none !important; }
  .producto img, .plan { transition-property: opacity; }
}
