/*
    PALETA DE PIGMENTOS:
    - Negro Carbón: #1a1a1a
    - Gris Volcánico: #333333
    - Ámbar / Naranja Quemado: #e07a5f
    - Blanco Hueso: #f4f1de
    - Tonos Tierra: #81b29a, #6d6875
*/

:root {
    --font-serif: 'Montserrat', sans-serif;
    --font-sans: 'Montserrat', sans-serif;
    --negro-carbon: #1a1a1a;
    --gris-volcanico: #333333;
    --naranja-quemado: #d55a3e;
    --blanco-hueso: #f4f1de;
    --color-agave: #afd3d5;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--negro-carbon);
    color: var(--blanco-hueso);
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 300;
    overflow-x: hidden; /* Runa de Contención */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
}

main {
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0; /* Eliminamos el padding horizontal */
    z-index: 100;
    transition: background-color 0.3s ease;
    box-sizing: border-box; /* Aseguramos el cálculo correcto del ancho */
}

header nav {
    display: flex;
    justify-content: flex-end; /* Alineamos el contenido a la derecha */
    align-items: center;
    padding: 0 5%; /* Añadimos el padding horizontal aquí */
}

.logo-link {
    z-index: 103; /* Asegura que el logo esté sobre el menú móvil */
    margin-right: auto; /* Empuja el logo a la izquierda, dejando el menú a la derecha */
}

.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 2rem;
}

header nav ul li a {
    color: var(--color-agave); /* Cambiado de blanco hueso a color agave */
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 600; /* Aumentado el grosor de la fuente */
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-agave); /* Cambiado de blanco hueso a color agave */
    transition: width 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

/* --- Estilos para el Menú Desplegable --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--blanco-hueso); /* Cambiado de gris volcánico a blanco hueso */
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: var(--negro-carbon); /* Cambiado de blanco hueso a negro carbón */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    text-transform: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.dropdown-content a:hover {
    background-color: var(--gris-volcanico); /* Cambiado de naranja quemado a gris volcánico */
    color: var(--blanco-hueso); /* Cambiado de negro carbón a blanco hueso */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Hero Section --- */
.hero {
    height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--negro-carbon); /* Placeholder for video */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-logo-principal {
    display: block;
    width: 65vw;
    max-width: 700px;
    height: auto;
    margin: 0 auto 2rem auto;
}

.hero-slogan {
    color: var(--blanco-hueso);
    font-family: var(--font-sans);
    font-size: 1.5rem;
    margin-top: -1.5rem; /* Adjust as needed to bring it closer to the logo */
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7); /* Add a subtle shadow for readability */
}

@media (max-width: 768px) {
    .hero-slogan {
        font-size: 1.1rem;
        margin-top: -1rem;
    }
}

.cta-leyenda {
    display: inline-block;
    border: 1px solid var(--naranja-quemado);
    padding: 0.75rem 2rem;
    color: var(--blanco-hueso);
    text-decoration: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.cta-leyenda:hover {
    background-color: var(--naranja-quemado);
    color: var(--negro-carbon);
    box-shadow: 0 0 15px 5px rgba(224, 122, 95, 0.5);
}

/* --- Intro Producto Section --- */
.intro-producto {
    display: flex;
    align-items: center;
    padding: 5rem 10%;
    background: radial-gradient(ellipse at 50% 50%, #4a2a1e 0%, var(--negro-carbon) 70%);
    position: relative;
}

.intro-producto-columna {
    flex: 1;
    padding: 2rem;
}

.intro-producto .intro-producto-columna:first-child {
    flex: 1.5; /* Da más espacio a la columna de la imagen */
}

.intro-titulo {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.intro-texto {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 2rem;
}

.cta-secundario {
    display: inline-block;
    border: 1px solid var(--blanco-hueso);
    padding: 0.75rem 2rem;
    color: var(--blanco-hueso);
    text-decoration: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-secundario:hover {
    background-color: var(--blanco-hueso);
    color: var(--gris-volcanico);
}

/* --- Brasas Danzantes --- */
.brasas-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#leyenda .brasas-background, #proceso-fuego .brasas-background {
    position: fixed; /* Fondo fijo para la leyenda y el proceso */
}

.brasa {
    position: absolute;
    background-color: var(--naranja-quemado);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px 3px rgba(224, 122, 95, 0.7); /* Añadimos un resplandor */
    animation: flotar-brasa 15s linear infinite;
}

@keyframes flotar-brasa {
    0% {
        transform: translateY(110vh) scale(1);
        opacity: 0.8; /* Aumentamos la opacidad inicial */
    }
    50% {
        opacity: 1; /* Aumentamos la opacidad máxima */
    }
    100% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}


/* --- Leyenda Page --- */
#leyenda .leyenda-container {
    width: 100%;
    position: relative; /* Para que esté sobre el fondo de brasas */
    z-index: 1; /* Para que esté sobre el fondo de brasas */
}

.capitulo-leyenda {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: transparent; /* Hacemos el fondo del capítulo transparente */
}

.texto-capitulo {
    max-width: 600px;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    background-color: rgba(0, 0, 0, 0.5); /* Placa para legibilidad */
    border-radius: 10px; /* Bordes suaves para la placa */
    padding: 2rem; /* Relleno interno */
}

.capitulo-leyenda.is-visible .texto-capitulo {
    opacity: 1;
    transform: translateY(0);
}

.texto-capitulo h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.texto-capitulo p {
    font-size: 1.3rem;
    line-height: 1.7;
}

.imagen-capitulo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0; /* Ensure it's behind the text */
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-out;
}

.capitulo-leyenda.is-visible .imagen-capitulo {
    opacity: 1; /* Visible when the chapter is visible */
}

.imagen-capitulo img {
    max-width: 100%;
    max-height: calc(100vh - 100px); /* Evita que la imagen se vaya debajo del header */
    object-fit: contain;
}

#capitulo-final h3 {
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 400;
}



/* --- Producto Page --- */
.producto-principal {
    display: flex;
    padding: 8rem 5% 5rem 5%;
    gap: 4rem;
}

.producto-columna {
    flex: 1;
}

/* --- Altar de Vistas (Galería de Producto) --- */
.altar-de-vistas {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vista-principal {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    height: 70vh; /* Altura principal de la imagen */
}

.vista-principal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.galeria-miniaturas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    height: 10vh; /* Altura de la fila de miniaturas */
}

.miniatura {
    width: auto;
    height: 100%;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.miniatura:hover {
    opacity: 1;
}

.miniatura.active {
    opacity: 1;
    border-color: var(--color-agave);
    box-shadow: 0 0 10px rgba(175, 211, 213, 0.5); /* Ajustar sombra para el nuevo color */
}

.nombre-producto {
    font-size: 4rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.subtitulo-producto {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--color-agave);
}

/* --- Estilos para el Tríptico de Conocimiento (Pestañas) --- */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--gris-volcanico);
    margin-bottom: 2rem;
}

.tab-link {
    background: none;
    border: none;
    color: var(--blanco-hueso);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tab-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-agave);
    transition: width 0.3s ease;
}

.tab-link.active {
    opacity: 1;
}

.tab-link.active::after {
    width: 100%;
}

.tab-content {
    display: none;
    animation: aparecer-tab 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

.tab-content ul {
    list-style: none;
    padding: 0;
}

.tab-content li {
    margin-bottom: 1.5rem;
}

@keyframes aparecer-tab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notas-de-cata ul, .especificaciones-producto ul {
    list-style: none;
    padding: 0;
}

.notas-de-cata h3, .especificaciones-producto h3 {
    font-size: 2rem;
    border-bottom: 1px solid var(--color-agave);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.nota {
    margin-bottom: 1.5rem;
}

.nota-titulo {
    font-weight: 700;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.nota-descripcion {
    display: block;
    /* El antiguo encantamiento de ocultamiento ha sido purgado. */
}

/* --- Ritual de la Revelación (Animación para Notas de Cata) --- */
@keyframes revelar-nota {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content.active #notas .nota {
    opacity: 0; /* Inicia invisible */
    animation: revelar-nota 0.6s ease-out forwards;
}

.tab-content.active #notas .nota:nth-child(1) {
    animation-delay: 0.2s;
}

.tab-content.active #notas .nota:nth-child(2) {
    animation-delay: 0.4s;
}

.tab-content.active #notas .nota:nth-child(3) {
    animation-delay: 0.6s;
}

.especificaciones-producto li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cta-comprar {
    display: inline-block;
    background-color: var(--naranja-quemado);
    color: var(--negro-carbon);
    padding: 1rem 3rem;
    text-decoration: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-comprar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px 5px rgba(224, 122, 95, 0.4);
}

/* --- Proceso Page --- */
.proceso-titulo-container {
    text-align: center;
    padding: 8rem 0 0 0; /* Espacio inferior eliminado */
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: transparent; /* La línea no debe ser visible */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.proceso-paso {
    padding: 0 40px; /* Espacio superior eliminado */
    position: relative;
    background-color: inherit;
    width: 90%;
    max-width: 700px; /* Ancho máximo para los altares */
    margin: 0 auto 0 auto; /* Margen inferior eliminado */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    box-sizing: border-box; /* Ritual de Contención */
    text-align: center;
}

.proceso-paso.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.proceso-paso:nth-child(odd),
.proceso-paso:nth-child(even) {
    left: auto;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.proceso-paso::after {
    display: none; /* El sello circular ha sido desvanecido. */
}

.proceso-paso:nth-child(even)::after {
    left: 50%;
}

.proceso-paso-contenido {
    display: block; /* Unificado a un solo bloque vertical */
    background-color: rgba(26, 26, 26, 0.7); /* Runa de Claridad */
    border-radius: 6px;
    padding: 2rem;
}

/* La dualidad ha sido unificada. El orden reverso ya no es necesario. */

.proceso-visual, .proceso-texto {
    width: 100%;
}

.proceso-texto {
    position: relative;
    padding-top: 1rem; /* Espacio entre imagen y texto */
}

.paso-numero {
    font-size: 3rem;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-agave);
    opacity: 0.3;
    position: absolute;
    top: 0rem;
    right: 1rem;
}

.proceso-paso:nth-child(even) .paso-numero {
    right: auto;
    left: 1rem;
}

.proceso-imagen {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 1rem;
    border-radius: 6px;
}




/* --- Footer --- */
footer {
    padding: 3rem 5%; /* Aumentamos el padding para dar más espacio */
    background-color: var(--gris-volcanico);
}

.footer-legal-links {
    margin: 1rem 0;
}

.footer-legal-links a {
    color: var(--blanco-hueso);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-legal-links a:hover {
    opacity: 1;
}

.footer-legal-links span {
    margin: 0 1rem;
    opacity: 0.5;
}
.footer-content {
    text-align: center;
}

.footer-social-links {
    margin-bottom: 2rem; /* Espacio entre los iconos y el texto */
    display: flex;
    justify-content: center;
    gap: 2rem; /* Espacio entre iconos */
}

.footer-social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-social-links a:hover {
    transform: scale(1.2); /* Efecto de crecimiento al pasar el cursor */
}

.footer-social-links svg {
    width: 28px;
    height: 28px;
    fill: var(--blanco-hueso);
    transition: fill 0.3s ease;
}

/* Colores específicos al pasar el cursor */
.footer-social-links a[aria-label="Instagram"]:hover svg {
    fill: #E1306C;
}
.footer-social-links a[aria-label="Facebook"]:hover svg {
    fill: #1877F2;
}
.footer-social-links a[aria-label="WhatsApp"]:hover svg {
    fill: #25D366;
}
.footer-social-links a[aria-label="Teléfono"]:hover svg {
    fill: var(--color-agave);
}

/* --- Estilos para el Modal de Contacto --- */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-overlay.is-visible {
    display: flex; /* Se muestra con flex para centrar */
}

.modal-content {
    background-color: var(--gris-volcanico);
    color: var(--blanco-hueso);
    margin: auto;
    padding: 3rem;
    border: 1px solid var(--color-agave);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    animation: aparecer-modal 0.5s ease-out;
}

.modal-content h3 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--color-agave);
}

.modal-content p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.modal-close {
    color: var(--blanco-hueso);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--naranja-quemado);
    text-decoration: none;
}

@keyframes aparecer-modal {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* --- Runas de Adaptabilidad (Estilos Responsivos) --- */

/* --- Para Tabletas y Dispositivos Medianos (hasta 1024px) --- */
@media (max-width: 1024px) {
    .hero-logo-principal {
        width: 80vw;
    }

    .intro-producto {
        padding: 4rem 5%;
    }

    .producto-principal {
        flex-direction: column;
        padding: 6rem 5% 4rem 5%;
    }

    .producto-columna {
        width: 100%; /* Runa de Contención para las columnas del producto */
    }

    .galeria-producto .imagen-principal-placeholder {
        height: 60vh;
    }

    .nombre-producto {
        font-size: 3rem;
    }

    .texto-capitulo h2 {
        font-size: 3rem;
    }

    .texto-capitulo p {
        font-size: 1.2rem;
    }
}

/* --- Para Celulares (hasta 768px) --- */
@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    .logo-img {
        height: 40px;
    }

    header nav ul {
        display: none; /* Ocultamos el menú de escritorio */
    }

    .hero-logo-principal {
        width: 60vw; /* Reducimos el ancho para que sea más pequeño en móviles */
        max-width: 300px; /* Ajustamos también el max-width */
    }

    .hero-slogan {
        font-size: 1.1rem;
        /* margin-top: -1rem; */ /* Eliminamos el margen negativo */
    }

    .intro-producto {
        flex-direction: column;
        padding: 3rem 5%;
    }

    .intro-producto-columna {
        padding: 1rem 0;
    }

    .intro-titulo {
        font-size: 2.5rem;
    }

    .capitulo-leyenda {
        height: auto;
        min-height: 0; /* El mandato de altura ha sido anulado */
        padding: 6rem 0; /* Se otorga un respiro medido */
    }

    .texto-capitulo h2 {
        font-size: 2.2rem;
    }

    .texto-capitulo p {
        font-size: 1.1rem;
    }

    #capitulo-final h3 {
        font-size: 1.8rem;
    }

    .nombre-producto {
        font-size: 2.5rem;
    }

    .subtitulo-producto {
        font-size: 1.2rem;
    }

    .tabs {
        flex-wrap: wrap; /* Runa de Envoltura para las pestañas */
    }

    .notas-de-cata h3, .especificaciones-producto h3 {
        font-size: 1.8rem;
    }

            /* La adaptación de la timeline ahora es manejada por el diseño de altares unificados. */
            /* Las antiguas runas de adaptación han sido purgadas. */
    .modal-contenido {
        width: 90%;
        margin: 20% auto;
    }
}

/* --- Estilos para el Menú Hamburguesa --- */
.menu-toggle {
    display: none; /* Oculto por defecto */
    position: relative;
    z-index: 102;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--blanco-hueso);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2), .menu-toggle span:nth-child(3) { top: 10px; }
.menu-toggle span:nth-child(4) { top: 20px; }

.menu-toggle.open span:nth-child(1), .menu-toggle.open span:nth-child(4) {
    top: 10px;
    width: 0%;
    left: 50%;
}
.menu-toggle.open span:nth-child(2) { transform: rotate(45deg); }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); }

.nav-mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.98);
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-mobile.open {
    opacity: 1;
    visibility: visible;
}

.nav-mobile ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.nav-mobile ul li {
    margin: 2rem 0;
}

.nav-mobile ul li a {
    color: var(--color-agave);
    text-decoration: none;
    font-size: 2rem;
    font-family: var(--font-serif);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Mostramos el botón en móviles */
    }
}

/* Runa de destierro para el menú móvil en PC */

@media (min-width: 769px) {
    .menu-toggle,
    .nav-mobile {
        display: none !important;
    }
}

/* --- Estilos para el Guardián del Umbral (Verificación de Edad) --- */
#guardian-umbral .modal-content {
    max-width: 600px;
    text-align: center;
}

.guardian-logo {
    width: 80%;
    max-width: 400px;
    margin-bottom: 2rem;
}

#guardian-umbral h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-agave);
}

#guardian-umbral p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.guardian-botones {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-guardian {
    display: inline-block;
    border: 1px solid var(--blanco-hueso); /* Cambiado de naranja quemado a blanco hueso */
    padding: 0.75rem 1.5rem;
    color: var(--blanco-hueso); /* Color inicial del texto */
    background-color: transparent; /* Fondo transparente */
    text-decoration: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.cta-guardian:hover {
    background-color: var(--blanco-hueso); /* Fondo blanco al pasar el cursor */
    color: var(--gris-volcanico); /* Texto gris volcánico al pasar el cursor */
    box-shadow: 0 0 15px 5px rgba(244, 241, 222, 0.5); /* Sombra ajustada a blanco */
}

.cta-secundario-guardian {
    background-color: transparent;
    color: var(--blanco-hueso);
    border-color: var(--blanco-hueso);
}

.cta-secundario-guardian:hover {
    background-color: var(--blanco-hueso);
    color: var(--gris-volcanico); /* Cambiado de negro carbón a gris volcánico */
    box-shadow: none;
}

/* --- Santuario de Cócteles --- */
.cocteles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
    position: relative;
    z-index: 1;
}

.coctel {
    display: flex;
    gap: 3rem;
    background-color: var(--gris-volcanico);
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 4rem;
}

.coctel-imagen {
    flex: 1;
    max-width: 400px;
}

.coctel-imagen img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 2px solid var(--color-agave);
}

.coctel-info {
    flex: 2;
}

.coctel-info h2 {
    font-size: 3rem;
    color: var(--color-agave);
    margin-top: 0;
    margin-bottom: 1rem;
}

.coctel-descripcion {
    font-style: italic;
    margin-bottom: 2rem;
}

.coctel-info h3 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--color-agave);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.coctel-info ul, .coctel-info ol {
    padding-left: 20px;
}

.coctel-info li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .coctel {
        flex-direction: column;
        padding: 2rem;
    }

    .coctel-imagen {
        max-width: 100%;
    }

    .coctel-info h2 {
        font-size: 2.5rem;
    }
}

/* --- Estilos para Páginas Legales --- */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10rem 5% 5rem 5%;
}

.legal-container h1 {
    font-size: 2.5rem;
    color: var(--color-agave);
    text-align: center;
    margin-bottom: 3rem;
}

.legal-container h2 {
    font-size: 1.5rem;
    color: var(--color-agave);
    border-bottom: 1px solid var(--gris-volcanico);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.legal-container p, .legal-container li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--blanco-hueso);
    opacity: 0.9;
}

.legal-container ul {
    padding-left: 25px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.legal-container strong {
    font-weight: 700;
}

.placeholder-text {
    color: #E0A05F; /* Un tono de naranja más claro para llamar la atención */
    background-color: rgba(40, 30, 20, 0.5);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-style: italic;
}

@media (max-width: 768px) {
    .legal-container h1 {
        font-size: 2rem;
    }
    .legal-container h2 {
        font-size: 1.3rem;
    }
}

/* --- Altar de los Cuatro Espíritus --- */
.altar-container {
    padding: 5rem 0;
    background: radial-gradient(ellipse at 50% 50%, #4a2a1e 0%, var(--negro-carbon) 70%);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.altar-titulo {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.altar-espiritus {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0 5%;
    margin-bottom: 3rem;
    height: 50vh;
}

.espiritu-botella {
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
    filter: brightness(0.5);
    transform: scale(0.8);
}

.espiritu-botella.active {
    filter: brightness(1);
    transform: scale(1.1);
    z-index: 10;
}

.espiritu-botella:not(.active):hover {
    filter: brightness(0.8);
    transform: scale(0.85);
}

.espiritu-botella img {
    max-height: 45vh;
    width: auto;
    display: block;
    -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(70%, transparent), to(rgba(250, 250, 250, 0.1)));
}

.altar-info {
    position: relative;
    z-index: 1;
}

.espiritu-nombre {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    transition: opacity 0.5s ease;
}

.espiritu-subtitulo {
    font-size: 1.2rem;
    color: var(--color-agave);
    margin: 0.5rem 0 2rem 0;
    min-height: 2.4rem; /* Reserve space to prevent layout shift */
    transition: opacity 0.5s ease;
}

/* Responsive styles for the Altar */
@media (max-width: 900px) {
    .altar-espiritus {
        height: 40vh;
        gap: 0.5rem;
    }
    .espiritu-botella img {
        max-height: 38vh;
    }
    .altar-titulo {
        font-size: 2rem;
    }
    .espiritu-nombre {
        font-size: 1.5rem;
    }
    .espiritu-subtitulo {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .altar-espiritus {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 10%;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .altar-espiritus::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .espiritu-botella {
        flex-shrink: 0;
    }
}

/* --- Estilos para Páginas Genéricas --- */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10rem 5% 5rem 5%;
    text-align: center;
}

.page-container h1 {
    font-size: 2.5rem;
    color: var(--color-agave);
    margin-bottom: 3rem;
}

.page-container h2 {
    font-size: 1.8rem;
    color: var(--blanco-hueso);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.page-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--blanco-hueso);
    opacity: 0.9;
}

/* --- Estilos para Canales de Contacto --- */
.canales-contacto {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.canal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.canal-item svg {
    width: 28px;
    height: 28px;
    fill: var(--color-agave);
}

.canal-item a {
    color: var(--blanco-hueso);
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
}

.canal-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-agave);
    transition: width 0.3s ease;
}

.canal-item a:hover::after {
    width: 100%;
}
