/* ===================== TOKENS ===================== */
:root {
  --color-ink: #101216;
  --color-ink-2: #191c22;
  --color-accent: #c6ff3d;
  --color-accent-dark: #a3d629;
  --color-whatsapp: #25963f;
  --color-whatsapp-dark: #1d7a33;
  --color-text: #1a1c20;
  --color-text-muted: #62666f;
  --color-bg: #ffffff;
  --color-bg-alt: #f2f3ef;
  --color-border: #dfe1db;

  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 6px;
  --max-width: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--color-ink); }

.icon { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.icon-lg { width: 44px; height: 44px; fill: var(--color-accent); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-ink); color: #fff; padding: 12px 20px; z-index: 200; }
.skip-link:focus { left: 10px; top: 10px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: 76px 0; }
.section-alt { background: var(--color-bg-alt); }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-text-muted); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px;
}
.badge-pill::before { content: ""; width: 20px; height: 2px; background: var(--color-accent-dark); display: inline-block; }
.badge-pill.on-dark { color: #a7ab9c; }
.badge-pill.on-dark::before { background: var(--color-accent); }

h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 16px; }
h3 { font-size: 1.05rem; margin-bottom: 6px; font-family: var(--font-heading); font-weight: 700; }
.section-intro { max-width: 580px; margin: 0 auto 40px; color: var(--color-text-muted); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; padding: 14px 24px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, opacity .15s ease;
  font-size: 0.98rem; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); opacity: 0.9; }
.btn::after { content: "→"; }
.btn-primary { background: var(--color-accent); color: var(--color-ink); }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); }

/* ===================== HEADER ===================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-ink); border-bottom: 1px solid #2a2d34; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; line-height: 1.15; color: #fff; min-width: 0; flex-shrink: 1; }
.logo span { color: var(--color-accent); }
.main-nav { display: flex; gap: 26px; flex-shrink: 0; }
.main-nav a { font-weight: 600; color: #a7ab9c; font-size: 0.92rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: #fff; border-bottom-color: var(--color-accent); }
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; flex-shrink: 0; }
.nav-toggle span { width: 100%; height: 2px; background: #fff; border-radius: 2px; }

/* ===================== HERO ===================== */
.hero { background: var(--color-ink); color: #fff; padding: 56px 0 64px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 48px; align-items: start; }
.hero-text h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin: 6px 0 18px; color: #fff; }
.hero-sub { color: #b9bcb0; font-size: 1.05rem; max-width: 480px; }

.hero-summary { border: 1px solid #2a2d34; border-radius: var(--radius); padding: 26px; background: var(--color-ink-2); }
.summary-cat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #a7ab9c; }
.summary-cat { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1.05; color: var(--color-accent); margin: 4px 0; }
.summary-cat-range { color: #a7ab9c; font-size: 0.9rem; margin-bottom: 20px; }
.summary-list { border-top: 1px solid #2a2d34; margin-bottom: 16px; }
.summary-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #2a2d34; font-size: 0.94rem; }
.summary-list span { color: #a7ab9c; }
.summary-list strong { text-align: right; font-weight: 700; font-family: var(--font-heading); }
.summary-note { font-size: 0.78rem; line-height: 1.5; color: #7d8074; }
.summary-note a { color: var(--color-accent); text-decoration: underline; }

/* ===================== TRUST STRIP ===================== */
.trust-strip { padding: 44px 0; border-bottom: 1px solid var(--color-border); }
.trust-strip-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 40px; align-items: center; }
.trust-copy p { color: var(--color-text-muted); max-width: 340px; }
.trust-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.trust-card { padding: 20px 18px; border-left: 1px solid var(--color-border); }
.trust-card:first-child { border-left: none; }
.trust-card .icon { color: var(--color-accent-dark); margin-bottom: 10px; }
.trust-card h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.trust-card p { font-size: 0.85rem; color: var(--color-text-muted); }

/* ===================== QUIÉN SOY (feature) ===================== */
.feature-intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.feature-intro .highlight { color: var(--color-text-muted); font-weight: 400; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: stretch; }
.feature-facts { background: var(--color-bg-alt); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.facts-big { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.8rem, 6vw, 3.8rem); line-height: 1; color: var(--color-ink); }
.facts-big span { color: var(--color-accent-dark); font-size: 0.48em; }
.facts-big-label { color: var(--color-text-muted); margin: 8px 0 20px; max-width: 320px; }
.quote-card { border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent-dark); border-radius: 0 var(--radius) var(--radius) 0; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.quote-card p.badge-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 14px; }
.quote-card blockquote { font-size: 1.02rem; line-height: 1.55; margin-bottom: 20px; color: var(--color-ink); }
.quote-card .quote-name { font-weight: 700; font-family: var(--font-heading); }
.quote-card .quote-role { font-size: 0.85rem; color: var(--color-text-muted); }
.fact-list { margin-top: 4px; }
.fact-list li { padding-left: 24px; position: relative; margin-bottom: 10px; }
.fact-list li::before { content: "＋"; position: absolute; left: 0; color: var(--color-accent-dark); font-weight: 700; }

/* ===================== CONDITIONS TABLE ===================== */
.table-wrap { overflow-x: auto; margin-bottom: 24px; }
.conditions-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.conditions-table tr:nth-child(even) { background: var(--color-bg-alt); }
.conditions-table th, .conditions-table td { text-align: left; padding: 14px 18px; font-size: 0.95rem; }
.conditions-table th { color: var(--color-ink); font-weight: 700; width: 42%; }

.legal-note { font-size: 0.9rem; color: var(--color-text-muted); }
.legal-note a { color: var(--color-ink); text-decoration: underline; }
.requirements-title { margin-top: 32px; }
.requirements-list { margin: 12px 0; }
.requirements-list li { padding-left: 24px; position: relative; margin-bottom: 8px; font-weight: 600; }
.requirements-list li::before { content: "—"; position: absolute; left: 0; color: var(--color-accent-dark); }
.requirements-note { color: var(--color-text-muted); font-size: 0.95rem; }

/* ===================== PROCESO (step grid) ===================== */
.timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin-top: 36px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.timeline li { background: #fff; padding: 26px; display: flex; gap: 16px; }
.timeline-num {
  flex-shrink: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; color: var(--color-ink);
  border: 2px solid var(--color-accent-dark);
}
.timeline p { color: var(--color-text-muted); font-size: 0.94rem; }

/* ===================== NO REQUEST ===================== */
.no-request { padding: 64px 0; background: var(--color-ink); color: #fff; }
.no-request .icon-lg { margin: 0 auto 16px; }
.no-request h2 { color: #fff; }
.no-request p { max-width: 600px; margin: 0 auto; color: #b9bcb0; }

/* ===================== FAQ ===================== */
.faq-list { margin-top: 30px; border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 18px 4px; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--color-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; font-size: 1.1rem; color: var(--color-accent-dark); margin-left: 12px; }
.faq-item[open] summary::after { content: "－"; }
.faq-item p { padding: 0 4px 18px; color: var(--color-text-muted); }

/* ===================== CONTACT ===================== */
.contact-band { background: var(--color-ink); color: #fff; padding: 64px 0; }
.contact-band .badge-pill { color: #a7ab9c; }
.contact-band .badge-pill::before { background: var(--color-accent); }
.contact-band h2 { color: #fff; }
.contact-intro { color: #b9bcb0; margin-bottom: 34px; max-width: 480px; margin-left: auto; margin-right: auto; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: #2a2d34; border: 1px solid #2a2d34; border-radius: var(--radius); overflow: hidden; }
.contact-card { background: var(--color-ink-2); padding: 26px; text-align: left; }
.contact-card h3 { display: flex; align-items: center; gap: 10px; color: #fff; }
.contact-card h3 .icon { color: var(--color-accent); }
.contact-card p { margin-bottom: 6px; color: #d5d7cc; }
.contact-card a[href^="tel"], .contact-card a[href^="mailto"] { font-weight: 700; color: var(--color-accent); }
.muted { color: var(--color-text-muted); font-size: 0.9rem; }
.contact-card .muted { color: #8d9082; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--color-ink); color: #a7ab9c; padding: 44px 0 28px; border-top: 1px solid #2a2d34; }
.footer-legends p { margin-bottom: 14px; font-size: 0.88rem; line-height: 1.6; }
.footer-legends a { color: #fff; text-decoration: underline; }
.site-footer hr { border: none; border-top: 1px solid #2a2d34; margin: 26px 0; }
.footer-identity p { font-size: 0.84rem; line-height: 1.6; margin-bottom: 10px; color: #8d9082; }
.footer-links { display: flex; gap: 10px; margin: 22px 0 14px; font-size: 0.86rem; }
.footer-links a { text-decoration: underline; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.78rem; color: #5e6156; }

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 150; width: 58px; height: 58px; border-radius: 50%;
  background: var(--color-whatsapp); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.whatsapp-float.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.whatsapp-float .icon { width: 30px; height: auto; fill: #fff; }
.whatsapp-float:hover { background: var(--color-whatsapp-dark); }

/* ===================== LEGAL PAGES ===================== */
.legal-hero { padding: 44px 0 36px; background: var(--color-ink); color: #fff; }
.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); margin: 6px 0 10px; color: #fff; }
.legal-meta { color: #a7ab9c; font-size: 0.94rem; }
.legal-article h2 { font-size: 1.2rem; margin-top: 36px; margin-bottom: 12px; padding-top: 8px; border-top: 1px solid var(--color-border); }
.legal-article h2:first-of-type { border-top: none; padding-top: 0; }
.legal-article p { margin-bottom: 16px; }
.legal-article ul { margin: 0 0 16px; }
.legal-article ul li { padding-left: 20px; position: relative; margin-bottom: 8px; }
.legal-article ul li::before { content: "—"; position: absolute; left: 0; color: var(--color-accent-dark); }
.legal-article a { color: var(--color-ink); text-decoration: underline; }
.callout { background: var(--color-bg-alt); border-left: 4px solid var(--color-accent-dark); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; }
.back-link { display: inline-block; margin-top: 24px; font-weight: 700; color: var(--color-ink); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0,1fr); }
  .trust-strip-inner { grid-template-columns: minmax(0,1fr); }
  .feature-grid { grid-template-columns: minmax(0,1fr); }
  .contact-grid { grid-template-columns: minmax(0,1fr); }
  .timeline { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .logo { font-size: 1.05rem; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-ink); border-bottom: 1px solid #2a2d34; flex-direction: column; padding: 10px 20px; gap: 4px; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid #2a2d34; }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .trust-cards { grid-template-columns: minmax(0,1fr); }
  .trust-card { border-left: none; border-top: 1px solid var(--color-border); }
  .trust-card:first-child { border-top: none; }
}
