/* Estilos base */
.contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 5%;
    min-height: 100vh;
    background-image: url("../img/fondo_suave.avif");
    color: #0b3e9005;
}

/* Título centrado */
.titulo-contacto {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
    max-width: 1000px;
    animation: fadeInUp 0.8s ease-out forwards;
}

.titulo-contacto h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #0b3e90;
}

.titulo-contacto p {
    font-size: 1.1rem;
    color: #64748b;
}

/* Grid de contenido */
.contacto-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
}

/* Tarjetas */
.formulario, .info-contacto {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formulario:hover, .info-contacto:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animaciones de entrada */
.formulario {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.info-contacto {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Encabezados y Formulario */
.formulario h2, .info-box h3 {
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b3e90;
}

.formulario form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.formulario input, .formulario textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.formulario input:focus, .formulario textarea:focus {
    outline: none;
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.formulario button {
    background: #3b82f6;
    color: white;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.formulario button:hover {
    background: #0b3e90;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.info-box { margin-bottom: 30px; }
.info-box:last-child { margin-bottom: 0; }
.info-box p { color: #64748b; margin: 5px 0; font-size: 0.95rem; }

.formulario h2 svg, .info-box h3 svg { color: #3b82f6; }


@media (max-width: 768px) {
    .contacto-container { grid-template-columns: 1fr; }
}