/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos para el modal de noticias */
.news-modal .modal-content {
    border: none;
    border-radius: 15px;
}

.news-modal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 15px 15px 0 0;
}

.news-modal .modal-title {
    font-weight: bold;
    color: #2c3e50;
}

.news-modal .modal-body {
    padding: 2rem;
}

.news-modal-meta {
    margin-bottom: 1.5rem;
}

.news-modal-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-modal-date {
    font-size: 0.9rem;
}

.news-modal-image {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.news-modal-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.news-modal-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    white-space: pre-line;
}

.news-link {
    text-decoration: none;
    color: var(--color-primary);
    padding: 0;
}

/* Estilos para el modal de estadísticas */
.stats-modal .modal-content {
    background-color: #0a1929;
    color: white;
}

.stats-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-card {
    background-color: #4c0d70;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-number {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.stats-title {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stats-description {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.chart-container {
    background-color: #4338ca;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
}

.chart-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.pie-chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}

:root {
    /* Colores principales */
    --color-yellow: #FFC802;
    --color-orange: #FF7402;
    --color-pink: #FF6D7E;
    --color-magenta: #E42153;
    --color-blue: #3C3AE5;
    
    /* Colores secundarios */
    --color-dark: #272E49;
    --color-medium: #4A4A49;
    --color-light: #71717F;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #FFC802 0%, #FF7402 25%, #FF6D7E 50%, #E42153 75%, #3C3AE5 100%);
    --gradient-secondary: linear-gradient(135deg, #3C3AE5 0%, #E42153 25%, #FF6D7E 50%, #FF7402 75%, #FFC802 100%);
    --gradient-warm: linear-gradient(135deg, #FFC802 0%, #FF7402 50%, #E42153 100%);
    --gradient-cool: linear-gradient(135deg, #E42153 0%, #3C3AE5 100%);
    
    /* Tipografía */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-thin: 100;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Contenedores */
    --container-max-width: 1200px;
    --container-padding: 1rem;
    
    /* Alturas del header */
    --header-height-desktop: 70px;
    --header-height-tablet: 60px;
    --header-height-mobile: 50px;
}

/* Media queries para variables de altura responsivas */
@media (max-width: 768px) {
    :root {
        --header-height-desktop: var(--header-height-tablet);
    }
}

@media (max-width: 500px) {
    :root {
        --header-height-desktop: var(--header-height-mobile);
    }
}

/* Estilos base */
body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: #ffffff;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(199, 199, 199, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    height: 40px;
    width: auto;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

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

.nav-menu a:hover {
    color: var(--color-magenta);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Slider Section */
.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 200, 2, 0.8) 0%, rgba(255, 116, 2, 0.8) 25%, rgba(255, 109, 126, 0.8) 50%, rgba(228, 33, 83, 0.8) 75%, rgba(60, 58, 229, 0.8) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Hero Section (now inside slider) */
.hero {
    min-height: 0;
    padding: 0;
    background: none;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: var(--header-height-desktop) auto 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Hero sin header para usuarios autenticados */
body:not(.has-header) .hero {
    padding: var(--spacing-3xl) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: var(--header-height-desktop) auto 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: var(--font-weight-light);
    margin-bottom: var(--spacing-xl);
    opacity: 0.8;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic-image {
    width: 125%;
    /*height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);*/
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    50% { 
        transform: translateY(-20px) scale(1);
    }
}

/* Módulos Section */
.modules-section {
    padding: var(--spacing-3xl) 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modules-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.module-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(199, 199, 199, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    width: 100%;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.module-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.module-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex: 1;
}

.module-text {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex: 1;
}

.module-info {
    flex: 1;
}

.module-card h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin: 0 0 var(--spacing-xs) 0;
    min-width: 200px;
}

.module-card p {
    color: var(--color-medium);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.module-link {
    color: var(--color-magenta);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    padding: var(--spacing-xs) var(--spacing-md);
    border: 1px solid var(--color-magenta);
    border-radius: 20px;
    flex-shrink: 0;
}

/* Responsive para módulos - pantallas superiores a 980px */
@media (min-width: 980px) {
    .modules-section .container {
        max-width: 80%;
        margin: 0 auto;
    }
}

.module-link:hover {
    color: var(--color-blue);
}

/* News Section */
.news-section {
    padding: var(--spacing-3xl) 0;
    background: #ffffff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.news-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(199, 199, 199, 0.2);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.news-category {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    color: var(--color-light);
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
}

.news-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: var(--color-magenta);
}

.news-excerpt {
    color: var(--color-medium);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex: 1;
    font-size: 0.95rem;
}

.news-link {
    color: var(--color-magenta);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.news-link:hover {
    color: var(--color-blue);
    transform: translateX(3px);
}

.news-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.news-link:hover::after {
    transform: translateX(3px);
}

.news-actions {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--color-magenta);
    color: var(--color-magenta);
    padding: var(--spacing-md) var(--spacing-xl);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: var(--color-magenta);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 33, 83, 0.3);
}

/* Responsive para News Section */
@media (min-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-card:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 1199px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .news-card {
        min-width: unset;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: var(--spacing-md);
    }
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: 
        linear-gradient(rgba(228, 33, 83, 0.75), rgba(60, 58, 229, 0.75)),
        url('../images/2149853161_.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta-button-secondary {
    display: inline-block;
    background: white;
    color: var(--color-dark);
    padding: var(--spacing-md) var(--spacing-xl);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

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

/* Footer */
.footer {
                background: 
                    linear-gradient(rgba(21, 32, 43, 0.9), rgba(0, 0, 0, 0.9)),
                    url('../images/16406291_rm373batch2-04_.jpg');
                background-size: cover;
                background-position: center;
                background-attachment: fixed;
                color: rgb(0, 0, 0);
                padding: 4rem 0 1rem;
                position: relative;
                overflow: hidden;
            }
            
            .footer::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(135deg, rgba(21, 32, 43, 0.3) 0%, rgba(44, 62, 80, 0.2) 100%);
                z-index: 1;
            }
            
            .footer-container {
                max-width: 1200px;
                margin: 0 auto;
                padding: 0 2rem;
                position: relative;
                z-index: 2;
            }
            
            .footer-content {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                gap: 3rem;
                margin-bottom: 3rem;
            }
            
            .footer-section {
                transition: transform 0.3s ease;
            }
            
            .footer-section:hover {
                transform: translateY(-5px);
            }
            
            .footer-section h4 {
                margin-bottom: 1.5rem;
                color: #ffffff;
                font-size: 1.3rem;
                font-weight: 600;
                display: flex;
                align-items: center;
                gap: 0.75rem;
                border-bottom: 2px solid rgba(255, 255, 255, 0.1);
                padding-bottom: 0.75rem;
            }
            
            .footer-icon {
                color: #3498db;
                stroke-width: 1.5;
                filter: drop-shadow(0 2px 4px rgba(52, 152, 219, 0.3));
            }
            
            .footer-icon-small {
                color: #3498db;
                stroke-width: 1.5;
                margin-right: 0.5rem;
                flex-shrink: 0;
            }
            
            .footer-section p {
                margin-bottom: 0.75rem;
                color: #ecf0f1;
                display: flex;
                align-items: flex-start;
                gap: 0.5rem;
                line-height: 1.6;
                transition: color 0.3s ease;
            }
            
            .footer-section p:hover {
                color: #ffffff;
            }
            
            .footer-section ul {
                list-style: none;
                padding: 0;
                margin: 0;
            }
            
            .footer-section ul li {
                margin-bottom: 0.75rem;
            }
            
            .footer-section a {
                color: #bdc3c7;
                text-decoration: none;
                transition: all 0.3s ease;
                display: flex;
                align-items: center;
                gap: 0.5rem;
                padding: 0.5rem 0;
                border-radius: 4px;
                position: relative;
            }
            
            .footer-section a:hover {
                color: #3498db;
                transform: translateX(5px);
            }
            
            .footer-section a:hover .footer-icon-small {
                color: #3498db;
                transform: scale(1.1);
            }

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    background: transparent;
    padding: var(--spacing-sm);
    border-radius: 25px;
    transition: all 0.3s ease;
    color: #bdc3c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    background: transparent;
    color: #3498db;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: var(--header-height-desktop);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-graphic-image {
        width: 200px;
        height: 200px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(60px + var(--spacing-lg)) 0 var(--spacing-lg);
        background-attachment: scroll; /* Mejor rendimiento en móviles */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .module-card {
        padding: var(--spacing-lg);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-section {
        background-attachment: scroll; /* Mejor rendimiento en móviles */
    }
}


/* =======================
   SECCIÓN TOP INICIAL
   ======================= */
.topInicial{
  position:relative; 
  min-height:84vh; 
  display:grid; 
  align-items:center; 
  color:#fff;
}

.topInicial-video{
  position:absolute; 
  inset:0; 
  width:100%; 
  height:100%; 
  object-fit:cover;
}

.topInicial-overlay{
  position:absolute; 
  inset:0;
  background:linear-gradient(110deg, rgba(2,8,23,.75) 0%, rgba(2,8,23,.55) 45%, rgba(2,8,23,.25) 100%);
}

.topInicial-content{
  position:relative; 
  display:grid; 
  grid-template-columns:1.15fr .85fr; 
  gap:2rem; 
  padding:4rem 0;
}

.topInicial-left h1{
  font-size:clamp(28px,4vw,48px); 
  margin:0 0 .75rem; 
  letter-spacing:.3px;
}

.topInicial-left h1 span{
  color:#bfe8fb;
}

.topInicial-left p{
  max-width:56ch; 
  opacity:.95; 
  margin:.25rem 0 1.25rem;
}

.topInicial-cta{
  display:flex; 
  gap:.75rem; 
  flex-wrap:wrap;
}

/* Sección InCompany */
.incompany-section {
    padding: var(--spacing-3xl) 0;
    background: 
        linear-gradient(rgba(60, 58, 229, 0.85), rgba(228, 33, 83, 0.85)),
        url('../images/industrial-310.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
}

.incompany-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.incompany-section .container {
    position: relative;
    z-index: 2;
}

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

.incompany-header {
    margin-bottom: var(--spacing-2xl);
}

.incompany-header .section-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(10px);
}

.incompany-header h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: white;
}

.incompany-header .section-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

/* Oferta Exportable */
.oferta-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

/* Overlay Header */
.oferta-overlay-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.oferta-close-btn,
.oferta-download-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.oferta-close-btn:hover,
.oferta-download-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.oferta-download-btn {
    margin-left: 0;
}

/* Main Content Area */
.oferta-overlay-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 4rem;
}

/* Navigation Buttons */
.oferta-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.oferta-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.oferta-nav-prev {
    left: -3rem;
}

.oferta-nav-next {
    right: -3rem;
}

/* Main Image Container */
.oferta-main-image {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
}

.oferta-zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.oferta-zoom-container:active {
    cursor: grabbing;
}

#mainOverlayImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease-out;
    transform-origin: center center;
}

/* Zoom Controls */
.oferta-zoom-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.25rem;
    border-radius: 16px;
    z-index: 10;
}

.zoom-btn {
    background: none;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Thumbnails */
.oferta-thumbnails {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
}

.oferta-thumb-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.3);
}

.oferta-thumb-scroll::-webkit-scrollbar {
    height: 6px;
}

.oferta-thumb-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.oferta-thumb-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.oferta-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.7;
}

.oferta-thumb:hover {
    border-color: rgba(255, 255, 255, 0.5);
    opacity: 0.9;
}

.oferta-thumb.active {
    border-color: white;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .oferta-overlay-content {
        margin: 0 2rem;
    }

    .oferta-nav-btn {
        width: 40px;
        height: 40px;
    }

    .oferta-nav-prev {
        left: -2rem;
    }

    .oferta-nav-next {
        right: -2rem;
    }

    .oferta-thumb {
        width: 60px;
        height: 45px;
    }

    .oferta-overlay-header {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .oferta-overlay-header button span {
        display: none;
    }

    .oferta-nav-btn {
        width: 36px;
        height: 36px;
    }

    .oferta-nav-prev {
        left: -1.5rem;
    }

    .oferta-nav-next {
        right: -1.5rem;
    }

    .oferta-thumb {
        width: 50px;
        height: 37.5px;
    }

    .oferta-overlay-content {
        margin: 0 1.5rem;
    }

    .oferta-zoom-controls {
        padding: 0.25rem;
    }

    .zoom-btn {
        width: 32px;
        height: 32px;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    color: white;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    color: white;
}

.incompany-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-outline {
    display: inline-block;
    background: transparent;
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    border: 2px solid white;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-button-outline:hover {
    background: white;
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive para InCompany */
@media (max-width: 768px) {
    .incompany-header h2 {
        font-size: 2rem;
    }
    
    .incompany-header .section-description {
        font-size: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .incompany-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button,
    .cta-button-outline {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Toggle de Programas y Botones de Módulos */
.programs-toggle-card .module-content,
.module-card .module-content {
    position: relative;
}

.module-toggle-btn {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.module-toggle-btn:hover {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 25px;
    border-image: linear-gradient(135deg, #FFC802 0%, #FF7402 25%, #FF6D7E 50%, #E42153 75%, #3C3AE5 100%) 1;
    background: linear-gradient(135deg, #FFC802 0%, #FF7402 25%, #FF6D7E 50%, #E42153 75%, #3C3AE5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 200, 2, 0.3);
}

.module-toggle-btn:hover .toggle-arrow {
    background: linear-gradient(135deg, #FFC802 0%, #FF7402 25%, #FF6D7E 50%, #E42153 75%, #3C3AE5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Especial para el botón de programas que tiene funcionalidad toggle */
.programs-toggle-card .toggle-arrow {
    transition: transform 0.3s ease;
}

.toggle-arrow {
    transition: all 0.3s ease;
}

.programs-dropdown {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.4s ease-out;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    margin-top: var(--spacing-lg);
}

.programs-dropdown-open {
    padding: var(--spacing-xl);
    border: 1px solid rgba(67, 56, 202, 0.2);
    background: rgba(67, 56, 202, 0.05);
    backdrop-filter: blur(10px);
    max-height: none !important;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.1s;
    min-height: auto;
}

.programs-dropdown-open .programs-grid {
    opacity: 1;
    transform: translateY(0);
}

.program-card {
    background: white;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(67, 56, 202, 0.1);
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    min-height: auto;
    height: auto;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 56, 202, 0.15);
    border-color: var(--color-primary);
}

.program-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Iconos específicos por programa con colores únicos */
.program-card:nth-child(1) .program-icon {
    background: linear-gradient(135deg, #1e293b, #475569);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

.program-card:nth-child(2) .program-icon {
    background: linear-gradient(135deg, #0f172a, #334155);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.program-card:nth-child(3) .program-icon {
    background: linear-gradient(135deg, #374151, #4b5563);
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
}

.program-card:nth-child(4) .program-icon {
    background: linear-gradient(135deg, #1f2937, #6b7280);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.3);
}

.program-card:nth-child(5) .program-icon {
    background: linear-gradient(135deg, #111827, #4b5563);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.3);
}

/* Efectos hover para iconos */
.program-card:hover .program-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
}

.program-card:nth-child(1):hover .program-icon {
    background: linear-gradient(135deg, #475569, #64748b);
}

.program-card:nth-child(2):hover .program-icon {
    background: linear-gradient(135deg, #334155, #475569);
}

.program-card:nth-child(3):hover .program-icon {
    background: linear-gradient(135deg, #4b5563, #6b7280);
}

.program-card:nth-child(4):hover .program-icon {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.program-card:nth-child(5):hover .program-icon {
    background: linear-gradient(135deg, #4b5563, #6b7280);
}

.program-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.program-content h4 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin: 0;
}

.program-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-gray);
    margin: 0;
    flex-grow: 1;
}

.program-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.program-download-btn:hover {
    background: var(--color-secondary);
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
}

/* Responsive para toggle de programas */
@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .program-card {
        padding: var(--spacing-md);
        flex-direction: column;
        text-align: center;
    }
    
    .program-icon {
        align-self: center;
        margin-bottom: 0.5rem;
    }
    
    .program-content {
        text-align: center;
    }
    
    .program-download-btn {
        align-self: center;
        width: 100%;
        justify-content: center;
        margin-top: var(--spacing-md);
    }
}

/* Responsive específico para móviles menores a 512px */
@media (max-width: 512px) {
    .modules-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-xl);
    }
    
    .module-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--spacing-lg);
        gap: var(--spacing-xs);
    }
    
    .module-icon {
        width: 56px;
        height: 56px;
        margin-bottom: var(--spacing-xs);
    }
    
    .module-content {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
        text-align: center;
        width: 100%;
    }
    
    .module-card h3 {
        font-size: 1.2rem;
        min-width: auto;
        width: 100%;
        text-align: center;
        margin-bottom: var(--spacing-xs);
    }
    
    .module-card p {
        text-align: center;
        margin-bottom: var(--spacing-sm);
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .module-toggle-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0;
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
        max-width: 200px;
    }
    
    /* Ajustes específicos para el dropdown de programas en móvil */
    .programs-dropdown-open {
        padding: var(--spacing-lg);
    }
    
    .program-card {
        padding: var(--spacing-md);
        min-height: auto;
    }
    
    .program-card h4 {
        font-size: 1rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .program-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Business Forum Section */
.business-forum-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    min-height: 70vh;
}

.business-forum-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1419 0%, #1e3a5f 50%, #2c5aa0 100%);
    background-image: url('../images/SF-Provincia_SFBF-2025_Landing_03_img_encabezado-03.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.business-forum-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 25, 31, 0.9) 0%, rgba(32, 52, 78, 0.8) 50%, rgba(29, 71, 134, 0.7) 100%);
}

.business-forum-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 50vh;
}

/* Business Forum Logo */
.business-forum-left {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.business-forum-logo {
    max-width: 400px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.business-forum-logo:hover {
    transform: scale(1.05);
}

/* Forum Info Right */
.business-forum-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.forum-stats h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.forum-stats h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.forum-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.forum-benefits li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.forum-details {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.forum-date {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.forum-location {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.business-forum-cta {
    display: inline-block;
    background: linear-gradient(135deg, #FF7402 0%, #E42153 50%, #3C3AE5 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 116, 2, 0.3);
}

.business-forum-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 116, 2, 0.4);
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .business-forum-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem 0;
    }
    
    .business-forum-logo {
        max-width: 300px;
        max-height: 200px;
    }
    
    .forum-brand-text {
        font-size: 0.7rem;
        margin: 0.1rem 0;
    }
}

@media (max-width: 768px) {
    .business-forum-section {
        padding: 4rem 0;
    }
    
    .business-forum-logo {
        max-width: 250px;
        max-height: 180px;
    }
    
    .forum-stats h3 {
        font-size: 1.4rem;
    }
    
    .business-forum-cta {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 512px) {
    .business-forum-logo {
        max-width: 200px;
        max-height: 150px;
    }
    
    .forum-stats h3 {
        font-size: 1.2rem;
    }
    
    .forum-stats h4 {
        font-size: 1rem;
    }
    
    .business-forum-cta {
        width: 100%;
        padding: 1rem;
    }
}


