/* Sección General */
.contacto-seccion {
    background-color: #f9f9fc;
    padding: 80px 20px;
    overflow: hidden;
}

.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grilla Superior (Formulario e Imagen) */
.contacto-main-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

/* Encabezado */
.contacto-titulo {
    font-size: 2.2rem;
    color: #000033;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.contacto-titulo::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #d4af37;
    margin-top: 6px;
    border-radius: 2px;
}

.contacto-descripcion {
    font-size: 1.05rem;
    color: #555555;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Formulario */
.contacto-form-wrapper {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #eef0f5;
    box-shadow: 0 4px 20px rgba(0, 0, 51, 0.05);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000033;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    background-color: #fcfcfd;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
    background-color: #ffffff;
}

textarea.form-control {
    resize: vertical;
}

/* Botón Enviar */
.btn-contacto-submit {
    width: 100%;
    padding: 12px 20px;
    background-color: #000033;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-contacto-submit:hover {
    background-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.35);
}

/* Imagen de la Parte 2 */
.contacto-img-wrapper {
    text-align: center;
}

.contacto-img-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 51, 0.08);
    object-fit: cover;
}

/* PARTE 3: Tarjetas Inferiores */
.contacto-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contacto-card {
    background-color: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contacto-card:hover {
    transform: translateY(-6px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(0, 0, 51, 0.1);
}

.contacto-card-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.contacto-card-titulo {
    font-size: 1.1rem;
    color: #000033;
    font-weight: 700;
    margin-bottom: 8px;
}

.contacto-card-info, 
.contacto-card-info a {
    font-size: 0.95rem;
    color: #555555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-card-info a:hover {
    color: #d4af37;
}

.contacto-card-redes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
}

.red-link {
    font-size: 0.95rem;
    color: #000033;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.red-link:hover {
    color: #d4af37;
}

/* --- ANIMACIONES DE SCROLL --- */
.contacto-form-wrapper,
.contacto-img-wrapper,
.contacto-card {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contacto-form-wrapper { transform: translateX(-40px); }
.contacto-img-wrapper { transform: translateX(40px); }
.contacto-card { transform: translateY(30px); }

.contacto-seccion.animate .contacto-form-wrapper,
.contacto-seccion.animate .contacto-img-wrapper,
.contacto-seccion.animate .contacto-card {
    opacity: 1;
    transform: translate(0, 0);
}

.contacto-seccion.animate .contacto-card:nth-child(1) { transition-delay: 0.1s; }
.contacto-seccion.animate .contacto-card:nth-child(2) { transition-delay: 0.2s; }
.contacto-seccion.animate .contacto-card:nth-child(3) { transition-delay: 0.3s; }
.contacto-seccion.animate .contacto-card:nth-child(4) { transition-delay: 0.4s; }

/* RESPONSIVO */
@media (max-width: 992px) {
    .contacto-main-grid {
        grid-template-columns: 1fr;
    }

    .contacto-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto-img-wrapper {
        order: -1; /* Muestra la imagen primero en pantallas medianas si se desea */
    }
}

@media (max-width: 576px) {
    .contacto-seccion {
        padding: 50px 15px;
    }

    .contacto-form-wrapper {
        padding: 20px 15px;
    }

    .form-group-row {
        grid-template-columns: 1fr;
    }

    .contacto-cards-grid {
        grid-template-columns: 1fr;
    }
}