:root {
    --primary-color: #0046B5;
    --secondary-color: #0056b3;
    --text-color: #333333;
    --background-color: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e5e7eb;
    --header-height: 80px;
}

/* Ajuste para el scroll suave */
html {
    scroll-behavior: smooth;
}

/* Ajustes para compensar la altura del header fijo */
#inicio, 
#cursos, 
#novedades, 
#agenda, 
#contacto {
    scroll-margin-top: var(--header-height);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
}

/* Contenedores principales */
.container, 
.header-container, 
.banner-content,
.footer-content,
.footer-bottom,
.info-grid,
.courses-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}


/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: var(--background-color);
    height: var(--header-height);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 45px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 600;
}

.logo-text strong {
    color: var(--primary-color);
}

/* Navegación */
nav {
    text-align: left;
}

nav ul {
    display: flex;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    background-color: rgba(0, 70, 181, 0.1);
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}


/* Botón de acceso móvil */
.mobile-access-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.4rem;
    padding: 0.4rem;
    cursor: pointer;
}

/* Auth Buttons y Dropdown */
.auth-buttons {
    display: flex;
    gap: 1rem;
}

.auth-buttons .dropdown {
    position: relative;
}

.servicios-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.servicios-btn i {
    font-size: 1rem;
}

.servicios-btn .fa-chevron-down {
    font-size: 0.8rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.dropdown-menu a:hover {
    background-color: rgba(0, 70, 181, 0.1);
    color: var(--primary-color);
}

/* Botones de Login y Register */
.btn-login,
.btn-register {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-register {
    background-color: var(--primary-color);
    color: white;
    border: none;
}


/* Banner azul */
.blue-banner {
    background-color: var(--primary-color);
    padding: 3rem 0;
    margin-top: var(--header-height);
    color: white;
}

.banner-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.banner-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Contenido principal */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    width: 100%;
}





/* Formulario y secciones */
.form-section {
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Organización de campos en filas */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-field {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 1.2rem;
}

.form-row .form-field {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}

/* Grid específico para la fila de 4 columnas */
.form-row:has(select[name="curso"], 
             select[name="division"], 
             select[name="modalidad"], 
             select[name="turno"]) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Contenedor izquierdo */
.left-column {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 3;
    padding: 2rem;
    width: 100%;

}

/* Estilos de campos */
label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.required {
    color: #dc3545;
}

input,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: gray;
    box-sizing: border-box;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 70, 181, 0.1);
}

.field-description {
    font-size: 0.85rem;
    color: var(--secondary-text);
    margin-top: 0.5rem;
}

/* Estados de campos */
select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.campo-error {
    border-color: #e74c3c !important;
    background-color: #fdf0ed !important;
}

.campo-valido {
    border-color: #2ecc71 !important;
    background-color: #eafaf1 !important;
}


/* Columna derecha */
.course-info {
    background-color: rgba(0, 70, 181, 0.05);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.course-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Botón de envío */
.form-submit {
    text-align: center;
    margin-top: 1.5rem;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Información de vacantes */
.vacantes-disponibles {
    color: #27ae60;
    font-weight: bold;
}

.vacantes-agotadas {
    color: #c0392b;
    font-weight: bold;
}

/* Botones generales */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Botón nueva inscripción */
#nuevaInscripcion {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    margin-top: 1.5rem;
}

#nuevaInscripcion:hover {
    background: #2980b9;
}


/* Resumen de inscripción */
#resumen-inscripcion {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.resumen-content {
    max-width: 600px;
    margin: 0 auto;
}

.resumen-content h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.resumen-seccion {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.resumen-seccion h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resumen-seccion p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
}

.resumen-acciones {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Sistema de notificaciones */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 300px;
}

.notification {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
}

.notification.success { border-left-color: #28a745; }
.notification.error { border-left-color: #dc3545; }
.notification.warning { border-left-color: #ffc107; }
.notification.info { border-left-color: #17a2b8; }

.notification-icon {
    margin-right: 12px;
}

.notification-content {
    flex-grow: 1;
    padding-right: 20px;
}

.notification-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Animaciones generales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Clases de animación */
.animate {
    opacity: 0;
}

.animate.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate.fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Delays */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Media Queries */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    header {
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        padding: 0 1rem;
        height: var(--header-height);
        margin: 0;
    }

    .logo-container {
        justify-self: center;
    }

    .logo {
        display: none;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--background-color);
        padding: 1rem;
        transition: all 0.3s ease;
        z-index: 999;
        margin-top: 0;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }

    .menu-toggle {
        display: block;
    }

    .mobile-access-btn {
        display: block;
        justify-self: end;
    }

    .auth-buttons .btn-register,
    .auth-buttons .dropdown {
        display: none;
    }

    .blue-banner {
        margin-top: var(--header-height);
        padding: 2rem 0;
    }

    .main-content {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    body.nav-open {
        overflow: hidden;
    }

    .menu-toggle.active .hamburger {
        background-color: transparent;
    }

    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg) translateY(0);
    }

    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg) translateY(0);
    }
}

/* Media Query para el footer en dispositivos móviles */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Modificar el grid para que muestre un selector por línea */
    .form-row:has(select[name="curso"], 
             select[name="division"], 
             select[name="modalidad"], 
             select[name="turno"]) {
       display: grid;
       grid-template-columns: 1fr; /* Cambiado a una columna */
       gap: 1rem;
    }

    .form-field {
        margin-bottom: 1rem;
    }

    select {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 0.5rem;
    }

    input,
    select {
        font-size: 16px;
    }

    /* Aumentar el espacio entre selectores en pantallas muy pequeñas */
    .form-row:has(select[name="curso"], 
                 select[name="division"], 
                 select[name="modalidad"], 
                 select[name="turno"]) {
        gap: 1.2rem;
    }
}

/* Preferencia de usuario para reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Utilidades */
.scroll-lock {
    overflow: hidden;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-info p {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border-radius: 6px;
    border: none;
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.contact-form textarea {
    height: 100px;
    resize: vertical;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Estilos para mensajes de validación inline */
/* Estilos para campos del formulario */
.form-field {
    position: relative;
    margin-bottom: 1rem;
}

/* Estilos para mensajes de error */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
    position: absolute;
    bottom: -20px;
    left: 0;
}

/* Estilos para descripciones de campo */
.field-description {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
    position: absolute;
    bottom: -20px;
    left: 0;
}

/* Estilos para el contenedor de notificaciones */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 300px;
    pointer-events: none;
}

.form-field {
    position: relative;
    margin-bottom: 20px;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.success-message {
    color: #28a745;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.campo-error {
    border-color: #dc3545 !important;
}

.campo-success {
    border-color: #28a745 !important;
}

@media print {
    body {
        visibility: hidden;
    }
    .printable {
        visibility: visible;
    }
}



.footer-links ul {
    list-style: none;
    padding-top: 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Media Query para dispositivos móviles */
@media (max-width: 768px) {
    .footer-links {
        text-align: center;
    }

    .footer-links ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-links a {
        padding: 5px 10px;
    }

    .footer-links a:hover {
        transform: translateY(-2px);
    }
}
