/*
Theme Name: Visa Juvenil
Theme URI: https://abogadodevisajuvenil.com
Author: Lluis Law
Description: Tema a medida para abogadodevisajuvenil.com — landing de Visa Juvenil (SIJS) y plantilla de páginas de servicio. Paleta Sunrise.
Version: 1.3.2
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: visajuvenil
*/

:root {
  --brand-dark: #10213F;
  --brand-dark-2: #1B2F55;
  --accent: #F4623A;
  --accent-dark: #C4421D; /* AA on light tints */
  --accent-deep: #AD3716;
  --sun: #F7B733;
  --sun-soft: #FFE9B8;
  --bg: #FFF8F1;
  --paper: #FFFFFF;
  --ink: #1A1F2B;
  --muted: #5B6475;
  --line: #E8E1D8;
  --tint: #FFF1E8;
  --on-dark-muted: #B7C1D6;
  --font-display: "Sora", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; color: var(--brand-dark); }
h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.15; font-weight: 700; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.eyebrow { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); }
.muted { color: var(--muted); }
.section { padding-top: clamp(56px, 8vw, 112px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 17px; white-space: nowrap; border: 0; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--accent-dark); color: #fff; box-shadow: 0 10px 24px rgba(244, 98, 58, 0.28); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { border: 2px solid var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--brand-dark); color: var(--brand-dark); }
.btn-dark { background: var(--brand-dark); color: #fff; }
.btn-dark:hover { background: var(--brand-dark-2); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--accent-dark); font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.check { width: 28px; height: 28px; border-radius: 50%; background: var(--sun-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.check svg { width: 14px; height: 14px; }
.check-row { display: flex; align-items: flex-start; gap: 14px; }
.check-row .check { margin-top: 3px; }
.icon { width: 22px; height: 22px; flex: none; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.wordmark { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-display); line-height: 1; }
.wordmark-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.wordmark-name { font-size: 26px; font-weight: 800; color: var(--brand-dark); display: inline-flex; align-items: baseline; gap: 6px; }
.wordmark-name .j { color: var(--accent); }
.wordmark-name .sun { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); align-self: center; }
.brand-by { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.site-nav a { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--brand-dark); white-space: nowrap; }
.site-nav a:hover { color: var(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--brand-dark); white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 5vw, 72px); }
.hero .container { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: start; position: relative; }
.hero-shape-1 { position: absolute; right: -140px; top: -60px; width: 520px; height: 520px; border-radius: 50%; background: var(--sun-soft); opacity: .9; pointer-events: none; }
.hero-shape-2 { position: absolute; right: 250px; top: 330px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid var(--accent); border-right-color: transparent; border-bottom-color: transparent; transform: rotate(-20deg); opacity: .9; pointer-events: none; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; position: relative; }
.hero-copy h1 .hl { color: #EE5028; }
.hero-lead { font-size: 21px; line-height: 1.55; color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg); }
.avatars span + span { margin-left: -10px; }

/* Assistant card */
.assistant { position: relative; padding-top: 12px; }
.assistant-card { padding: 26px; border-radius: 24px; box-shadow: 0 30px 60px rgba(16, 33, 63, .14); display: flex; flex-direction: column; gap: 18px; }
.assistant-head { display: flex; align-items: center; gap: 14px; }
.assistant-avatar { width: 52px; height: 52px; border-radius: 18px; background: var(--brand-dark); display: flex; align-items: center; justify-content: center; position: relative; flex: none; }
.assistant-avatar svg { width: 26px; height: 26px; }
.assistant-avatar .online { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: #2BC06A; border: 2px solid #fff; }
.assistant-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--brand-dark); display: block; }
.assistant-status { font-size: 14px; color: var(--muted); }
.assistant-bubble { background: var(--tint); border-radius: 18px 18px 18px 4px; padding: 16px 18px; font-size: 16px; line-height: 1.5; }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.contact-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--brand-dark); cursor: pointer; }
.contact-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.contact-btn svg { width: 22px; height: 22px; }
.calendar-btn { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 18px; border-radius: 14px; background: var(--brand-dark); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.calendar-btn:hover { background: var(--brand-dark-2); color: #fff; }
.calendar-btn span { display: inline-flex; align-items: center; gap: 10px; }
.calendar-btn svg { width: 22px; height: 22px; }
.assistant-note { font-size: 13px; color: var(--muted); text-align: center; }

/* Trust strip */
.trust { margin-top: 64px; padding: 28px 36px; background: var(--brand-dark); border-radius: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.trust div { display: flex; flex-direction: column; gap: 4px; padding-right: 24px; border-right: 1px solid rgba(255,255,255,.12); }
.trust div:last-child { border-right: 0; padding-right: 0; }
.trust b { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--sun); line-height: 1.1; }
.trust span { color: #fff; font-weight: 600; }

/* Video */
.video-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
.video-frame { aspect-ratio: 16 / 9; border-radius: 24px; background: var(--brand-dark); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame .blob-1 { position: absolute; left: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--accent); opacity: .85; }
.video-frame .blob-2 { position: absolute; right: 40px; top: 30px; width: 120px; height: 120px; border-radius: 50%; background: var(--sun); opacity: .9; }
.video-play { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 40px rgba(0,0,0,.3); position: relative; }
.video-soon { position: absolute; left: 20px; top: 20px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.92); font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.video-copy { display: flex; flex-direction: column; gap: 22px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Two-column intro */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; }
.split-copy { display: flex; flex-direction: column; gap: 22px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.qualify { padding: 36px 40px; display: flex; flex-direction: column; gap: 22px; border-radius: 24px; }
.qualify h3 { font-size: 24px; }
.qualify-list { display: flex; flex-direction: column; gap: 16px; }
.qualify-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-radius: 16px; background: var(--tint); }
.qualify-cta span { font-weight: 600; color: var(--brand-dark); }

/* Benefits */
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 800px; }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.benefit { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.benefit-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.benefit-icon svg { width: 26px; height: 26px; }
.benefit p { font-size: 16px; color: var(--muted); }

/* Process */
.process { margin-top: clamp(56px, 8vw, 112px); padding: clamp(56px, 7vw, 96px) 0; background: var(--brand-dark); position: relative; overflow: hidden; }
.process .shape-a { position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: var(--brand-dark-2); }
.process .shape-b { position: absolute; right: 80px; top: 60px; width: 90px; height: 90px; border-radius: 50%; background: var(--sun); opacity: .9; }
.process .container { position: relative; display: grid; grid-template-columns: 4fr 8fr; gap: 40px; }
.process-copy { display: flex; flex-direction: column; gap: 18px; }
.process-copy h2 { color: #fff; }
.process-copy p { color: var(--on-dark-muted); }
.process-copy .eyebrow { color: var(--sun); }
.steps { display: flex; flex-direction: column; gap: 18px; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px; padding: 26px 28px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.step-num { width: 56px; height: 56px; border-radius: 18px; background: var(--sun); color: var(--brand-dark); font-family: var(--font-display); font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.step h3 { color: #fff; }
.step p { color: var(--on-dark-muted); font-size: 16px; margin-top: 8px; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; margin-top: 44px; }
.timeline::before { content: ""; position: absolute; left: 40px; right: 40px; top: 20px; height: 4px; background: var(--line); border-radius: 2px; }
.timeline::after { content: ""; position: absolute; left: 40px; width: 40%; top: 20px; height: 4px; background: var(--accent); border-radius: 2px; }
.tl { display: flex; flex-direction: column; gap: 14px; padding-right: 20px; position: relative; z-index: 1; }
.tl-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; margin-left: 18px; }
.tl-dot.hollow { background: var(--paper); border: 4px solid var(--accent); color: var(--accent-dark); }
.tl-dot.future { background: var(--paper); border: 4px solid var(--line); color: var(--muted); }
.tl-dot.done { background: var(--sun); color: var(--brand-dark); }
.tl-dot svg { width: 22px; height: 22px; }
.tl h3 { font-size: 18px; }
.tl p { font-size: 15px; color: var(--muted); }
.info-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.info-pair .card { padding: 32px; display: flex; flex-direction: column; gap: 12px; border-color: transparent; }
.info-pair .card p { font-size: 16px; color: var(--muted); }

/* Urgent band */
.urgent { margin-top: clamp(56px, 8vw, 112px); padding: 48px 52px; border-radius: 28px; display: grid; grid-template-columns: 8fr 4fr; gap: 40px; align-items: center; }
.urgent-copy { display: flex; flex-direction: column; gap: 14px; }
.urgent-copy h2 { font-size: 34px; }
.urgent-actions { display: flex; flex-direction: column; gap: 12px; }

/* About */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.about-visual { position: relative; min-height: 460px; }
.about-visual .back { position: absolute; left: 0; top: 30px; width: 340px; height: 400px; border-radius: 28px; background: var(--sun-soft); }
.about-visual .photo { position: absolute; left: 40px; top: 0; width: 340px; height: 400px; border-radius: 28px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-family: var(--font-display); font-size: 14px; font-weight: 600; padding: 20px; }
.about-visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.about-visual .badge { position: absolute; right: 20px; bottom: 0; padding: 18px 22px; border-radius: 18px; background: var(--brand-dark); color: #fff; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 20px 40px rgba(16,33,63,.2); }
.about-visual .badge b { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--sun); }
.about-visual .badge span { font-size: 14px; color: var(--on-dark-muted); }
.about-copy { display: flex; flex-direction: column; gap: 22px; }
.about-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-points .check-row { font-size: 16px; }
.about-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.link-arrow { font-family: var(--font-display); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow svg { width: 16px; height: 16px; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.testimonial { padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.stars { display: flex; gap: 4px; }
.stars svg { width: 18px; height: 18px; }
.testimonial blockquote { margin: 0; font-size: 16px; color: var(--ink); }
.testimonial-who { display: flex; align-items: center; gap: 12px; }
.testimonial-who .dot { width: 40px; height: 40px; border-radius: 50%; }
.testimonial-who b { font-size: 15px; display: block; }
.testimonial-who small { color: var(--muted); font-size: 13px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; }
.faq-intro { display: flex; flex-direction: column; gap: 16px; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--brand-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform .2s; }
.faq[open] summary svg { transform: rotate(45deg); }
.faq p { padding: 0 0 22px; font-size: 16px; color: var(--muted); }

/* Final CTA */
.cta-final { margin-top: clamp(56px, 8vw, 112px); padding: 56px; border-radius: 32px; background: var(--brand-dark); position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.cta-final .shape-a { position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: var(--accent); opacity: .9; }
.cta-final .shape-b { position: absolute; right: 200px; bottom: -100px; width: 220px; height: 220px; border-radius: 50%; background: var(--sun); opacity: .9; }
.cta-copy { display: flex; flex-direction: column; gap: 20px; position: relative; }
.cta-copy h2 { color: #fff; }
.cta-copy p { color: var(--on-dark-muted); }
.cta-copy .eyebrow { color: var(--sun); }
.cta-contact { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.cta-contact a, .cta-contact span { display: flex; align-items: center; gap: 12px; color: var(--on-dark-muted); font-size: 15px; }
.cta-contact a.big { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.cta-contact svg { width: 22px; height: 22px; flex: none; }
.lead-form { padding: 32px; display: flex; flex-direction: column; gap: 16px; position: relative; border-radius: 24px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.field input, .field select, .field textarea { min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink); width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.consent { font-size: 12px; color: var(--muted); text-align: center; }
.form-msg { font-size: 15px; font-weight: 600; text-align: center; color: var(--brand-dark); }
.form-msg.ok { color: #1E8A4C; }
.form-msg.err { color: var(--accent-dark); }

/* Footer */
.site-footer { margin-top: clamp(56px, 8vw, 112px); padding: 64px 0 40px; background: var(--brand-dark); color: var(--on-dark-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .wordmark-kicker { color: var(--on-dark-muted); }
.footer-brand .wordmark-name { color: #fff; }
.footer-brand p { font-size: 15px; max-width: 360px; }
.footer-brand p a { color: #FFA07A; }
.footer-brand p a:hover { color: #fff; }
.footer-col h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--on-dark-muted); font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; gap: 40px; font-size: 13px; flex-wrap: wrap; }
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom nav { display: flex; gap: 20px; }

/* Mobile sticky bar */
.sticky-bar { display: none; }

/* Service page template */
.page-head { padding-top: 40px; display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 46px); }
.page-lead { font-size: 20px; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.byline .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-dark); flex: none; overflow: hidden; }
.byline .dot img { width: 100%; height: 100%; object-fit: cover; }
.page-body { padding-top: 48px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.page-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 104px; }
.toc { display: flex; flex-direction: column; }
.toc .eyebrow { color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--line); color: var(--muted); font-size: 15px; font-weight: 600; }
.toc a.on, .toc a:hover { border-left-color: var(--accent); color: var(--brand-dark); }
.side-cta { padding: 24px; border-radius: 20px; background: var(--brand-dark); color: #fff; display: flex; flex-direction: column; gap: 14px; }
.side-cta b { font-family: var(--font-display); font-size: 18px; }
.side-cta p { font-size: 15px; color: var(--on-dark-muted); }
.side-cta-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.side-cta-row a { min-height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 12px; font-weight: 700; color: #fff; }
.side-cta-row a:hover { background: rgba(255,255,255,.16); }
.side-note { padding: 18px 20px; border-radius: 16px; background: var(--sun-soft); font-size: 14px; color: var(--brand-dark); line-height: 1.5; }
.entry { max-width: 760px; font-size: 18px; line-height: 1.65; }
.entry > * + * { margin-top: 18px; }
.entry h2 { margin-top: 48px; font-size: 30px; }
.entry h3 { margin-top: 32px; }
.entry ul, .entry ol { padding-left: 24px; }
.entry li + li { margin-top: 8px; }
.entry img { border-radius: 16px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry th, .entry td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.entry th { font-family: var(--font-display); color: var(--brand-dark); }
.entry blockquote { margin: 0; padding: 18px 22px; border-radius: 16px; background: var(--sun-soft); font-style: normal; }
.entry .inline-cta, .inline-cta { margin-top: 40px; padding: 28px 32px; border-radius: 20px; background: var(--tint); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.inline-cta b { font-family: var(--font-display); font-size: 18px; color: var(--brand-dark); display: block; }
.inline-cta span { font-size: 15px; color: var(--muted); }
.entry details.faq summary { font-size: 19px; }
.next-step { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); }
.next-step b { font-family: var(--font-display); font-size: 20px; color: var(--brand-dark); display: block; }
.next-step svg { width: 22px; height: 22px; }
.related { padding-top: 72px; display: flex; flex-direction: column; gap: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rel { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); }
.rel b { font-family: var(--font-display); color: var(--brand-dark); }
.rel span { font-size: 15px; color: var(--muted); }
.cta-band { margin-top: 72px; padding: 40px 48px; border-radius: 28px; background: var(--brand-dark); display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; flex-wrap: wrap; }
.cta-band .shape { position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--accent); opacity: .9; }
.cta-band > div { position: relative; display: flex; flex-direction: column; gap: 8px; }
.cta-band h2 { color: #fff; font-size: 30px; }
.cta-band .eyebrow { color: var(--sun); }
.cta-band-actions { display: flex; gap: 12px; position: relative; flex-wrap: wrap; }
.btn-translucent { background: rgba(255,255,255,.1); color: #fff; }
.btn-translucent:hover { background: rgba(255,255,255,.18); color: #fff; }
body.page-template-service, body.single, body.page:not(.home) { background: var(--paper); }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 40px; }
.post-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.post-card time { font-size: 13px; color: var(--muted); }
.post-card h3 a { color: var(--brand-dark); }
.pagination { display: flex; gap: 8px; justify-content: center; padding-top: 40px; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; }

/* Modal (calendar) */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(16,33,63,.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-box { width: min(760px, 100%); height: min(820px, 100%); background: #fff; border-radius: 20px; overflow: hidden; position: relative; }
.modal-box iframe { width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand-dark); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Responsive */
@media (max-width: 1280px) {
  .brand-by { display: none; }
  .site-nav ul { gap: 16px; }
  .site-nav a { font-size: 13px; }
  .header-phone { font-size: 15px; }
}
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 20px 24px; }
  .site-nav.open ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-nav.open a { display: block; padding: 10px 0; font-size: 17px; }
}
@media (max-width: 1024px) {
  .hero .container, .video-grid, .split, .process .container, .about, .faq-grid, .cta-final, .urgent { grid-template-columns: 1fr; }
  .hero-shape-1 { right: -200px; top: -120px; width: 380px; height: 380px; }
  .hero-shape-2 { display: none; }
  .trust, .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust div { border-right: 0; padding-right: 0; }
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .timeline::before, .timeline::after { display: none; }
  .tl { flex-direction: row; align-items: flex-start; gap: 16px; padding-right: 0; }
  .tl-dot { margin-left: 0; flex: none; }
  .tl > div { display: flex; flex-direction: column; gap: 6px; }
  .info-pair, .about-points, .testimonials, .related-grid, .post-list { grid-template-columns: 1fr; }
  .about-visual { min-height: 0; height: 440px; }
  .page-body { grid-template-columns: 1fr; gap: 32px; }
  .page-sidebar { position: static; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-final { padding: 32px 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-by { display: none; }
  .header-phone span { display: none; }
  .site-header .container { min-height: 64px; }
  .wordmark-name { font-size: 20px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .assistant-card { padding: 18px; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-btn { flex-direction: row; min-height: 50px; }
  .trust { padding: 14px; gap: 10px; margin-top: 40px; }
  .trust div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); }
  .trust b { font-size: 22px; }
  .trust span { font-size: 13px; }
  .benefits { grid-template-columns: 1fr; }
  .qualify { padding: 22px; }
  .qualify-cta { flex-direction: column; align-items: stretch; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; }
  .step-num { width: 44px; height: 44px; font-size: 20px; border-radius: 14px; }
  .urgent { padding: 24px 20px; }
  .urgent-copy h2 { font-size: 26px; }
  .about-visual { height: 380px; }
  .about-visual .back, .about-visual .photo { width: 260px; height: 320px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; }
  .sticky-bar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; grid-template-columns: 1fr; gap: 10px; padding: 8px 96px calc(8px + env(safe-area-inset-bottom)) 12px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(16,33,63,.12); }
  .sticky-bar .btn { min-height: 48px; font-size: 15px; padding: 0 10px; }
  .sticky-bar .btn-ghost { display: none; }
  body { padding-bottom: 76px; }
}

/* ---- Guías y artículos: mega menu ---- */
.site-nav li { position: static; }
.has-mega { position: static; }
.mega-toggle { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; padding: 0; cursor: pointer; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--brand-dark); white-space: nowrap; }
.mega-toggle svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s; }
.mega-toggle:hover, .mega-toggle[aria-expanded="true"] { color: var(--accent-dark); }
.mega-toggle[aria-expanded="true"] svg { transform: rotate(-90deg); }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(16, 33, 63, .14); z-index: 60; }
.site-header.mega-open .mega { display: block; }
.site-header .mega-inner { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; padding: 32px 0 36px; align-items: start; justify-content: normal; min-height: 0; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
.mega-col li { width: 100%; }
.mega-col a { display: block; }
.mega-col a { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); white-space: normal; }
.mega-col a:hover { color: var(--accent-dark); }
.mega-h { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); font-family: var(--font-display); }
.mega-h svg { width: 18px; height: 18px; color: var(--accent); }
.mega-empty { font-size: 14px; color: var(--muted); }
.mega-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px !important; font-weight: 700 !important; color: var(--accent-dark) !important; font-family: var(--font-display) !important; }
.mega-more svg, .mega-all svg { width: 14px; height: 14px; }
.mega-aside { align-self: start; background: var(--brand-dark); color: #fff; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.mega-aside .eyebrow { color: var(--sun); }
.mega-aside p { font-size: 15px; color: var(--on-dark-muted); margin: 0; }
.mega-aside .btn { white-space: normal; }
.site-nav .mega-aside .btn-primary { color: #fff; font-size: 14px; }
.mega-aside .btn svg { width: 16px; height: 16px; }
.mega-all { display: inline-flex; align-items: center; gap: 6px; color: #fff !important; font-family: var(--font-display) !important; font-weight: 700 !important; font-size: 14px !important; margin-top: 4px; }
.mega-all:hover { color: var(--sun) !important; }
.nav-contact { display: none; }

/* ---- Archive hub ---- */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.chip span { font-size: 12px; color: var(--muted); font-weight: 600; }
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip.on { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.chip.on span { color: var(--on-dark-muted); }
.topic-section { padding-top: 48px; }
.topic-head { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.topic-head h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(22px, 2.4vw, 30px); }
.topic-head h2 svg { width: 24px; height: 24px; color: var(--accent); }
.topic-head .count { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent-dark); background: var(--tint); border-radius: 999px; padding: 3px 10px; }
.topic-section .post-list { padding-top: 20px; }
.post-card h3 { font-size: 18px; line-height: 1.35; }

@media (max-width: 1180px) {
  .site-nav.open { max-height: calc(100vh - 100%); overflow: auto; padding-bottom: 96px; }
  .site-nav.open .has-mega { width: 100%; }
  .mega-toggle { display: flex; width: 100%; justify-content: space-between; padding: 10px 0; font-size: 17px; }
  .mega-toggle svg { width: 18px; height: 18px; }
  .mega { position: static; display: none; box-shadow: none; border: 0; border-left: 3px solid var(--tint); padding-left: 14px; margin: 4px 0 12px; }
  .has-mega.open .mega { display: block; }
  .site-header.mega-open .mega { display: none; }
  .site-header.mega-open .has-mega.open .mega { display: block; }
  .site-header .mega-inner { display: flex; flex-direction: column; gap: 20px; padding: 8px 0 4px; min-height: 0; }
  .mega-cols { grid-template-columns: 1fr; gap: 18px; }
  .mega-col a, .site-nav.open .mega-col a { font-size: 15px; padding: 4px 0; }
  .site-nav.open .mega-more { padding: 4px 0; }
  .mega-aside { padding: 20px; }
  .nav-contact { display: block; }
  .topic-section .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .topic-section .post-list { grid-template-columns: 1fr; }
}
