/* =====================================================
   José Luis Rodríguez Arenillas — Asesor Financiero
   Design language: vino profundo + verde botella/salvia sobre pergamino,
   redondeo moderado (botones 10px, tarjetas 14px, paneles 20px):
   ni pastillas ni esquinas rectas. Títulos en Cormorant Garamond (con cursivas), texto en Inter,
   hero en panel olivo, tarjetas claras y oscuras alternadas.
   Motion engine: GSAP + ScrollTrigger + Lenis (same proven pattern).
   ===================================================== */

:root {
  --bg: #f4efea;
  --surface: #fbf8f6;
  --ink: #1c1416;
  --ink-2: #5a4e50;
  --ink-3: #8c7f81;
  --wine: #5a1424;
  --wine-deep: #250a11;
  --wine-light: #7a2236;
  --wine-soft: #efe2e4;
  --mist: #ede4e1;
  --mist-deep: #dccbc7;
  --green: #2f4a3a;
  --green-deep: #1d2e24;
  --sage: #9dae8c;
  --sage-light: #c3cfb5;
  --sage-soft: #e5eadc;
  --line: rgba(28, 20, 22, 0.11);
  --line-strong: rgba(28, 20, 22, 0.24);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(37, 10, 17, 0.05), 0 4px 16px rgba(37, 10, 17, 0.06);
  --shadow-lg: 0 2px 6px rgba(37, 10, 17, 0.06), 0 24px 48px rgba(37, 10, 17, 0.16);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ui: "Manrope", "Inter", -apple-system, sans-serif;
  --glass: rgba(28, 20, 22, 0.05);
  --ghost-border: rgba(28, 20, 22, 0.24);
  --mobile-nav-bg: #fbf8f6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html.no-lenis { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

/* ---------- Cursor spotlight ---------- */
#cursor-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--cx, 50%) var(--cy, 50%), rgba(90, 20, 36, 0.07), transparent 45%);
  opacity: 0; transition: opacity 0.4s ease;
}
#cursor-glow.active { opacity: 1; }
@media (hover: none) { #cursor-glow { display: none; } }

/* ---------- Nav — plain flat bar, gains a hairline + shadow once scrolled ---------- */
nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(251, 248, 246, 0.93);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
}
nav.docked { border-bottom-color: var(--line); box-shadow: 0 2px 20px rgba(37, 10, 17, 0.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--wine-deep); color: var(--sage-soft);
  display: flex; align-items: center; justify-content: center; font-family: var(--ui);
  font-weight: 800; font-size: 0.72rem; letter-spacing: 0.01em; flex-shrink: 0;
  box-shadow: inset 0 -3px 0 var(--sage);
}
.logo-text { font-family: var(--ui); font-size: 0.96rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.15; }
.logo-text span { display: block; font-family: var(--sans); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 500px) { .logo-text { display: none; } }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:not(.pill) {
  color: var(--ink-2); text-decoration: none; font-size: 0.86rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:not(.pill):hover { color: var(--ink); }
.nav-links a.active:not(.pill) { color: var(--wine); font-weight: 700; }
.nav-links .pill { padding: 10px 22px; font-size: 0.84rem; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 38px; height: 38px; border-radius: var(--radius-sm); align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle:hover { background: var(--glass); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  position: relative; transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* Botones: redondeo moderado, no pastillas */
.pill {
  display: inline-block; padding: 13px 28px; border-radius: var(--radius-sm);
  background: var(--wine-deep); color: #fff; text-decoration: none;
  font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em;
  border: none; cursor: pointer; font-family: var(--sans);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.25s, background 0.25s;
  box-shadow: 0 2px 10px rgba(37, 10, 17, 0.22);
}
.pill:hover { background: var(--wine); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37, 10, 17, 0.28); }
.pill-ghost { background: transparent; color: var(--wine-deep); box-shadow: none; border: 1.5px solid var(--ghost-border); }
.pill-ghost:hover { background: var(--wine-soft); color: var(--wine-deep); box-shadow: none; }
.pill-accent { background: var(--wine); }
.pill-accent:hover { background: var(--wine-light); }
.pill-wa { background: #25D366; box-shadow: 0 2px 10px rgba(37, 211, 102, 0.28); }
.pill-wa:hover { background: #1fb959; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35); }

/* ---------- Inicio — estructura tomada de GBM Advisory: panel grande con el
   texto alineado a la izquierda (la foto de José Luis irá a la derecha) ---------- */
.home-hero-shell { padding: 28px 20px 0; }
.home-hero {
  max-width: 1240px; margin: 0 auto; min-height: min(640px, 80vh);
  display: flex; align-items: center; color: #fff; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background:
    radial-gradient(ellipse 70% 90% at 0% 100%, rgba(0, 0, 0, 0.28), transparent 70%),
    linear-gradient(120deg, #6a1a2c 0%, #3f0f1b 45%, var(--wine-deep) 100%);
}
.home-hero-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 80px 85px; max-width: 820px; }
.home-hero h1 { margin: 0 0 24px; font-size: clamp(3rem, 5.4vw, 4.5rem); line-height: 1; }
.home-hero p { font-size: 1.12rem; color: rgba(244, 239, 234, 0.82); max-width: 44ch; margin-bottom: 34px; }
.home-hero-ctas { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.home-hero-ctas .pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; font-size: 1rem;
  background: var(--sage); color: var(--ink); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.home-hero-ctas .pill:hover { background: var(--sage-light); }
.home-hero-ctas .pill svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.text-link { color: rgba(255, 255, 255, 0.9); font-weight: 600; font-size: 0.95rem; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--sage-light); }

h1 {
  font-family: var(--display);
  font-size: clamp(2.9rem, 6.6vw, 4.7rem);
  font-weight: 600; letter-spacing: -0.012em; line-height: 1.02;
  max-width: 17ch; margin: 0 auto 20px; color: var(--bg);
  text-wrap: balance;
  position: relative; z-index: 1;
}
h1 em { font-style: italic; font-weight: 500; color: var(--sage-light); }
h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--wine); }
.cta-banner h2 em, .specialty-card h3 em, .agenda-alt h3 em { color: var(--sage-light); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-ctas .pill { padding: 15px 34px; font-size: 1rem; }

/* ---------- Page hero (subpages) — mismo panel vino, más compacto ---------- */
header.page-hero {
  max-width: 1240px; width: calc(100% - 40px); margin: 28px auto 0;
  min-height: 38vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 90px 24px 60px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%);
  box-shadow: var(--shadow-lg);
}
header.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 360px at 16% 20%, rgba(255, 255, 255, 0.08), transparent 70%);
}
header.page-hero::after {
  content: ""; position: absolute; right: 48px; bottom: -40px; width: 160px; height: 160px; pointer-events: none;
  border-radius: 28px;
  border: 1.5px solid rgba(195, 207, 181, 0.4);
}
header.page-hero h1 { max-width: 20ch; font-size: clamp(2.5rem, 5.2vw, 3.7rem); position: relative; z-index: 1; }
.page-hero-sub { color: rgba(244, 239, 234, 0.8); font-size: 1.04rem; max-width: 52ch; margin: 0 auto; position: relative; z-index: 1; }


/* ---------- Section base ---------- */
section { padding: 96px 0; position: relative; }
.surface-section { background: var(--surface); }
h2 { font-family: var(--display); font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; max-width: 22ch; margin-bottom: 16px; color: var(--wine-deep); text-wrap: balance; }
h3 { letter-spacing: -0.015em; }
h1, h2, h3, .benefit .n { font-variant-numeric: lining-nums; }
.section-sub { color: var(--ink-2); font-size: 1.04rem; max-width: 58ch; margin-bottom: 48px; }
.center { text-align: center; }
.center h2, .center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Two-column intro ("¿Qué es...") — heading + link left, copy right ---------- */
.intro-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.intro-split h2 { max-width: 14ch; margin-bottom: 24px; }
.intro-split .copy { color: var(--ink-2); font-size: 1.08rem; border-left: 3px solid var(--wine); padding-left: 28px; }

/* ---------- Sobre mí ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-copy p { color: var(--ink-2); font-size: 1.04rem; margin-bottom: 18px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-card {
  background: var(--mist); border: 1px solid var(--mist-deep); border-radius: var(--radius);
  border-top: 4px solid var(--wine);
  padding: 36px 34px;
}
.about-list { list-style: none; }
.about-list li { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; font-size: 0.96rem; font-weight: 600; border-bottom: 1px solid var(--mist-deep); color: var(--wine-deep); }
.about-list li:last-child { border-bottom: none; }
.about-list li::before { content: "+"; font-weight: 800; color: var(--wine); }

/* ---------- Cards: cómo te acompaño (steps) — claras y oscuras alternadas ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.35s;
  position: relative; overflow: hidden;
  background: var(--mist); color: var(--wine-deep);
}
.step:nth-child(2n) { background: var(--wine-deep); color: #fff; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--wine); color: #fff;
  font-family: var(--ui); font-size: 0.9rem; font-weight: 800; margin-bottom: 20px;
}
.step:nth-child(2n) .num { background: var(--sage); color: var(--ink); }
.step h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 700; line-height: 1.15; margin-bottom: 6px; }
.step p { font-size: 0.9rem; opacity: 0.85; }

/* ---------- Especialidad — asymmetric feature section ---------- */
.specialty-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.specialty-copy p { color: var(--ink-2); font-size: 1.04rem; margin-bottom: 18px; }
.specialty-card {
  background: var(--green);
  border-radius: var(--radius-lg); padding: 44px 38px; color: #fff; box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--sage);
}
.specialty-card .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(244, 239, 234, 0.12); color: var(--sage-light); padding: 5px 12px; border-radius: 6px; margin-bottom: 20px;
}
.specialty-card h3 { font-family: var(--display); font-size: 1.85rem; font-weight: 600; line-height: 1.1; margin-bottom: 16px; }
.specialty-card ul { list-style: none; margin-bottom: 8px; }
.specialty-card li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; font-size: 0.96rem; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.specialty-card li:last-child { border-bottom: none; }
.specialty-card li::before { content: "+"; font-weight: 800; color: var(--sage-light); flex-shrink: 0; }

/* ---------- Beneficios 01–04 (Inicio) ---------- */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.benefit { background: var(--mist); border-radius: var(--radius); padding: 48px; min-height: 230px; }
.benefit .n { font: italic 500 3.1rem/1 var(--display); color: var(--wine); margin-bottom: 26px; }
.benefit h3 { font: 700 1.95rem/1.15 var(--display); color: var(--ink); margin-bottom: 8px; }
.benefit p { color: var(--ink-2); font-size: 1.02rem; max-width: 40ch; }

/* ---------- "¿Cómo te puede ayudar?" — tarjetas con su botón (Inicio) ---------- */
.section-lead { color: var(--ink-2); font-size: 1.08rem; max-width: 56ch; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; display: flex; flex-direction: column;
}
.tier h3 { font: 700 2rem/1.1 var(--display); color: var(--wine-deep); }
.tier .sub { font: italic 500 1.3rem/1.3 var(--display); color: var(--ink-3); margin-top: 6px; }
.tier ul { list-style: none; margin: 30px 0 36px; border-top: 1px solid var(--line); }
.tier li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); }
.tier li::before {
  content: ""; position: absolute; left: 2px; top: 21px; width: 12px; height: 7px;
  border-left: 2px solid var(--wine); border-bottom: 2px solid var(--wine); transform: rotate(-45deg);
}
.tier .pill { margin-top: auto; width: 100%; text-align: center; }
.tier-dark { background: var(--green); border-color: var(--green); color: #fff; }
.tier-dark h3 { color: #fff; }
.tier-dark .sub { color: rgba(244, 239, 234, 0.62); }
.tier-dark ul, .tier-dark li { border-color: rgba(244, 239, 234, 0.16); }
.tier-dark li { color: rgba(244, 239, 234, 0.86); }
.tier-dark li::before { border-color: var(--sage-light); }
.tier-dark .pill { background: var(--sage); color: var(--ink); box-shadow: none; }
.tier-dark .pill:hover { background: var(--sage-light); }

/* ---------- Otros servicios (Inicio): seguros, nómina con Inbursa, terminales ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.service { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 34px; display: flex; flex-direction: column; }
.service-icon { width: 30px; height: 30px; stroke: var(--wine); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.service h3 { font: 700 1.75rem/1.15 var(--display); color: var(--wine-deep); margin-bottom: 10px; }
.service p { color: var(--ink-2); font-size: 0.98rem; margin-bottom: 22px; }
.service-link { margin-top: auto; align-self: flex-start; color: var(--wine); font-weight: 600; font-size: 0.92rem; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.service-link:hover { color: var(--green); }
@media (max-width: 860px) {
  .home-hero-shell { padding: 20px 12px 0; }
  .home-hero { min-height: 0; border-radius: var(--radius); }
  .home-hero-copy { padding: 56px 28px 52px; }
  .benefits, .tiers, .services { grid-template-columns: 1fr; }
  .benefit { padding: 36px 28px; min-height: 0; }
  .tier { padding: 32px 26px; }
}

/* ---------- FAQ (Especialidad) ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--wine); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow-sm); }
.faq-item h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1.2; margin-bottom: 8px; color: var(--wine-deep); }
.faq-item p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Testimonios ---------- */
.testimonial-placeholder {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--mist); border: 1px solid var(--mist-deep); border-radius: var(--radius-lg);
  padding: 52px 40px;
}
.testimonial-placeholder .icon {
  width: 54px; height: 54px; border-radius: var(--radius-sm); background: var(--wine); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
}
.testimonial-placeholder .icon svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: square; stroke-linejoin: miter; }
.testimonial-placeholder h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 600; margin-bottom: 10px; color: var(--wine-deep); }
.testimonial-placeholder p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- CTA banner ---------- */
#cta { padding: 40px 0 110px; }
.cta-banner {
  background: var(--wine);
  border-radius: var(--radius-lg); padding: 64px 48px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; left: -50px; top: -50px; width: 150px; height: 150px; pointer-events: none;
  border-radius: 28px;
  border: 1.5px solid rgba(195, 207, 181, 0.45);
}
.cta-banner h2 { color: #fff; margin: 0 auto 14px; }
.cta-banner p { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; max-width: 48ch; margin: 0 auto 34px; }
.cta-banner .pill { background: var(--sage); color: var(--ink); box-shadow: none; }
.cta-banner .pill:hover { background: var(--sage-light); }
.cta-banner .pill-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.cta-banner .pill-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Contacto / footer ---------- */
#contacto { background: var(--surface); }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info > p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 30px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--wine-soft); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-list .icon svg { width: 20px; height: 20px; stroke: var(--wine); stroke-width: 1.8; fill: none; stroke-linecap: square; stroke-linejoin: miter; }
.contact-list .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 3px; }
.contact-list a, .contact-list span.value { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--wine); }
.response-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--ink-2); margin-top: 4px; }
.response-badge .pulse { position: relative; width: 9px; height: 9px; background: #2fbf4f; flex-shrink: 0; }
.response-badge .pulse::after {
  content: ""; position: absolute; inset: -5px; background: #2fbf4f; opacity: 0.5;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-ring { 0% { transform: scale(0.7); opacity: 0.5; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .response-badge .pulse::after { animation: none; } }

.contact-panel {
  background: var(--mist); border: 1px solid var(--mist-deep); border-top: 4px solid var(--wine); border-radius: var(--radius-lg);
  padding: 42px 38px; text-align: center;
}
.contact-panel h3 { font-family: var(--display); font-size: 1.75rem; font-weight: 600; margin-bottom: 12px; color: var(--wine-deep); }
.contact-panel p { color: var(--ink-2); font-size: 0.98rem; margin-bottom: 28px; }
.contact-panel .pill { width: 100%; text-align: center; padding: 15px; font-size: 1rem; }
.contact-panel .pill + .pill { margin-top: 10px; }

footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-brand .logo { display: inline-flex; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-2); font-size: 0.92rem; max-width: 36ch; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--wine); }
footer .bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  color: var(--ink-3); font-size: 0.84rem; border-top: 1px solid var(--line); padding-top: 28px;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 54px; height: 54px; border-radius: 16px; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22); transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 27px; height: 27px; fill: #fff; }

/* ---------- Botón flotante para llamar (encima del de WhatsApp) ---------- */
.call-float {
  position: fixed; bottom: 88px; right: 22px; z-index: 60;
  width: 54px; height: 54px; border-radius: 16px; background: var(--wine);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22); transition: transform 0.2s, background 0.2s;
}
.call-float:hover { transform: scale(1.06); background: var(--wine-light); }
.call-float svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* =====================================================
   Agenda (agendar.html) — misma estructura que la agenda
   de GESG: calendario del mes a la izquierda, horas del día
   a la derecha, y al final el mensaje listo para WhatsApp.
   ===================================================== */
.agenda-intro { max-width: 760px; margin-bottom: 40px; }
.agenda-intro p { color: var(--ink-2); font-size: 1.02rem; }
.agenda-intro strong { color: var(--wine-deep); }
.agenda-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }

.cal {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--wine);
  border-radius: var(--radius); padding: 26px 24px 22px; box-shadow: var(--shadow-sm);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cal-head h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 700; color: var(--wine-deep); }
.cal-nav {
  width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: transparent;
  color: var(--wine-deep); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cal-nav svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: square; }
.cal-nav:hover:not(:disabled) { background: var(--wine-deep); border-color: var(--wine-deep); color: #fff; }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week span {
  text-align: center; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); padding-bottom: 8px;
}
.cal-day {
  aspect-ratio: 1 / 1; min-height: 40px; border-radius: 8px; border: 1px solid transparent; background: transparent;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--ink);
  cursor: pointer; position: relative; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cal-day.has-slots::after {
  content: ""; position: absolute; left: 50%; bottom: 7px; width: 5px; height: 5px; margin-left: -2.5px;
  background: var(--green);
}
.cal-day:hover:not(:disabled) { background: var(--wine-soft); }
.cal-day.today { border-color: var(--line-strong); }
.cal-day.selected, .cal-day.selected:hover { background: var(--wine-deep); color: #fff; border-color: var(--wine-deep); }
.cal-day.selected::after { background: var(--sage-light); }
.cal-day:disabled { color: var(--ink-3); opacity: 0.45; cursor: default; }
.cal-empty { aspect-ratio: 1 / 1; }
.cal-legend { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 0.82rem; color: var(--ink-2); }
.cal-legend::before { content: ""; width: 7px; height: 7px; background: var(--green); flex-shrink: 0; }

.slots-panel {
  background: var(--mist); border: 1px solid var(--mist-deep); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column;
}
.slots-panel h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1.15; color: var(--wine-deep); margin-bottom: 4px; }
.slots-panel h3::first-letter { text-transform: uppercase; }
.slots-hint { color: var(--ink-2); font-size: 0.9rem; }
.slots-empty {
  margin-top: 22px; padding: 22px; border: 1.5px dashed var(--mist-deep); color: var(--ink-2); font-size: 0.94rem;
}
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-top: 20px; }
.slot {
  border-radius: var(--radius-sm); border: 1px solid var(--wine); background: var(--surface); color: var(--wine-deep);
  padding: 11px 8px; font-family: var(--sans); font-size: 0.92rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.slot:hover { background: var(--wine-soft); }
.slot[aria-pressed="true"] { background: var(--wine-deep); border-color: var(--wine-deep); color: #fff; }

.cita-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--mist-deep); display: flex; flex-direction: column; gap: 14px; }
.cita-form[hidden] { display: none; }
.cita-resumen {
  background: var(--surface); border-left: 3px solid var(--wine); padding: 12px 16px;
  font-size: 0.95rem; color: var(--ink-2);
}
.cita-resumen strong { color: var(--wine-deep); }
.campo label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.campo label span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.campo input, .campo select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface);
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
}
.campo input:focus, .campo select:focus { outline: 2px solid var(--wine); outline-offset: 0; border-color: var(--wine); }
.cita-form .pill { text-align: center; padding: 15px; font-size: 1rem; }
.cita-nota { font-size: 0.82rem; color: var(--ink-3); }

.agenda-alt { margin-top: 20px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: var(--green); color: #fff; border-radius: var(--radius); padding: 30px 32px; border-left: 4px solid var(--sage); }
.agenda-alt h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 600; margin-bottom: 4px; }
.agenda-alt p { color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }
.agenda-alt .pill { background: var(--sage); color: var(--ink); box-shadow: none; white-space: nowrap; }
.agenda-alt .pill:hover { background: var(--sage-light); }
.agenda-alt-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.agenda-alt .pill-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.agenda-alt .pill-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* Qué llevar a tu cita */
.docs {
  margin-top: 20px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 8px 40px;
  background: var(--mist); border-radius: var(--radius); padding: 34px 36px;
}
.docs h3 { font: 600 1.75rem/1.15 var(--display); color: var(--wine-deep); margin-bottom: 8px; }
.docs-intro p { color: var(--ink-2); font-size: 0.97rem; }
.docs-list { list-style: none; }
.docs-list li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--mist-deep); font-size: 0.97rem; }
.docs-list li:last-child { border-bottom: none; }
.docs-list li::before {
  content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 7px;
  border-left: 2px solid var(--wine); border-bottom: 2px solid var(--wine); transform: rotate(-45deg);
}
.docs-nota { grid-column: 2; font-size: 0.84rem; color: var(--ink-3); }
@media (max-width: 860px) {
  .agenda-grid { grid-template-columns: 1fr; }
  .agenda-alt { grid-template-columns: 1fr; }
  .agenda-alt .pill { text-align: center; }
  .docs { grid-template-columns: 1fr; padding: 28px 24px; }
  .docs-nota { grid-column: auto; }
}

/* =====================================================
   "¿Aplico al crédito?" (aplico.html) — una pregunta a la vez,
   botones grandes y texto amplio: lo usan personas mayores.
   ===================================================== */
.quiz {
  max-width: 760px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 44px 48px; box-shadow: var(--shadow-sm);
}
.quiz-paso { font-size: 0.9rem; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.quiz-barra { height: 4px; background: var(--mist-deep); border-radius: 4px; overflow: hidden; margin-bottom: 30px; }
.quiz-barra span { display: block; height: 100%; background: var(--wine); border-radius: 4px; transition: width 0.3s; }
.quiz-titulo { max-width: none; color: var(--wine-deep); margin-bottom: 10px; outline: none; }
.quiz-ayuda, .quiz-texto { color: var(--ink-2); font-size: 1.05rem; }
.quiz-opciones { display: grid; gap: 10px; margin-top: 26px; }
.quiz-opt {
  text-align: left; padding: 18px 22px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong);
  background: var(--surface); font: 600 1.08rem var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-opt:hover { border-color: var(--wine); background: var(--wine-soft); }
.quiz-atras { margin-top: 22px; background: none; border: none; color: var(--ink-2); font: 600 0.95rem var(--sans); cursor: pointer; padding: 6px 0; }
.quiz-atras:hover { color: var(--wine); }
.quiz-resumen { margin: 24px 0 28px; border-top: 1px solid var(--line); }
.quiz-resumen div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.quiz-resumen dt { color: var(--ink-2); }
.quiz-resumen dd { font-weight: 600; text-align: right; }
.quiz-acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz-acciones .pill { text-align: center; }
.quiz-aviso { margin-top: 20px; font-size: 0.86rem; color: var(--ink-3); }
@media (max-width: 600px) {
  .quiz { padding: 30px 22px; }
  .quiz-acciones .pill { width: 100%; }
}

/* ---------- Reveal system ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }
html.gsap-active .reveal { transition: none; }
.split-word-wrap { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split-word { display: inline-block; will-change: transform, opacity; }
.reveal.word-split { transform: none; }

/* ---------- Scroll progress bar ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--wine), var(--sage));
  pointer-events: none;
}

/* ---------- Ambient depth blobs ---------- */
.ambient-blob {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(72px); pointer-events: none; z-index: 0; opacity: 0.35; will-change: transform;
}
.ambient-blob.blob-a { background: radial-gradient(circle, rgba(90, 20, 36, 0.18), transparent 70%); }
.ambient-blob.blob-b { background: radial-gradient(circle, rgba(47, 74, 58, 0.14), transparent 70%); }
@media (prefers-reduced-motion: reduce) { .ambient-blob { display: none; } }
@media (max-width: 700px) { .ambient-blob { width: 300px; height: 300px; filter: blur(60px); opacity: 0.3; } }

/* ---------- Page transition overlay ---------- */
body.intro-active, body.page-leaving { overflow: hidden; }
#page-transition {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  opacity: 0; pointer-events: none; transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
#page-transition.active { opacity: 1; pointer-events: all; }
body.page-enter #page-transition { opacity: 1; }
body.page-enter #page-transition.active { opacity: 0; }
body.page-enter .wrap, body.page-enter header, body.page-enter section, body.page-enter footer {
  animation: pageFadeIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.996); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  #page-transition, body.page-enter .wrap, body.page-enter header, body.page-enter section, body.page-enter footer { animation: none !important; opacity: 1 !important; filter: none !important; }
  #scroll-progress { display: none; }
  .split-word { transform: none !important; opacity: 1 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .specialty-wrap, .contact-card, .intro-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  section { padding: 64px 0; }
  #cta { padding: 20px 0 80px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 48px 28px; }
  header.page-hero { padding-left: 20px; padding-right: 20px; }
  header.page-hero { width: calc(100% - 32px); margin-top: 20px; }
  header.page-hero::after { right: 20px; width: 110px; height: 110px; }
}
/* El menú completo necesita ~1100px; por debajo se usa el menú desplegable */
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--mobile-nav-bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 560px; }
  .nav-links a:not(.pill) { padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
  .nav-links .pill { margin: 16px 24px; text-align: center; }
}
@media (max-width: 500px) {
  .steps { grid-template-columns: 1fr; }
  .intro-split .copy { padding-left: 20px; }
  .cal { padding: 20px 14px 18px; }
  .cal-week, .cal-days { gap: 2px; }
}
