/* ==========================================================================
   CONTACTO
   Fondo blanco: canales a la izquierda, formulario a la derecha.
   ========================================================================== */

.contact-section {
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
  background: var(--white);
}

.contact__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 5fr 6fr; }
}

.contact__title {
  font: 700 clamp(2rem, 4.6vw, 3.1rem)/1.08 var(--font-display);
  letter-spacing: -.02em;
  text-wrap: balance;
}

.contact__intro {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Tarjeta destacada de WhatsApp
   -------------------------------------------------------------------------- */

.wa-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  background: var(--whatsapp);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(31, 168, 85, .25);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(31, 168, 85, .32); }

.wa-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.wa-card__icon svg { width: 26px; height: 26px; }

.wa-card__text { display: grid; gap: .15rem; }
.wa-card__text strong { font-size: 1.1rem; }
.wa-card__text small { font-size: .85rem; opacity: .9; }

/* --------------------------------------------------------------------------
   Canales (teléfono, email, dirección)
   -------------------------------------------------------------------------- */

.channels {
  display: grid;
  gap: .25rem;
  margin-top: 1.5rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .7rem .5rem;
  border-radius: 14px;
  text-decoration: none;
  transition: background-color .2s var(--ease);
}
.channel:hover { background: var(--off-white); }

.channel__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(200, 16, 46, .08);
  color: var(--red);
}
.channel__icon svg { width: 20px; height: 20px; }

.channel__text { display: grid; font-weight: 600; overflow-wrap: anywhere; }
.channel__text small {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Redes (base: sobre fondo claro; --dark: sobre fondo negro)
   -------------------------------------------------------------------------- */

.socials { display: flex; gap: .6rem; margin-top: 1.5rem; }

.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: var(--black);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.social svg { width: 20px; height: 20px; }
.social:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.socials--dark .social { border-color: var(--line-dark); color: var(--white); }

/* --------------------------------------------------------------------------
   Formulario
   -------------------------------------------------------------------------- */

.contact__card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--off-white);
}

.contact__card-title {
  margin-bottom: 1.5rem;
  font: 700 1.6rem/1.2 var(--font-display);
}

.form { display: grid; gap: 1.1rem; }

.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: .4rem; }

.field label { font-size: .9rem; font-weight: 600; }
.field__optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem .95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--black);
  font: 400 1rem/1.4 var(--font-body); /* 16px: evita el zoom automático en iPhone */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field textarea { resize: vertical; min-height: 110px; }

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 18px;
}

.field input::placeholder,
.field textarea::placeholder { color: #9A948C; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, .12);
}

.field [aria-invalid="true"] {
  border-color: var(--red);
  background: #FFF6F7;
}

.form__submit { width: 100%; margin-top: .25rem; }

.btn__icon { display: inline-grid; width: 20px; height: 20px; }
.btn__icon svg { width: 100%; height: 100%; }

.form__status { min-height: 1.4em; font-size: .9rem; text-align: center; }
.form__status[data-state="error"] { color: var(--red-dark); }
.form__status[data-state="success"] { color: #1C6630; }
