/* -------------------------------------------------------------
   Estilos de Diseño Premium - @ifa.adde.eggun.laye
   Inspiración: Lujo Místico, Ancestral y Refinado
   ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0c0b0a;
    --card-bg: #141210;
    --card-border: rgba(212, 175, 55, 0.12);
    --card-border-hover: rgba(212, 175, 55, 0.35);
    
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #a4821a;
    --gold-gradient: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #a4821a 100%);
    
    --text-main: #f5f2eb;
    --text-muted: #bbb5a9;
    --text-dark: #12100e;
    
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Restablecimientos Básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px 10px;
    position: relative;
    overflow-x: hidden;
}

/* Efectos de Luces Ambientales (Atmósfera Espiritual) */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.65;
}

.glow-top {
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

.glow-bottom-left {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.glow-bottom-right {
    bottom: -5%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
}

/* Contenedor Principal (Centrado y Ajustado para Móviles) */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 10px;
    position: relative;
    z-index: 10;
}

/* Encabezado */
header {
    text-align: center;
    padding: 30px 15px 25px 15px;
    margin-bottom: 25px;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), transparent);
}

.sigil-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
}

.sacred-sigil {
    animation: rotateSlow 80s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-title {
    font-family: var(--font-body);
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

h1 {
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    line-height: 1.25;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

/* Tarjetas de Sección (Estilo Premium) */
.section-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 35px 25px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5),
                inset 0 0 2px rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.section-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65),
                0 0 15px rgba(212, 175, 55, 0.05);
}

.section-title {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.65rem;
    font-weight: 500;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Formularios Elegantes */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-icon {
    color: var(--gold);
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 15px 18px;
    background: #1c1916;
    border: 1px solid #2b2621;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.98rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

input:focus {
    outline: none;
    border-color: var(--gold);
    background: #221e1a;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15),
                inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilo para selector de fecha */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(10deg);
    cursor: pointer;
}

/* Botones Premium */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--text-dark);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover::before {
    left: 150%;
    transition: left 0.8s ease-in-out;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Biblioteca Digital (Libros 3D Estilo Premium) */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.book-card {
    background: #181613;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.book-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-border-hover);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.08), 0 15px 30px rgba(0,0,0,0.4);
}

/* Efecto 3D de lomo y portada de libros */
.book-spine-cover {
    width: 85px;
    height: 125px;
    background: linear-gradient(135deg, #1e1b17 0%, #100f0d 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 3px 8px 8px 3px;
    box-shadow: 5px 8px 15px rgba(0,0,0,0.6);
    margin-bottom: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 12px 6px;
    overflow: hidden;
}

/* Pliegue del lomo del libro */
.book-spine-cover::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(212, 175, 55, 0.35);
    box-shadow: 1px 0 3px rgba(0,0,0,0.5);
}

.book-num {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.book-title-mini {
    font-family: var(--font-display);
    font-size: 0.72rem;
    color: var(--gold-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    line-height: 1.15;
    padding: 0 2px;
}

.book-emblem {
    font-size: 0.85rem;
    color: var(--gold);
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.3));
}

.book-info-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.book-btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.book-btn:hover {
    background: var(--gold-gradient);
    color: var(--text-dark);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* Generador Interactivo de Consejos de Ifá (Premium) */
.consejo-box {
    background: #181512;
    border: 1px dashed var(--gold);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 22px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.05);
    position: relative;
    overflow: hidden;
}

.consejo-texto {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1.5;
    transition: opacity 0.3s ease;
}

.btn-consejo-interactivo {
    background: linear-gradient(135deg, #1c1916 0%, #2b2621 100%) !important;
    color: var(--gold) !important;
    border: 1px solid var(--gold) !important;
    box-shadow: none !important;
}

.btn-consejo-interactivo:hover {
    background: linear-gradient(135deg, #221e1a 0%, #3a332d 100%) !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-2px);
}

/* Testimonios de Clientes */
.testimonials-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-item {
    background: #171512;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    border-left: 3px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.quote-mark {
    position: absolute;
    top: 5px;
    left: 15px;
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.12);
    line-height: 1;
    pointer-events: none;
}

.testimonial-text {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.94rem;
    margin-bottom: 12px;
    line-height: 1.55;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: right;
    letter-spacing: 0.5px;
}

.author-location {
    color: var(--text-muted);
    font-weight: 400;
}

/* Pie de Página y Redes Sociales */
footer {
    text-align: center;
    padding: 25px 15px 35px 15px;
    margin-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #141210;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.15rem;
    transition: var(--transition-smooth);
    border: 1px solid var(--card-border);
}

.social-icon:hover {
    background: var(--gold-gradient);
    color: var(--text-dark);
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.25);
}

.footer-text {
    font-size: 0.8rem;
    color: rgba(187, 181, 169, 0.45);
    letter-spacing: 0.5px;
}

/* MODAL DE SITIO EN CONSTRUCCIÓN (PREMIUM) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 11, 10, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #161412;
    border: 1px solid var(--gold);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    padding: 35px 25px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.65),
                0 0 20px rgba(212, 175, 55, 0.1);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--gold);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-title-icon {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.modal-body {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 25px;
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

/* Animaciones suaves al cargar */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pantallas Pequeñas */
@media (max-width: 480px) {
    body {
        padding: 10px 5px;
    }
    
    h1 {
        font-size: 1.95rem;
    }
    
    .section-card {
        padding: 25px 15px;
        margin-bottom: 20px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .book-card {
        flex-direction: row;
        text-align: left;
        padding: 15px;
        gap: 15px;
        align-items: center;
    }
    
    .book-spine-cover {
        margin-bottom: 0;
        width: 60px;
        height: 85px;
        padding: 6px 3px;
        flex-shrink: 0;
    }
    
    .book-title-mini {
        font-size: 0.55rem;
    }
    
    .book-num {
        font-size: 0.45rem;
    }
    
    .book-emblem {
        font-size: 0.65rem;
    }
    
    .book-info-title {
        min-height: auto;
        font-size: 1.05rem;
        margin-bottom: 0;
        flex-grow: 1;
        justify-content: flex-start;
    }
    
    .book-btn {
        width: auto;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}
