/*----------------  Estilos para la contactenos    -------------------------------*/

/* ===== SECCIÓN CONTACTO ===== */
section.contact {
  background: url("../img/CONTACTENOS.jpg") no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: flex-end; /* Lleva el bloque a la derecha */
  align-items: center;
  padding-top: 80px; /* evita que el topbar tape el contenido */
  box-sizing: border-box;
}

/* Contenedor del bloque blanco */
.contact-container {
  background-color: rgba(22, 83, 127, 0.88); /* azul fuerte, opaco */
  padding: 40px;
  border-radius: 12px 0 0 12px;
  width: 55%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Logo dentro del bloque derecho 
.logo-container {
  margin-bottom: 20px;
  text-align: left;
}

.logo-container img {
  max-width: 600px;  /* tamaño recomendado 
  width: 100%;
  height: auto;
}
  */

.logo-container {
  width: 120px;          /* ajusta el tamaño que quieras */
  height: 120px;
  border-radius: 50%;    /* recorta en círculo */
  overflow: hidden;      /* oculta lo que se salga */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* asegura que se rellene el círculo sin deformarse */
}



.logo-contact {
  max-width: 160px;
  height: auto;
}

/* Título */
.contact-title h1 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
  
  background: rgba(0, 51, 102, 0.7); /* azul más oscuro */
  padding: 12px 0;
  border-radius: 6px;
  text-transform: uppercase;
  text-align: center;
}

/* Información */
.contact-info {
  font-size: 1.2rem;
  color: #fff;
  background: rgba(0, 51, 102, 0.7); /* azul más oscuro */
  line-height: 1.6;
  border-radius: 6px;
  padding: 18px 12px 12px 12px;
  margin-top: 18px;
}

.contact-info a {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
}

.contact-info a:hover {
  text-decoration: underline;
}


/* ===== Responsive ===== */
@media (max-width: 768px) {
  section.contact {
    justify-content: center; /* centra el bloque en pantallas pequeñas */
    padding-top: 60px;
  }

  .contact-container {
    width: 90%;             /* más ancho en móvil */
    min-height: auto;       /* se ajusta al contenido */
    padding: 20px;
    border-radius: 12px;    /* borde uniforme */
  }

  .logo-container {
    width: 90px;   /* logo más pequeño */
    height: 90px;
    margin: 0 auto 15px; /* centrado arriba */
  }

  .contact-title h1 {
    font-size: 1.8rem;
    text-align: center;
    color:white;
  }

  .contact-info {
    font-size: 1rem;
    text-align: center;
  }

  .contact-info p {
    margin-bottom: 10px;
  }
}

/* ===== FORMULARIO DE CONTACTO ===== */

.form-container {
  font-family: Arial, sans-serif;
  padding: 20px;
  border: 8px solid black;
}

.contact-form {
  /*border: 8px solid blue;*/
  max-width: 10000px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Generic row styling */
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; /* Allows stacking on small screens */
}

.input-group {
  flex: 1;
  min-width: 200px; /* Adjust this for responsiveness */
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  width: 100%;
  padding: 10px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #005fa3;
}
