/* ============================================================
   Saludelemental — Design tokens compartidos (subpáginas)
   Misma paleta y tipografía que index.html (brand/tokens.css)
   ============================================================ */
:root {
  --c-bg:           #F3F7F4;
  --c-bg-alt:       #E8F0EB;
  --c-surface:      #FFFFFF;
  --c-primary:      #3D6B50;
  --c-primary-h:    #2F5640;
  --c-primary-pale: #C5DDD0;
  --c-accent:       #C06245;
  --c-accent-pale:  #F5E3DC;
  --c-text:         #1A2920;
  --c-text-2:       #4A6357;
  --c-text-3:       #7A9A86;
  --c-border:       #D4E0D8;
  --c-border-light: #E8F0EB;
  --c-wa: #25D366;

  --f-display: 'Fraunces', Georgia, serif;
  --f-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-lg:   1.125rem;
  --t-xl:   1.25rem;
  --t-2xl:  1.563rem;
  --t-3xl:  1.953rem;
  --t-4xl:  2.441rem;
  --t-5xl:  3.052rem;
  --t-6xl:  3.815rem;

  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  --sh-sm: 0 2px 6px rgba(26,41,32,0.06);
  --sh-md: 0 4px 16px rgba(26,41,32,0.10);
  --sh-lg: 0 8px 32px rgba(26,41,32,0.14);

  --max-w: 1200px;
  --max-w-n: 760px;

  --tr-fast: 150ms ease;
  --tr-base: 280ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.625;
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-12); } }

.container-n {
  width: 100%;
  max-width: var(--max-w-n);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
@media (min-width: 768px) { .container-n { padding-inline: 0; } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(243, 247, 244, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border-light);
  transition: box-shadow var(--tr-base);
}
.nav.scrolled { box-shadow: var(--sh-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--sp-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-8);
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-text-2);
  transition: color var(--tr-fast);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--c-primary); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-primary);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 600;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--tr-fast), transform var(--tr-fast);
}
.btn-primary:hover { background: var(--c-primary-h); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: transparent;
  color: var(--c-primary);
  font-size: var(--t-sm);
  font-weight: 600;
  border-radius: var(--r-full);
  border: 2px solid var(--c-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--tr-fast), color var(--tr-fast);
}
.btn-secondary:hover { background: var(--c-primary); color: #fff; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-wa);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 600;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: filter var(--tr-fast);
}
.btn-whatsapp:hover { filter: brightness(0.94); }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-8);
  background: #fff;
  color: var(--c-primary);
  font-size: var(--t-base);
  font-weight: 700;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-8);
  background: transparent;
  color: #fff;
  font-size: var(--t-base);
  font-weight: 600;
  border-radius: var(--r-full);
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--tr-fast), background var(--tr-fast);
}
.btn-ghost-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.nav-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  color: var(--c-text);
}
@media (min-width: 768px) { .nav-menu-btn { display: none; } }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  border-top: 1px solid var(--c-border-light);
  background: var(--c-bg);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: var(--t-base);
  font-weight: 500;
  color: var(--c-text-2);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border-light);
}
.nav-mobile .btn-primary { align-self: flex-start; }

@media (max-width: 767px) {
  .nav-logo-text { display: none; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding-block: var(--sp-4);
  font-size: var(--t-xs);
  color: var(--c-text-3);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.breadcrumb a { color: var(--c-text-3); transition: color var(--tr-fast); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: var(--sp-2); color: var(--c-border); }

/* ============================================================
   PAGE HEADER (hero simple, para subpáginas)
   ============================================================ */
.page-header {
  padding-block: var(--sp-16) var(--sp-12);
  background: var(--c-bg-alt);
}
.page-header-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.page-header-kicker::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
}
.page-header h1 {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, var(--t-6xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-text);
  max-width: 20ch;
  margin-bottom: var(--sp-5);
}
.page-header h1 em {
  font-style: italic;
  color: var(--c-primary);
  display: inline-block;
  padding-bottom: 2px;
}
.page-header p.lead {
  font-size: var(--t-lg);
  color: var(--c-text-2);
  line-height: 1.65;
  max-width: 62ch;
}
.page-header .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { margin-bottom: var(--sp-12); }
.section-header h2 {
  font-family: var(--f-display);
  font-size: clamp(var(--t-3xl), 3.5vw, var(--t-4xl));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin-bottom: var(--sp-4);
}
.section-header p {
  font-size: var(--t-lg);
  color: var(--c-text-2);
  max-width: 60ch;
  line-height: 1.65;
}

/* ============================================================
   PROSE — para páginas legales
   ============================================================ */
.prose { padding-block: var(--sp-16); }
.prose .container-n > * + * { margin-top: var(--sp-5); }
.prose h2 {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--c-text);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--c-text-2); line-height: 1.75; }
.prose ul, .prose ol { color: var(--c-text-2); line-height: 1.75; padding-left: var(--sp-6); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--sp-2); }
.prose strong { color: var(--c-text); }
.prose a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.prose .meta-updated {
  font-size: var(--t-sm);
  color: var(--c-text-3);
  margin-bottom: var(--sp-8);
}

/* ============================================================
   CARDS / GRID (servicios hub, etc.)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-8);
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  transition: box-shadow var(--tr-base), transform var(--tr-base);
}
.service-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.service-card .card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--c-bg-alt);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.service-card h3 {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.service-card p { font-size: var(--t-sm); color: var(--c-text-2); line-height: 1.7; }
.service-card .card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-primary);
}
.service-card.featured {
  background: var(--c-primary);
  border-color: transparent;
}
.service-card.featured .card-icon { background: rgba(255,255,255,0.15); color: #fff; }
.service-card.featured h3, .service-card.featured .card-link { color: #fff; }
.service-card.featured p { color: rgba(255,255,255,0.8); }

.bento-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-sage    { background: var(--c-primary-pale); color: var(--c-primary); }
.tag-accent  { background: var(--c-accent-pale); color: var(--c-accent); }
.tag-white   { background: rgba(255,255,255,0.2); color: #fff; }

/* ============================================================
   CONTENT SECTION (páginas de servicio)
   ============================================================ */
.content-section { padding-block: var(--sp-16); }
.content-section.alt { background: var(--c-bg-alt); }
.content-block { max-width: var(--max-w-n); }
.content-block h2 {
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-4);
}
.content-block p { color: var(--c-text-2); line-height: 1.8; margin-bottom: var(--sp-4); }
.content-block p:last-child { margin-bottom: 0; }

.check-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--t-base);
  color: var(--c-text-2);
}
.check-list i { color: var(--c-primary); font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }

/* ============================================================
   CRISIS NOTE — línea de emergencia (visible, no alarmista)
   ============================================================ */
.crisis-note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-md);
}
.crisis-note i { color: var(--c-accent); font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.crisis-note strong { color: var(--c-text); display: block; margin-bottom: 4px; }
.crisis-note p { font-size: var(--t-sm); color: var(--c-text-2); line-height: 1.65; }
.crisis-note a { color: var(--c-accent); font-weight: 600; text-decoration: underline; }

/* ============================================================
   PRICE CARD
   ============================================================ */
.price-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-8);
  box-shadow: var(--sh-md);
  text-align: center;
  max-width: 420px;
  margin-inline: auto;
}
.price-card .price-amount {
  font-family: var(--f-display);
  font-size: var(--t-6xl);
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-card .price-amount sup { font-size: var(--t-xl); top: -1.2em; }
.price-card .price-unit { font-size: var(--t-sm); color: var(--c-text-3); margin-top: var(--sp-2); margin-bottom: var(--sp-6); }
.price-card .check-list { text-align: left; margin-bottom: var(--sp-8); }

/* ============================================================
   FAQ — Accordion
   ============================================================ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item:first-child { border-top: 1px solid var(--c-border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-body);
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--c-text);
  transition: color var(--tr-fast);
}
.faq-question:hover { color: var(--c-primary); }
.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  transition: transform var(--tr-base);
  color: var(--c-primary);
  font-size: 1.2rem;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner {
  padding-bottom: var(--sp-5);
  font-size: var(--t-sm);
  color: var(--c-text-2);
  line-height: 1.75;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final {
  background: var(--c-primary);
  padding-block: var(--sp-24);
  text-align: center;
}
.cta-final h2 {
  font-family: var(--f-display);
  font-size: clamp(var(--t-3xl), 4vw, var(--t-5xl));
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-5);
  max-width: 20ch;
  margin-inline: auto;
}
.cta-final p {
  font-size: var(--t-lg);
  color: rgba(255,255,255,0.75);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
  line-height: 1.65;
}
.cta-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--c-text); padding-block: var(--sp-16); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-10); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand-name { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 700; color: #fff; margin-bottom: var(--sp-3); }
.footer-brand-desc { font-size: var(--t-sm); color: rgba(255,255,255,0.5); line-height: 1.65; max-width: 38ch; margin-bottom: var(--sp-5); }
.footer-social { display: flex; gap: var(--sp-3); }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  transition: background var(--tr-fast), color var(--tr-fast);
}
.footer-social a:hover { background: var(--c-primary); color: #fff; }
.footer-col h4 { font-size: var(--t-sm); font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: var(--sp-4); letter-spacing: 0.03em; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col li a { font-size: var(--t-sm); color: rgba(255,255,255,0.5); transition: color var(--tr-fast); }
.footer-col li a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  width: 56px; height: 56px;
  background: var(--c-wa);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform var(--tr-base), box-shadow var(--tr-base);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ============================================================
   PRIVACY STRIP
   ============================================================ */
.privacy-strip {
  background: var(--c-text);
  padding: var(--sp-3) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.privacy-strip i { font-size: 0.875rem; flex-shrink: 0; }
.privacy-strip a { color: rgba(255,255,255,0.7); text-decoration: underline; }
