
/* ══════════════════════════════════════════════
   FAQ — Rediseño editorial moderno
══════════════════════════════════════════════ */

/* Override estilos viejos */
.faq-grid { display: none !important; }
.faq-item.card { box-shadow: none !important; border: none !important; }

/* Sección */
.faq-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Layout 2 columnas */
.faq-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-8);
  align-items: start;
}

/* ── Columna izquierda ── */
.faq-aside {
  position: sticky;
  top: 100px;
}

.faq-aside .section-title {
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.faq-aside-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.faq-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.22s, transform 0.2s, box-shadow 0.22s;
  box-shadow: 0 4px 14px rgba(63,100,79,0.3);
}

.faq-contact-btn:hover {
  background: var(--primary-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(63,100,79,0.38);
}

.faq-contact-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Decorative "?" */
.faq-aside-deco {
  position: absolute;
  bottom: -60px;
  left: -20px;
  font-family: var(--font-serif);
  font-size: 14rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  opacity: 0.04;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.05em;
  animation: decoFloat 6s ease-in-out infinite;
}

@keyframes decoFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%       { transform: translateY(-12px) rotate(-2deg); }
}

/* ── Acordeón ── */
.faq-accordion {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item[open] {
  border-bottom-color: rgba(79,122,98,0.35);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Número */
.faq-num {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--primary);
  opacity: 0.5;
  min-width: 24px;
  transition: opacity 0.22s;
  flex-shrink: 0;
}

.faq-item[open] .faq-num,
.faq-item summary:hover .faq-num {
  opacity: 1;
}

/* Pregunta */
.faq-q {
  flex: 1;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.22s;
  line-height: 1.4;
}

.faq-item summary:hover .faq-q {
  color: var(--primary);
}

.faq-item[open] .faq-q {
  color: var(--primary);
}

/* Chevron */
.faq-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.38s cubic-bezier(0.34,1.56,0.64,1);
  background: transparent;
}

.faq-chevron svg {
  width: 14px;
  height: 14px;
  stroke: var(--text);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.22s;
}

.faq-item summary:hover .faq-chevron {
  border-color: var(--primary);
  background: rgba(79,122,98,0.06);
}

.faq-item summary:hover .faq-chevron svg {
  stroke: var(--primary);
}

.faq-item[open] .faq-chevron {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(180deg);
}

.faq-item[open] .faq-chevron svg {
  stroke: #fff;
}

/* Body (gestionado por JS con max-height) */
.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-body p {
  margin-top: 0;
  padding: 0 0 24px 42px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
  border-left: 2px solid var(--primary);
  margin-left: 24px;
  padding-left: 18px;
  animation: faqBodyIn 0.35s ease both;
}

@keyframes faqBodyIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger reveal */
.faq-accordion [data-reveal]:nth-child(1) { transition-delay: 0.04s; }
.faq-accordion [data-reveal]:nth-child(2) { transition-delay: 0.10s; }
.faq-accordion [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.faq-accordion [data-reveal]:nth-child(4) { transition-delay: 0.22s; }
.faq-accordion [data-reveal]:nth-child(5) { transition-delay: 0.28s; }
.faq-accordion [data-reveal]:nth-child(6) { transition-delay: 0.34s; }
.faq-accordion [data-reveal]:nth-child(7) { transition-delay: 0.40s; }
.faq-accordion [data-reveal]:nth-child(8) { transition-delay: 0.46s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .faq-aside {
    position: static;
  }
  .faq-aside-deco {
    display: none;
  }
  .faq-aside .section-title br { display: none; }
}

@media (max-width: 480px) {
  .faq-item summary { gap: 12px; padding: 20px 0; }
  .faq-num { display: none; }
  .faq-q { font-size: 0.92rem; }
  .faq-body p { margin-left: 0; padding-left: 14px; }
}
