/* =======================================================
   ESTILOS BLINDADOS DE CONTACTO (contactanos.css)
   Prefijo de encapsulamiento: contacto-
   ======================================================= */

/* --- HERO CONTACTO --- */
.contacto-hero {
    height: 50vh; 
    min-height: 500px;
    background-image: url('../img/HeroContactanos.jpg'); 
    background-color: var(--azul-intra, #003366);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contacto-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.412); 
    z-index: 1;
}

.contacto-hero-content {
    position: relative;
    z-index: 2;
}

.contacto-hero h1 {
    color: var(--blanco, #ffffff);
    font-size: 3.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
}

/* --- CONTENEDOR GENERAL --- */
.contacto-section {
    padding: 90px 5%;
    background-color: #ffffff;
}

.contacto-title {
    color: var(--azul-intra, #003366);
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 auto 15px auto;
    position: relative;
    display: block; /* Cambiado de inline-block a block para que obedezca el centrado */
    text-align: center; /* Centrado forzado */
}

.contact-intro {
    text-align: center !important;
}

.contacto-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 70px;
    height: 3px;
    background-color: var(--rojo-intra, #cc0000);
}

.contacto-lead {
    font-size: 1.35rem;
    color: #4b5563;
    max-width: 900px;
    margin: 30px auto 40px auto;
    line-height: 1.8;
    text-align: center;
}

/* --- FILA DIVIDIDA DE CONTACTO --- */
.contacto-split-row {
    display: flex;
    align-items: flex-start;
    gap: 50px; 
    max-width: 1200px;
    margin: 0 auto;
}

/* --- CAJA DEL FORMULARIO (IZQUIERDA) --- */
.contacto-form-box {
    flex: 1;
    background: #ffffff;
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 51, 102, 0.08);
    border-top: 6px solid var(--rojo-intra, #cc0000);
}

.contacto-form-box h2 {
    color: var(--azul-intra, #003366);
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 25px;
}

/* --- FORMULARIO INTERACTIVO --- */
.contacto-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contacto-form-group {
    display: flex;
    flex-direction: column;
}

.contacto-form-group.contacto-full-width {
    grid-column: span 2;
}

.contacto-form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.contacto-form-group label span {
    color: var(--rojo-intra, #cc0000);
}

.contacto-form-group input, 
.contacto-form-group select, 
.contacto-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contacto-form-group input:focus, 
.contacto-form-group select:focus, 
.contacto-form-group textarea:focus {
    outline: none;
    border-color: var(--azul-intra, #003366);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
}

.contacto-form-group input::placeholder, 
.contacto-form-group textarea::placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Botón de Enviar blindado */
.contacto-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 25px;
    padding: 16px 28px;
    background-color: var(--azul-intra, #003366);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.contacto-btn-submit:hover {
    background-color: var(--rojo-intra, #cc0000);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(204, 0, 0, 0.2);
}

.contacto-btn-submit i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.contacto-btn-submit:hover i {
    transform: translateX(4px);
}

/* --- CAJA DE INFORMACIÓN (DERECHA) --- */
.contacto-info-box {
    flex: 0 0 42%;
    background: transparent; 
    padding: 45px 20px 20px 20px; 
    border: none; 
    box-shadow: none; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center; 
}

.contacto-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 40px; 
    width: 100%;
    max-width: 360px; 
}

.contacto-info-list li {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    gap: 12px;
}

.contacto-info-icon {
    width: 55px;
    height: 55px;
    background-color: #e2e8f0; 
    color: var(--azul-intra, #003366); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

/* Efecto hover rojo en los iconos */
.contacto-info-list li:hover .contacto-info-icon {
    transform: scale(1.08);
    background-color: var(--rojo-intra, #cc0000);
    color: #ffffff;
}

.contacto-info-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacto-info-text strong {
    color: var(--azul-intra, #003366);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contacto-info-text a, 
.contacto-info-text span {
    color: #4b5563;
    font-size: 1.05rem;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.contacto-info-text a:hover {
    color: var(--rojo-intra, #cc0000);
}

/* --- RESPONSIVE DE CONTACTO --- */
@media (max-width: 992px) {
    .contacto-split-row {
        flex-direction: column;
        gap: 40px;
    }

    .contacto-info-box, 
    .contacto-form-box {
        flex: unset;
        width: 100%;
        padding: 30px 20px;
    }

    .contacto-form-grid {
        grid-template-columns: 1fr;
    }

    .contacto-form-group.contacto-full-width {
        grid-column: span 1;
    }

    .contacto-hero h1 {
        font-size: 2.5rem;
    }
}