/* ============================================================
   VITRIOL INMOBILIARIA — FAQ
   Depende de: css/index.css (variables y reset base)
============================================================ */

/* ── Wrap con línea dorada superior ───────────────────── */
.faq-section-wrap {
  position: relative;
}

.faq-section-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ── Sección ───────────────────────────────────────────── */
.faq-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 32px 96px;
}

/* ── Header ────────────────────────────────────────────── */
.faq-header {
  margin-bottom: 56px;
}

.faq-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.faq-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.faq-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
}

.faq-header p {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.7;
}

/* ── Etiqueta de categoría ─────────────────────────────── */
.faq-category {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 48px 0 12px;
  padding-left: 2px;
}

/* ── Lista ─────────────────────────────────────────────── */
.faq-list {
  list-style: none;
  border-top: 1px solid var(--navy-border);
}

/* ── Item ──────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--navy-border);
  transition: border-color 0.25s ease;
}

.faq-item.abierto {
  border-bottom-color: rgba(201, 168, 76, 0.4);
}

/* ── Trigger (botón clickeable) ────────────────────────── */
.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  transition: padding 0.2s ease;
}

.faq-trigger:hover,
.faq-item.abierto .faq-trigger {
  padding-left: 12px;
  padding-right: 12px;
}

/* ── Texto de la pregunta ──────────────────────────────── */
.faq-pregunta {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  transition: color 0.22s;
}

.faq-item.abierto .faq-pregunta {
  color: var(--gold-light);
}

/* ── Ícono flecha ──────────────────────────────────────── */
.faq-icono {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--navy-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.25s ease,
    background   0.25s ease,
    transform    0.38s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.faq-item.abierto .faq-icono {
  border-color: var(--gold);
  background: var(--gold-dim);
  transform: rotate(180deg);
}

.faq-icono svg {
  stroke: var(--text-muted);
  transition: stroke 0.25s;
}

.faq-item.abierto .faq-icono svg {
  stroke: var(--gold);
}

/* ── Cuerpo colapsable ─────────────────────────────────── */
.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.44s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-body-inner {
  padding: 0 12px 22px;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity   0.28s ease 0.06s,
    transform 0.28s ease 0.06s;
}

.faq-item.abierto .faq-body-inner {
  opacity: 1;
  transform: translateY(0);
}

.faq-body-inner p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-body-inner p + p {
  margin-top: 10px;
}

/* ── Bloque de contacto ────────────────────────────────── */
.faq-contacto {
  margin-top: 56px;
  padding: 28px 32px;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.faq-contacto-texto h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.faq-contacto-texto p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-contacto-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background-image: url("../recursos/O5GLM70.jpg");
  filter: brightness(0.95);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.faq-contacto-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .faq-section {
    padding: 48px 16px 64px;
  }

  .faq-contacto {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-contacto-btn {
    width: 100%;
    justify-content: center;
  }
}