:root {
    --primary-color: #1c2a4f; /* Azul Marino */
    --secondary-color: #f36c21; /* Naranja */
    --accent-color: #17a2a5; /* Turquesa (Programa Magallanes) */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-color: #f4f4f4;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-dark); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* HERO SECTION */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(28, 42, 79, 0.95) 0%, rgba(23, 162, 165, 0.85) 100%), 
                url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?q=80&w=2070&auto=format&fit=crop') center/cover;
    min-height: 520px;
    display: flex;
    padding: 50px 10%;
    color: var(--text-light);
}

.hero-content {
    width: 55%;
    padding-right: 50px;
}

.hero-content h1 { 
    font-size: 38px; 
    line-height: 1.2; 
    margin-bottom: 25px; 
    font-weight: 700; 
}

.speakers-grid {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ANIMACIÓN PARA LOS EXPOSITORES (EFECTO HOVER) */
.speaker-info {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease; /* Transición suave */
    cursor: pointer;
}

/* Efecto al pasar el mouse por los expositores */
.speaker-info:hover {
    transform: translateY(-5px); /* Se levanta un poco */
    background: rgba(255,255,255,0.2); /* Se aclara el fondo */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Añade sombra */
}

.speaker-info div h4 { margin: 0; font-size: 14px; color: white;}
.speaker-info div p { margin: 0; font-size: 12px; color: #e0e0e0; }

/* CONTENT & LAYOUT */
.content-section {
    display: flex;
    padding: 0 10%;
    margin-top: -100px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.description-box {
    width: 55%;
    padding-right: 50px;
    padding-top: 120px;
}

/* --- FRANJA DE LOGOS AUSPICIADORES --- */
.header-logos-section {
    margin-bottom: 40px;
}

.top-logos {
    background-color: #22a8b1; 
    padding: 15px;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 20px;
    border-radius: 8px 8px 0 0;
    align-items: center;
}

.logo-col {
    flex: 1 1 30%; 
    min-width: 120px;
    text-align: center;
}

.sponsor-logo {
    max-width: 100%;
    height: auto;
    max-height: 120px; 
    object-fit: contain;
}

/* --- ESTILO PARA EL TÍTULO DEL PROGRAMA --- */
.program-title {
    font-size: 48px; 
    text-align: center; 
    line-height: 1.1;
    margin: 30px 0; 
    color: var(--accent-color); 
    font-weight: 700;
}

.title-dark {
    color: var(--primary-color); 
}

.title-orange {
    color: var(--secondary-color); 
}


/* --- CAJA DE ICONOS (CON IMAGENES EN VEZ DE FONTAWESOME) --- */
.icon-features-box {
    display: flex;
    background-color: #22a8b1; /* Fondo turquesa de la card */
    color: white;
    padding: 20px;
    border-radius: 8px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-item {
    text-align: center;
    flex: 1;
}

/* ANIMACIÓN PARA LOS ÍCONOS (EFECTO HOVER) */
.feature-icon-img {
    max-width: 45px; 
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease; /* Transición suave para el escalado */
}

/* Efecto al pasar el mouse por el ícono (solo la imagen crece) */
.feature-item:hover .feature-icon-img {
    transform: scale(1.15); /* Aumenta el tamaño un 15% */
}

.feature-item span {
    font-size: 13px;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

.feature-divider {
    width: 1px;
    height: 50px;
    background-color: rgba(255,255,255,0.4);
}

/* AGENDA STYLES */
.agenda {
    margin-top: 20px;
}

.agenda-day {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 18px;
}

/* ANIMACIÓN PARA LA AGENDA (EFECTO HOVER) */
.agenda-item {
    display: flex;
    margin-bottom: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease; /* Transición suave */
}

/* Efecto al pasar el mouse por cada actividad de la agenda */
.agenda-item:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1); /* Sombra más pronunciada */
    border-left: 6px solid var(--secondary-color); /* La línea cambia de color a naranja y se hace más gruesa */
    transform: translateX(5px); /* Se mueve ligeramente hacia la derecha */
}

.agenda-time {
    width: 100px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
}

.agenda-content {
    flex-grow: 1;
}

.agenda-content strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 15px;
}

.agenda-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* --- FORMULARIO Y LOGO DEL FORMULARIO --- */
.form-container {
    width: 45%;
    background-color: #ffffff;
    padding: 40px;
    border-top: 5px solid var(--secondary-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    margin-top: -120px; 
    align-self: flex-start; /* <--- AGREGA ESTA LÍNEA AQUÍ */
}

.form-logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.main-form-logo {
    max-width: 100%;
    height: auto;
    max-height: 180px; 
    object-fit: contain;
}

.form-container h2 { 
    text-align: center; 
    color: var(--primary-color); 
    margin-bottom: 30px; 
    font-size: 24px;
}

.form-group { margin-bottom: 18px; }

.form-group label { 
    display: block; 
    font-size: 12px; 
    font-weight: 600; 
    margin-bottom: 6px; 
    color: #666; 
    text-transform: uppercase;
}

.form-control {
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 3px;
    font-size: 14px; 
    background-color: #fafafa; 
    transition: all 0.3s ease;
}

.form-control:focus { 
    outline: none; 
    border-color: var(--accent-color); 
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(23, 162, 165, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; 
    background-position: right 1rem center; 
    background-size: 1em;
}

/* ANIMACIÓN PARA EL BOTÓN */
.btn-submit {
    width: 100%; 
    padding: 14px; 
    background-color: var(--secondary-color);
    color: white; 
    border: none; 
    border-radius: 4px; 
    font-size: 16px; 
    font-weight: bold;
    cursor: pointer; 
    transition: all 0.3s ease; /* Transición suave */
    margin-top: 15px;
}

.btn-submit:hover { 
    background-color: var(--primary-color); 
    transform: translateY(-2px); /* Se levanta un poco */
    box-shadow: 0 5px 15px rgba(28, 42, 79, 0.3); /* Añade sombra con el color primario */
}

#mensaje-exito {
    display: none; 
    background-color: #d4edda; 
    color: #155724; 
    padding: 15px;
    border-radius: 4px; 
    margin-bottom: 20px; 
    text-align: center; 
    font-weight: bold;
}

.disclaimer { 
    font-size: 11px; 
    color: #999; 
    margin-top: 15px; 
    text-align: center; 
}

/* RESPONSIVE (CELULARES) */
@media (max-width: 992px) {
    .hero-section { flex-direction: column; padding: 40px 5%; min-height: auto; }
    .hero-content { width: 100%; padding-right: 0; margin-bottom: 20px; }
    .content-section { flex-direction: column; padding: 0 5%; margin-top: 0; }
    .description-box { width: 100%; padding-right: 0; padding-top: 30px; margin-bottom: 40px; order: 2; }
    
    .form-container { width: 100%; order: 1; border-top: none; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-top: 0;}
    
    .icon-features-box { flex-direction: column; gap: 15px;}
    .feature-divider { width: 100%; height: 1px; }
}