/* ============================================================
   Sistema de diseño compartido — Lic. Sidanelia Belén Godoy
   Usado por las landing pages y el blog. La home (index.html)
   mantiene su CSS inline; estos tokens y componentes replican
   su identidad visual para no romper la coherencia.
   ============================================================ */

:root {
  --teal: #4a8e8b;
  --teal-dark: #2d6966;
  --teal-light: #a8d4d1;
  --teal-muted: #d3e8e6;
  --gold: #c9a84c;
  --gold-deep: #96751d;
  --gold-light: #e4d5a0;
  --cream: #f7f5f0;
  --warm-white: #fdfcf9;
  --text: #2c3e3d;
  --text-light: #4f6b6a;
  --text-muted: #587472;
  --sage: #b8c9b8;
  --blush: #f0e6e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text);
  background: var(--warm-white);
  overflow-x: hidden;
  line-height: 1.7;
  font-weight: 300;
}
img { max-width: 100%; height: auto; }

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--teal); color: #fff;
  padding: 12px 20px; text-decoration: none; font-weight: 500;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ─── NAV ─── */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(253,252,249,0.85);
  border-bottom: 1px solid rgba(74,142,139,0.08);
  transition: box-shadow 0.4s;
}
#navbar.scrolled { box-shadow: 0 2px 24px rgba(74,142,139,0.08); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 500;
  color: var(--teal-dark); letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-light);
  font-size: 0.85rem; font-weight: 400;
  letter-spacing: 0.04em; text-transform: uppercase;
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--gold); transition: width 0.35s;
}
.nav-links a:hover { color: var(--teal-dark); }
.nav-links a:hover::after { width: 100%; }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--teal-dark); transition: 0.3s; display: block; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  max-width: 820px; margin: 0 auto; padding: 100px 28px 0;
  font-size: 0.82rem; color: var(--text-muted);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--teal-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; color: var(--text-muted); }

/* ─── LANDING HERO ─── */
.lp-hero {
  padding: 40px 28px 20px;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(168,212,209,0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(201,168,76,0.12) 0%, transparent 50%),
    var(--warm-white);
}
.lp-hero-inner { max-width: 820px; margin: 0 auto; }
.lp-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem; font-weight: 500; color: var(--gold-deep);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px;
}
.lp-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 300;
  color: var(--teal-dark); line-height: 1.18; margin-bottom: 18px;
}
.lp-hero .lp-lede {
  font-size: 1.08rem; color: var(--text-light); line-height: 1.85; max-width: 680px;
}

/* ─── ARTICLE / PROSE ─── */
.prose { max-width: 820px; margin: 0 auto; padding: 40px 28px 20px; }
.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 400;
  color: var(--teal-dark); line-height: 1.3;
  margin: 44px 0 6px;
}
.prose h2 + .prose-divider, .prose h2 ~ p:first-of-type { margin-top: 14px; }
.prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 500; color: var(--teal-dark);
  margin: 30px 0 10px;
}
.prose p { font-size: 1.02rem; color: var(--text-light); line-height: 1.9; margin-bottom: 18px; }
.prose strong { color: var(--teal-dark); font-weight: 600; }
.prose a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--teal-light); }
.prose a:hover { color: var(--gold-deep); }
.prose ul, .prose ol { margin: 0 0 20px 1.2em; }
.prose li { font-size: 1.02rem; color: var(--text-light); line-height: 1.85; margin-bottom: 8px; }
.prose blockquote {
  border-left: 3px solid var(--teal-light);
  background: var(--cream);
  padding: 18px 24px; margin: 24px 0; border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--text);
}
.section-divider {
  width: 50px; height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--teal-light));
  margin: 8px 0 4px;
}

/* Caja de tópicos relacionados / enlaces internos */
.related-box {
  max-width: 820px; margin: 36px auto 0; padding: 0 28px;
}
.related-box .related-inner {
  background: var(--cream); border: 1px solid rgba(74,142,139,0.08);
  border-radius: 16px; padding: 28px 32px;
}
.related-box h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem;
  color: var(--teal-dark); margin-bottom: 14px; font-weight: 500;
}
.related-box ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.related-box a { color: var(--teal-dark); text-decoration: none; font-size: 0.95rem; display: inline-flex; gap: 8px; }
.related-box a::before { content: '→'; color: var(--gold-deep); }
.related-box a:hover { color: var(--gold-deep); }

/* ─── FAQ ─── */
.faq { padding: 20px 28px 40px; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list > h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--teal-dark); margin-bottom: 8px;
}
.faq-item { border-bottom: 1px solid rgba(74,142,139,0.08); }
.faq-q {
  width: 100%; background: none; border: none; padding: 22px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 500;
  color: var(--teal-dark); text-align: left; transition: color 0.3s;
}
.faq-q:hover { color: var(--gold-deep); }
.faq-q svg { width: 20px; height: 20px; color: var(--text-muted); transition: transform 0.35s; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s; }
.faq-item.open .faq-a { max-height: 320px; padding-bottom: 20px; }
.faq-a p { font-size: 0.98rem; color: var(--text-light); line-height: 1.85; }

/* ─── CTA BAND ─── */
.cta-band {
  background:
    radial-gradient(ellipse at 80% 80%, rgba(168,212,209,0.15) 0%, transparent 55%),
    var(--cream);
  padding: 60px 28px; text-align: center;
}
.cta-band-inner { max-width: 640px; margin: 0 auto; }
.cta-band h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--teal-dark); margin-bottom: 14px;
}
.cta-band p { color: var(--text-light); margin-bottom: 26px; line-height: 1.85; }
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; padding: 16px 36px; border-radius: 40px;
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
  transition: all 0.35s; box-shadow: 0 4px 20px rgba(37,211,102,0.25);
}
.whatsapp-btn:hover { background: #1fb855; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(37,211,102,0.35); }
.whatsapp-btn svg { width: 20px; height: 20px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal-dark); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  margin-top: 16px;
}
.btn-secondary:hover { color: var(--gold-deep); }

/* ─── BLOG ─── */
.blog-wrap { max-width: 1000px; margin: 0 auto; padding: 20px 28px 10px; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid rgba(74,142,139,0.06);
  border-radius: 18px; padding: 30px 28px; text-decoration: none; transition: all 0.35s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(74,142,139,0.08); }
.post-card-meta { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-deep); margin-bottom: 10px; }
.post-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500; color: var(--teal-dark); margin-bottom: 10px; line-height: 1.25; }
.post-card-excerpt { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; flex: 1; }
.post-card .read-more { margin-top: 16px; font-size: 0.82rem; font-weight: 600; color: var(--teal); }
.post-card:hover .read-more { color: var(--gold-deep); }
.blog-plan { max-width: 1000px; margin: 24px auto 0; padding: 0 28px; }
.blog-plan .plan-inner { background: var(--warm-white); border: 1px solid rgba(74,142,139,0.08); border-radius: 16px; padding: 28px 32px; }
.blog-plan h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--teal-dark); margin-bottom: 6px; font-weight: 500; }
.blog-plan p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.blog-plan ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.blog-plan li { font-size: 0.95rem; color: var(--text-light); padding-left: 18px; position: relative; }
.blog-plan li::before { content: '○'; position: absolute; left: 0; color: var(--teal-light); }

/* ─── AUTOR / E-E-A-T ─── */
.author-box {
  max-width: 820px; margin: 40px auto 0; padding: 0 28px;
}
.author-inner {
  display: flex; gap: 20px; align-items: center;
  background: var(--warm-white); border: 1px solid rgba(74,142,139,0.10);
  border-radius: 16px; padding: 24px 28px; box-shadow: 0 4px 20px rgba(74,142,139,0.04);
}
.author-inner img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--teal-dark); font-weight: 500; }
.author-role { font-size: 0.85rem; color: var(--text-muted); margin: 2px 0 6px; }
.author-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* ─── FOOTER ─── */
footer {
  background: var(--teal-dark); color: rgba(255,255,255,0.7);
  padding: 40px 28px; text-align: center; font-size: 0.82rem;
}
footer .footer-name { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 8px; }
footer a { color: var(--gold-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-nav { margin: 14px 0 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer-nav a { color: rgba(255,255,255,0.75); font-size: 0.8rem; }

/* ─── FLOATING WHATSAPP ─── */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 99;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35); transition: all 0.35s;
  animation: floatPulse 3s ease-in-out infinite; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.35); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,0.5), 0 0 0 8px rgba(37,211,102,0.08); }
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed; bottom: 96px; right: 24px; z-index: 98;
  width: 44px; height: 44px; border-radius: 50%; background: var(--warm-white);
  border: 1px solid rgba(74,142,139,0.12);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(74,142,139,0.08); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.35s; text-decoration: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal); border-color: var(--teal); }
.back-to-top svg { width: 20px; height: 20px; color: var(--teal-dark); transition: color 0.3s; }
.back-to-top:hover svg { color: #fff; }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(253,252,249,0.97); padding: 20px 28px; gap: 18px;
    border-bottom: 1px solid rgba(74,142,139,0.08); backdrop-filter: blur(16px);
  }
  .related-box ul { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-plan ul { grid-template-columns: 1fr; }
  .author-inner { flex-direction: column; text-align: center; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .back-to-top { bottom: 80px; right: 18px; width: 40px; height: 40px; }
}

/* ─── MOVIMIENTO REDUCIDO ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
