/* Marketing Hispanos · styles.css */
:root {
  --ink: #0F1B3D;          /* Obsidiana */
  --ink-2: #0A1330;
  --ink-soft: #22305A;
  --blue: #1D3FA6;         /* Cobalto Talavera */
  --blue-soft: #EAF0FF;
  --gold: #F5A524;         /* Cempasúchil */
  --gold-soft: #FFF7E8;
  --slate: #4A5675;        /* Pizarra */
  --mist: #C9D1E4;
  --line: #DCE2F0;
  --bg-soft: #F4F6FB;      /* Cal */
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1200px;
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.section-dark .eyebrow, .hero .eyebrow { color: var(--gold); }
.h-xl { font-size: clamp(36px, 5.4vw, 60px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.h-lg { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.h-md { font-size: clamp(22px, 2.4vw, 26px); font-weight: 700; line-height: 1.25; }
.lead { font-size: 19px; line-height: 1.6; color: var(--slate); max-width: 720px; }
.section-dark .lead { color: var(--mist); }
.muted { color: var(--slate); }
.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; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 16px var(--font-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--gold); color: var(--ink); }
.btn-accent:hover { background: #F7B54A; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-soft); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--white); }
.btn-outline:hover { color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #22305A; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: 0.08em; }
.site-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-nav ul { list-style: none; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav ul a { color: #DCE4FF; text-decoration: none; font-size: 15px; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--white); }
.site-nav ul a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.lang-switch { color: #DCE4FF; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid #3A4A7A; border-radius: 999px; padding: 6px 14px; }
.lang-switch:hover { color: var(--white); border-color: var(--gold); }
.site-nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #3A4A7A; background: transparent; color: var(--white); font: 600 15px var(--font-body); cursor: pointer; }
  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 0 20px; }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 14px; }
  .site-nav ul a { font-size: 17px; }
}

/* Hero */
.hero { background: var(--ink); color: var(--white); padding: 88px 0 96px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .lead { color: var(--mist); }
.hero-demo { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.demo-card { border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.demo-card p { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.25; }
.demo-en { background: #1A2850; border: 1px solid #2E3E6E; }
.demo-es { background: var(--white); color: var(--ink); }
.demo-arrow { display: flex; justify-content: center; }
.chip { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.chip-dark { background: #2E3E6E; color: #DCE4FF; }
.chip-gold { background: var(--gold); color: var(--ink); }
.chip-plain { background: var(--bg-soft); color: var(--slate); }

/* Proof strip */
.proof { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.proof-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding: 26px 24px; }
.proof-label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.proof-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--slate); }

/* Cards & grids */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 300px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--white); display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 22px; font-weight: 700; }
.card p { color: var(--slate); }
.icon-box { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; }
a.card { text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--blue); transform: translateY(-2px); }
.card-link { font-weight: 600; color: var(--blue); }

.steps { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; }
.step { flex: 1 1 220px; min-width: 0; border-top: 3px solid var(--blue); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step-n { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--blue); }
.step h3 { font-size: 19px; font-weight: 600; font-family: var(--font-body); }
.step p { color: var(--slate); font-size: 16px; }

/* Plans */
.plans { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.plan { flex: 1 1 300px; min-width: 0; border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--line); }
.plan-featured { background: var(--blue); color: var(--white); border-color: var(--blue); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 30px; }
.plan h3 { font-size: 24px; }
.plan-price { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.15; }
.plan-cadence { font-size: 14px; font-weight: 600; color: var(--blue); }
.plan-featured .plan-cadence { color: var(--gold); }
.plan-desc { font-size: 15px; color: var(--slate); }
.plan-featured .plan-desc { color: #DCE4FF; }
.plan ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan li svg { flex-shrink: 0; margin-top: 2px; }
.plan .btn { margin-top: 8px; width: 100%; }
.plan .btn-dark { background: var(--ink); }
.plan-featured .btn-accent { background: var(--gold); }
.plan-note { font-size: 13px; text-align: center; color: var(--slate); }
.plan-featured .plan-note { color: #DCE4FF; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--ink); color: var(--white); font-weight: 600; }
tbody tr:nth-child(even) { background: var(--bg-soft); }
td.c, th.c { text-align: center; }

/* Cases */
.case { flex: 1 1 320px; min-width: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; background: var(--white); }
.case-visual { height: 250px; padding: 24px 28px 0; display: flex; flex-direction: column; }
.case-ses .case-visual { background: #DDE6F7; }
.case-cip .case-visual { background: #E3E8EF; }
.case-az .case-visual { background: #FCEBD0; }
.browser { background: var(--white); border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 12px 30px rgba(15, 27, 61, .18); display: flex; flex-direction: column; flex-grow: 1; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #EEF1F8; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--mist); }
.browser-url { margin-left: 8px; flex-grow: 1; background: var(--white); border-radius: 6px; padding: 3px 10px; font-size: 12px; color: var(--slate); }
.browser-hero { flex-grow: 1; padding: 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.browser-hero p { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.25; }
.browser-hero span { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.case-ses .browser-hero { background: var(--ink); color: var(--white); }
.case-ses .browser-hero span { background: var(--gold); color: var(--ink); }
.case-cip .browser-hero { background: var(--blue); color: var(--white); }
.case-cip .browser-hero span { background: var(--white); color: var(--blue); }
.case-az .browser-hero { background: var(--white); color: var(--ink); }
.case-az .browser-hero span { background: var(--blue); color: var(--white); }
.case-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.case-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.case-body h3 { font-size: 23px; }
.case-body p { color: var(--slate); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; display: flex; flex-direction: column; gap: 8px; }
.faq-item h3 { font-family: var(--font-body); font-size: 19px; font-weight: 600; }
.faq-item p { color: var(--slate); }

/* Page header */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 64px 0 48px; }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--slate); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--slate); }

/* Services detail */
.service { display: flex; flex-wrap: wrap; gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.service:first-child { border-top: 0; }
.service-copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.service-box { flex: 1 1 340px; min-width: 0; background: var(--bg-soft); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { flex-shrink: 0; margin-top: 3px; }

/* Blog */
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.article { padding: 48px 0 72px; }
.article .stack-lg { gap: 30px; }
.article-meta { font-size: 15px; color: var(--slate); }
.tldr { background: var(--bg-soft); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.tldr-label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.tldr p { font-size: 18px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 26px); font-weight: 700; margin-bottom: 10px; }
.prose p { font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.prose section + section { margin-top: 28px; }
.cta-box { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-box p { color: var(--mist); }
.alt-lang { font-size: 15px; font-weight: 600; }

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.contact-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.crm-frame { width: 100%; min-height: 640px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.fallback-box { border: 2px dashed var(--mist); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.next-list { list-style: none; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 18px; }
.next-list li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; }
.next-list li::before { content: counter(step); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.next-list strong { font-weight: 600; }
.next-list span { color: var(--slate); font-size: 15px; }

/* CTA band */
.band { background: var(--ink); color: var(--white); }
.band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 72px 24px; }
.band-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.band-copy p { color: var(--mist); font-size: 18px; }

/* Footer */
.site-footer { background: var(--ink-2); color: var(--mist); font-size: 15px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; padding: 64px 24px 40px; }
.footer-about { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-col { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #22305A; padding: 22px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { gap: 12px; }
  .site-header .brand { gap: 10px; }
  .site-header .brand svg { width: 34px; height: 34px; }
  .site-header .brand-name { font-size: 13px; letter-spacing: 0.06em; }
  .js .nav-toggle { padding: 0 14px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }
  .card, .plan { padding: 24px; }
  .prose p, .tldr p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a.card { transition: none; }
}

/* Photos */
.card-photo { padding: 0; overflow: hidden; gap: 0; }
.card-media { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
a.card-photo:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card-body p { flex-grow: 1; }
.card-photo .icon-box { margin-top: -54px; border: 4px solid var(--white); box-sizing: content-box; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split-media { flex: 1 1 420px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.split-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.split-copy { flex: 1 1 420px; min-width: 0; }
.section-dark .check-list li { color: var(--mist); }
figcaption { font-size: 12px; color: var(--slate); }
figcaption a { color: inherit; }
.section-dark figcaption { color: #8C97B5; }
.post-hero { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.post-hero img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); background: var(--bg-soft); }
@media (prefers-reduced-motion: reduce) { .card-media img { transition: none; } }

/* Hero with contact form */
.hero-grid { align-items: center; }
.hero-copy { flex: 1 1 520px; }
.hero-copy .hero-demo { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; flex: none; }
.hero-copy .demo-card { padding: 18px; gap: 8px; height: 100%; }
.hero-copy .demo-card p { font-size: 17px; }
.hero-copy .demo-arrow svg { transform: rotate(90deg); }
.hero-form { flex: 1 1 380px; max-width: 480px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 20px; padding: 24px 22px 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); scroll-margin-top: 96px; }
.hero-form-title { font-size: 22px; font-weight: 700; }
.hero-form-sub { font-size: 15px; color: var(--slate); margin: 6px 0 12px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
@media (max-width: 960px) { .hero-form { max-width: none; } }
@media (max-width: 560px) {
  .hero-copy .hero-demo { grid-template-columns: 1fr; }
  .hero-copy .demo-arrow svg { transform: none; }
  .hero-form { padding: 18px 12px 8px; }
}
.plan-fine { font-size: 12px; line-height: 1.5; text-align: center; color: var(--slate); border-top: 1px solid var(--line); padding-top: 10px; }
.plan-featured .plan-fine { color: #DCE4FF; border-color: rgba(255,255,255,.2); }
