/* ==================== BASE STYLES ==================== */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 50%, #dbeafe 100%);
    padding-top: 80px;
    min-height: 100vh;
    color: #1f2937;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
}

/* ==================== THEME: INFANTIL (PLAYFUL/KIDS) ==================== */
body.theme-infantil {
    font-family: 'Nunito', sans-serif;
    background-color: #f0f9ff;
    background-image: radial-gradient(#bae6fd 20%, transparent 20%),
        radial-gradient(#f0abfc 20%, transparent 20%);
    background-position: 0 0, 50px 50px;
    background-size: 100px 100px;
}

body.theme-infantil h1,
body.theme-infantil h2,
body.theme-infantil h3,
body.theme-infantil h4,
body.theme-infantil h5 {
    font-family: 'Fredoka One', cursive;
    color: #0ea5e9;
    letter-spacing: 1px;
}

body.theme-infantil .hero-section {
    background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: none !important;
    padding-bottom: 150px !important;
    mask-image: none !important;
    position: relative;
}

/* Cloud separator */
body.theme-infantil .hero-section::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 80px;
    /* Adjusted from original override */
    background-color: #f0f9ff;
    background-image:
        radial-gradient(circle at 10px 10px, transparent 10px, #f0f9ff 10px, #f0f9ff 20px, transparent 20px),
        radial-gradient(circle at 50% 50%, #f0f9ff 20px, transparent 20px);
    background-size: 50px 50px;
    background-repeat: repeat-x;
    clip-path: ellipse(150% 100% at 50% 100%);
    bottom: 0;
}

body.theme-infantil .hero-title {
    color: #fff !important;
    text-shadow: 4px 4px 0px #0284c7;
    transform: rotate(-2deg);
}

body.theme-infantil .hero-badge {
    background: #fbbf24 !important;
    color: #78350f !important;
    border: 4px solid #fff !important;
    border-radius: 20px !important;
    font-family: 'Fredoka One', cursive;
    transform: rotate(3deg);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
}

body.theme-infantil .hero-content p {
    color: #e0f2fe !important;
    font-weight: 700;
    font-size: 1.3rem;
}

body.theme-infantil .hero-visual {
    animation: bounce 3s infinite ease-in-out !important;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

body.theme-infantil .blob-shape {
    background: #fcd34d !important;
    border-radius: 50% !important;
    border: 10px solid #fff;
    opacity: 0.9 !important;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.1);
}

body.theme-infantil .modern-card {
    background: #fff !important;
    border-radius: 25px !important;
    border: none !important;
    box-shadow: 0 10px 0 #cbd5e1 !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

body.theme-infantil .modern-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 15px 0 #94a3b8 !important;
}

/* Colorful cards using nth-child */
body.theme-infantil .col-md-6:nth-child(1n) .modern-card {
    border-top: 10px solid #f472b6 !important;
}

body.theme-infantil .col-md-6:nth-child(2n) .modern-card {
    border-top: 10px solid #fbbf24 !important;
}

body.theme-infantil .col-md-6:nth-child(3n) .modern-card {
    border-top: 10px solid #4ade80 !important;
}

body.theme-infantil .col-md-6:nth-child(4n) .modern-card {
    border-top: 10px solid #60a5fa !important;
}

body.theme-infantil .card-icon-wrapper {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border-radius: 50% !important;
    border: 4px solid #fff;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
    transform: rotate(-10deg) !important;
}

body.theme-infantil .badge-age {
    background: #e0e7ff !important;
    color: #4338ca !important;
    font-family: 'Fredoka One', cursive;
    border-radius: 15px !important;
    border: 2px solid #c7d2fe;
}

body.theme-infantil .btn {
    border-radius: 20px !important;
    font-family: 'Fredoka One', cursive !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.1s;
}

body.theme-infantil .btn:active {
    transform: translateY(4px);
    box-shadow: none !important;
}

body.theme-infantil .btn-light {
    background: #fff !important;
    color: #0ea5e9 !important;
    box-shadow: 0 5px 0 #bae6fd !important;
    border: 2px solid #bae6fd !important;
}

body.theme-infantil .btn-outline-light {
    background: #a855f7 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 5px 0 #7e22ce !important;
}

body.theme-infantil .section-title {
    color: #f472b6 !important;
    text-align: center;
    font-size: 3rem;
    text-shadow: 3px 3px 0 #fbcfe8;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

body.theme-infantil .section-title::after {
    content: '★';
    background: none !important;
    position: absolute;
    right: -40px;
    top: -10px;
    color: #fbbf24;
    font-size: 2rem;
    animation: spin 3s infinite linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

body.theme-infantil .info-card {
    background: #fff !important;
    border: 4px dashed #fbbf24;
    border-radius: 30px !important;
    box-shadow: 0 10px 0 #fcd34d !important;
}

body.theme-infantil .info-card h3 {
    color: #f59e0b !important;
}

body.theme-infantil .gallery-item {
    border-radius: 20px !important;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(2deg);
    transition: transform 0.3s;
}

body.theme-infantil .gallery-item:hover {
    transform: rotate(0deg) scale(1.1);
    z-index: 10;
}

body.theme-infantil .gallery-item:nth-child(even) {
    transform: rotate(-2deg);
}

body.theme-infantil .school-card {
    background: #fff !important;
    border-radius: 20px !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 5px 0 #cbd5e1 !important;
}

body.theme-infantil .school-card:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 8px 0 #38bdf8 !important;
    transform: translateY(-5px);
}

/* INFANTIL: Theme Switcher */
.theme-switcher-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 4px solid #fff;
    display: flex;
    gap: 10px;
    animation: bounceInUp 1s;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #fff;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.theme-btn:hover {
    transform: scale(1.2) rotate(10deg);
}

.theme-btn.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px #333;
}

/* INFANTIL: Games Section */
.game-card {
    background-color: #fff;
    border-radius: 20px;
    border: 4px solid transparent;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 0 rgba(0, 0, 0, 0.1);
}

.game-card-img {
    height: 150px;
    background-color: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* INFANTIL: Carousel Custom */
.kid-carousel .carousel-item {
    border-radius: 30px;
    border: 8px solid #fff;
    overflow: hidden;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.1);
}

.kid-carousel img {
    height: 400px;
    object-fit: cover;
}

.kid-carousel .carousel-caption {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    color: #333;
    bottom: 20px;
    padding: 10px 20px;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
}

/* INFANTIL: Game Board Styles */
#game-board-memory {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.memory-card {
    aspect-ratio: 1;
    background: #38bdf8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
}

.memory-card.flipped {
    background: #fff;
    transform: rotateY(180deg);
}

.memory-card .front {
    display: none;
}

.memory-card.flipped .front {
    display: block;
    transform: rotateY(180deg);
}

.memory-card .back {
    display: block;
    color: #fff;
}

.memory-card.flipped .back {
    display: none;
}

#puzzle-container {
    width: 320px;
    height: 320px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    background: #333;
    border: 5px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.puzzle-piece {
    background-size: 320px 320px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #ddd;
}

.puzzle-piece:hover {
    opacity: 0.8;
}

#canvas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.color-palette {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    border-color: #333;
    transform: scale(1.2);
    box-shadow: 0 0 0 2px #fbbf24;
}

canvas {
    background: #fff;
    border: 3px solid #38bdf8;
    border-radius: 10px;
    cursor: crosshair;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    #game-board-memory {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
        max-width: 100%;
    }

    .memory-card {
        height: auto;
        aspect-ratio: 1;
        font-size: 1.5rem;
    }

    /* Safer Puzzle Resize for Mobile */
    #puzzle-container {
        transform: scale(0.85);
        /* Slightly smaller default scale for mobile */
        transform-origin: center;
        margin: 10px auto;
        max-width: 100vw;
        /* Ensure it doesn't overflow */
    }

    @media (max-width: 380px) {
        #puzzle-container {
            transform: scale(0.65);
            /* More aggressive scaling for very small screens */
        }
    }

    .kid-carousel img {
        height: 250px;
        object-fit: cover;
    }

    .kid-carousel .carousel-caption {
        padding: 5px 10px;
        bottom: 10px;
    }

    .kid-carousel .carousel-caption h5 {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .kid-carousel .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 0;
        display: none;
    }

    body.theme-infantil .section-title {
        font-size: 2rem !important;
        margin-bottom: 30px;
        width: 90%;
        /* prevent overflow */
        left: 50%;
        transform: translateX(-50%);
    }

    /* Hide the spinning star on mobile to prevent overflow */
    body.theme-infantil .section-title::after {
        display: none;
    }

    .game-card-img {
        height: 120px;
        font-size: 3rem;
    }

    .theme-switcher-container {
        bottom: 10px;
        right: 10px;
        padding: 8px;
        gap: 5px;
        transform: scale(0.8);
        transform-origin: bottom right;
    }

    .theme-btn {
        width: 30px;
        height: 30px;
    }

    body.theme-infantil .modern-card {
        margin-bottom: 20px;
    }

    body.theme-infantil .hero-title {
        font-size: 2.2rem !important;
        word-wrap: break-word;
        /* Ensure long words break */
    }

    body.theme-infantil .hero-badge {
        margin-top: 10px;
        font-size: 0.8rem !important;
        display: inline-block;
    }

    /* Fix Hero Overflow */
    body.theme-infantil .hero-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden;
        /* Crucial for preventing horizontal scroll */
        padding-top: 100px !important;
        height: auto !important;
        min-height: auto !important;
    }

    body.theme-infantil .hero-content {
        text-align: center;
        padding: 0 10px;
    }
}

/* ==================== THEME: FEMENIL (ELEGANT/DELICATE) ==================== */
body.theme-femenil {
    font-family: 'Lato', sans-serif;
    background: #fffafa;
    /* Snow white / very light cream */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a373' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

body.theme-femenil h1,
body.theme-femenil h2,
body.theme-femenil h3,
body.theme-femenil h4 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

body.theme-femenil .hero-section {
    background: linear-gradient(135deg, #fff0f5 0%, #fff 100%) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 70vh !important;
}

body.theme-femenil .hero-content {
    color: #5d4037 !important;
    /* Elegant warm brown text instead of white */
    text-align: center;
}

body.theme-femenil .hero-content p {
    color: #8d6e63 !important;
}

body.theme-femenil .hero-badge {
    background: transparent !important;
    border: 1px solid var(--dept-primary) !important;
    color: var(--dept-primary) !important;
    font-family: 'Lato', sans-serif;
    letter-spacing: 3px;
    font-size: 0.75rem;
    padding: 8px 25px;
    margin-bottom: 20px;
}

body.theme-femenil .hero-title {
    color: var(--dept-primary);
    font-style: italic;
    font-weight: 700;
    text-shadow: none !important;
    animation: fadeInDown 1.5s ease !important;
}

body.theme-femenil .btn-light {
    background: #fff !important;
    border: 1px solid var(--dept-primary) !important;
    color: var(--dept-primary) !important;
    box-shadow: none !important;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.5s ease;
}

body.theme-femenil .btn-light:hover {
    background: var(--dept-primary) !important;
    color: #fff !important;
}

body.theme-femenil .btn-outline-light {
    border: 1px solid #d7ccc8 !important;
    color: #8d6e63 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

body.theme-femenil .btn-outline-light:hover {
    background: #d7ccc8 !important;
    color: #fff !important;
}

body.theme-femenil .hero-visual {
    display: none !important;
    /* Hide standard blob visual */
}

/* Instead of hiding, let's make it a centered layout specifically for Femenil */
body.theme-femenil .hero-section .container .row {
    justify-content: center;
}

body.theme-femenil .hero-section .container .col-lg-6.hero-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

body.theme-femenil .hero-section .container .d-flex {
    justify-content: center !important;
}

/* Decorative Element for Hero */
body.theme-femenil .hero-section::before {
    content: '❀';
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 300px;
    color: var(--dept-primary);
    opacity: 0.03;
    font-family: 'Great Vibes', cursive;
}

body.theme-femenil .info-card {
    background: #fff !important;
    box-shadow: 0 10px 40px rgba(116, 29, 45, 0.05) !important;
    border: 1px solid #fce4ec;
    margin-top: -50px !important;
}

body.theme-femenil .info-card h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--dept-primary);
}

body.theme-femenil .section-title {
    color: var(--dept-primary) !important;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

body.theme-femenil .section-title::after {
    background: var(--dept-secondary) !important;
    height: 2px !important;
    width: 60px !important;
}

body.theme-femenil .modern-card {
    background: #fff !important;
    border: 1px solid #f8bbd0 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    transition: all 0.5s ease;
}

body.theme-femenil .modern-card:hover {
    border-color: var(--dept-primary) !important;
    box-shadow: 0 15px 30px rgba(116, 29, 45, 0.08) !important;
    transform: translateY(-5px);
}

body.theme-femenil .modern-card::before {
    content: none !important;
}

/* Remove top color bar */

body.theme-femenil .card-icon-wrapper {
    background: transparent !important;
    color: var(--dept-primary) !important;
    box-shadow: none !important;
    border: 2px solid var(--dept-secondary);
    border-radius: 50% !important;
    transform: none !important;
}

body.theme-femenil .badge-age {
    background: #fce4ec !important;
    color: var(--dept-primary) !important;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

body.theme-femenil .school-card {
    background: #fff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 4px !important;
}

body.theme-femenil .school-card:hover {
    border-color: var(--dept-primary) !important;
    background: #fffbfc !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03) !important;
}

body.theme-femenil .btn-descargar {
    background: #fff !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold-dark) !important;
}

body.theme-femenil .btn-descargar:hover {
    background: var(--gold) !important;
    color: #fff !important;
}

/* ==================== THEME: JUVENIL (STREET/URBAN) ==================== */
body.theme-juvenil {
    font-family: 'Urbanist', sans-serif;
    background: #121212;
    /* Dark background */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23333333' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: #e0e0e0;
}

body.theme-juvenil h1,
body.theme-juvenil h2,
body.theme-juvenil h3 {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

body.theme-juvenil .hero-section {
    background: url('/iglesia/vistas/Imagenes/urban-bg.jpg') center/cover !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
    border-radius: 0 !important;
    mask-image: none !important;
    border-bottom: 5px solid var(--dept-primary);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

body.theme-juvenil .hero-title {
    font-family: 'Permanent Marker', cursive;
    color: #fff;
    text-shadow: 4px 4px 0px var(--dept-primary);
    transform: rotate(-2deg);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body.theme-juvenil .hero-badge {
    background: var(--gold);
    color: #000;
    border: none;
    font-family: 'Anton', sans-serif;
    transform: skew(-10deg);
    box-shadow: 5px 5px 0px #fff;
}

body.theme-juvenil .blob-shape {
    border-radius: 0 !important;
    background: var(--dept-primary);
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    animation: none !important;
    box-shadow: 10px 10px 0px var(--dept-accent);
}

body.theme-juvenil .hero-icon-3d {
    filter: drop-shadow(5px 5px 0px var(--dept-primary));
}

body.theme-juvenil .section-title {
    color: #fff !important;
    font-family: 'Permanent Marker', cursive;
    text-shadow: 2px 2px 0px var(--dept-primary);
    word-wrap: break-word;
}

body.theme-juvenil .modern-card {
    background: #1e1e1e !important;
    border: 2px solid #333 !important;
    border-radius: 0 !important;
    box-shadow: 8px 8px 0px var(--dept-primary) !important;
    transform: rotate(0deg) !important;
    padding: 30px 20px;
    position: relative;
}

body.theme-juvenil .modern-card:hover {
    transform: translate(-5px, -5px) !important;
    box-shadow: 12px 12px 0px var(--gold) !important;
}

body.theme-juvenil .modern-card h4 {
    color: #fff !important;
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
}

body.theme-juvenil .modern-card p {
    color: #aaa !important;
}

body.theme-juvenil .modern-card .text-muted {
    color: #ccc !important;
}

body.theme-juvenil .badge-age {
    background: var(--dept-primary) !important;
    color: #000 !important;
    font-family: 'Anton', sans-serif;
    border-radius: 0 !important;
}

body.theme-juvenil .school-card {
    background: #1e1e1e !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 0 !important;
    box-shadow: 5px 5px 0px #333;
}

body.theme-juvenil .school-card:hover {
    border-color: var(--gold) !important;
    box-shadow: 8px 8px 0px var(--gold) !important;
}

body.theme-juvenil .gallery-item {
    border-radius: 0 !important;
    border: 2px solid #000;
}

body.theme-juvenil .gallery-overlay {
    background: rgba(0, 0, 0, 0.85) !important;
}

body.theme-juvenil .info-card {
    background: #000 !important;
    border: 2px solid var(--gold);
    border-radius: 0 !important;
    box-shadow: 10px 10px 0px var(--dept-primary);
    padding: 30px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    text-align: center;
}

body.theme-juvenil .info-card p {
    color: #ccc !important;
}

body.theme-juvenil .btn {
    border-radius: 0 !important;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

body.theme-juvenil .btn-light {
    background: var(--gold);
    color: #000;
    box-shadow: 4px 4px 0px #fff;
}

/* JUVENIL: Countdown & Social */
body.theme-juvenil .countdown-box {
    background: #000;
    border: 2px solid var(--gold);
    padding: 20px;
    display: inline-block;
    margin: 0 10px;
    min-width: 100px;
    box-shadow: 5px 5px 0 var(--dept-primary);
}

body.theme-juvenil .countdown-number {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    color: #fff;
    line-height: 1;
}

body.theme-juvenil .countdown-label {
    font-family: 'Urbanist', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 2px;
}

body.theme-juvenil .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    background: #111;
    color: #fff;
    border: 2px solid #333;
    transition: all 0.2s;
    text-decoration: none;
}

body.theme-juvenil .social-btn:hover {
    background: var(--gold);
    color: #000;
    transform: translate(-5px, -5px);
    box-shadow: 5px 5px 0 #fff;
}

@media (max-width: 768px) {
    body.theme-juvenil .hero-title {
        font-size: 2.8rem;
        transform: rotate(-1deg);
    }

    body.theme-juvenil .hero-icon-3d {
        font-size: 5rem;
        margin-top: 20px;
    }

    body.theme-juvenil .hero-section {
        padding: 60px 5% 40px !important;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
        overflow-x: hidden;
    }

    /* Countdown adjustments */
    body.theme-juvenil #countdown-timer {
        gap: 10px;
    }

    body.theme-juvenil .countdown-box {
        min-width: 65px;
        padding: 10px 5px;
        margin: 5px !important;
    }

    body.theme-juvenil .countdown-number {
        font-size: 1.8rem;
    }

    body.theme-juvenil .countdown-label {
        font-size: 0.7rem;
    }

    /* Social Buttons */
    body.theme-juvenil .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    body.theme-juvenil .section-title {
        font-size: 2.5rem !important;
    }

    body.theme-juvenil .modern-card {
        margin-bottom: 20px;
        border-width: 1px !important;
    }

    body.theme-juvenil .modern-card:hover {
        transform: translate(-2px, -2px) !important;
        box-shadow: 6px 6px 0px var(--gold) !important;
    }
}

/* ==================== DEFAULT MODERN STYLES ==================== */
body:not(.theme-femenil):not(.theme-juvenil) .hero-section {
    position: relative;
    padding: 80px 5%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dept-primary) 0%, var(--dept-secondary) 100%);
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    margin-bottom: 80px;
}

body:not(.theme-femenil):not(.theme-juvenil) .hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

body:not(.theme-femenil):not(.theme-juvenil) .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInDown 1s ease;
}

body:not(.theme-femenil):not(.theme-juvenil) .hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideInLeft 1s ease 0.2s both;
}

body:not(.theme-femenil):not(.theme-juvenil) .blob-shape {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--gold), var(--dept-accent));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(60px);
    opacity: 0.5;
    animation: morph 8s ease-in-out infinite;
    z-index: 0;
}

body:not(.theme-femenil):not(.theme-juvenil) .modern-card {
    background: white;
    border-radius: 30px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body:not(.theme-femenil):not(.theme-juvenil) .modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--dept-primary);
}

body:not(.theme-femenil):not(.theme-juvenil) .modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--dept-primary), var(--gold));
}

body:not(.theme-femenil):not(.theme-juvenil) .badge-age {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

body:not(.theme-femenil):not(.theme-juvenil) .school-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
}

body:not(.theme-femenil):not(.theme-juvenil) .gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body:not(.theme-femenil):not(.theme-juvenil) .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:not(.theme-femenil):not(.theme-juvenil) .info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    margin-top: -120px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    animation: fadeInUp 1s ease 0.6s both;
}

/* ==================== COMMON ANIMATIONS ==================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Common Utility */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

/* Apply white text to hero content for all except Femenil */
body:not(.theme-femenil) .hero-content {
    color: white;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 40px;
    animation: slideInLeft 1s ease 0.4s both;
}

body:not(.theme-femenil) .hero-description {
    color: rgba(255, 255, 255, 0.9);
}

.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomIn 1.2s ease;
}

.hero-icon-3d {
    font-size: clamp(8rem, 15vw, 12rem);
    color: white;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--dept-primary), var(--dept-secondary));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white;
    font-size: 2rem;
    transform: rotate(-5deg);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

@media (max-width: 991px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin-bottom: 50px;
        text-align: center;
        width: 100% !important;
    }

    .hero-visual {
        width: 100%;
        justify-content: center;
    }

    .info-card {
        margin-top: -60px !important;
    }

    .hero-section {
        padding: 80px 5% 40px;
        min-height: auto;
        flex-direction: column;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 30px;
    }

    .hero-visual {
        width: 100%;
        justify-content: center;
    }

    .info-card {
        margin-top: -40px !important;
        padding: 25px !important;
    }

    /* Gallery adjustments */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    /* Navbar padding compensation */
    body {
        padding-top: 60px;
    }
}

@keyframes equalizer {
    0% {
        height: 30%;
    }

    50% {
        height: 100%;
    }

    100% {
        height: 30%;
    }
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 10px;
}

/* ==================== FEMENIL EXTRA STYLES ==================== */
.editorial-font {
    font-family: 'Great Vibes', cursive;
    color: var(--femenil-rose-deep);
    font-size: 5.5rem;
    line-height: 0.8;
    text-shadow: 3px 3px 0px rgba(201, 91, 125, 0.15);
}

.serif-font {
    font-family: 'Playfair Display', serif;
}

.font-light {
    font-weight: 300;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

.text-gold {
    color: var(--femenil-gold) !important;
}

.text-sage {
    color: var(--femenil-sage) !important;
}

.text-rose {
    color: var(--femenil-rose-deep) !important;
}

.text-terracotta {
    color: var(--femenil-terracotta) !important;
}

.bg-ivory {
    background-color: var(--femenil-ivory);
}

.bg-soft-rose {
    background: linear-gradient(180deg, #fff 0%, #fff0f3 100%);
}

/* TEXTURA DE PAPEL */
.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.5;
    mix-blend-mode: multiply;
}

/* 1. HERO FLORAL */
.hero-floral {
    min-height: 90vh;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE8E0 50%, #FFF8F5 100%);
    position: relative;
}

/* BLOBS DE COLOR DE FONDO - MÁS VIBRANTES */
.hero-floral::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--femenil-rose-deep) 0%, var(--femenil-peach) 100%);
    filter: blur(130px);
    opacity: 0.25;
    border-radius: 50%;
    z-index: 0;
    animation: floatColor 10s infinite alternate;
}

.hero-floral::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--femenil-sage) 0%, var(--femenil-gold) 100%);
    filter: blur(110px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
    animation: floatColor 12s infinite alternate-reverse;
}

@keyframes floatColor {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

.floral-deco {
    position: absolute;
    height: 85%;
    width: auto;
    opacity: 0.9;
    z-index: 1;
}

.floral-left {
    left: -5%;
    bottom: 0;
    transform: rotate(-10deg);
}

.floral-right {
    right: -5%;
    top: 0;
    transform: rotate(10deg);
}

.draw-flower {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 5s ease-out forwards;
    stroke: var(--femenil-sage);
    /* Tallo verde por defecto */
}

.flower-bloom {
    stroke: var(--femenil-rose-deep);
    /* Flor rosa */
}

.delay-1 {
    animation-delay: 1s;
}

.delay-2 {
    animation-delay: 2s;
}

.delay-3 {
    animation-delay: 3s;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.floral-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 0.8;
}

.floral-divider::before,
.floral-divider::after {
    content: '';
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--femenil-gold), transparent);
    margin: 0 15px;
}

/* BOTONES - MÁS VISIBLES */
.btn-outline-gold {
    border: 2px solid var(--femenil-rose-deep);
    color: var(--femenil-rose-deep);
    font-weight: bold;
    transition: all 0.4s ease;
    background: transparent;
    box-shadow: 0 4px 15px rgba(201, 91, 125, 0.1);
}

.btn-outline-gold:hover {
    background: linear-gradient(135deg, var(--femenil-rose-deep) 0%, var(--femenil-burgundy) 100%);
    border-color: var(--femenil-rose-deep);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201, 91, 125, 0.35);
}

/* 2. MANANTIAL POSTAL */
.postcard {
    max-width: 900px;
    border: 1px solid #e0e0e0;
    background-image: linear-gradient(#fdfbf7 2px, transparent 2px);
    background-size: 100% 30px;
}

.border-gold {
    border-color: var(--femenil-gold) !important;
}

.stamp-btn {
    transition: transform 0.3s;
}

.stamp-btn:hover {
    transform: rotate(45deg);
    background: var(--femenil-gold);
}

.stamp-btn:hover i {
    color: #fff !important;
}

/* 3. VIRTUDES ZIG-ZAG */
.line-gold {
    height: 2px;
    background: var(--femenil-gold);
    margin-top: 1rem;
}

.floral-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 0px rgba(0, 0, 0, 0.05));
}

/* 4. UTILS */
.hover-lift {
    transition: transform 0.3s;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.cursor-pointer {
    cursor: pointer;
}

/* HERO CONTENT BOX */
.hero-content-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 3rem;
}