:root {
    --primary-gold: #FFD700;
    --secondary-gold: #FDB931;
    --text-light: #ffffff;
    --text-dim: #e0e0e0;
    --bg-dark: #1a0b2e;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-heading: 'My Soul', cursive;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #120524 0%, #2E1A47 50%, #8B4513 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

/* Mandala Pattern */
.mandala-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/mandala.jpg');
    background-repeat: repeat;
    background-size: 400px;
    /* Adjust size as needed */
    opacity: 0.15;
    /* "Muy flojita" */
    mix-blend-mode: screen;
    /* Removes black background visually */
    pointer-events: none;
    z-index: -2;
}

/* Animated Background Particles (Optional Polish) */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(46, 26, 71, 0.4) 0%, transparent 50%);
    z-index: -1;
    animation: pulse 10s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: fadeIn 1s ease-out;
    position: relative;
    /* Needed for pseudo-element positioning */
    overflow: hidden;
    /* Ensures pattern stays within rounded corners */
}

/* Mandala on Card (Mobile Fix) */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/mandala.jpg');
    background-repeat: repeat;
    background-size: 300px;
    /* Slightly smaller for the card */
    opacity: 0.1;
    /* Very subtle */
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
    /* Behind the text */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Header */
.title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 400;
    background: linear-gradient(to bottom, var(--primary-gold), var(--secondary-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    /* Increased size for cursive */
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    display: inline-block;
}

/* Image */
.book-container {
    margin: 0 auto 2rem;
    perspective: 1000px;
}

.book-cover {
    width: 220px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.5s ease;
}

.book-cover:hover {
    transform: scale(1.05) rotateY(5deg);
}

/* Content */
.description {
    margin-bottom: 3rem;
    color: var(--primary-gold);
    /* Changed to gold */
    font-size: 1.3rem;
    /* Adjusted for Amarante */
    font-family: var(--font-body);
    /* Explicitly set to body font */
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    /* Added shadow for readability */
}

.description p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.question-text {
    color: var(--primary-gold);
    font-weight: 700;
    display: block;
    /* Makes it behave like a paragraph */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.description strong {
    color: var(--primary-gold);
    font-weight: 700;
}

/* Button */
.btn-download {
    display: inline-block;
    background: linear-gradient(45deg, var(--secondary-gold), var(--primary-gold));
    color: #1a0b2e;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    margin-bottom: 2.5rem;
    font-family: var(--font-body);
    /* Changed to Amarante */
    font-size: 1.4rem;
    /* Adjusted size */
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(45deg, var(--primary-gold), #ffe55c);
}

.btn-download i {
    margin-right: 8px;
}

/* Socials */
.social-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.social-link {
    color: var(--text-light);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-link:hover {
    opacity: 1;
    transform: scale(1.2);
}

.instagram:hover {
    color: #E1306C;
}

.tiktok:hover {
    color: #ff0050;
    text-shadow: 2px 2px 0px #00f2ea;
}

.youtube:hover {
    color: #FF0000;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-card {
        padding: 2rem 1.5rem;
    }

    .title {
        font-size: 3rem;
    }

    .book-cover {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .btn-download {
        width: 100%;
        padding: 1rem;
    }
}