/**================== FORMS ====================== */
/*
*  --form-border: #000000;
? --form-margin: #FFFFFF;
! --form-accent: var(--brand-orange);
 --form-shadow: 8px 8px 0px var(--form-border); 
  */
.Contacto {
  background: linear-gradient(to bottom, var(--bg-section) 0%, var(--bg-body) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}
.form-container {
  width: 100%;
  max-width: 800px;
  border: 1px solid var(--form-border);
  padding: 40px 30px;
  background-color: var(--form-margin);
  box-shadow: var(--form-shadow);
  position: relative;
  border-radius: 12px;
}
.form-container::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  border: 1px solid var(--form-border);
  z-index: -1;
  border-radius: 12px;
}
.form-container h2 {
  font-family: var(--font-Family-2);
  color: var(--brand-blue);
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  font-size: 2.5rem;
}

/* === GRID LAYOUT PARA EL FORMULARIO === */
#contactForm {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 20px;
}

/* Hacemos que la caja de cada campo ocupe su espacio */
.campo {
  display: flex;
  flex-direction: column;
  margin-bottom: 0; /* El gap del grid maneja el espacio */
  
}

/* === EXCEPCIONES: ELEMENTOS DE ANCHO COMPLETO === */
/* El 3er div es el "Curso" y el 6to es el "Mensaje". Queremos que ocupen todo el ancho */
.campo:nth-of-type(3), 
.campo:nth-of-type(6) {
    grid-column: span 2;
}

.campo label {
    display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-main);
}

/* === ESTILOS DE LOS INPUTS === */

.campo input,
.campo textarea,
.campo select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--form-border);
  background-color: var(--form-margin);
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
  color: var(--text-main);
}

/* Efecto al hacer clic en un campo */
.campo input:focus,
.campo textarea:focus,
.campo select:focus {
  background-color: var(--bg-card);
  border-color: var(--brand-blue); /* Se pinta del color de tu marca */
  box-shadow: 4px 4px 0px var(--form-border); /* Resplandor suave */
  transform: translateY(-2px);
  color: var(--text-main);
}

.campo textarea {
  min-height: 150px;
  resize: vertical; /* Permite estirar solo hacia abajo */
}
.Form-Boton{
  width: 100%;
  padding: 12px;
  background-color: var(--form-accent);
  color: var(--text-main);
  border: 2px solid var(--form-border);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s;
}
.Form-Boton:hover {
  box-shadow: 4px 4px 0px var(--form-border);
  transform: translate(-2px, -2px);
}

/* Botón de Enviar */
#contactForm button[type="submit"] {
    grid-column: span 2; /* Ocupa todo el ancho */
    justify-self: center; /* Se centra horizontalmente */
    width: 100%;
    max-width: 250px;
    margin-top: 10px;
    padding: 14px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    
}

/* Mensaje de estado (éxito/error) */
.estado {
  margin-top: 20px;
  font-size: 16px;
  text-align: center;
  font-weight: 500;
  min-height: 24px; /* Evita saltos si aparece texto */
}

/* === RESPONSIVE (CELULAR) === */
@media (max-width: 600px) {
    #contactForm {
        grid-template-columns: 1fr; /* Una sola columna en celular */
    }
    
    .campo:nth-of-type(3), 
    .campo:nth-of-type(6),
    #contactForm button[type="submit"] {
        grid-column: span 1; /* Regresa a ocupar 1 columna */
    }

    .form-container {
        padding: 25px;
    }
}
