/* ============================================= */
/* --- ESTILOS SECCIÓN AUSPICIANTES --- */
/* ============================================= */

.auspiciantes-container {
    position: relative;
    width: 100%;
    min-height: 80vh; /* Altura adaptable */
    bbackground-color: #050505;
    background-image: url('../media/images/backgrounds/background_auspiciantes.png'); 
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 5%;
    overflow: hidden;
}

.auspiciantes-wrapper {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 60px;
    align-items: center;
    z-index: 10;
}

/* --- COLUMNA IZQUIERDA --- */
.auspiciantes-left {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Separación entre título, texto y botones */
}

.ausp-title {
    width: 100%;
    max-width: 550px; /* Ajusta según el tamaño de tu imagen */
    height: auto;
}

.ausp-text {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.ausp-buttons {
    display: flex;
    flex-wrap: wrap; /* Si la pantalla es pequeña, bajan a la siguiente línea */
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

.ausp-btn img {
    height: 50px; /* Tamaño de los botones */
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.ausp-btn:hover img {
    transform: scale(1.05) translateY(-5px);
    filter: brightness(1.2);
}

/* --- COLUMNA DERECHA (EL MARCO DE FOTO) --- */
.auspiciantes-right {
    display: flex;
    justify-content: flex-end;
}

.ausp-image-frame {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.ausp-main-img {
    width: 100%;
    height: auto;
    display: block;
    /* Redondeamos esquinas, excepto arriba-derecha y abajo-izquierda */
    border-radius: 40px 0 40px 0; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* ============================================= */
/* --- ESTADO INICIAL DE ANIMACIONES (FADE) ---  */
/* ============================================= */

.fade-item {
    opacity: 0;
    transform: translateY(40px); /* Bajan 40px y están invisibles */
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Clase que inyectará JavaScript */
.fade-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================= */
/* --- RESPONSIVO --- */
/* ============================================= */
@media (max-width: 1024px) {
    .auspiciantes-wrapper {
        grid-template-columns: 1fr; /* Pasa a 1 sola columna */
        gap: 50px;
    }
    
    .auspiciantes-left {
        align-items: center; /* Centramos el contenido en móvil */
        text-align: center;
    }
    
    .ausp-buttons {
        justify-content: center;
    }
    
    .auspiciantes-right {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .ausp-btn img {
        height: 40px; /* Botones más pequeños en celular */
    }
    .ausp-deco-left {
        display: none; /* Ocultamos el adorno en celular para ahorrar espacio */
    }
}

/* ============================================= */
/* --- MODAL DOSSIER --- */
/* ============================================= */

/* Fondo oscurecido con desenfoque */
.dossier-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 99999;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Estado activo del Modal */
.dossier-modal-overlay.active {
    opacity: 1; pointer-events: auto;
}

/* La ventana principal */
.dossier-modal {
    background: #050505;
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 8px;
    width: 90%; max-width: 480px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 30px rgba(255, 69, 0, 0.15);
    overflow: hidden;
}

.dossier-modal-overlay.active .dossier-modal {
    transform: scale(1) translateY(0);
}

/* Cabecera Naranja */
.dossier-modal-header {
    background: var(--primary-orange, #FF4500);
    padding: 20px;
    position: relative;
    text-align: center;
}

.dossier-modal-header h3 {
    color: #ffffff; margin: 0; font-size: 1.4rem; font-weight: 700; letter-spacing: 1px;
}

/* Botón cerrar X */
.dossier-close {
    position: absolute;
    top: 50%; right: 15px; transform: translateY(-50%);
    background: transparent; border: none; color: #ffffff; font-size: 2rem;
    cursor: pointer; transition: transform 0.3s, color 0.3s;
    line-height: 1;
}

.dossier-close:hover { 
    transform: translateY(-50%) scale(1.2); 
    color: #ffcccc;
}

/* Formulario */
.dossier-modal-body { padding: 30px; }
.dossier-form { display: flex; flex-direction: column; gap: 18px; }

.dossier-input {
    background: #111111; border: 1px solid #333333; color: #ffffff;
    padding: 14px 18px; border-radius: 6px; font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s; outline: none;
    font-family: inherit;
}

.dossier-input:focus { 
    border-color: var(--primary-orange, #FF4500); 
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.2);
}

/* Checkboxes */
.dossier-checkbox-label {
    color: #aaaaaa; font-size: 0.85rem; display: flex; gap: 12px; cursor: pointer;  line-height: 1.4;
}

.dossier-checkbox-label input[type="checkbox"] {
    accent-color: var(--primary-orange, #FF4500); width: 18px; height: 18px; margin-top: 1px; cursor: pointer;
}

.dossier-link{
	color: var(--primary-orange, #FF4500);
	text-decoration: underline dotted;
}

/* Botón de Submit Naranja */
.dossier-submit-btn {
    background: var(--primary-orange, #FF4500); color: #ffffff;
    border: none; padding: 16px; font-size: 1.1rem; font-weight: 700;
    transition: background 0.3s, transform 0.3s; text-transform: uppercase;
}

.dossier-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--primary-orange, #FF4500); /* Mantiene el color base sin el hover oscuro */
    transform: none !important;
    box-shadow: none !important;
}

.dossier-submit-btn:hover { 
    background: #e03e00; transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
	cursor: pointer; 
}

/* --- MENSAJES DE ALERTA (ERROR / ÉXITO) --- */
.dossier-msg {
    display: none; align-items: flex-start; gap: 12px;
    padding: 15px; border-radius: 6px; font-size: 0.95rem; font-weight: 500;
    margin-top: 10px; animation: slideDownMsg 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideDownMsg { 
    from { opacity: 0; transform: translateY(-10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.dossier-msg svg { flex-shrink: 0; width: 24px; height: 24px; }

/* Rojo Bajito (Error) */
.dossier-msg.error {
    display: flex;
    background: rgba(239, 68, 68, 0.15); /* Fondo rojizo tenue */
    border: 1px solid rgba(239, 68, 68, 0.4); 
    color: #fca5a5; /* Texto rojo claro legible */
}

/* Verde Bajito (Éxito) */
.dossier-msg.success {
    display: flex;
    background: rgba(34, 197, 94, 0.15); /* Fondo verdoso tenue */
    border: 1px solid rgba(34, 197, 94, 0.4); 
    color: #86efac; /* Texto verde claro legible */
}

/* Responsivo del modal */
@media (max-width: 500px) {
    .dossier-modal-body { padding: 20px; }
    .dossier-input { padding: 12px 15px; }
    .dossier-submit-btn { font-size: 1rem; }
}

@keyframes spin { 100% { transform: rotate(360deg); } }