/* ═══════════════════════════════════════════════════════════
   Cenotes Homún — faq.css
═══════════════════════════════════════════════════════════ */

/* ─── HERO ──────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(155deg, #0d2b1e 0%, #1a3a2a 55%, #0a4052 100%);
  padding: 88px 48px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 70%, rgba(10,157,168,0.12), transparent 65%);
}
.page-hero-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }

.page-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(10,157,168,0.15);
  border: 1px solid rgba(127,227,232,0.2);
  color: var(--agua-light);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--arena); line-height: 1.12;
  margin-bottom: 14px; letter-spacing: -0.02em;
}
.page-title em { font-style: italic; color: var(--agua-light); }
.page-sub { color: rgba(245,237,224,0.6); font-size: 0.98rem; line-height: 1.72; }

/* ─── LAYOUT ────────────────────────────────────────────── */
.faq-layout { max-width: 860px; margin: 0 auto; padding: 72px 48px; }

/* ─── LANG TOGGLE ───────────────────────────────────────── */
.lang-toggle {
  background: var(--gris); border-radius: 10px;
  padding: 4px; display: inline-flex; gap: 3px;
  margin-bottom: 40px;
  box-shadow: var(--sombra-s);
}
.lang-btn {
  padding: 8px 20px; border-radius: 7px;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s var(--ease-out);
  border: none; font-family: 'Outfit', sans-serif;
  color: #aaa; background: transparent;
}
.lang-btn.active {
  background: white; color: var(--selva);
  box-shadow: var(--sombra-s);
}
.lang-btn:not(.active):hover { color: var(--selva); background: rgba(255,255,255,0.5); }

/* ─── CATEGORIES ────────────────────────────────────────── */
.faq-category { margin-bottom: 52px; }
.faq-category-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; color: var(--selva);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid rgba(10,157,168,0.15);
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.01em;
}

/* ─── FAQ ITEMS ─────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--gris-medio);
  border-radius: var(--r-m);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
  background: white;
}
.faq-item:hover {
  box-shadow: var(--sombra-m);
  border-color: rgba(10,157,168,0.2);
}
.faq-item.open {
  border-color: rgba(10,157,168,0.3);
  box-shadow: var(--sombra-m);
}

.faq-question {
  padding: 18px 22px;
  cursor: pointer;
  display: flex; justify-content: space-between;
  align-items: center; gap: 14px;
  user-select: none;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(10,157,168,0.03); }
.faq-item.open .faq-question { background: rgba(10,157,168,0.04); }

.faq-question-text {
  font-size: 0.94rem; font-weight: 600;
  color: var(--selva); line-height: 1.4;
}

.faq-arrow {
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%;
  background: var(--gris);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: #999;
  transition: transform 0.35s var(--ease-out), background 0.2s, color 0.2s;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  background: var(--agua); color: white;
}

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 4px 22px 20px;
  border-top: 1px solid var(--gris);
}
.faq-answer-inner p {
  font-size: 0.9rem; color: #666;
  line-height: 1.82; margin-bottom: 8px;
}
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer-inner a {
  color: var(--agua); text-decoration: none;
  border-bottom: 1px solid rgba(10,157,168,0.3);
  transition: border-color 0.2s;
}
.faq-answer-inner a:hover { border-color: var(--agua); }
.faq-answer-inner strong { color: var(--selva); font-weight: 700; }

/* ─── LANG CONTENT ──────────────────────────────────────── */
.es-content, .en-content { display: none; }
.es-content.visible, .en-content.visible { display: block; }

/* ─── CTA BOX ───────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(145deg, var(--selva), #0d3a28);
  border-radius: var(--r-xl); padding: 40px;
  text-align: center; margin-top: 52px;
  box-shadow: var(--sombra-l);
}
.cta-box h3 {
  font-family: 'Playfair Display', serif;
  color: var(--arena); font-size: 1.5rem;
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.cta-box p { color: rgba(245,237,224,0.58); margin-bottom: 22px; font-size: 0.92rem; line-height: 1.65; }
.cta-box a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--agua); color: white;
  text-decoration: none; padding: 12px 28px;
  border-radius: var(--r-m); font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 3px 12px rgba(10,157,168,0.4);
}
.cta-box a:hover { background: var(--agua-deep); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,157,168,0.5); }

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero { padding: 64px 24px 56px; }
  .faq-layout { padding: 48px 20px; }
}
