/* ================= HERO CONTACTO ================= */
.hero-contacto {
    min-height: 85vh; /* Mismo tamaño que index.html */
    /* La imagen de fondo ahora se maneja individualmente desde contacto.html */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-contacto-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 30, 55, 0.75);
}

.hero-contacto-content {
    position: relative;
    z-index: 3;
    padding: 60px 20px;
}

.hero-contacto-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-contacto-subtitle {
    font-size: 1.3rem;
}

/* ================= CONTACTO ================= */
.contacto-section {
    padding: 80px 20px;
    background: #f4f7fa; /* Fondo gris muy suave para que resalte la tarjeta */
}

.contacto-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 4fr 6fr;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden; /* Para que los bordes redondeados corten el fondo azul */
}

/* Lado Izquierdo: Info */
.contacto-info {
    background: #0b3a63;
    color: #fff;
    padding: 50px 40px;
}

.contacto-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.contacto-info > p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: #91113b; /* Cambiado a un tono rosado vibrante */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto de rebote en la transición */
}

.info-card:hover .info-icon svg {
    transform: scale(1.2) rotate(10deg); /* Pequeño crecimiento y giro */
}

.info-card h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #00bfc6; /* Regresamos al celeste corporativo para que contraste con el fondo azul oscuro */
}

.info-card p {
    margin-bottom: 0;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Lado Derecho: Formulario */
.contacto-form-wrapper {
    padding: 50px 50px;
}

.contacto-form-wrapper h2 {
    font-size: 2.2rem;
    color: #0b3a63;
    margin-bottom: 10px;
}

.contacto-form-wrapper > p {
    color: #666;
    margin-bottom: 30px;
}

.contact-form-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-modern .input-group input,
.contact-form-modern .input-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.3s ease;
}

.contact-form-modern .input-group input:focus,
.contact-form-modern .input-group textarea:focus {
    border-color: #00bfc6;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 191, 198, 0.1);
}

/* Responsive Contacto */
@media (max-width: 900px) {
    .contacto-container {
        grid-template-columns: 1fr;
    }
    .contacto-info,
    .contacto-form-wrapper {
        padding: 40px 25px;
    }
}

/* ================= AJUSTES ESPECÍFICOS PARA CELULARES ================= */
@media (max-width: 768px) {
    .hero-contacto-title {
        font-size: 2.2rem;
    }
    
    .hero-contacto-subtitle {
        font-size: 1rem;
    }
    
    .contacto-section {
        padding: 50px 20px;
    }
    
    .contacto-info,
    .contacto-form-wrapper {
        padding: 30px 20px;
    }
    
    .contacto-form-wrapper h2 {
        font-size: 1.8rem;
    }
}