/* =========================================================================
   contacto.css — Página de contacto.
   Antes esta página dependía de clases de Tailwind que nunca se compilaron
   (css/main.css es solo un placeholder), por eso se veía sin estilos.
   ========================================================================= */

.contact-page { background: #fff; padding-top: var(--header-h, 64px); }

/* ---------------------------------------------------------------- HERO */
.contact-hero {
  background: linear-gradient(160deg, #f4f8f4 0%, #e9f2eb 100%);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.contact-hero__inner {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
}
.contact-hero__eyebrow {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--logo-green, #02994d); font-weight: 600; margin: 0 0 .6rem;
}
.contact-hero__title {
  font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem); color: #16324f; line-height: 1.1; margin: 0 0 .8rem;
}
.contact-hero__sub {
  color: #4b5563; font-size: 1.05rem; line-height: 1.7;
  max-width: 52ch; margin: 0 auto;
}

/* ---------------------------------------------------------------- LAYOUT */
.contact-layout {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}

/* ---------------------------------------------------------------- FORM */
.contact-form { display: flex; flex-direction: column; gap: 1.15rem; }
.contact-field { display: flex; flex-direction: column; }
.contact-field label {
  font-size: .85rem; font-weight: 600; color: #16324f; margin-bottom: .4rem;
}
.contact-field input,
.contact-field textarea {
  font: inherit; font-size: .95rem; color: #16324f;
  width: 100%; padding: .75rem .9rem;
  border: 1px solid #d7e0da; border-radius: .6rem;
  background: #fff; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-field textarea { resize: vertical; min-height: 140px; }
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--logo-green, #02994d);
  box-shadow: 0 0 0 3px rgba(2, 153, 77, .15);
}
.contact-submit {
  align-self: flex-start;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.9rem; border: 0; border-radius: .6rem; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .95rem;
  background: var(--logo-green, #02994d); color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.contact-submit:hover { background: var(--logo-green-dark, #027a3e); transform: translateY(-2px); }
.contact-submit:disabled { opacity: .6; cursor: progress; transform: none; }
.contact-status { font-size: .9rem; margin: 0; color: #4b5563; min-height: 1.2em; }
.contact-status--error { color: #b91c1c; }
/* Trampa antispam: oculta sin quitarla del envío del formulario */
.contact-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------------------------------------------------------------- INFO */
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  background: #f7faf8; border: 1px solid #e4ece6;
  border-radius: .9rem; padding: 1.15rem 1.25rem;
}
.contact-card h3 {
  font-family: "Poppins", sans-serif; font-size: .95rem; font-weight: 600;
  color: var(--logo-green, #02994d); margin: 0 0 .3rem;
}
.contact-card p { margin: 0; color: #16324f; font-size: 1rem; line-height: 1.5; }
.contact-card a { color: #16324f; }
.contact-card a:hover { color: var(--logo-green, #02994d); }

/* ---------------------------------------------------------------- RESPONSIVE */
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-submit { align-self: stretch; }
}

@media (max-width: 600px) {
  /* 16px en los campos es lo que evita que iOS haga zoom automático al
     enfocar un input. Por debajo de eso Safari amplía la página sola. */
  .contact-field input,
  .contact-field textarea { font-size: 16px; padding: .8rem .85rem; }
  .contact-field textarea { min-height: 120px; }
  .contact-submit { padding: .9rem 1.5rem; min-height: 48px; }
  .contact-hero__sub { font-size: 1rem; }
  .contact-card { padding: 1rem 1.1rem; }
  .contact-layout { gap: 2rem; }
  /* Correos y teléfono son enlaces reales (mailto:/wa.me): necesitan altura
     suficiente para pulsarlos sin fallar. Medían 20px. */
  .contact-card a { display: inline-flex; align-items: center; min-height: 40px; }
}

/* En tablet la columna de info se queda muy angosta junto al formulario */
@media (min-width: 861px) and (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr .8fr; gap: 2.25rem; }
}
