/* Homepage styles, direction B "Tecnológico claro". Mobile-first; breakpoints 768px and 1100px.
   The legal pages keep using oxford-blue.css, so nothing here may assume their markup. */
:root {
    --ink: #0F172A;
    --muted: #475569;
    --accent: #1D8FE1;
    --accent-dark: #1D6FB0;
    --accent-on-dark: #7CC4FF;
    --soft: #F4F8FD;
    --line: #E2ECF8;
    --ok-bg: #DCFCE7;
    --ok: #166534;
    --header-h: 64px;
    --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #fff; line-height: 1.5; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section[id], .anchor { scroll-margin-top: calc(var(--header-h) + 8px); }
.anchor { display: block; height: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .95); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid #EEF1F6; }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 40px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); }
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; transition: transform .2s; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid #EEF1F6; box-shadow: 0 12px 24px rgba(15, 23, 42, .08); }
.menu-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; }
.site-nav a { display: block; min-height: 44px; padding: 12px 4px; border-bottom: 1px solid #F1F5F9; color: var(--ink); font-weight: 600; text-decoration: none; }
.no-js .site-nav { display: block; position: static; box-shadow: none; }
.no-js .menu-toggle { display: none; }

/* Language selector */
.language-selector { position: relative; }
.lang-current { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border: 1px solid #E2E8F0; border-radius: 10px; background: #fff; color: var(--ink); font: 600 13px/1 Inter, sans-serif; cursor: pointer; }
.lang-dropdown { display: none; position: absolute; top: calc(100% + 6px); right: 0; min-width: 140px; padding: 6px; border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; box-shadow: 0 12px 24px rgba(15, 23, 42, .12); }
.language-selector.open .lang-dropdown { display: block; }
.lang-option { display: block; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 500 14px Inter, sans-serif; text-align: left; cursor: pointer; }
.lang-option:hover, .lang-option.active { background: var(--soft); color: var(--accent-dark); }

/* Typography */
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
h1 { margin: 0 0 14px; font-size: 32px; font-weight: 800; line-height: 1.12; letter-spacing: -.8px; }
h1 .accent { color: var(--accent); }
h2 { margin: 0 0 12px; font-size: 26px; font-weight: 800; line-height: 1.18; letter-spacing: -.5px; }
h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.product { color: var(--accent-dark); }
.lead { max-width: 760px; margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Sections */
.section { padding: 48px 0; }
.section.tint { background: #FAFCFF; }
.section.dark { background: var(--ink); color: #fff; }
.section.dark .eyebrow, .section.dark .product { color: var(--accent-on-dark); }
.section.dark .lead, .section.dark .card p { color: #CBD5E1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--accent-dark); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.btn:hover { background: #175A90; }
.section.dark .btn { background: #fff; color: var(--ink); }
.cta-row { margin-top: 24px; }

/* Paths */
.paths { display: grid; gap: 14px; }
.path { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); color: var(--ink); text-decoration: none; }
.path.dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.path h3 { margin-top: 10px; font-size: 18px; }
.path p { margin-bottom: 12px; color: var(--muted); font-size: 15px; }
.path.dark p { color: #CBD5E1; }
.path .more { color: var(--accent-dark); font-weight: 700; }
.path.dark .more { color: var(--accent-on-dark); }

/* Chips */
.chip { display: inline-block; padding: 4px 10px; border-radius: 99px; background: #E3F1FD; color: var(--accent-dark); font-size: 11px; font-weight: 700; }
.path.dark .chip { background: rgba(124, 196, 255, .15); color: var(--accent-on-dark); }
.chip.live { background: var(--ok-bg); color: var(--ok); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-top .icon { margin-bottom: 0; }

/* Cards */
.grid { display: grid; gap: 14px; margin-top: 8px; }
.card { padding: 20px; border: 1px solid #E8EDF4; border-radius: var(--radius); background: #fff; }
.section.dark .card { border-color: #23314F; background: #16213A; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 10px; background: #E3F1FD; color: var(--accent); }
.section.dark .icon { background: rgba(124, 196, 255, .12); color: var(--accent-on-dark); }
.icon svg, .privacy h3 svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Method */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num { display: flex; flex: 0 0 36px; align-items: center; justify-content: center; height: 36px; border-radius: 50%; background: var(--accent-dark); color: #fff; font-weight: 800; }
.step h3 { margin-top: 6px; font-size: 16px; }
.step p { color: var(--muted); font-size: 15px; }
.privacy { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.privacy h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ink); }
.privacy h3 svg { color: var(--accent-dark); }
.ticks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; margin-right: 8px; color: var(--accent-dark); font-weight: 800; }

/* About */
.about { display: grid; gap: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 14px 6px; border-radius: 14px; background: var(--soft); text-align: center; }
.stat strong { display: block; color: var(--accent-dark); font-size: 24px; }
.stat span { color: var(--muted); font-size: 12px; line-height: 1.3; }

/* Contact */
.contact { background: linear-gradient(135deg, #1D6FB0, #155A93); color: #fff; text-align: center; }
.contact .lead { margin-left: auto; margin-right: auto; color: #F0F7FE; }
.contact .btn { background: #fff; color: #155A93; }
.contact-email { display: block; margin-top: 2px; padding: 10px 0; color: #F0F7FE; }
.contact :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer { padding: 32px 0; background: var(--ink); color: #CBD5E1; font-size: 13px; }
.site-footer .container { display: grid; gap: 16px; }
.site-footer img { height: 36px; width: auto; margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; min-height: 44px; padding: 12px 0; color: #CBD5E1; text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* Tablet */
@media (min-width: 768px) {
    .container { padding: 0 32px; }
    .section { padding: 72px 0; }
    h1 { font-size: 44px; }
    h2 { font-size: 34px; }
    .lead { font-size: 18px; }
    .paths { grid-template-columns: 1fr 1fr; gap: 20px; }
    .grid.four { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .ticks { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop */
@media (min-width: 1100px) {
    .container { padding: 0 48px; }
    .section { padding: 96px 0; }
    h1 { max-width: 900px; font-size: 56px; }
    h2 { font-size: 40px; }
    .lead { font-size: 19px; }
    .menu-toggle { display: none; }
    .site-nav { display: block; position: static; border: 0; background: transparent; box-shadow: none; }
    .site-nav ul { display: flex; gap: 28px; padding: 0; }
    .site-nav a { min-height: 0; padding: 8px 0; border: 0; color: var(--muted); font-weight: 500; }
    .site-nav a:hover { color: var(--ink); }
    .grid.four { grid-template-columns: repeat(4, 1fr); }
    .grid.three { grid-template-columns: repeat(3, 1fr); }
    .ticks { grid-template-columns: repeat(4, 1fr); }
    .about { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
    .site-footer .container { grid-template-columns: auto 1fr; align-items: center; }
    .footer-links { justify-content: flex-end; }
}

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