/* ============================================================
   ESTÁNDAR INGENIEROS — Contacto Page
   ============================================================ */

/* ── Contact Layout ────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }
}

/* ── Contact Info Panel ────────────────────────────────────── */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-info-panel__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.contact-info-panel__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

/* ── Map Container ─────────────────────────────────────────── */
.contact-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-4);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: none;
}

/* ── Form Panel ────────────────────────────────────────────── */
.contact-form-panel {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  box-shadow: var(--shadow-md);
}

.contact-form-panel__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.contact-form-panel__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

/* ── Habeas Data Box ───────────────────────────────────────── */
.habeas-data-box {
  background: var(--color-bg-lighter);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-2);
}

.habeas-data-box__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.habeas-data-box__text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

/* ── Contact CTA Strip ─────────────────────────────────────── */
.contact-cta-strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 480px) {
  .contact-cta-strip {
    flex-direction: row;
  }
}

/* ── Office Hours ──────────────────────────────────────────── */
.office-hours {
  background: var(--color-bg-section);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.office-hours__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.office-hours__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.office-hours__row:last-child {
  border-bottom: none;
}

.office-hours__day {
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
}

.office-hours__time {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
}

.office-hours__time--closed {
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
}

/* ── Response Time Badge ───────────────────────────────────── */
.response-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(37,211,102,0.10);
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: #1A9E4A;
}

.response-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: #25D366;
  animation: pulse 2s ease-in-out infinite;
}

/* ── Contact Info Card ─────────────────────────────────────── */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.contact-info-card:hover {
  border-color: var(--color-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-info-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(243,146,0,0.10);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-orange);
}

.contact-info-card__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.contact-info-card__value {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.contact-info-card__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── Trust Strip ───────────────────────────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}

.trust-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-orange);
  flex-shrink: 0;
}

/* ── Form Success ──────────────────────────────────────────── */
.form-server-error {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  background: rgba(190,22,34,0.06);
  border: 1px solid rgba(190,22,34,0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-5);
}

.form-server-error.is-visible {
  display: flex;
}

.form-server-error__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: var(--color-red);
  margin-top: 2px;
}

.form-server-error__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.form-server-error__text a {
  color: var(--color-red);
  font-weight: var(--weight-semibold);
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-12) var(--space-8);
}

.form-success.is-visible {
  display: flex;
}

.form-success__icon {
  width: 72px;
  height: 72px;
  background: rgba(37,211,102,0.12);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.form-success__icon svg {
  width: 36px;
  height: 36px;
  fill: #1A9E4A;
}

.form-success__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.form-success__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 440px;
}
