/* =============================================
   FORMULARIO DE CONTACTO - ESTILOS CSS SIN TAILWIND
   ============================================= */

/* Contenedor del formulario */
.contacto-form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .contacto-form-container {
    grid-column: span 8 / span 8;
  }
}

/* Título */
.contacto-form-title {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  font-weight: 400;
  color: #1A1A1A;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .contacto-form-title {
    font-size: 2.25rem;
  }
}

/* Divisor */
.contacto-form-divider {
  width: 2.5rem;
  height: 1px;
  background-color: #0044a5;
  margin-bottom: 1.5rem;
  border: none;
}

/* =============================================
   MENSAJES DE ESTADO
   ============================================= */

/* Mensaje de éxito */
.contacto-form-success {
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  border: 1px solid #bbf7d0;
  background-color: #f0fdf4;
  padding: 1rem;
  font-size: 0.875rem;
  color: #166534;
}

/* Mensaje de error */
.contacto-form-error {
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  border: 1px solid #fecaca;
  background-color: #fef2f2;
  padding: 1rem;
  font-size: 0.875rem;
  color: #991b1b;
}

/* =============================================
   FORMULARIO
   ============================================= */

.contacto-form {
  /* Espaciado entre grupos de campos */
}

.contacto-form > * + * {
  margin-top: 2rem;
}

/* Campo honeypot (oculto para usuarios, visible para bots) */
.contacto-form-hidden {
  display: none;
}

.contacto-form-hidden label {
  display: block;
}

.contacto-form-hidden input {
  display: block;
}

/* =============================================
   GRUPO DE CAMPOS EN FILA (NOMBRE Y EMAIL)
   ============================================= */

.contacto-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contacto-form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   CAMPO INDIVIDUAL
   ============================================= */

.contacto-form-field {
  display: flex;
  flex-direction: column;
}

/* Etiqueta */
.contacto-form-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contacto-form-required {
  color: #ef4444;
}

/* Input, Textarea y Select base */
.contacto-form-input,
.contacto-form-textarea,
.contacto-form-select {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #1A1A1A;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.contacto-form-input:focus,
.contacto-form-textarea:focus,
.contacto-form-select:focus {
  border-bottom-color: #0044a5;
}

/* Placeholder */
.contacto-form-input::placeholder,
.contacto-form-textarea::placeholder {
  color: #9ca3af;
}

/* Textarea específico */
.contacto-form-textarea {
  resize: none;
  min-height: 100px;
}

/* Select específico */
.contacto-form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.5rem;
}

/* Texto de ayuda (solo para lectores de pantalla) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =============================================
   BOTÓN DE ENVÍO Y TEXTO INFORMATIVO
   ============================================= */

.contacto-form-submit-container {
  padding-top: 1rem;
}

.contacto-form-submit {
  background-color: #1A1A1A;
  color: #ffffff;
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: inherit;
}

.contacto-form-submit:hover {
  background-color: #0044a5;
}

.contacto-form-submit:focus {
  outline: 2px solid #0044a5;
  outline-offset: 2px;
}

.contacto-form-info {
  color: #9ca3af;
  font-size: 0.625rem;
  margin-top: 0.75rem;
  font-weight: 300;
  line-height: 1.4;
}

.contacto-form-info .contacto-form-required {
  color: #ef4444;
}

/* =============================================
   UTILIDADES ADICIONALES
   ============================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}