/* ===== ESTILOS PARA PÁGINA DE PLATAFORMA ===== */

:root {
    /* ----- COLORES MODO CLARO ----- */
    --base-color: #fff;
    --base-variant: #20325e;
    --bg-hero: linear-gradient(135deg, #345098 0%, #20325e 100%);
    --body-base: #F0F2EF;
    --body-secondary: #20325e;
    --body-details: #E0E0E0;
    --text-color-base: #666;
    --text-color-secondary: #fff;
    --accent-color: #0da44d;
    /* ----- COLORES MENU ----- */
    --side_container: #E0E0E0;
    --side_btns: #666;
    --btn_act: #0da44d;
    --btn_hover: #0da44d;

}

.darkmode {
    /* ----- COLORES MODO OSCURO ----- */
    --base-color: #20325e;
    --base-variant: #fff;
    --bg-hero: linear-gradient(135deg, #2F3637 0%, #4B5658 100%);
    --body-base: #2F3637;
    --body-secondary: #464F51;
    --body-details: #5F6B6D;
    --text-color-base: #fff;
    --text-color-secondary: #fff;
    --accent-color: #f69911;
    /* ----- COLORES MENU ----- */
    --side_container: #464F51;
    --side_btns: #5F6B6D;
    --btn_act: #5899E2;
    --btn_hover: #65AFFF;
}

/* ================== Generales ================== */

/* Hero Section */
.hero-section {
    background: var(--bg-hero);
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--accent-color);
    padding-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 30px;
}

.hero-image {
    animation: fadeInRight 1s ease-out;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* Sección de módulos */
.modulos-section {
    background: var(--body-base);
    padding-top: 80px;
    padding-bottom: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out;
}

/* Layout de módulos con sidebar */
.modulos-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* Menú de módulos - ahora sidebar */
.modulos-menu {
    background: var(--side_container);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modulo-btn {
    color: #162653;
    background: #CCCCCC;
    border: 2px solid #CCCCCC;
    padding: 20px 25px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.modulo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 164, 77, 0.1), transparent);
    transition: left 0.5s;
}

.modulo-btn:hover::before {
    left: 100%;
}

.modulo-btn:hover {
    color: #fff;
    background: var(--btn_hover);
    border-color: var(--btn_hover);
    transform: translateX(5px);
    box-shadow: 0 8px 25px var(--btn_hover);
}

.modulo-btn.active {
    color: #fff;
    background: var(--btn_act);
    border-color: var(--btn_act);
    transform: translateX(5px);
    box-shadow: 0 8px 15px var(--btn_act);
}

.modulo-btn i {
    font-size: 1.3rem;
    min-width: 20px;
}

/* Contenido de módulos */
.modulos-content {
    background: var(--side_container);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 500px;
}

.modulo-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.modulo-content.active {
    display: block;
}

.modulo-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 30px;
}

.modulo-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color-base);
    text-align: justify;
    max-width: 800px;
    margin: 0 auto 40px;
}

.img-container {
    width: 100%;
    max-width: auto;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.img-container h4 {
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 30px;
}

.img-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* ============ Soluciones Integrales ============ */

.modulo-description ul {
    margin: 15px 0;
    padding-left: 25px;
}

.modulos-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--text-color-base);
    font-weight: 500;
}

.img-solInt {
    width: 100%;
    max-width: auto;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
}

.img-solInt img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.vidNOM35 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.vid {
    position: relative;
    width: 100%;
    max-width: 560px;
    overflow: hidden;
    padding-bottom: 56.25%;
    height: 0;
}

.vid iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ================ Responsividad ================ */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 0 24px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .modulos-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modulos-menu {
        position: static;
        order: 2;
        margin-top: 30px;
    }

    .modulos-content {
        order: 1;
    }

    .vidNOM35 {
        width: auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .modulo-title {
        font-size: 1.5rem;
    }

    .modulos-menu {
        padding: 20px;
    }

    .modulo-btn {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .modulos-content {
        padding: 30px 20px;
    }

    .video-thumbnail {
        height: 300px;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button i {
        font-size: 1.5rem;
    }

    .vidNOM35 {
        max-width: auto;
    }
}

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

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .modulo-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .video-thumbnail {
        height: 250px;
    }

    .vidNOM35 {
        width: auto;
    }    
}