/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --oro: #d4af37;
    --blanco: #ffffff;
    --morado-oscuro: #12020a; /* Un tono muy profundo, casi negro */
    --rojo-pasion: #800020; /* Borgoña místico */
    --rosa-mistico: #ff69b4; /* Rosa vibrante para acentos */
    --fuente-principal: 'Cormorant Garamond', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--morado-oscuro);
    color: var(--blanco);
    font-family: var(--fuente-principal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. NAVEGACIÓN (NAVBAR)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    /* Fondo oscuro con ligera transparencia para que se vea la imagen detrás */
    background: rgba(18, 2, 10, 0.85);
    backdrop-filter: blur(8px); /* Efecto de desenfoque */
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.logo {
    color: var(--oro);
    font-size: 1.8rem;
    letter-spacing: 5px;
    font-weight: 400;
    text-transform: uppercase;
}

/* Lógica del Menú Hamburguesa */
.menu-checkbox { display: none; }

.menu-btn {
    display: none; /* Se activa en móvil vía media query */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-btn span {
    width: 28px;
    height: 2px;
    background: var(--oro);
    transition: 0.4s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--blanco);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: 0.3s;
    font-weight: 300;
}

.nav-links a:hover {
    color: var(--oro);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* =========================================
   3. SECCIÓN HERO (INICIO CON IMAGEN)
   ========================================= */
.hero {
    height: 100vh; /* Ocupa toda la altura de la pantalla */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    
    /* PROPIEDADES DE LA IMAGEN DE FONDO:
       1. Definimos un degradado (overlay) para oscurecer la imagen y asegurar la legibilidad del texto.
          Usamos tus colores: Morado Oscuro -> Rojo Pasión -> Rosa Místico con transparencias.
       2. Cargamos la imagen de fondo.
    */
    background: 
        linear-gradient(135deg, rgba(18, 2, 10, 0.8), rgba(128, 0, 32, 0.5), rgba(255, 105, 200, 0.2)), 
        url('img/fondo.png'); 
    
    background-size: cover;      /* La imagen cubre todo el espacio disponible */
    background-position: center; /* La imagen se centra */
    background-attachment: fixed; /* Efecto Parallax sutil (opcional, se ve genial) */
}

.hero-content h1 {
    font-size: clamp(2.5rem, 10vw, 5rem); /* Tamaño fluido para responsive */
    text-transform: uppercase;
    letter-spacing: 15px;
    color: var(--blanco);
    margin-bottom: 20px;
    font-weight: 300;
    /* Un ligero resplandor dorado para resaltar el título místico */
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--oro); /* Leyenda en dorado */
    border-top: 1px solid var(--oro); /* Línea minimalista sobre la leyenda */
    display: inline-block;
    padding-top: 15px;
    font-style: italic;
    opacity: 0.9;
}

/* =========================================
   4. RESPONSIVE MÓVIL (CORREGIDO)
   ========================================= */
@media (max-width: 768px) {
    .menu-btn { display: flex; }

    .nav-links {
        display: none; /* Oculto por defecto */
        flex-direction: column;
        position: fixed;
        top: 75px; /* Altura de la navbar */
        right: 0;
        width: 100%;
        height: calc(100vh - 75px); /* Ocupa el resto de la pantalla */
        background: rgba(18, 2, 10, 0.95); /* Fondo casi opaco */
        padding: 60px 0;
        text-align: center;
        border-top: 1px solid rgba(212, 175, 55, 0.3);
    }

    /* Mostrar menú al marcar el checkbox */
    .menu-checkbox:checked ~ .nav-links {
        display: flex;
    }

    /* Transformar hamburguesa en X al abrir */
    .menu-checkbox:checked ~ .menu-btn span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-checkbox:checked ~ .menu-btn span:nth-child(2) {
        opacity: 0;
    }
    .menu-checkbox:checked ~ .menu-btn span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Ajustar tamaños en móvil */
    .hero-content h1 {
        letter-spacing: 8px;
    }
}
/* =========================================
   5. SECCIÓN HECHIZOS (SPELLS)
   ========================================= */
.spells {
    padding: 100px 8%;
    background-color: var(--morado-oscuro); /* Mantiene la continuidad */
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 2.5rem;
    color: var(--oro);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 60px;
    font-weight: 300;
    position: relative;
}

/* Línea decorativa debajo del título de sección */
.section-subtitle::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: var(--oro);
    margin: 20px auto 0;
}

/* Grid de Hechizos */
.spells-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.spell-card {
    background: rgba(26, 2, 16, 0.5); /* Fondo oscuro translúcido */
    padding: 50px 30px;
    border: 1px solid rgba(212, 175, 55, 0.15); /* Borde dorado muy sutil */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Efecto al pasar el mouse */
.spell-card:hover {
    transform: translateY(-10px);
    border-color: var(--oro);
    box-shadow: 0 10px 30px rgba(128, 0, 32, 0.4); /* Resplandor rojo/borgoña */
    background: linear-gradient(to bottom, rgba(26, 2, 16, 0.8), rgba(128, 0, 32, 0.2));
}

.spell-icon {
    font-size: 2.5rem;
    color: var(--rosa-mistico);
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 5px var(--rosa-mistico));
}

.spell-card h3 {
    color: var(--oro);
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-weight: 400;
}

.spell-card p {
    color: var(--blanco);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.8;
}

.spell-detail {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--rosa-mistico);
    font-weight: 600;
}

/* --- Ajuste para pantallas pequeñas --- */
@media (max-width: 600px) {
    .section-subtitle {
        font-size: 1.8rem;
    }
    
    .spell-card {
        padding: 35px 20px;
    }
}
/* =========================================
   6. SECCIÓN ORÁCULO (NOSOTROS)
   ========================================= */
.oracle {
    padding: 100px 8%;
    background: linear-gradient(to bottom, #2a0416, var(--morado-oscuro));
    overflow: hidden;
}

.oracle-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap; /* Importante para el responsive */
}

/* Estilos de la Imagen */
.oracle-image {
    flex: 1;
    min-width: 320px;
    position: relative;
}

.image-frame {
    border: 1px solid var(--oro);
    padding: 15px;
    position: relative;
    z-index: 1;
}

/* Marco decorativo rosa sutil detrás de la foto */
.image-frame::after {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--rosa-mistico);
    z-index: -1;
    opacity: 0.3;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(30%) contrast(1.1); /* Efecto místico */
}

/* Estilos del Texto */
.oracle-info {
    flex: 1.2;
    min-width: 320px;
}

.eyebrow {
    color: var(--rosa-mistico);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.oracle-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--oro);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 25px;
    font-weight: 300;
}

.oracle-info p {
    color: var(--blanco);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 300;
}

/* Sección de Estadísticas */
.oracle-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 30px;
}

.stat .number {
    display: block;
    font-size: 2.5rem;
    color: var(--oro);
    font-weight: 300;
    margin-bottom: 5px;
}

.stat .label {
    color: var(--rosa-mistico);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* --- Ajuste Móvil --- */
@media (max-width: 900px) {
    .oracle-flex {
        flex-direction: column; /* Apila la imagen sobre el texto */
        gap: 50px;
        text-align: center;
    }

    .oracle-stats {
        justify-content: center;
    }

    .image-frame::after {
        top: -10px;
        left: -10px;
    }
}
/* =========================================
   7. SECCIÓN CONTACTO
   ========================================= */
.contact {
    padding: 100px 8%;
    background-color: var(--morado-oscuro);
    text-align: center;
}

.contact-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--oro);
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 20px;
    font-weight: 300;
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: var(--blanco);
    opacity: 0.8;
    font-style: italic;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.info-item {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    padding: 40px;
    background: rgba(128, 0, 32, 0.1); /* Fondo borgoña muy suave */
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: 0.4s;
}

.info-item:hover {
    border-color: var(--oro);
    background: rgba(128, 0, 32, 0.2);
}

.info-icon {
    font-size: 2rem;
    color: var(--oro);
    margin-bottom: 20px;
}

.info-item h3 {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--rosa-mistico);
    margin-bottom: 10px;
    font-size: 1rem;
}

.info-item p {
    font-size: 1.5rem;
    color: var(--blanco);
    margin-bottom: 10px;
}

.info-item span {
    font-size: 0.8rem;
    color: var(--oro);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Botón de WhatsApp Minimalista */
.btn-whatsapp {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    border: 1px solid var(--oro);
    color: var(--oro);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background: var(--oro);
    color: var(--morado-oscuro);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* =========================================
   8. FOOTER
   ========================================= */
.main-footer {
    padding: 40px 8%;
    background: #0a0106;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.main-footer p {
    font-size: 0.8rem;
    color: var(--blanco);
    opacity: 0.5;
    letter-spacing: 1px;
}

.footer-location {
    margin-top: 10px;
    color: var(--oro) !important;
    opacity: 0.8 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .info-item {
        width: 100%;
    }
}
/* =========================================
   9. SECCIÓN TESTIMONIOS
   ========================================= */
.testimonials {
    padding: 100px 8%;
    background: linear-gradient(to bottom, var(--morado-oscuro), #2a0416);
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 50px 30px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    transition: 0.4s ease;
}

.testimonial-card:hover {
    border-color: var(--rosa-mistico);
    background: rgba(255, 105, 180, 0.05); /* Toque rosa muy leve */
    transform: scale(1.02);
}

.quote-mark {
    font-size: 4rem;
    color: var(--oro);
    font-family: serif;
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--blanco);
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 20px;
}

.author-name {
    display: block;
    color: var(--oro);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.author-location {
    display: block;
    color: var(--rosa-mistico);
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* --- Ajuste Responsive --- */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 40px 20px;
    }
}
/* =========================================
   10. BOTÓN FLOTANTE WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--oro), #b8860b); /* Dorado místico */
    color: var(--morado-oscuro);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    z-index: 2000; /* Por encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-gold 2s infinite;
}

/* Icono dentro del botón */
.whatsapp-icon {
    transform: translateY(2px);
}

/* Tooltip (Pequeño texto que aparece al pasar el mouse) */
.tooltip {
    position: absolute;
    right: 75px;
    background: var(--morado-oscuro);
    color: var(--oro);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    border: 1px solid var(--oro);
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--rosa-mistico);
    background: var(--blanco);
}

/* Animación de Pulso Dorado */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Ajuste para móviles (para que no estorbe tanto) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    .tooltip {
        display: none; /* Escondemos el texto en móvil por espacio */
    }
}
/* =========================================
   11. AVISO LEGAL (MINIMALISTA)
   ========================================= */
.legal-container {
    max-width: 800px;
    margin: 20px auto 0;
    padding: 0 20px;
}

/* Estilo del título que hace clic */
details summary {
    font-size: 0.75rem;
    color: var(--oro);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    list-style: none; /* Quita la flecha por defecto */
    opacity: 0.6;
    transition: 0.3s;
    outline: none;
    user-select: none;
}

details summary:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Quita la flecha en navegadores Chrome/Safari */
details summary::-webkit-details-marker {
    display: none;
}

/* Estilo del texto que aparece al abrir */
.legal-content {
    margin-top: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: justify;
    animation: fadeInLegal 0.5s ease;
}

.legal-content p {
    font-size: 0.7rem;
    line-height: 1.6;
    color: var(--blanco);
    opacity: 0.5;
    margin-bottom: 10px;
}

.legal-content strong {
    color: var(--rosa-mistico);
}

/* Animación de aparición suave */
@keyframes fadeInLegal {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajuste para el footer para que no se vea apretado */
.site-footer {
    padding-bottom: 60px;
}