/* Portada V3 "luz, blanco y crema" (rediseño 2026-10-15). Tipografías y
   Tailwind los carga _app/src/cabecera_v3.php. Paleta: tinta #1A1714,
   crema #F3EFE7, papel #F8F5EF, línea #E4DED3, texto secundario #5F5850,
   latón #7E6237, dorado #F6E3B4. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #FFFFFF; color: #1A1714; -webkit-font-smoothing: antialiased; }
section[id] { scroll-margin-top: 16px; }

.v3-wrap { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; box-sizing: border-box; }
.v3-serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
.v3-etiqueta { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: #7E6237; }
.v3-h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 1.02; margin: 16px 0 0; }

/* Menú fijo: se oculta al bajar y reaparece al subir (landing-v3.js) */
.v3-cabecera { position: sticky; top: 0; z-index: 50; background: #F3EFE7; border-bottom: 1px solid #E4DED3; transition: transform .3s ease, box-shadow .3s ease; }
.v3-cabecera.oculta { transform: translateY(-100%); }
.v3-cabecera.flotando { box-shadow: 0 8px 24px -16px rgba(26,23,20,0.35); }
@media (prefers-reduced-motion: reduce) { .v3-cabecera { transition: none; } }

/* Botones */
.v3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit; transition: background-color .2s, border-color .2s; }
.v3-btn-negro { background: #1A1714; color: #FFFFFF; border: 1px solid #1A1714; }
.v3-btn-negro:hover { background: #3A342D; color: #FFFFFF; }
.v3-btn-blanco { background: #FFFFFF; color: #1A1714; border: 1px solid #CFC6B6; font-weight: 500; }
.v3-btn-blanco:hover { background: #F3EFE7; color: #1A1714; }

/* Menú: negrita al pasar o al elegir, sin que se muevan las opciones */
.v3-nav { display: inline-flex; flex-direction: column; align-items: center; color: #5F5850; text-decoration: none; transition: color .15s; }
.v3-nav::after { content: attr(data-texto); font-weight: 600; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.v3-nav:hover, .v3-nav:focus-visible, .v3-nav.activo { font-weight: 600; color: #1A1714; }

/* Destello dorado sobre texto en negro */
.v3-gold { background: linear-gradient(100deg, #1A1714 0%, #1A1714 40%, #8A6A34 45%, #C9A35E 49%, #E2C58F 50%, #C9A35E 51%, #8A6A34 55%, #1A1714 60%, #1A1714 100%); background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: 0.08em; animation: v3-brillo 4s ease-in-out infinite; }
@keyframes v3-brillo { 0% { background-position: 100% 0; } 35% { background-position: 0% 0; } 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .v3-gold { animation: none; background-position: 0% 0; } }

/* Etiquetas translúcidas sobre imágenes */
.v3-chip { position: absolute; font-size: 10.5px; line-height: 1.3; font-weight: 600; color: #1A1714; background: rgba(255,255,255,0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 3px 7px; border-radius: 5px; }
.v3-chip-oscuro { color: #FFFFFF; background: rgba(26,23,20,0.62); }
.v3-chip-grande { font-size: 12px; padding: 6px 10px; border-radius: 6px; }

/* Botón redondo de play / pausa */
.v3-redondo { flex: none; border-radius: 50%; border: 0; background: rgba(255,255,255,0.94); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.3); padding: 0; }
.v3-redondo .icono-pausa { display: none; }
.v3-redondo.reproduciendo .icono-pausa { display: block; }
.v3-redondo.reproduciendo .icono-play { display: none; }

/* La prueba: tres pasos */
.v3-pasos { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px; }
.v3-paso { display: flex; flex-direction: column; min-width: 0; }
.v3-paso-titulo { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: #1A1714; margin-bottom: 14px; min-height: 30px; }
.v3-paso-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #1A1714; color: #F3EFE7; font-family: 'Instrument Serif', Georgia, serif; font-size: 17px; font-weight: 400; letter-spacing: 0; }
.v3-paso-pie { font-size: 13px; color: #5F5850; margin: 12px 0 0; }

/* Comparador antes / después */
.v3-comparador { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #1A1714; box-shadow: 0 30px 60px -30px rgba(26,23,20,0.35); cursor: ew-resize; touch-action: pan-y; user-select: none; }
.v3-comparador img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.v3-comparador .linea { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #FFFFFF; }
.v3-comparador .asa { position: absolute; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0; border: 0; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.25); cursor: grab; }

/* Galería: escena grande, reel vertical a la derecha y dos escenas debajo */
.v3-galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.v3-galeria .g-principal { grid-column: 1 / 3; }
.v3-galeria .g-reel { grid-column: 3; grid-row: 1 / 3; }

/* Cómo funciona: tarjetas de pasos */
.v3-paso-tarjeta { display: flex; gap: 22px; align-items: flex-start; text-align: left; width: 100%; border-radius: 20px; padding: 28px 30px; cursor: pointer; font-family: inherit; background: transparent; border: 1px solid #E4DED3; color: #7A7268; transition: background .2s, box-shadow .2s; }
.v3-paso-tarjeta.activo { background: #FFFFFF; border: 1.5px solid #C9A35E; color: #1A1714; box-shadow: 0 24px 50px -32px rgba(26,23,20,0.4); }
.v3-pantalla { display: none; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.v3-pantalla.activa { display: block; }

/* Para quién: pestañas */
.v3-tab { border-radius: 999px; padding: 12px 22px; font-size: 15px; font-weight: 500; font-family: inherit; cursor: pointer; background: #FFFFFF; color: #1A1714; border: 1px solid #CFC6B6; }
.v3-tab.activo { background: #1A1714; color: #FFFFFF; border-color: #1A1714; }
.v3-perfil { display: none; }
.v3-perfil.activo { display: flex; }

/* Ventanas (vídeo de ejemplo y email antes del pago) */
.v3-modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; background: rgba(26,23,20,0.85); }
.v3-modal.abierto { display: flex; }
.v3-modal-fondo { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; cursor: default; }

@media (max-width: 900px) {
  .v3-paso { flex-basis: 100% !important; }
  .v3-cocina-foto { min-height: 200px !important; }
}
@media (max-width: 760px) {
  .v3-wrap { padding-left: 20px; padding-right: 20px; }
  .v3-hide-sm { display: none !important; }
  .v3-galeria { grid-template-columns: minmax(0, 1fr); }
  .v3-galeria .g-principal, .v3-galeria .g-reel { grid-column: auto; grid-row: auto; }
  .v3-galeria .g-reel { aspect-ratio: 9 / 16; }
  .v3-video-titulo { font-size: 22px !important; }
  .v3-pantalla-marco { height: 520px !important; }
  .v3-tabla { font-size: 14px !important; }
  .v3-tabla th, .v3-tabla td { padding: 14px 12px !important; }
  .v3-tabla td:last-child { font-size: inherit !important; }
  .v3-paso-tarjeta { padding: 22px 20px; gap: 14px; }
}
