/* JRS Consulting — Jorge Ramos Santos */

@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(/assets/fonts/josefin-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(/assets/fonts/josefin-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/bebas-neue-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/bebas-neue-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --blue: #009fe3;
  --blue-dark: #0077ab;
  --navy: #31516d;
  --ink: #16293a;
  --text: #3f4a54;
  --muted: #6b7782;
  --line: #e3e9ee;
  --soft: #f4f7fa;
  --cream: #fffcf7;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 41, 58, .08);
  --shadow-lg: 0 20px 50px rgba(22, 41, 58, .14);
  --max: 1180px;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --sans: "Josefin Sans", 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; overflow-x: clip; font-family: var(--sans); font-size: 1.125rem; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 780px); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: .6em; }
.lead { font-size: 1.25rem; color: var(--text); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.5em .75em; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 66px; height: auto; }
.brand span { font-weight: 700; line-height: 1.1; font-size: 1rem; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a, .nav button.sub-toggle { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 8px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav a:hover, .nav button.sub-toggle:hover, .nav a[aria-current="page"] { color: var(--blue-dark); }
.nav .btn { margin-left: 10px; padding: .7em 1.3em .6em; color: #fff; background: var(--blue); border-radius: 999px; }
.nav .btn:hover { background: var(--blue-dark); color: #fff; }
.has-sub { position: relative; }
.sub-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.submenu { position: absolute; top: 100%; left: 0; min-width: 300px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { padding: 10px 12px; font-weight: 500; }
.submenu a:hover { background: var(--soft); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; margin: auto; background: var(--ink); position: relative; transition: .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .brand span { display: none; }
  .nav { position: fixed; inset: 77px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .2s, opacity .2s, visibility .2s; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav button.sub-toggle { padding: 14px 8px; font-size: 1.1rem; width: 100%; text-align: left; border-bottom: 1px solid var(--line); border-radius: 0; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; min-width: 0; }
  .has-sub.open .submenu { display: block; }
  .nav .btn { margin: 20px 0 0; justify-content: center; text-align: center; border-bottom: 0; border-radius: 999px; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(22, 41, 58, .96) 30%, rgba(22, 41, 58, .55)); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; padding: 96px 0 104px; }
.hero h1 { color: #fff; margin-bottom: .25em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { color: #d5e1ea; max-width: 40ch; margin-bottom: 1.8em; }
.hero .eyebrow { color: #7fd3f7; }
.hero-portrait { position: relative; justify-self: center; width: min(100%, 380px); }
.hero-portrait img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 6px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hero-portrait figcaption { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; color: var(--ink); padding: 10px 18px 8px; border-radius: 999px; font-weight: 700; font-size: .95rem; box-shadow: var(--shadow-lg); }
.hero-portrait figcaption small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; text-align: center; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 72px; gap: 40px; }
  .hero-portrait { width: min(56%, 230px); order: -1; }
  .hero-portrait figcaption { font-size: .85rem; padding: 8px 14px 6px; }
}

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(120deg, var(--ink), var(--navy)); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; margin-bottom: .15em; }
.page-hero p { color: #d5e1ea; max-width: 62ch; margin: 0; font-size: 1.15rem; }
.crumbs { font-size: .9rem; margin-bottom: 14px; color: #a9c3d6; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: #d5e1ea; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-cream { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* Stats */
.stats { position: relative; z-index: 2; margin-top: -48px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.8rem; line-height: 1; color: var(--navy); }
.stat span { font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.split-media.portrait { justify-self: center; width: min(100%, 400px); }
.split-media.portrait img { border-radius: 50%; aspect-ratio: 1; border: 8px solid var(--soft); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
}

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.card img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; font-size: 1rem; }
.card-body .link-arrow { margin-top: auto; padding-top: 8px; color: var(--blue-dark); }
.card time { font-size: .85rem; color: var(--muted); }

.feature { padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.feature h3 { display: flex; align-items: center; gap: 12px; }
.feature p { margin: 0; font-size: 1rem; }
.icon { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 159, 227, .1); color: var(--blue-dark); }
.icon svg { width: 22px; height: 22px; }
.step-num { font-family: var(--display); font-size: 2.6rem; color: var(--blue); line-height: 1; display: block; margin-bottom: 8px; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks strong { color: var(--ink); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 39px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding-bottom: 28px; }
.timeline time { position: relative; z-index: 1; align-self: start; text-align: center; font-family: var(--display); font-size: 1.5rem; color: #fff; background: var(--navy); border-radius: 999px; padding: 4px 0 0; }
.timeline h3 { margin-bottom: 4px; }
.timeline p { margin: 0; font-size: 1rem; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--blue-dark), var(--navy)); color: #fff; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; color: #e2f2fb; font-size: 1.15rem; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 40px 24px; } }

/* Prose (articles, legal) */
.prose { font-size: 1.15rem; }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: var(--radius); margin: 0 0 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 0 0 1.5em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); background: var(--soft); }
.table-scroll { overflow-x: auto; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #a9c3d6; font-size: .95rem; margin-top: 14px; }
.author-box { display: flex; gap: 20px; align-items: center; padding: 24px; background: var(--soft); border-radius: var(--radius); margin-top: 48px; }
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.author-box p { margin: 0; font-size: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list a { font-weight: 600; text-decoration: none; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.form h2 { font-size: 2.2rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px 10px; border: 1px solid #cfd8e0; border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 159, 227, .2); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .form { padding: 24px 18px; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin: 6px 0 20px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #e7f7ee; color: #1d6b3f; }
.form-status.error { display: block; background: #fdecec; color: #9b2c2c; }
.form button[disabled] { opacity: .6; cursor: wait; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c7d3; font-size: 1rem; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h2 { font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #d5e1ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 92px; height: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }
.footer-brand .social-label { margin: 18px 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #d5e1ea; transition: background .2s, color .2s; }
.site-footer .social-link:hover { background: var(--blue); color: #fff; text-decoration: none; }
.social-link svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
.footer-bottom button { background: none; border: 0; color: #d5e1ea; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie banner */
.cookie { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 560px; background: #fff; color: var(--text); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); padding: 22px 24px; font-size: .95rem; display: none; }
.cookie.show { display: block; }
.cookie p { margin: 0 0 14px; }
.cookie strong { color: var(--ink); font-size: 1.05rem; display: block; margin-bottom: 6px; }
.cookie .btn { padding: .6em 1.2em .5em; font-size: .95rem; }

/* 404 */
.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { font-size: clamp(5rem, 14vw, 9rem); color: var(--blue); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
