/* ===================================================================
   SUPERMATIC — Contacto page styles (mobile-first)
   =================================================================== */

/* ── Hero ───────────────────────────────────────────────────────── */
.contacto-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--sm-line);
}
.contacto-hero h1 {
  margin-top: var(--gap-sm);
}

/* ── Two-column layout ──────────────────────────────────────────── */
.contacto-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg); /* 48px on mobile — was --gap-xl (96px) which is excessive stacked */
  align-items: start;
}
@media (min-width: 900px) {
  .contacto-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl); /* restore full gap for side-by-side layout */
  }
}

/* ── Form card ──────────────────────────────────────────────────── */
.form-card {
  background: var(--sm-paper);
  border: 1px solid var(--sm-line);
  border-radius: var(--radius);
  padding: var(--gap-md); /* 24px mobile — was 48px, too wide on 375px screens */
}
@media (min-width: 640px) {
  .form-card { padding: var(--gap-lg); }
}
.form-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sm-graphite);
  margin-bottom: var(--gap-lg);
}

/* ── Form fields ────────────────────────────────────────────────── */
.form-field {
  margin-bottom: var(--gap-md);
}
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sm-graphite);
  margin-bottom: 6px;
}
.form-field .req {
  color: var(--sm-red);
  margin-left: 2px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--sm-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--sm-graphite);
  background: var(--sm-paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231C1C1E' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-field textarea {
  resize: vertical;
  line-height: 1.6;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--sm-mute);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sm-red);
  box-shadow: 0 0 0 3px rgba(var(--sm-red-rgb), 0.12);
}

/* ── Submit button ──────────────────────────────────────────────── */
.btn-submit {
  width: 100%;
  padding: 13px 24px;
  background: var(--sm-red); /* UI component — 3:1 threshold applies; #F73D17 passes at ~3.6:1 */
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
  margin-top: var(--gap-xs);
}
.btn-submit:hover { opacity: 0.88; }
.btn-submit:focus-visible {
  outline: 2px solid var(--sm-red);
  outline-offset: 3px;
}

/* ── Success message ────────────────────────────────────────────── */
.quote-success {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  padding: var(--gap-md);
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  color: #166534;
  font-size: 1rem;
  line-height: 1.55;
}
.quote-success__icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Contact info column ────────────────────────────────────────── */
.contacto-info__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sm-graphite);
  margin-bottom: var(--gap-lg);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--gap-lg);
}
.info-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--sm-line);
}
.info-item:first-child { border-top: 1px solid var(--sm-line); }
.info-item__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sm-mute);
  margin-bottom: 4px;
}
.info-item__value {
  font-size: 0.9rem;
  color: var(--sm-graphite);
  line-height: 1.5;
}
.info-item__value--pending {
  color: var(--sm-mute);
  font-style: italic;
}

/* ── WhatsApp button ────────────────────────────────────────────── */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--gap-md);
  transition: opacity 0.15s ease;
}
.btn-whatsapp:hover { opacity: 0.88; }
.btn-whatsapp:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 3px;
}

.info-note {
  font-size: 0.8rem;
  color: var(--sm-mute);
  line-height: 1.55;
}

/* ── Map placeholder ────────────────────────────────────────────── */
.contacto-map {
  padding: var(--gap-xl) 0;
  border-top: 1px solid var(--sm-line);
}
.map-placeholder {
  width: 100%;
  height: 320px;
  background: var(--sm-fog);
  border: 1px solid var(--sm-line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sm-mute);
  font-size: 0.875rem;
}
.map-placeholder__icon {
  font-size: 2rem;
  line-height: 1;
}
