/* Estilos compartidos por todas las páginas de Estancia Rodríguez */
/* Tipografías: Brown Sugar (la del logo, solo para la marca), Manrope (textos) y Acid Grotesk (números). */
@font-face { font-family: 'Brown Sugar'; src: url('../fuentes/brown-sugar.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'Acid Grotesk'; src: url('../fuentes/acid-grotesk-regular.woff2') format('woff2'); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Acid Grotesk'; src: url('../fuentes/acid-grotesk-medium.woff2') format('woff2'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Acid Grotesk'; src: url('../fuentes/acid-grotesk-bold.woff2') format('woff2'); font-weight: 700 800; font-style: normal; font-display: swap; }
/* Manrope (licencia SIL Open Font, ver manrope-LICENCIA.txt): textos de todo el sitio */
@font-face { font-family: 'Manrope'; src: url('../fuentes/manrope.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --negro: #0f0e0c; --negro-2: #1a1915; --negro-3: #24221d;
  --blanco: #f7f3ed; --beige: #e8dcc8; --beige-suave: #f2ece0;
  --verde: #4a5e3a; --verde-claro: #6b7f58; --verde-palido: #c8d4b8;
  --marron: #8b6f47; --marron-claro: #c4a882;
  --texto: #2a2520; --texto-suave: #6b5f52;
  --rojo: #a5523f; --ambar: #b8862f;
  --linea: rgba(100, 90, 70, 0.14); --linea-osc: rgba(200, 180, 140, 0.14);
  --serif: 'Manrope', system-ui, sans-serif; /* títulos */
  --sans: 'Manrope', system-ui, sans-serif;
  --logo: 'Brown Sugar', 'Manrope', serif; /* la letra del logo, solo para la marca */
  --numeros: 'Acid Grotesk', 'Manrope', sans-serif; /* precios, totales y cifras */
  --radio: 6px;
  --sombra: 0 18px 40px rgba(15, 14, 12, 0.10);
  --ancho: 1180px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--blanco); color: var(--texto); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--marron-claro); outline-offset: 3px; }

.contenedor { width: min(var(--ancho), 100% - 2.5rem); margin-inline: auto; }

/* Tipografía */
.etiqueta { font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--verde); font-weight: 600; margin-bottom: 0.9rem; }
.titulo { font-family: var(--serif); font-weight: 300; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; color: var(--negro); }
.titulo em { font-style: normal; font-weight: 600; color: var(--verde); }
.oscuro .etiqueta { color: var(--marron-claro); }
.oscuro .titulo { color: var(--blanco); }
.oscuro .titulo em { color: var(--marron-claro); }
.bajada { font-size: 1.05rem; color: var(--texto-suave); font-weight: 300; max-width: 60ch; }
.oscuro .bajada { color: rgba(232, 220, 200, 0.62); }
.centrado { text-align: center; }
.centrado .bajada { margin-inline: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1rem 1.9rem; border-radius: 999px; border: 1px solid transparent; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primario { background: var(--verde); color: var(--blanco); box-shadow: 0 10px 24px rgba(74, 94, 58, 0.28); }
.btn-primario:hover { background: var(--verde-claro); }
.btn-claro { background: var(--blanco); color: var(--negro); }
.btn-claro:hover { background: var(--beige); }
.btn-borde { border-color: rgba(232, 220, 200, 0.45); color: var(--blanco); background: rgba(15, 14, 12, 0.15); backdrop-filter: blur(6px); }
.btn-borde:hover { border-color: var(--beige); background: rgba(232, 220, 200, 0.1); }
.btn-linea { border-color: var(--linea); color: var(--texto); background: transparent; }
.btn-linea:hover { border-color: var(--verde); color: var(--verde); }
.btn-wsp { background: #25d366; color: #fff; }
.btn-wsp:hover { background: #1fb956; }
.btn-chico { padding: 0.65rem 1.2rem; font-size: 0.7rem; }

/* Navegación */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: background 0.35s, border-color 0.35s, padding 0.35s; border-bottom: 1px solid transparent; }
.nav-interior { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 0; }
.nav.solida, .nav.siempre-solida { background: rgba(15, 14, 12, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--linea-osc); }
.nav.solida .nav-interior { padding: 0.8rem 0; }
.nav-logo { font-family: var(--logo); font-size: 1.45rem; color: var(--beige); text-decoration: none; letter-spacing: 0.04em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(232, 220, 200, 0.75); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--blanco); }
.nav-links .btn { color: var(--blanco); }
.nav-volver { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(232, 220, 200, 0.7); text-decoration: none; }
.nav-volver:hover { color: var(--blanco); }
@media (max-width: 480px) { .nav-volver { white-space: nowrap; flex-shrink: 0; font-size: 0.62rem; letter-spacing: 0.12em; } .nav-logo { font-size: clamp(0.95rem, 4.4vw, 1.2rem); } .nav-interior { gap: 0.8rem; } }
.hamburguesa { display: none; background: none; border: 0; width: 2.6rem; height: 2.6rem; cursor: pointer; position: relative; z-index: 120; }
.hamburguesa span { position: absolute; left: 0.55rem; right: 0.55rem; height: 2px; background: var(--beige); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburguesa span:nth-child(1) { top: 0.85rem; } .hamburguesa span:nth-child(2) { top: 1.25rem; } .hamburguesa span:nth-child(3) { top: 1.65rem; }
.menu-abierto .hamburguesa span:nth-child(1) { transform: translateY(0.4rem) rotate(45deg); }
.menu-abierto .hamburguesa span:nth-child(2) { opacity: 0; }
.menu-abierto .hamburguesa span:nth-child(3) { transform: translateY(-0.4rem) rotate(-45deg); }

@media (max-width: 960px) {
  .hamburguesa { display: block; }
  .nav-links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 0; background: #0c0b09; padding: 5rem 2rem 2rem; height: 100vh; height: 100dvh; overflow-y: auto; visibility: hidden; z-index: 110; }
  .nav-links li { width: min(340px, 100%); }
  .nav-links a { display: block; padding: 1rem 0; font-size: 0.8rem; border-bottom: 1px solid var(--linea-osc); }
  .nav-links .btn { margin-top: 1.6rem; width: 100%; border-bottom: 0; }
  /* Sin transición de opacidad: en iPhone a veces quedaba trabada a mitad de camino */
  .menu-abierto .nav-links { visibility: visible; }
  .menu-abierto .nav-links li { animation: menu-entra 0.35s var(--suave) both; }
  .menu-abierto .nav-links li:nth-child(2) { animation-delay: 0.03s; } .menu-abierto .nav-links li:nth-child(3) { animation-delay: 0.06s; }
  .menu-abierto .nav-links li:nth-child(4) { animation-delay: 0.09s; } .menu-abierto .nav-links li:nth-child(5) { animation-delay: 0.12s; }
  .menu-abierto .nav-links li:nth-child(n+6) { animation-delay: 0.15s; }
  /* El desenfoque de la barra encierra al menú: se apaga mientras está abierto */
  .nav.menu-abierto { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .nav-links li { text-align: left; }
  .nav-links a.btn { display: flex; justify-content: center; align-items: center; text-align: center; padding: 1rem; }
}
@keyframes menu-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* WhatsApp flotante */
.wsp-flotante { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38); transition: transform 0.25s, bottom 0.3s; }
.wsp-flotante:hover { transform: scale(1.07); }
.wsp-flotante svg { width: 1.75rem; height: 1.75rem; fill: #fff; }

/* Pie */
.pie { background: var(--negro); color: rgba(232, 220, 200, 0.42); border-top: 1px solid var(--linea-osc); padding: 2.2rem 0; font-size: 0.75rem; letter-spacing: 0.06em; }
.pie .contenedor { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.pie-logo { font-family: var(--logo); font-size: 1.3rem; color: rgba(232, 220, 200, 0.55); }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--beige); }

/* Pie completo (compartido) */
.pie-completo { padding: 4rem 0 0; }
.pie-grid { display: grid !important; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2.5rem; align-items: start !important; }
.pie-logo-img { width: 130px; height: auto; opacity: 0.9; }
.pie-marca p { margin-top: 1rem; max-width: 30ch; line-height: 1.6; font-size: 0.85rem; color: rgba(232,220,200,0.55); }
.pie-redes { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.pie-redes a { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--linea-osc); display: grid; place-items: center; transition: border-color 0.2s, background 0.2s; }
.pie-redes a:hover { border-color: var(--verde); background: rgba(74,94,58,0.2); }
.pie-redes svg { width: 1.05rem; height: 1.05rem; fill: var(--beige); }
.pie-col { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.85rem; line-height: 1.55; }
.pie-col h4 { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--marron-claro); font-weight: 600; margin-bottom: 0.3rem; }
.pie-col a, .pie-col span { color: rgba(232,220,200,0.65); }
.pie-col a:hover { color: var(--blanco); }
.pie-col .btn { color: var(--blanco); }
.pie-legal { display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid var(--linea-osc); font-size: 0.75rem; }
.pie-legal-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
@media (max-width: 900px) { .pie-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pie-grid { grid-template-columns: 1fr; gap: 2rem; } .pie-legal { flex-direction: column; } }

/* Formularios */
.campo { display: flex; flex-direction: column; gap: 0.4rem; }
.campo label, .rotulo { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--texto-suave); }
.campo input, .campo select, .campo textarea { width: 100%; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 0.85rem 1rem; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.campo textarea { min-height: 5.5rem; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(74, 94, 58, 0.15); }
.ayuda { font-size: 0.8rem; color: var(--texto-suave); }

/* ---------- Movimiento ---------- */
:root { --suave: cubic-bezier(0.22, 0.75, 0.2, 1); }

/* Transición suave entre páginas (navegadores que la soportan) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s var(--suave) both salir-pagina; }
::view-transition-new(root) { animation: 0.55s var(--suave) both entrar-pagina; }
@keyframes salir-pagina { to { opacity: 0; transform: translateY(-12px); } }
@keyframes entrar-pagina { from { opacity: 0; transform: translateY(18px); } }

/* Aparición al hacer scroll. Con .escalonado, los hijos entran uno detrás del otro. */
/* En compu entran con un leve desenfoque; en celu no (en iPhone es pesado y traba el scroll). */
.js .aparece, .js .escalonado > * { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--suave), transform 1s var(--suave), filter 1s var(--suave); transition-delay: calc(var(--i, 0) * 90ms); }
.js .aparece.visible, .js .escalonado.visible > * { opacity: 1; transform: none; filter: none; }
@media (hover: hover) and (pointer: fine) {
  .js .aparece:not(.visible), .js .escalonado:not(.visible) > * { filter: blur(6px); }
}

/* Fotos que se descubren de abajo hacia arriba */
.js .revela { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--suave); transition-delay: calc(var(--i, 0) * 110ms); }
.js .revela img { transform: scale(1.18); transition: transform 1.8s var(--suave), opacity 0.3s; transition-delay: calc(var(--i, 0) * 110ms); }
.js .revela.visible { clip-path: inset(0 0 0 0); }
.js .revela.visible img { transform: scale(1); }

/* Barra de progreso de lectura */
.progreso { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 130; background: linear-gradient(90deg, var(--verde-claro), var(--marron-claro)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Navegación fija */
.nav { transition: background 0.35s, border-color 0.35s, transform 0.45s var(--suave); }
@media (min-width: 961px) {
  .nav-links a:not(.btn) { position: relative; }
  .nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--suave); }
  .nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
}

/* Botones: brillo que cruza al pasar el mouse */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s var(--suave); }
.btn:hover::after { transform: translateX(120%); }
.btn .flecha-btn { display: inline-block; transition: transform 0.35s var(--suave); }
.btn:hover .flecha-btn { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .aparece, .js .escalonado > *, .js .revela, .js .revela img { opacity: 1; transform: none; filter: none; clip-path: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Cifras en Acid Grotesk */
.precio-valor, .tarjeta-exp .num, .total strong, #r-total, #bt-total, .control output, .cal-dia, .paso-num,
.codigo, .stat strong, .dia-fecha strong, .res-personas, .ocupacion b, .precio-val, [data-precio] { font-family: var(--numeros); }

.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Gift Card: boleto con ramas (lo dibuja scripts/giftcard.js a 820×500 y se escala) */
.gcb-caja { position: relative; width: 100%; }
.gcb { position: absolute; top: 0; left: 0; transform-origin: 0 0; font-family: var(--sans); color: #2a2520; filter: drop-shadow(0 22px 30px rgba(15,14,12,0.28)); }
.gcb > svg { position: absolute; inset: 0; }
.gcb-main { position: absolute; left: 0; top: 0; width: 580px; height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 46px; }
.gcb-eti { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .35em; text-transform: uppercase; color: #4a5e3a; }
.gcb-eti span { width: 60px; height: 1px; background: #c4a882; }
.gcb-marca { font-family: var(--logo); font-size: 46px; line-height: 1; color: #2f3b25; letter-spacing: .03em; margin-top: 12px; white-space: nowrap; }
.gcb-para { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: #8b6f47; margin-top: 28px; }
.gcb-nombre { font-size: 38px; font-weight: 300; line-height: 1.15; margin-top: 2px; max-width: 490px; overflow-wrap: anywhere; }
.gcb-msg { font-style: italic; font-size: 16px; color: #6b5f52; margin-top: 8px; max-width: 470px; line-height: 1.4; max-height: 2.8em; overflow: hidden; }
.gcb-datos { display: flex; justify-content: center; gap: 34px; white-space: nowrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(196,168,130,.55); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #6b5f52; }
.gcb-datos b { display: block; margin-top: 3px; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #2a2520; }
.gcb-datos b.num { font-family: var(--numeros); font-weight: 400; }
.gcb-bebidas-lista { margin-top: 14px; max-width: 480px; font-size: 13px; font-weight: 500; line-height: 1.4; color: #2a2520; }
.gcb-bebidas-lista span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #8b6f47; margin-bottom: 3px; }
.gcb-talon { position: absolute; right: 0; top: 0; width: 240px; height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 36px 20px 30px; text-align: center; }
.gcb-talon img { width: 150px; height: auto; }
.gcb-admite { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #4a5e3a; }
.gcb-admite b { display: block; font-family: var(--numeros); font-weight: 500; font-size: 64px; letter-spacing: 0; line-height: 1; color: #2f3b25; margin-top: 4px; }
.gcb-admite em { display: block; font-style: normal; font-size: 13px; letter-spacing: .3em; margin-top: 2px; }
.gcb-admite small { display: block; font-size: 10px; letter-spacing: .12em; margin-top: 6px; }
.gcb-admite small.gcb-bebidas { color: #8b6f47; margin-top: 4px; }
.gcb-cod { font-family: var(--numeros); font-size: 15px; letter-spacing: .22em; color: #2f3b25; }
.gcb-usada { position: absolute; left: 190px; top: 210px; transform: rotate(-12deg); border: 3px solid rgba(165,82,63,.8); color: rgba(165,82,63,.9); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; padding: 8px 22px; border-radius: 10px; font-size: 26px; }
