/* ========================== */
/* Estilos para página CONTACTO */
/* ========================== */

/* ========================== */
/* CONTACTO (versión revisada) */
/* ========================== */

.contenido {
  padding: clamp(1rem, 3vw, 3rem);
  margin-right: var(--ancho-barra);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.encabezado-seccion {
  text-align: center;
  margin-bottom: 2rem;
}

.seccion-contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; /* Más espacio entre columnas */
  width: 85%;
  align-items: center;
}

/* Columna izquierda */
.columna-izquierda {
  display: flex;
  flex-direction: column;
  gap: 1.8rem; /* Aire entre texto e imagen */
	align-content: center;
}

.texto-introductorio p {
  /*font-size: clamp(0.8rem, 1.5vw, 2.5rem);*/
  line-height: 1.5;
  color: var(--color-texto);
  text-align: justify;
}

.imagen-contacto img {
  width: 90%;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
}

/* Columna derecha */
.columna-derecha {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.formulario-contacto {
  background-color: var(--color-nav);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.campo label {
  font-weight: bold;
  /*font-size: clamp(0.9rem, 1.5vw, 1.1rem);*/
}

.campo input,
.campo textarea {
  padding: 0.7rem;
  border: 1px solid var(--color-nav-hover);
  border-radius: 0.5rem;
  /*font-size: clamp(0.9rem, 1.2vw, 1rem);*/
  outline: none;
  background-color: #fff;
}

.campo input:focus,
.campo textarea:focus {
  border-color: #007acc;
  box-shadow: 0 0 5px rgba(0,122,204,0.3);
}

/* Botones */
.botones-formulario {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-enviar,
.btn-limpiar {
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  /*font-size: 1rem;*/
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-enviar {
  background-color: #007acc;
  color: white;
}
.btn-enviar:hover { background-color: #005fa3; }

.btn-limpiar {
  background-color: var(--color-nav-hover);
  color: var(--color-texto);
}
.btn-limpiar:hover { background-color: #d0d0d0; }

/* Enlaces legales */
.enlaces-legales {
  text-align: right;
}
.btn-legal {
  background: none;
  border: none;
  color: var(--color-icono);
  /*font-size: 0.9rem;*/
  text-decoration: underline;
  cursor: pointer;
  margin-left: 1rem;
}
.btn-legal:hover { color: #007acc; }




/* Responsividad */
@media (max-width: 900px) {
  .seccion-contacto {
    grid-template-columns: 1fr;
    width: 95%;
    gap: 2.5rem;
  }

  .columna-izquierda {
    align-items: center;
  }

  .texto-introductorio p {
    text-align: center;
    max-width: 90%;
  }

  .enlaces-legales {
    text-align: center;
  }
}


/* MODALES */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-contenido {
  background-color: var(--color-fondo);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 1rem;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cerrar {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}

.cerrar:hover {
  color: red;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .seccion-contacto {
    grid-template-columns: 1fr;
    width: 95%;
  }

  .enlaces-legales {
    text-align: center;
  }
}
