/* ALIS Kids - Módulos CSS */

/* Module Page Styles */
.module-page {
    font-family: 'Poppins', 'Nunito Sans', sans-serif;
}

/* Navbar */
.module-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 16px 0;
}

.module-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.nav-logo img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--module-color);
}

/* Module Hero */
.module-hero {
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, var(--module-color) 0%, rgba(255,255,255,0.1) 100%);
    position: relative;
    overflow: hidden;
}

.module-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.module-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--module-color);
    margin-bottom: 20px;
}

.module-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.module-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--module-color);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    margin-bottom: 32px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-button .icon {
    width: 24px;
    height: 24px;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Video Container */
.video-container {
    margin-top: 32px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.video-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
}

.video-placeholder.square {
    aspect-ratio: 1/1;
}

.video-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Description Section */
.module-description {
    padding: 80px 20px;
    background: white;
}

.description-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.description-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    padding: 20px;
    background: linear-gradient(135deg, var(--module-color), rgba(var(--module-color), 0.7));
    border-radius: 20px;
    color: white;
}

.description-icon svg {
    width: 100%;
    height: 100%;
}

.description-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
}

.description-text p {
    margin-bottom: 20px;
}

/* Objectives Section */
.module-objectives {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.objective-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-top: 4px solid var(--module-color);
}

.objective-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.objective-icon {
    width: 56px;
    height: 56px;
    background: var(--module-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 16px;
}

.objective-icon svg {
    width: 28px;
    height: 28px;
}

.objective-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.objective-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Curriculum Section */
.module-curriculum {
    padding: 80px 20px;
    background: white;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: -16px;
    margin-bottom: 48px;
}

.curriculum-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-item:hover {
    border-color: var(--module-color);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    cursor: pointer;
    user-select: none;
}

.session-number {
    background: var(--module-color);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.accordion-header h3 {
    flex: 1;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
}

.accordion-icon {
    width: 24px;
    height: 24px;
    color: var(--module-color);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-content p {
    padding: 0 24px 24px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Info Section */
.module-info {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.info-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-card.full-width {
    grid-column: 1 / -1;
}

.info-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--module-color);
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 4px;
}

.info-detail {
    font-size: 0.9rem;
    color: var(--text-light);
}

.includes-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    text-align: left;
}

.includes-list li {
    color: var(--text-dark);
    font-weight: 500;
}

.kids-video {
    margin-top: 48px;
    text-align: center;
}

.kids-video h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

/* Gallery Section */
.module-gallery {
    padding: 80px 20px;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item.placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.gallery-item.placeholder svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.gallery-note {
    text-align: center;
    margin-top: 24px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Inscription Section */
.module-inscription {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--module-color) 0%, rgba(var(--module-color), 0.8) 100%);
}

.module-inscription .section-title,
.module-inscription .section-subtitle {
    color: white;
}

/* Back Section */
.back-section {
    padding: 60px 20px;
    background: white;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--module-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--module-color);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.floating-cta svg {
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--module-color), rgba(var(--module-color), 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .nav-links {
        gap: 16px;
        font-size: 0.9rem;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-cta {
        bottom: 16px;
        right: 16px;
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}


/* Gallery Image Fix */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
