/* ==============================================
   HIDER · contacto.css
    Ubicación: /frontend/css/contacto.css
   Página de Contacto
   ============================================== */

/* ── Hero ────────────────────────────────────── */
.contacto-hero {
  position: relative;
  height: 52vh;
  min-height: 360px;
  overflow: hidden;
}

.contacto-hero__img {
  position: absolute;
  inset: 0;
}

.contacto-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contacto-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(30, 18, 8, 0.65),
    rgba(91, 66, 52, 0.45)
  );
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

.contacto-eyebrow { color: var(--gold-light) !important; }

.contacto-hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 100px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  margin-top: 16px;
}

.contacto-hero__sub {
  font-size: 16px;
  color: rgba(252, 244, 232, 0.75);
  margin-top: 12px;
}

/* ── Canales rápidos ─────────────────────────── */
.contacto-canales {
  background: var(--white);
  padding: 0;
  margin-top: -2px;
}

.canales-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-soft);
}

.canal--tt .canal__icon { background: rgba(1, 1, 1, 0.06); color: var(--ink); }

.canal {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  border-right: 1px solid var(--line-soft);
  transition: background var(--duration);
  position: relative;
}

.canal:last-child { border-right: none; }

.canal:hover { background: var(--cream-soft); }

.canal__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration);
}

.canal:hover .canal__icon { transform: scale(1.08); }

.canal--wa .canal__icon  { background: rgba(37, 211, 102, 0.1); color: #25d366; }
.canal--email .canal__icon { background: rgba(91, 66, 52, 0.08); color: var(--brown); }
.canal--ig .canal__icon  { background: rgba(220, 39, 67, 0.08); color: #dc2743; }

.canal__name {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}

.canal__desc {
  font-size: 13px;
  color: var(--muted);
}

.canal__info { flex: 1; }

.canal__arrow {
  color: var(--line);
  flex-shrink: 0;
  transition: transform var(--duration), color var(--duration);
}

.canal:hover .canal__arrow {
  color: var(--brown);
  transform: translateX(4px);
}

/* ── Layout principal ────────────────────────── */
.contacto-main { padding: 80px 0 100px; }

.contacto-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: start;
}

/* ── Formulario ──────────────────────────────── */
.contacto-section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 400;
  color: var(--brown-deep);
  line-height: 1.15;
  margin-bottom: 12px;
}

.contacto-section-title em {
  color: var(--brown);
  font-style: italic;
}

.contacto-section-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

#contactoForm .fields-row          { margin-bottom: 10px; }
#contactoForm .field               { margin-bottom: 10px; }
#contactoForm button[type="submit"]{ margin-top: 4px; }

.contacto-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ── Info cards ──────────────────────────────── */
.info-card {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.info-card:first-child { padding-top: 0; }

.info-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--cream-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  flex-shrink: 0;
}

.info-card__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.info-card__body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.info-free { color: #16a34a !important; font-weight: 500; }
.info-closed { color: var(--sale) !important; }

/* ── FAQ ─────────────────────────────────────── */
.contacto-faq {
  margin-top: 28px;
}

.contacto-faq__title {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  gap: 12px;
  transition: color var(--duration);
}

.faq-btn:hover { color: var(--brown); }

.faq-btn svg {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}

.faq-item.open .faq-btn svg {
  transform: rotate(45deg);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.faq-item.open .faq-body {
  grid-template-rows: 1fr;
}

.faq-body > div {
  overflow: hidden;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.open .faq-body > div {
  padding-bottom: 14px;
}

/* ── Banner WhatsApp ─────────────────────────── */
.contacto-wa-banner {
  background: var(--brown-deep);
  padding: 56px 0;
}

.wa-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.wa-banner-text h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 6px;
}

.wa-banner-text p {
  font-size: 15px;
  color: rgba(252, 244, 232, 0.65);
}

.btn-wa {
  background: var(--cream);
  color: var(--brown-deep);
  border-color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-wa:hover {
  background: var(--white);
  border-color: var(--white);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 960px) {
  .canales-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .canal:nth-child(odd)  { border-right: 1px solid var(--line-soft); }
  .canal:nth-child(even) { border-right: none; }
  .canal:nth-last-child(-n+2) { border-bottom: none; }

  .canal {
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }

  .canal:last-child { border-bottom: none; }

  .contacto-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contacto-main { padding: 56px 0 72px; }
}

@media (max-width: 600px) {
  .contacto-hero { height: 44vh; min-height: 300px; }
  .contacto-hero__overlay { padding-bottom: 48px; }

  .canal { padding: 20px 0; }
  .canal__icon { width: 44px; height: 44px; }

  .fields-row { grid-template-columns: 1fr; }

  .wa-banner-inner { flex-direction: column; text-align: center; }
  .btn-wa { width: 100%; justify-content: center; }

  .contacto-main { padding: 40px 0 56px; }
}
/* ══ DARK MODE — contacto ══ */
[data-theme="dark"] .contacto-hero          { background: var(--bg-soft); }
[data-theme="dark"] .contacto-hero__title   { color: var(--text); }
[data-theme="dark"] .contacto-section-title { color: var(--text); }
[data-theme="dark"] .contacto-section-sub   { color: var(--muted); }

/* Cards canales */
[data-theme="dark"] .canal-card             { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .canal-card__title      { color: var(--text); }
[data-theme="dark"] .canal-card__desc       { color: var(--muted); }

/* Info cards */
[data-theme="dark"] .info-card              { border-bottom-color: var(--line); }
[data-theme="dark"] .info-card__title       { color: var(--text); }
[data-theme="dark"] .info-card__body        { color: var(--muted); }
[data-theme="dark"] .info-card__body strong { color: var(--text); }

/* FAQ */
[data-theme="dark"] .faq-item               { border-color: var(--line); }
[data-theme="dark"] .faq-btn                { color: var(--text); }
[data-theme="dark"] .faq-answer             { color: var(--muted); }

/* WhatsApp banner */
[data-theme="dark"] .wa-banner              { background: var(--surface); }
[data-theme="dark"] .wa-banner-text h3      { color: var(--text); }
[data-theme="dark"] .wa-banner-text p       { color: var(--muted); }