
/* ===== Animaci¨®n fade-up para contacto ===== */
.contacto-section,
.contacto-info,
.contacto-form,
.contacto-imagen {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contacto-section.visible,
.contacto-info.visible,
.contacto-form.visible,
.contacto-imagen.visible {
    opacity: 1;
    transform: translateY(0);
}


.contacto-section {
  background: linear-gradient(to bottom, #eef5ff, #ffffff);
  padding: 60px 20px;
}

.contacto-contenedor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
  align-items: start;
}

/* IZQUIERDA: info y formulario */
.contacto-info h2 {
  font-size: 2rem;
  color: #0074a6;
  margin-bottom: 15px;
}

.contacto-intro {
  color: #555;
  margin-bottom: 25px;
}

.info-bloques p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}

/* FORMULARIO */
.contacto-form {
  margin-top: 20px;
}

.contacto-form .form-group {
  margin-bottom: 15px;
}

.contacto-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #1a4e8a;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  border-color: #1a4e8a;
  box-shadow: 0 0 6px rgba(26,78,138,0.2);
}

.btn-enviar {
  background-color: #1a4e8a;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.btn-enviar:hover {
  background-color: #145184;
}

/* DERECHA: imagen centrada y mÃ¡s grande */
/* Columna derecha: imagen centrada y grande */
.contacto-imagen {
    display: flex;
    justify-content: center; /* centra horizontalmente */
    align-items: center;     /* centra verticalmente */
    width: 100%;
    height: 100%;            /* ocupa toda la altura de la columna */
    padding: 0 10px;         /* espacio interno lateral */
    box-sizing: border-box;
}

.contacto-imagen img {
    width: 100%;            /* ocupa todo el ancho de la columna */
    max-width: 100%;        /* nunca supera la columna */
    height: auto;           /* mantiene proporciÃ³n */
    border-radius: 12px;
    object-fit: contain;    /* ajusta la imagen sin recortarla */
    display: block;         /* evita espacio debajo */
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .contacto-contenedor {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contacto-imagen {
        justify-content: center;
        padding: 0;
    }

    .contacto-imagen img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

