/* ==========================================================================
   Vitrina Digital - Cluster "Preguntas frecuentes" (/preguntas/)
   Shared stylesheet for the SEO question-pages. Brand-consistent with the
   landing pages (navy + gold, Playfair Display + DM Sans).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1A3A5C;
  --navy-dark: #0f2338;
  --gold: #F2A900;
  --gold-light: #ffc93c;
  --cream: #FAFAF8;
  --warm-gray: #F4F1EC;
  --text: #1c1c1c;
  --text-muted: #6b6b6b;
  --white: #ffffff;
  --line: rgba(26,58,92,0.10);
  --radius: 16px;
  --shadow: 0 8px 32px rgba(26,58,92,0.10);
  --shadow-lg: 0 24px 64px rgba(26,58,92,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--navy); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 68px;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,58,92,0.08);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(26,58,92,0.10); }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--navy); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-switch {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid rgba(26,58,92,0.2); transition: all 0.2s;
}
.lang-switch:hover { border-color: var(--navy); color: var(--navy); }
.btn-cta-nav {
  background: var(--gold); color: var(--navy);
  padding: 8px 20px; border-radius: 24px;
  font-weight: 600; font-size: 0.88rem; text-decoration: none;
  transition: background 0.2s, transform 0.15s; white-space: nowrap;
}
.btn-cta-nav:hover { background: var(--gold-light); transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--navy); }

.mobile-menu { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu {
    display: none; position: fixed; top: 68px; left: 0; right: 0;
    background: var(--cream); border-top: 1px solid rgba(26,58,92,0.1);
    padding: 1.5rem 5vw; z-index: 99; flex-direction: column; gap: 1rem;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    color: var(--text); text-decoration: none; font-weight: 500; font-size: 1rem;
    padding: 0.5rem 0; border-bottom: 1px solid rgba(26,58,92,0.06);
  }
}
/* On very narrow screens hide the nav language chips (they live in the burger menu)
   so the CTA + hamburger always fit. */
@media (max-width: 600px) {
  .nav-right .lang-switch { display: none; }
}

/* ── LAYOUT ── */
.wrap { max-width: 820px; margin: 0 auto; padding: 0 5vw; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 5vw; }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* ── HERO (question) ── */
.q-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4a70 100%);
  color: var(--white);
  padding: 110px 0 60px;
  position: relative; overflow: hidden;
}
.q-hero::after {
  content: ""; position: absolute; right: -80px; top: 20%;
  width: 420px; height: 420px; background: rgba(242,169,0,0.06);
  border-radius: 46% 54% 60% 40% / 40% 46% 54% 60%;
}
.q-hero .wrap { position: relative; z-index: 2; }
.q-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(242,169,0,0.15); border: 1px solid rgba(242,169,0,0.3);
  color: var(--gold); padding: 5px 14px; border-radius: 24px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 1.1rem;
}
.q-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.15;
  color: var(--white); margin-bottom: 1.1rem; max-width: 18ch;
}
.q-lead { font-size: 1.1rem; color: rgba(255,255,255,0.82); max-width: 60ch; }
.q-hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 13px 26px; border-radius: 32px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(242,169,0,0.35); }
.btn-outline {
  background: transparent; color: var(--white);
  padding: 13px 26px; border-radius: 32px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1.5px solid rgba(255,255,255,0.3); transition: all 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: var(--white);
  padding: 14px 28px; border-radius: 32px; font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: all 0.2s;
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }
.btn-whatsapp svg { width: 20px; height: 20px; }

/* ── ARTICLE ── */
.q-article { padding: 56px 0 40px; }
.answer-box {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-bottom: 2.5rem; box-shadow: var(--shadow);
}
.answer-box .answer-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.answer-box p { font-size: 1.08rem; color: var(--text); }
.answer-box p + p { margin-top: 0.75rem; }

.q-article h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: var(--navy); line-height: 1.25;
  margin: 2.5rem 0 1rem;
}
.q-article h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 1.75rem 0 0.6rem; }
.q-article p { color: #3a3a3a; margin-bottom: 1rem; }
.q-article ul, .q-article ol { margin: 0 0 1.25rem 1.2rem; }
.q-article li { color: #3a3a3a; margin-bottom: 0.5rem; padding-left: 0.25rem; }
.q-article a.inline { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.q-article a.inline:hover { color: var(--gold); }
.q-article strong { color: var(--text); }

/* Feature/price list with check marks */
.check-list { list-style: none !important; margin-left: 0 !important; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding-left: 0 !important; }
.check-list li::before { content: "✓"; color: var(--gold); font-weight: 800; flex-shrink: 0; margin-top: 1px; }

/* Callout box */
.callout {
  background: var(--warm-gray); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin: 1.75rem 0; border: 1px solid var(--line);
}
.callout b { color: var(--navy); }
.callout.tip { border-left: 4px solid var(--navy); }

/* Price highlight */
.price-tag {
  display: inline-block; background: var(--navy); color: var(--white);
  padding: 3px 12px; border-radius: 20px; font-weight: 700; font-size: 0.95rem;
}

/* ── RELATED QUESTIONS ── */
.related { background: var(--white); border-top: 1px solid var(--line); padding: 48px 0; }
.related h2 {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700;
  color: var(--navy); margin-bottom: 1.5rem;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.related-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.25rem; text-decoration: none; color: var(--navy);
  font-weight: 600; font-size: 0.95rem; transition: all 0.2s;
}
.related-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.related-card svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--gold); }

/* ── FINAL CTA ── */
.q-cta {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white); text-align: center; padding: 64px 5vw;
}
.q-cta h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 0.75rem; }
.q-cta p { color: rgba(255,255,255,0.72); max-width: 52ch; margin: 0 auto 1.75rem; }
.q-cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.q-cta .contact-note { margin-top: 1.25rem; color: rgba(255,255,255,0.45); font-size: 0.82rem; }

/* ── HUB (index) ── */
.hub-hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4a70 100%); color: var(--white); padding: 120px 0 64px; text-align: center; }
.hub-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: 1rem; }
.hub-hero p { color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 60ch; margin: 0 auto; }
.hub-section { padding: 56px 0; }
.hub-cat-title {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin: 2.5rem 0 1rem;
}
.hub-cat-title:first-child { margin-top: 0; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.hub-card {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; text-decoration: none; transition: all 0.2s;
}
.hub-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.hub-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 0.4rem; }
.hub-card p { font-size: 0.9rem; color: var(--text-muted); }
.hub-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 0.75rem; color: var(--gold); font-weight: 700; font-size: 0.85rem; }

/* ── FOOTER ── */
footer { background: var(--navy-dark); color: rgba(255,255,255,0.45); padding: 2rem 5vw; font-size: 0.82rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-logo-img { height: 32px; width: auto; object-fit: contain; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-langs { display: flex; align-items: center; gap: 1rem; }
.footer-langs a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--gold); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
