/* ============================================================================
   ACTIVACERT - Hoja de estilos principal
   Optimizada para rendimiento y mantenibilidad
   ============================================================================ */

/* CSS de colores se carga inline en el HTML para evitar bloqueo de renderizado */

/* ==========================================================================
   VARIABLES CSS - Valores reutilizables
   ========================================================================== */
:root {
    /* Espaciado y radios */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-full: 20px;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-xl: 0 4px 20px rgba(0,0,0,0.3);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Colores del footer */
    --footer-text: #cccccc;
    --footer-muted: #999999;
    --footer-border: #555555;
    
    /* Tamaños de contenedor */
    --container-max: 1200px;
}

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9025rem;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

/* ==========================================================================
   UTILIDADES - Clases reutilizables
   ========================================================================== */

/* Optimización GPU para animaciones */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* Contenedor centrado */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.main-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ==========================================================================
   MENÚ MÓVIL (Hamburguesa)
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn-campus {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background-color var(--transition-normal);
    white-space: nowrap;
}

.btn-campus:hover {
    background-color: var(--hover-color);
}

/* ==========================================================================
   BANNER SLIDESHOW
   ========================================================================== */
.banner-section {
    position: relative;
    height: 50vh;
    max-height: 50vh;
    overflow: hidden;
}

.banner-swiper {
    width: 100%;
    height: 100%;
}

.banner-swiper .swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Animación de zoom para la imagen de fondo */
.banner-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%) translateZ(0);
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: bannerZoomIn 20s ease-in-out infinite;
    z-index: 0;
    will-change: transform;
    backface-visibility: hidden;
    contain: layout style paint;
}

@keyframes bannerZoomIn {
    0%, 100% { transform: translate(-50%, -50%) scale(1) translateZ(0); }
    50% { transform: translate(-50%, -50%) scale(1.15) translateZ(0); }
}

.banner-swiper .swiper-slide > *:not(.banner-slide-grafico) {
    position: relative;
    z-index: 1;
}

/* Gráficos superpuestos */
.banner-slide-grafico {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%); /* Sin !important para permitir animaciones */
    width: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    z-index: 1 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.banner-slide-grafico2 {
    z-index: 2 !important;
}

/* Animaciones flotantes para SVG - sin stroke animation */
.banner-slide-grafico-svg-no-stroke {
    animation: svgFloat 6s ease-in-out infinite;
    will-change: transform;
}

.banner-slide-grafico2.banner-slide-grafico-svg-no-stroke {
    animation: svgFloat2 5s ease-in-out infinite;
    will-change: transform;
}

@keyframes svgFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) translateZ(0); }
    50% { transform: translate(-50%, -50%) translateY(-15px) translateZ(0); }
}

@keyframes svgFloat2 {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(0deg) translateZ(0); }
    25% { transform: translate(-50%, -50%) translateY(-10px) rotate(1deg) translateZ(0); }
    50% { transform: translate(-50%, -50%) translateY(-20px) rotate(0deg) translateZ(0); }
    75% { transform: translate(-50%, -50%) translateY(-10px) rotate(-1deg) translateZ(0); }
}

/* Animaciones stroke path para SVG */
@keyframes strokePathdraw {
    0% { stroke-dashoffset: var(--path-length); opacity: 0; }
    10% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes strokePatherase {
    0% { stroke-dashoffset: 0; opacity: 1; }
    90% { opacity: 1; }
    100% { stroke-dashoffset: var(--path-length); opacity: 0; }
}

@keyframes strokePathdrawerase {
    0% { stroke-dashoffset: var(--path-length); opacity: 0; }
    10% { opacity: 1; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    90% { opacity: 1; }
    100% { stroke-dashoffset: var(--path-length); opacity: 0; }
}

.banner-slide-grafico object {
    width: 100%;
    height: 100%;
    display: block;
}

/* Efecto neon para SVG */
.banner-slide-grafico-svg object,
.banner-slide-grafico-svg svg {
    filter: drop-shadow(0 0 1px currentColor) drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
    animation: neonGlow 4s ease-in-out infinite;
    will-change: filter;
    transform: translateZ(0);
}

@keyframes neonGlow {
    0%, 100% { filter: drop-shadow(0 0 1px currentColor) drop-shadow(0 0 2px rgba(255, 255, 255, 0.2)); }
    50% { filter: drop-shadow(0 0 1.5px currentColor) drop-shadow(0 0 3px rgba(255, 255, 255, 0.25)); }
}

/* Contenido del banner */
.banner-slide-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-lg);
    max-width: 800px;
}

.banner-slide-content-no-bg {
    background: transparent;
    padding: 0;
}

.banner-slide-content h2 {
    font-size: 1.9855rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-slide-content p {
    font-size: 1.35375rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Efecto máquina de escribir */
.banner-typewriter {
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    animation: blinkCursor 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

.banner-typewriter.completed {
    border-right: none;
    animation: none;
    white-space: normal;
}

@keyframes blinkCursor {
    0%, 50% { border-color: rgba(255, 255, 255, 0.75); }
    51%, 100% { border-color: transparent; }
}

.banner-slide-content .btn {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-block;
    transition: background-color var(--transition-normal);
}

.banner-slide-content .btn:hover {
    background-color: var(--primary-color);
}

.banner-swiper .swiper-pagination-bullet {
    background: white;
}

.banner-swiper .swiper-button-next,
.banner-swiper .swiper-button-prev {
    color: white;
}

/* ==========================================================================
   CONTENIDO PRINCIPAL
   ========================================================================== */
.main-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ==========================================================================
   SECCIONES - Estilos unificados para contenido
   ========================================================================== */
.seccion {
    margin-bottom: 2vh;
}

.seccion-titulo {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

/* Estilos compartidos para contenido de secciones y columnas */
.seccion-contenido,
.seccion-columna {
    white-space: normal;
    line-height: 1.8;
}

.seccion-contenido {
    margin-bottom: 2rem;
}

/* Listas en secciones */
.seccion-contenido ul,
.seccion-contenido ol,
.seccion-columna ul,
.seccion-columna ol {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style-position: outside;
}

.seccion-contenido li,
.seccion-columna li {
    margin: 0.5rem 0;
    padding-left: 0.5rem;
}

/* Listas anidadas */
.seccion-contenido ul ul,
.seccion-contenido ol ol,
.seccion-contenido ul ol,
.seccion-contenido ol ul,
.seccion-columna ul ul,
.seccion-columna ol ol,
.seccion-columna ul ol,
.seccion-columna ol ul {
    margin: 0.5rem 0;
    padding-left: 2rem;
}

/* Párrafos */
.seccion-contenido p,
.seccion-columna p {
    margin: 1rem 0;
}

/* Citas */
.seccion-contenido blockquote,
.seccion-columna blockquote {
    margin: 1rem 0 1rem 2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
    font-style: italic;
    color: var(--text-light);
}

/* Imágenes */
.seccion-contenido img,
.seccion-columna img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* Videos responsivos */
.video-responsive {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.video-responsive iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Sistema de columnas */
.seccion-columnas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seccion-columna {
    box-sizing: border-box;
    min-width: 250px;
}

/* ==========================================================================
   FORMULARIO DE SOLICITUD
   ========================================================================== */
#solicitud-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

#solicitud-form input[type="text"],
#solicitud-form input[type="email"],
#solicitud-form input[type="tel"],
#solicitud-form input[type="date"],
#solicitud-form select,
#solicitud-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9025rem;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

#solicitud-form input:focus,
#solicitud-form select:focus,
#solicitud-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

#solicitud-form button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-normal), transform var(--transition-fast);
}

#solicitud-form button[type="submit"]:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

#solicitud-form button[type="submit"]:active {
    transform: translateY(0);
}

#solicitud-mensaje {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* ==========================================================================
   CATÁLOGO DE CURSOS
   ========================================================================== */
.cursocatalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

.cursocatalog:empty {
    display: none;
}

.curso-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    will-change: transform;
}

.curso-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: var(--shadow-lg);
}

.curso-imagen-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.curso-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Badges de cursos */
.curso-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 10;
}

.curso-badges-wrapper {
    padding: 1rem 1.5rem 0 1.5rem;
}

.curso-badges-wrapper .curso-badges {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
}

.curso-badge {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.767125rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    backdrop-filter: blur(5px);
    transition: background-color var(--transition-normal), color var(--transition-normal), transform var(--transition-fast), box-shadow var(--transition-normal);
    cursor: pointer;
}

.curso-badge:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.curso-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.35375rem;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.curso-card .curso-resumen {
    color: var(--text-light);
    line-height: 1.6;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.curso-card .curso-resumen img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.curso-resumen ul,
.curso-resumen ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    list-style-position: outside;
}

.curso-resumen li {
    margin: 0.25rem 0;
    padding-left: 0.5rem;
}

.curso-resumen p {
    margin: 0.75rem 0;
}

/* ==========================================================================
   MODAL DE CURSO
   ========================================================================== */
.curso-modal-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.curso-modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 80%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideDown var(--transition-normal);
}

#curso-modal-body {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-height: 85vh;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.curso-modal-close {
    color: var(--text-light);
    font-size: 1.805rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 10001;
    line-height: 1;
    transition: color var(--transition-normal);
    background-color: rgba(255, 255, 255, 0.9);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.curso-modal-close:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 1);
}

.curso-modal-left {
    width: 25%;
    min-width: 25%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    background-color: var(--bg-light);
    flex-shrink: 0;
    contain: layout style paint;
}

.curso-modal-right {
    width: 75%;
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    contain: layout style paint;
}

.curso-modal-left .curso-modal-imagen {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.curso-modal-left .curso-badges {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.curso-modal-left .curso-badge {
    width: 100%;
    text-align: center;
}

.curso-modal-logo {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.curso-modal-logo-img {
    max-width: 80%;
    height: auto;
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.curso-modal-logo-img:hover {
    opacity: 1;
}

#curso-modal-body h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
    font-size: 1.805rem;
}

#curso-modal-body .curso-modal-contenido {
    color: var(--text-dark);
    line-height: 1.8;
    flex: 1;
}

#curso-modal-body .curso-modal-contenido img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

#curso-modal-body .curso-modal-contenido p {
    margin: 1rem 0;
}

#curso-modal-body .curso-modal-contenido ul,
#curso-modal-body .curso-modal-contenido ol {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style-position: outside;
}

#curso-modal-body .curso-modal-contenido li {
    margin: 0.5rem 0;
    padding-left: 0.5rem;
}

#curso-modal-body .curso-modal-contenido blockquote {
    margin: 1rem 0 1rem 2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
    font-style: italic;
    color: var(--text-light);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    color: var(--footer-text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--footer-border);
    color: var(--footer-muted);
}

/* ==========================================================================
   BANNER DE LOGOTIPOS
   ========================================================================== */
.logotipos-banner-section {
    width: 100%;
    background-color: var(--bg-white);
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 1rem 0;
}

.logotipos-banner-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logotipos-banner-texto-superior {
    text-align: center;
    font-size: 0.9025rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.logotipos-banner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    height: 3em;
    overflow: hidden;
    width: 100%;
}

.logotipo-item {
    height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logotipo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: opacity var(--transition-normal);
}

.logotipo-item a:hover {
    opacity: 0.7;
}

.logotipo-imagen {
    height: 100%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: center;
}

/* ==========================================================================
   OPTIMIZACIONES DE RENDIMIENTO
   ========================================================================== */

/* content-visibility para mejorar rendering inicial */
.seccion:not(:first-of-type) {
    content-visibility: auto;
    contain-intrinsic-size: 400px;
}

/* ==========================================================================
   RESPONSIVE - MÓVIL (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Reducir animaciones en móvil para mejor rendimiento */
    .banner-swiper .swiper-slide::before {
        animation-duration: 30s;
    }
    
    .banner-slide-grafico-svg-no-stroke,
    .banner-slide-grafico2.banner-slide-grafico-svg-no-stroke {
        animation-duration: 8s;
    }
    
    .banner-slide-grafico-svg object,
    .banner-slide-grafico-svg svg {
        animation-duration: 6s;
    }
    
    /* Reducir sombras en móvil */
    .curso-card {
        box-shadow: var(--shadow-sm);
    }
    
    .curso-card:hover {
        transform: translateY(-2px) translateZ(0);
        box-shadow: var(--shadow-md);
    }
    
    .banner-section {
        max-height: 40vh;
        height: 300px;
    }

    .header-container {
        padding: 1rem;
    }

    /* Menú móvil */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right var(--transition-normal);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav .btn-campus {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        margin-bottom: 0.5rem;
        border-radius: var(--radius-md);
        font-size: 1rem;
        background-color: transparent;
        color: var(--text-dark);
        border: 1px solid var(--border-color);
        transition: all var(--transition-normal);
    }
    
    .main-nav .btn-campus:hover,
    .main-nav .btn-campus:focus {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    .main-nav .btn-campus:last-child {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        margin-top: 0.5rem;
    }
    
    .main-nav .btn-campus:last-child:hover,
    .main-nav .btn-campus:last-child:focus {
        background-color: var(--hover-color);
        border-color: var(--hover-color);
    }

    .banner-slide-content h2 {
        font-size: 1.805rem;
    }

    .banner-slide-content p {
        font-size: 1.083rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .seccion-columnas {
        flex-direction: column;
    }

    .seccion-columna {
        flex: 1 1 100% !important;
        min-width: 100%;
    }

    .cursocatalog {
        grid-template-columns: 1fr;
    }

    .curso-modal-content {
        width: 90%;
        max-height: 90vh;
    }

    #curso-modal-body {
        flex-direction: column;
        max-height: 90vh;
    }

    .curso-modal-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 40vh;
    }

    .curso-modal-right {
        width: 100%;
        max-height: 50vh;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .logotipos-banner-section {
        padding: 0.5rem;
    }

    .logotipos-banner-texto-superior {
        font-size: 0.81225rem;
        margin-bottom: 0.5rem;
    }

    .logotipos-banner-logos {
        gap: 0.5rem;
        height: 2.5em;
    }

    .logotipo-item {
        height: 2.5em;
    }

    .logotipo-imagen {
        max-width: 120px;
    }

    /* Formulario en móvil */
    #solicitud-form {
        padding: 1.5rem;
    }
    
    #solicitud-form > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}
