/*
Theme Name: UDLA Executive Online
Description: Tema minimalista para landing page de admisión executive online de UDLA
Version: 1.0
Author: UDLA
Text Domain: udla-executive-online
*/

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header */
.site-header {
    background: #ffffff;
    color: #333;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.site-logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.header-admission-logo {
    display: flex;
    align-items: center;
}

.admission-logo-img {
    width: auto;
    max-width: 180px;
    transition: opacity 0.3s ease;
}

.admission-logo-img:hover {
    opacity: 0.8;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    color: #ff5200;
    text-decoration: none;
    font-family: Arial, sans-serif;
    letter-spacing: 2px;
}

/* Barra superior naranja */
.header-top-bar {
    background: #ff5200;
    color: white;
    padding: 0.5rem 0;
    text-align: right;
    font-size: 0.9rem;
}

.header-top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navegación */
.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 2rem;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #ff5200;
}

/* Main content */
.site-main {
    margin-top: 52px;
    min-height: calc(100vh - 160px);
}

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

/* Hero section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Overlay sutil para mejorar legibilidad */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* Imagen mobile que se oculta en desktop */
.hero-mobile-bg {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    min-height: 60vh;
    width: 100%;
}

.hero-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 0;
}

.hero-info-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 420px;
    width: 100%;
    border: none;
    position: relative;
    overflow: hidden;
}

.hero-info-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff5200, #e64a00);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
    color: #333;
    line-height: 1.1;
}

.hero-features {
    margin: 1.5rem 0 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-logo-header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-logo-header {
    margin-bottom: 0;
    max-width: 180px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #333;
    padding: 0.75rem 1rem;
    background: rgba(249, 115, 22, 0.05);
    border-radius: 8px;
    border-left: 3px solid #ff5200;
    transition: all 0.3s ease;
    gap: 0.75rem;
}

.feature-item:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: translateX(5px);
}

.feature-icon {
    color: #ff5200;
    font-size: 1.4rem;
    font-weight: bold;
    margin-right: 0;
    width: 22px;
    height: 22px;
    text-align: center;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.hero-right {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 1rem;
    padding-right: 0;
    margin-right: 0;
}

.hero-form-placeholder {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mejorar el formulario de contacto en el hero */
.hero-right .udla-contact-form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    border: none;
    margin-right: 0;
    margin-left: auto;
}

.form-header {
    background: #ff5200;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.form-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white !important;
}

.form-content {
    padding: 2rem;
    text-align: center;
}

.form-placeholder-text {
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Formulario de contacto */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-header {
    background: #ff5200;
    color: white;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
    text-align: center;
    font-weight: bold;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff5200;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.cta-button {
    background: #ff5200;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
    width: 100%;
    text-align: center;
}

.cta-button:hover {
    background: #e64a00;
}

/* Barras separadoras naranjas */
.section-separator {
    background: #ff5200;
    color: white;
    padding: 1rem 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Content sections */
.content-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff5200, #ff7a33);
    border-radius: 2px;
}

.section-title.text-light {
    color: #ffffff;
}

.section-title.text-light::after {
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.7));
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }
}

/* Asegurar que todos los títulos sean negros */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #333 !important;
}

/* Sobrescribir clases de Bootstrap que puedan aplicar color azul */
.text-primary {
    color: #333 !important;
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Sección de carreras */
.carreras-section {
    background: #f8fafc;
    padding: 3rem 0;
}

/* Bootstrap Accordion personalizado */
.accordion-button {
    background-color: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.accordion-button:not(.collapsed) {
    background-color: #ff5200 !important;
    color: white !important;
    border-color: #ff5200 !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
}

.accordion-button:hover {
    background-color: #fef3e7 !important;
    border-color: #ff5200 !important;
    color: #1f2937 !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(249, 115, 22, 0.25) !important;
    border-color: #ff5200 !important;
    background-color: white !important;
    color: #1f2937 !important;
}

.accordion-button:not(.collapsed):hover {
    background-color: #e64a00 !important;
    color: white !important;
    border-color: #e64a00 !important;
}

.accordion-button:not(.collapsed):focus {
    background-color: #ff5200 !important;
    color: white !important;
    border-color: #ff5200 !important;
    box-shadow: 0 0 0 0.25rem rgba(249, 115, 22, 0.25) !important;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:hover::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f97316'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed):hover::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-item {
    border: none !important;
    margin-bottom: 1rem !important;
}

.accordion-body {
    background-color: white !important;
    border: 1px solid #e5e7eb !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    padding: 2rem !important;
}

.accordion-collapse {
    border: none !important;
}

/* Estilos para el header del accordion con botón */
.accordion-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.accordion-header-content .accordion-button {
    flex: 1;
    text-align: left;
}

.accordion-actions {
    display: flex;
    align-items: center;
    z-index: 5;
}

.download-malla-btn {
    font-size: 0.875rem !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.375rem !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    border-color: #ff5200 !important;
    color: #ff5200 !important;
}

.download-malla-btn:hover {
    background-color: #ff5200 !important;
    border-color: #ff5200 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
}

.download-malla-btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(249, 115, 22, 0.25) !important;
    outline: none !important;
}

/* Estilos para el modal Bootstrap de contacto */
#contactModal {
    z-index: 1055 !important;
}

#contactModal .modal-dialog {
    max-width: 500px !important;
    margin: 1rem auto !important;
    height: calc(100vh - 2rem) !important;
    display: flex !important;
    align-items: center !important;
}

#contactModal .modal-content {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    background-color: white !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#contactModal .modal-header {
    background: linear-gradient(135deg, #ff5200, #e64a00) !important;
    color: white !important;
    border-bottom: none !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem !important;
    position: relative !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#contactModal .modal-title {
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    color: white !important;
    line-height: 1.3 !important;
}

#contactModal .btn-close {
    background: none !important;
    border: none !important;
    padding: 0.5rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 2rem !important;
    height: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

#contactModal .btn-close::before {
    content: "×" !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: white !important;
    line-height: 1 !important;
}

#contactModal .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
}

#contactModal .btn-close:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5) !important;
}

/* Asegurar que el botón cerrar sea siempre visible */
#contactModal .btn-close,
#contactModal .btn-close *,
#contactModal .btn-close::before,
#contactModal .btn-close::after {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

/* Resetear cualquier estilo de Bootstrap que pueda estar ocultando el botón */
#contactModal .btn-close {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: auto !important;
}

#contactModal .modal-body {
    padding: 1.5rem !important;
    background-color: white !important;
    border-radius: 0 0 12px 12px !important;
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#contactModal .udla-contact-form-container {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: auto !important;
    max-width: none !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
    box-shadow: none !important;
}

#contactModal .form-header {
    display: none !important;
}

/* Asegurar que todos los elementos del formulario sean visibles y opacos */
#contactModal .form-control {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0.5rem 0.7rem !important;
    font-size: 0.9rem !important;
    border-radius: 0.375rem !important;
}

#contactModal .form-control:focus {
    background-color: white !important;
    border-color: #ff5200 !important;
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25) !important;
    color: #333 !important;
}

#contactModal .radio-group,
#contactModal .checkbox-group {
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#contactModal .btn-submit {
    background: linear-gradient(135deg, #ff5200, #e64a00) !important;
    border: none !important;
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 0.375rem !important;
    width: 100% !important;
    margin-top: 0.8rem !important;
}

#contactModal .btn-submit:hover {
    background: linear-gradient(135deg, #e64a00, #dc2626) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
}

/* Contenedor adicional para el formulario en el modal */
#contactModal .modal-form-container {
    background: white !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Asegurar que el backdrop del modal sea visible */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 1050 !important;
}

/* Forzar opacidad completa en todos los elementos del modal */
#contactModal * {
    opacity: 1 !important;
}

#contactModal .modal-content,
#contactModal .modal-header,
#contactModal .modal-body,
#contactModal .form-group,
#contactModal .form-control,
#contactModal .btn-submit {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Asegurar que los labels sean visibles */
#contactModal .form-label {
    color: #333 !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-bottom: 0.2rem !important;
    font-size: 0.8rem !important;
    display: block !important;
}

/* Estilos para radio buttons y checkboxes */
#contactModal .radio-option,
#contactModal .checkbox-option {
    background: transparent !important;
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-bottom: 0.5rem !important;
    padding: 0.5rem 0 !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
    gap: 0.4rem !important;
}

#contactModal .radio-option input[type="radio"] {
    margin: 0 !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
}

#contactModal .radio-label,
#contactModal .checkbox-option span {
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#contactModal .radio-group {
    display: flex !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

#contactModal .checkbox-group {
    margin-bottom: 1rem !important;
}

/* Estilos para mensajes de validación */
#contactModal .form-messages {
    margin-top: 1rem !important;
    padding: 1rem !important;
    border-radius: 0.375rem !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#contactModal .form-messages.success {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

#contactModal .form-messages.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Asegurar que el formulario dentro del modal Bootstrap funcione correctamente */
#contactModal .udla-contact-form {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: auto !important;
    max-width: none !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

#contactModal .form-body {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: auto !important;
    max-width: none !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Asegurar que los grupos de formulario se vean bien */
#contactModal .form-group {
    position: static !important;
    margin-bottom: 0.6rem !important;
    width: 100% !important;
}

#contactModal .form-control {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    #contactModal .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
        width: auto !important;
        height: calc(100vh - 1rem) !important;
    }

    #contactModal .modal-content {
        border-radius: 8px !important;
        height: 100% !important;
    }

    #contactModal .modal-header {
        padding: 1rem !important;
        border-radius: 8px 8px 0 0 !important;
    }

    #contactModal .modal-body {
        padding: 1.5rem !important;
        border-radius: 0 0 8px 8px !important;
        overflow-y: auto !important;
    }

    #contactModal .modal-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }

    #contactModal .form-control {
        font-size: 16px !important; /* Previene zoom en iOS */
        padding: 0.4rem 0.6rem !important;
    }

    #contactModal .btn-close {
        width: 2.5rem !important;
        height: 2.5rem !important;
        padding: 0.75rem !important;
    }

    #contactModal .btn-close::before {
        font-size: 1.75rem !important;
    }

    #contactModal .radio-group {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
        align-items: center !important;
    }

    #contactModal .radio-option {
        flex: 0 0 auto !important;
        min-width: fit-content !important;
        align-items: center !important;
        line-height: 1 !important;
        gap: 0.4rem !important;
    }

    #contactModal .radio-option input[type="radio"] {
        margin: 0 !important;
        width: 18px !important;
        height: 18px !important;
    }

    #contactModal .radio-label {
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    #contactModal .modal-dialog {
        margin: 0.25rem !important;
        max-width: calc(100% - 0.5rem) !important;
        height: calc(100vh - 0.5rem) !important;
    }

    #contactModal .modal-header {
        padding: 0.75rem !important;
    }

    #contactModal .modal-body {
        padding: 1rem !important;
    }

    #contactModal .modal-title {
        font-size: 1rem !important;
    }

    #contactModal .form-control {
        font-size: 16px !important;
        padding: 0.4rem 0.6rem !important;
    }

    #contactModal .btn-close {
        width: 2.25rem !important;
        height: 2.25rem !important;
        padding: 0.5rem !important;
    }

    #contactModal .btn-close::before {
        font-size: 1.5rem !important;
    }
}

.carreras-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.carrera-item {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #e5e7eb;
}

.carrera-item:hover {
    background: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carrera-item.active {
    background: white;
    border-left: 4px solid #ff5200;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.2);
}

.carrera-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    padding-right: 2rem;
    position: relative;
}

.carrera-title::after {
    content: "▼";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #ff5200;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.carrera-item.active .carrera-title::after {
    transform: translateY(-50%) rotate(180deg);
}

.carrera-details {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    animation: fadeIn 0.3s ease;
}

.carrera-details.active {
    display: block;
}

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

.carrera-detail-section {
    margin-bottom: 2rem;
}

.carrera-detail-section h4 {
    color: #ff5200;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carrera-detail-section p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 0.5rem;
}

.carrera-detail-section p strong {
    color: #333;
}

.carrera-detail-section ul {
    padding-left: 1.5rem;
}

.carrera-detail-section li {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.5;
}

.carrera-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.carrera-actions .cta-button,
.carrera-actions .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    min-width: 150px;
}

.carrera-actions .cta-button {
    background: #ff5200;
    color: white;
}

.carrera-actions .cta-button:hover {
    background: #e64a00;
    transform: translateY(-2px);
}

.carrera-actions .btn-secondary {
    background: #6b7280;
    color: white;
}

.carrera-actions .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* Sección de estadísticas */
.estadisticas-section {
    padding: 3rem 0;
}

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

.estadistica-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.estadistica-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.estadistica-numero {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff5200;
    margin-bottom: 0.5rem;
}

.estadistica-descripcion {
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
}

/* Sección de requisitos */
.requisitos-section {
    background: #f8fafc;
    padding: 3rem 0;
}

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

.requisitos-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: justify;
}

.requisitos-card h3 {
    color: #ff5200;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.requisitos-content {
    color: #666;
    line-height: 1.6;
}

.requisitos-content ul,
.requisitos-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.requisitos-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.requisitos-content p {
    margin-bottom: 1rem;
}

.requisitos-content strong {
    color: #333;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: white;
    color: #333;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    max-width: 180px;
    filter: brightness(0);
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 800px;
}

.footer-logos .footer-logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    /* filter: brightness(0); */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logos .footer-logo:hover {
    opacity: 1;
}

.footer-acreditacion-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-acreditacion-img {
    height: 50px;
    width: auto;
    max-width: 120px;
    filter: brightness(0);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-acreditacion-img:hover {
    opacity: 1;
}

.footer-acreditacion {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.acreditacion-text {
    font-size: 0.9rem;
    color: #666;
}

/* ========================================
   FORMULARIO DE CONTACTO UDLA
   ======================================== */

.udla-contact-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.udla-contact-form .form-header {
    background: #ff5200;
    color: white;
    padding: 0.8rem 1rem;
    text-align: center;
}

.udla-contact-form .form-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.udla-contact-form .form-body {
    padding: 1rem;
}

.udla-contact-form .form-group {
    margin-bottom: 0.6rem;
}

.udla-contact-form .form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #333;
    font-size: 0.8rem;
}

.udla-contact-form .form-control {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.udla-contact-form .form-control:focus {
    outline: none;
    border-color: #ff5200;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.udla-contact-form .form-control::placeholder {
    color: #9ca3af;
}

/* Radio buttons */
.udla-contact-form .radio-group {
    display: flex;
    gap: 0.8rem;
}

.udla-contact-form .radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    line-height: 1;
    gap: 0.4rem;
}

.udla-contact-form .radio-option input[type="radio"] {
    margin: 0;
    accent-color: #ff5200;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.udla-contact-form .radio-label {
    color: #333;
    font-size: 0.8rem;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

/* Checkbox */
.udla-contact-form .checkbox-group {
    margin-top: 0.3rem;
}

.udla-contact-form .checkbox-option {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.udla-contact-form .checkbox-option input[type="checkbox"] {
    margin-right: 0.4rem;
    margin-top: 0.15rem;
    accent-color: #ff5200;
}

.udla-contact-form .checkbox-label {
    color: #333;
    font-size: 0.75rem;
    line-height: 1.3;
}

.udla-contact-form .privacy-link {
    color: #ff5200;
    text-decoration: underline;
}

.udla-contact-form .privacy-link:hover {
    color: #e64a00;
}

/* Botón de envío */
.udla-contact-form .btn-submit {
    width: 100%;
    background: #ff5200;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.udla-contact-form .btn-submit:hover {
    background: #e64a00;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.25);
}

.udla-contact-form .btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.udla-contact-form .arrow {
    font-size: 1rem;
    font-weight: bold;
}

/* Mensajes de respuesta */
.udla-contact-form .form-messages {
    margin-top: 0.5rem;
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: center;
}

.udla-contact-form .form-messages.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.udla-contact-form .form-messages.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Estilos para modal personalizado (solo cuando NO está en Bootstrap modal) */
.udla-contact-form-container[data-modal="true"]:not(#contactModal *) {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Cuando está dentro del modal Bootstrap, usar estilos normales */
#contactModal .udla-contact-form-container[data-modal="true"] {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: auto !important;
    max-width: none !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.udla-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.udla-modal-overlay.active {
    display: block;
}

.accordion-collapse {
    text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
    .udla-contact-form-container {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .udla-contact-form .form-header {
        padding: 0.6rem 0.8rem;
    }

    .udla-contact-form .form-header h3 {
        font-size: 0.9rem;
    }

    .udla-contact-form .form-body {
        padding: 0.8rem;
    }

    .udla-contact-form .form-group {
        margin-bottom: 0.5rem;
    }

    .udla-contact-form .form-control {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .udla-contact-form .form-label {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }

    .udla-contact-form .radio-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
    }

    .udla-contact-form .radio-option {
        align-items: center;
        line-height: 1;
        gap: 0.4rem;
    }

    .udla-contact-form .radio-option input[type="radio"] {
        margin: 0;
        width: 18px;
        height: 18px;
    }

    .udla-contact-form .radio-label {
        font-size: 0.75rem;
        line-height: 1.2;
        margin: 0;
        padding: 0;
    }

    .udla-contact-form .checkbox-label {
        font-size: 0.7rem;
    }

    .udla-contact-form .btn-submit {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .udla-contact-form .form-messages {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
        min-height: auto;
    }

    .hero-left {
        align-items: center;
        padding: 0.5rem 0;
        order: 2;
    }

    .hero-right {
        order: 1;
        margin-bottom: 0.5rem;
        padding-top: 0.5rem;
    }

    .hero-info-box {
        padding: 1.5rem;
        max-width: 100%;
        border-radius: 12px;
    }

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

    .feature-item {
        font-size: 1rem;
        margin-bottom: 0;
        padding: 0.6rem 0.8rem;
    }

    .hero-logo-header {
        max-width: 150px;
    }

    .hero-features {
        gap: 0.8rem;
    }

    .hero-logo-header-container {
        margin-bottom: 1rem;
    }

    .hero-form-placeholder {
        max-width: 100%;
    }

    .header-content {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Logo responsive para mobile */
    .site-logo-img {
        height: 40px;
        max-width: 150px;
    }

    /* Logo admisión responsive para mobile */
    .admission-logo-img {
        max-width: 140px;
    }

    /* Footer logos responsive */
    .footer-logos {
        flex-direction: column;
        gap: 1.5rem;
        max-width: 100%;
    }

    .footer-logos .footer-logo {
        height: 35px;
        max-width: 140px;
    }

    .footer-logo-img {
        height: 35px;
        max-width: 140px;
    }

    .footer-acreditacion-img {
        height: 40px;
        max-width: 100px;
    }

    /* Mostrar imagen mobile en dispositivos móviles */
    .hero-mobile-bg {
        display: block;
    }

    /* Ocultar imagen desktop en mobile */
    .hero-section {
        background-image: none !important;
    }

    /* Responsive para botón de descarga en accordion */
    .accordion-header-content {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .accordion-header-content .accordion-button {
        flex: none;
        margin-bottom: 0;
    }

    .accordion-actions {
        justify-content: center;
    }

    .download-malla-btn {
        width: 100%;
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* ========================================
   LOADING SPINNER PARA SELECTORES
======================================== */

.selector-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.loading-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Estados de carga para selectores */
.selector-wrapper.loading .form-control {
    opacity: 0.6;
    pointer-events: none;
}

/* Asegurar comportamiento correcto del dropdown */
.selector-carrera,
.selector-sedes {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    text-align: left;
    padding-left: 12px;
}

/* Justificar opciones de los dropdowns */
.selector-carrera option,
.selector-sedes option {
    text-align: left;
    padding: 8px 12px;
}

.selector-carrera:focus,
.selector-sedes:focus {
    outline: none;
    border-color: #ff5200;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.selector-wrapper.loading .loading-spinner {
    display: flex !important;
}

/* Estado de error */
.selector-wrapper.error .form-control {
    border-color: #dc3545;
    opacity: 0.6;
}

.loading-spinner.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.loading-spinner.error .loading-text {
    color: #dc3545;
}

.loading-spinner.error .spinner {
    border-color: #dc3545;
    border-top-color: #dc3545;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .loading-spinner {
        right: 8px;
        padding: 2px 6px;
    }

    .loading-text {
        font-size: 11px;
    }

    .spinner {
        width: 14px;
        height: 14px;
        border-width: 1.5px;
    }
}

/* ========================================
   VALIDACIONES DE FORMULARIO
======================================== */

/* Campos con error */
.form-control.error,
input.error,
select.error,
textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Mensajes de error */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Contenedor de mensaje de error general */
#error-message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #f5c6cb;
    background-color: #f8d7da;
    color: #721c24;
}

/* Animación para campos con error */
.form-control.error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Estados de validación */
.form-group.valid .form-control {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Botón de envío deshabilitado */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Indicador de carga en botón */
button[type="submit"]:disabled::after {
    content: " ⏳";
    animation: spin 1s linear infinite;
}

/* ========================================
   PÁGINA DE AGRADECIMIENTO
   ======================================== */

.udla-thanks-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.success-icon svg {
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thanks-message {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.info-card {
    transition: transform 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-buttons .btn {
    min-width: 180px;
}

@media (max-width: 768px) {
    .udla-thanks-page .display-4 {
        font-size: 2.5rem;
    }

    .udla-thanks-page .action-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .udla-thanks-page .action-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
}
