/* ==========================================================================
   SEMIÓTICA | Learning Experience Design
   Estilos aislados exclusivos de la página Contacto (contacto.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Cabecera horizontal compacta (idéntica a Servicios y Muestras)
   -------------------------------------------------------------------------- */
.contacto-hero {
  padding-block: 1.75rem 1.65rem;
}

.contacto-hero__header {
  width: 100%;
  max-width: none;
}

.contacto-hero__header .eyebrow {
  margin-bottom: 0.4rem;
}

.contacto-hero__header h1 {
  margin-bottom: 0.65rem;
  max-width: none;
}

.contacto-hero__header .lead {
  max-width: none;
  width: 100%;
  margin-bottom: 0;
  text-align: left;
  hyphens: none;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. Contenedor único centrado del Formulario Institucional
   -------------------------------------------------------------------------- */
.contacto-main {
  padding-block: 2rem 3.25rem;
}

.contacto-wrapper {
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
}

.contacto-form-card {
  background-color: var(--bg-surface);
  border: 1px solid #E0E4E8;
  border-top: 3.5px solid var(--accent-primary);
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(20, 22, 25, 0.04);
  padding: 2rem 2.25rem;
}

@media (max-width: 600px) {
  .contacto-form-card {
    padding: 1.45rem 1.25rem;
  }
}

.contacto-form-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #E0E4E8;
}

.contacto-form-card__header h2 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0;
}

.contacto-form-card__req {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin: 0;
  text-align: left;
  hyphens: none;
}

/* Filas de 2 columnas en escritorio */
.contacto-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-bottom: 1.2rem;
}

@media (min-width: 640px) {
  .contacto-form .form-row-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }
}

.contacto-form .form-group {
  margin-bottom: 0;
}

.contacto-form .form-group--full {
  margin-bottom: 1.5rem;
}

.contacto-form .form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-primary);
  margin-bottom: 0.4rem;
}

.contacto-form .form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-primary);
  background-color: var(--bg-surface);
  border: 1.5px solid #C2C9D1;
  border-radius: 6px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.contacto-form .form-control:hover {
  border-color: var(--accent-primary);
}

.contacto-form .form-control:focus {
  border-color: var(--accent-primary);
  background-color: #FCFDFD;
}

.contacto-form textarea.form-control {
  min-height: 128px;
  resize: vertical;
  line-height: 1.58;
}

.contacto-form__submit {
  width: 100%;
  min-height: 50px;
  font-size: 1.02rem;
}

.contacto-form__status {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  hyphens: none;
  max-width: none;
}

.contacto-form__status--ok {
  color: var(--state-success);
}

.contacto-form__status--error {
  color: var(--state-error);
}