/* ======================================
   VELTAS - Light Premium (Cream & Navy)
   ====================================== */

/* Local copies of the same Google Fonts files previously loaded remotely. */
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url('/fonts/sora-v17-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url('/fonts/jetbrains-mono-v24-latin.woff2') format('woff2');
}

:root {
    /* Base - Cream Paper Theme */
    --bg-main: #fbfbf4;
    /* Matches Logo Background */
    --bg-surface: #fbfbf4;
    /* Pure white for cards */

    /* Typography */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Sora', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Palette - High Contrast */
    --color-text-main: #152340;
    /* Slate 900 - Dark Navy text */
    --color-text-secondary: #475569;
    /* Slate 600 */
    --color-text-tertiary: #94A3B8;
    /* Slate 400 */

    /* Accent - Derived from Logo Navy */
    --accent-core: #0B1120;
    /* Deep Navy Logo Color */
    --accent-vibrant: #2563EB;
    /* Royal Blue for links/tech elements */

    /* Borders & Glass */
    --border-light: rgba(21, 35, 64, 0.08);
    /* Dark subtle border */
    --border-hover: rgba(21, 35, 64, 0.2);

    /* Spacing */
    --container-width: 1100px;

    /* Scrollbar */
    --scrollbar-thumb: rgba(21, 35, 64, 0.18);
    --scrollbar-thumb-hover: rgba(21, 35, 64, 0.32);

    /* Semantic aliases */
    --surface-paper: var(--bg-main);
    --surface-card: #ffffff;
    --text-primary: var(--color-text-main);
    --text-secondary: var(--color-text-secondary);
    --text-muted: var(--color-text-tertiary);
    --brand-ink: var(--accent-core);
    --brand-action: var(--accent-vibrant);
    --color-success: #15803d;
    --color-success-strong: #16a34a;
    --color-success-bg: rgba(22, 163, 74, 0.07);
    --color-success-border: rgba(22, 163, 74, 0.24);
    --color-warning: #b45309;
    --color-warning-bg: rgba(245, 158, 11, 0.12);
    --color-rating: #F59E0B;
    --focus-ring: rgba(37, 99, 235, 0.28);
    --radius-control: 8px;
    --radius-card: 12px;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

:where(a, button, input, textarea, select, summary):focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    inset-block-start: .75rem;
    inset-inline-start: .75rem;
    z-index: 10001;
    padding: .65rem 1rem;
    border-radius: var(--radius-control);
    background: var(--brand-ink);
    color: #fff;
    font-weight: 600;
}

.skip-link:not(:focus) {
    clip-path: inset(50%);
}

.skip-link:focus {
    outline: 3px solid var(--brand-action);
    outline-offset: 3px;
}

/* ======================================
   SCROLLBAR (Subtle / translucent)
   ====================================== */
html {
    /* Firefox (se hereda a los contenedores internos) */
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    background-clip: content-box;
    border: 2px solid transparent;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

/* ======================================
   TEXTURE (Paper Grain)
   ====================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    /* Slightly stronger on light */
    mix-blend-mode: multiply;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.webmcp-status {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 10001;
    max-width: min(28rem, calc(100vw - 2rem));
    margin: 0;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent-core);
    border-radius: 0.5rem;
    background: var(--color-bg);
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.16);
    color: var(--color-text-main);
    font-size: 0.85rem;
    line-height: 1.45;
}

.webmcp-status[data-state='error'] {
    border-left-color: #b91c1c;
}

.webmcp-status[hidden] {
    display: none;
}

/* ======================================
   TYPOGRAPHY
   ====================================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    letter-spacing: -0.025em;
    font-weight: 700;
}

p {
    color: var(--color-text-secondary);
    letter-spacing: -0.01em;
}

.mono-label {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--accent-vibrant);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.05);
    display: inline-block;
}

.mono-text {
    font-family: var(--font-mono);
}

/* ======================================
   LAYOUT
   ====================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

/* ======================================
   NAVBAR (Integrated)
   ====================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-main);
    /* Integrated seamless bg */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 1rem 0;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    background: rgba(251, 251, 244, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--color-text-main);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 45px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

@media (min-width: 920px) {
    .nav-links {
        align-items: center;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--accent-vibrant);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
}

.nav-link:hover { color: var(--accent-core); }

.nav-link.active {
    color: var(--color-text-main);
    font-weight: 600;
}

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.btn-primary,
.btn-nav-primary,
.btn-major,
.form-btn,
.article-body .article-cta-button,
.cookie-btn-accept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: var(--brand-ink);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover,
.btn-nav-primary:hover,
.btn-major:hover,
.form-btn:hover,
.article-body .article-cta-button:hover,
.cookie-btn-accept:hover {
    transform: translateY(-1px);
    background: #000;
}

.btn-primary:disabled,
.btn-primary[aria-disabled="true"],
.btn-nav-primary:disabled,
.btn-nav-primary[aria-disabled="true"],
.btn-major:disabled,
.btn-major[aria-disabled="true"],
.form-btn:disabled,
.form-btn[aria-disabled="true"],
.article-body .article-cta-button:disabled,
.article-body .article-cta-button[aria-disabled="true"],
.cookie-btn-accept:disabled,
.cookie-btn-accept[aria-disabled="true"] {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-nav-primary {
    min-height: 44px;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    background: var(--accent-core);
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-nav-primary:hover { background: #1d4ed8; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--color-text-main);
}

@media (min-width: 901px) and (max-width: 919px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* Nav dropdown — Sectores */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    padding-bottom: 2px;
}

.nav-dropdown-chevron {
    transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-control);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    z-index: 1100;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 0.65rem 0.85rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--color-text-main);
}

@media (max-width: 919px) {
    .nav-links.menu-open {
        position: absolute;
        inset: 100% 0 auto;
        display: flex;
        flex-direction: column;
        gap: .25rem;
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 1rem 1.5rem 1.5rem;
        background: var(--bg-main);
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 8px 24px rgb(0 0 0 / .06);
    }

    .nav-links .nav-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .nav-links .nav-link::after { display: none; }
    .nav-links .btn-nav-primary { margin-top: .35rem; }

    .nav-links.menu-open .nav-dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 0.5rem;
        transform: none;
        box-sizing: border-box;
    }
}

.btn-primary:active,
.btn-nav-primary:active,
.btn-major:active,
.form-btn:active {
    transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
    .navbar,
    .nav-dropdown-chevron,
    .btn-primary,
    .btn-nav-primary,
    .btn-major,
    .form-btn,
    .nav-dropdown-item,
    .reveal {
        transition: none !important;
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ======================================
   HERO
   ====================================== */
.hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 6rem;
    position: relative;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1;
    margin: 1.25rem 0;
    color: var(--color-text-main);
}

.hero-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-major,
.btn-primary {
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(11, 17, 32, 0.15);
}

.btn-major:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(11, 17, 32, 0.2);
}

.btn-minor {
    background: white;
    color: var(--color-text-main);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.btn-minor:hover {
    border-color: var(--color-text-secondary);
    background: #f8fafc;
}

.btn-minor.btn-minor--compact {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .65rem;
    max-width: 100%;
    min-height: 44px;
    padding: .55rem .8rem;
    border-color: var(--border-hover);
    border-radius: 8px;
    background: transparent;
    font-size: .875rem;
    line-height: 1.4;
    transition: none;
}

.btn-minor--compact:is(:hover, :focus-visible, :active) {
    border-color: var(--color-text-secondary);
    background: var(--surface-card);
    color: var(--color-text-main);
    text-decoration: none;
}

.btn-minor--compact:focus-visible {
    outline: 2px solid var(--brand-action);
    outline-offset: 3px;
}

.btn-minor--compact > [aria-hidden="true"]:dir(rtl) { transform: scaleX(-1); }

@media (prefers-reduced-motion: no-preference) {
    .btn-minor.btn-minor--compact { transition: background-color 150ms ease-out, border-color 150ms ease-out; }
}

/* ======================================
   SECTOR PAGES
   ====================================== */
.sector-hero {
    padding: 7rem 0 4rem;
}

.sector-kicker {
    margin-bottom: 1rem;
    display: inline-block;
}

.sector-title {
    max-width: 920px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.04;
    margin: 0;
}

.sector-lead {
    max-width: 780px;
    margin-top: 1.5rem;
    color: var(--color-text-secondary);
    font-size: 1.08rem;
    line-height: 1.75;
}

.sector-band {
    border-top: 1px solid var(--border-light);
    padding: 3rem 0;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.sector-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    background: var(--surface-card);
}

.sector-item h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
}

.sector-item p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.proof-strip div {
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.proof-strip strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.55rem;
    line-height: 1.1;
}

.proof-strip span {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.tag-list span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--color-text-tertiary);
    background: var(--border-light);
    border-radius: 4px;
    padding: 0.35rem 0.55rem;
    text-transform: uppercase;
}

.faq-list {
    max-width: 780px;
}

.faq-list details {
    border-top: 1px solid var(--border-light);
    padding: 1.25rem 0;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
}

.faq-list p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0.85rem 0 0;
}

@media (max-width: 720px) {
    .sector-grid,
    .proof-strip {
        grid-template-columns: 1fr;
    }

    .sector-hero {
        padding-top: 5rem;
    }
}

.sector-editorial .sector-hero {
    padding-block: clamp(7rem, 13vw, 10rem) clamp(3rem, 7vw, 5rem);
    text-align: center;
}

.sector-editorial .sector-hero--photo {
    position: relative;
    isolation: isolate;
    overflow: clip;
    inline-size: min(calc(100% - 2 * var(--container-gutter, 24px)), var(--container-width));
    margin: clamp(5.75rem, 9vw, 7rem) auto clamp(2rem, 4vw, 3.5rem);
    padding-block: clamp(2.25rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6.25rem);
    border-radius: var(--radius-card);
    background: var(--surface-paper);
}

.sector-hero--photo > .container {
    padding-inline: clamp(.75rem, 3vw, 1.5rem);
}

.legacy-sector .sector-grid > .sector-item {
    padding: 1.25rem 0;
    border: 0;
    border-block-start: 1px solid var(--border-hover);
    border-radius: 0;
    background: transparent;
}

.legacy-sector a.sector-link:is(:hover, :focus-visible) h3 {
    color: var(--brand-action);
}

.sector-editorial .sector-title {
    max-inline-size: 22ch;
    margin-inline: auto;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.1;
    text-wrap: balance;
}

.sector-editorial .sector-lead {
    max-inline-size: min(60ch, 39rem);
    margin: 1.25rem auto 0;
    text-wrap: pretty;
}

.sector-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-block-start: 1.75rem;
}

.sector-actions a { text-align: center; }

.sector-editorial .sector-band {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    scroll-margin-block-start: 5rem;
}

.sector-content { max-inline-size: 62rem; }

.sector-editorial h2 {
    margin-block: 0 1rem;
    text-align: center;
    text-wrap: balance;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.sector-reading {
    max-inline-size: min(65ch, 42rem);
    margin-inline: auto;
}

.sector-reading p,
.sector-flow p,
.sector-evidence dd {
    color: var(--text-secondary);
    line-height: 1.65;
    text-wrap: pretty;
}

.sector-reading p + p { margin-block-start: .8rem; }

.sector-reading a {
    text-decoration: underline;
    text-underline-offset: .18em;
}

.sector-reading .sector-case-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-block-size: 44px;
  margin-block-start: .25rem;
  padding-block: .45rem;
  color: var(--text-primary);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}

.sector-case-link span { color: var(--brand-action); flex: none; }
.sector-reading .sector-case-link:is(:hover, :focus-visible, :active) { color: var(--brand-action); }
.sector-case-link:focus-visible { outline: 2px solid var(--brand-action); outline-offset: 4px; }

.sector-more { margin-block-start: 1.25rem; }

.sector-flow h3 {
    margin-block: 0 .4rem;
    font-size: 1.07rem;
    font-weight: 600;
}

.sector-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 2rem 0 1.5rem;
    padding: 1.5rem;
    counter-reset: sector-step;
    list-style: none;
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--brand-action) 5%, var(--surface-paper));
}

.sector-flow li {
    counter-increment: sector-step;
    padding-inline: 1.15rem;
}

.sector-flow li + li { border-inline-start: 1px solid var(--border-hover); }

.sector-flow li::before {
    content: counter(sector-step);
    display: block;
    margin-block-end: .6rem;
    color: var(--brand-action);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.sector-evidence {
    max-inline-size: 49rem;
    margin: 1.75rem auto 0;
    padding: clamp(1.15rem, 4vw, 2rem);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--brand-action) 5%, var(--surface-paper));
}

.sector-evidence dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 1.25rem;
}

.sector-evidence dt {
    font-size: 1.05rem;
    font-weight: 600;
}

.sector-evidence dd { margin: .3rem 0 0; }

.sector-editorial .faq-list summary {
    font-weight: 600;
    line-height: 1.45;
}

.sector-editorial .faq-list summary:focus-visible {
    outline: 2px solid var(--brand-action);
    outline-offset: .35rem;
}

@media (min-width: 850px) {
    .sector-reading > p {
        text-align: justify;
        hyphens: auto;
    }
}

@media (max-width: 800px) {
    .sector-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
    .sector-flow li { padding-inline: 0; }
    .sector-flow li + li { border-inline-start: 0; }
}

@media (max-width: 580px) {
    .sector-flow, .sector-evidence dl { grid-template-columns: minmax(0, 1fr); }
    .sector-flow li + li { border-block-start: 1px solid var(--border-hover); padding-block-start: 1rem; }
    .sector-actions { align-items: center; }

    .sector-hero--photo .sector-title {
        font-size: clamp(2rem, 8.6vw, 2.4rem);
    }

    .sector-hero--photo .sector-actions a {
        padding-inline: 1rem;
    }
}

/* Hero Visual - Terminal */
.hero-visual {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.18));
    animation: terminalFloat 6s ease-in-out infinite;
}

@keyframes terminalFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* Terminal frame */
.terminal-frame {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    font-family: var(--font-mono);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: #0c1120;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.terminal-title {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.02em;
    flex: 1;
    text-align: center;
}

.terminal-body {
    padding: 1.5rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 220px;
}

/* Each line fades in with a staggered delay */
.terminal-line {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(4px);
    animation:
        termLineIn  0.35s ease forwards calc(var(--i) * 0.9s + 0.3s),
        termLineOut 0.4s ease forwards calc(var(--i) * 0.9s + 8.5s);
    animation-iteration-count: infinite;
    animation-delay: calc(var(--i) * 0.9s + 0.3s);
}

@keyframes termLineIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes termLineOut {
    to { opacity: 0; transform: translateY(-4px); }
}

/* Token colors */
.t-prompt { color: #58a6ff; font-weight: 700; flex-shrink: 0; }
.t-cmd    { color: #e6edf3; }
.t-ok     { color: #3fb950; font-weight: 700; flex-shrink: 0; }
.t-text   { color: #8b949e; }
.t-dim    { color: #484f58; }

/* Blinking cursor */
.t-cursor {
    display: inline-block;
    width: 8px;
    height: 0.9em;
    background: #58a6ff;
    border-radius: 1px;
    vertical-align: text-bottom;
    opacity: 0;
    animation:
        termLineIn 0.35s ease forwards calc(7 * 0.9s + 0.3s),
        cursorBlink 0.9s step-end infinite calc(7 * 0.9s + 0.5s);
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}



/* ======================================
   BENTO GRID
   ====================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.bento-card:hover {
    border-color: var(--accent-vibrant);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-4 {
    grid-column: span 4;
}

.row-span-2 {
    grid-row: span 2;
}

.card-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-vibrant);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 600;
}

.bento-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.bento-card p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.card-illustration {
    margin-top: auto;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    align-self: center;
    border-radius: 8px;
}

/* CTA CARD FIX: Light + Border instead of Block Dark */
.cta-card {
    background: white;
    /* Clean */
    border: 2px solid var(--color-text-main);
    /* Strong border for importance */
}

.cta-card .card-label {
    color: var(--color-text-main);
}

.cta-card h3 {
    color: var(--color-text-main);
}

.cta-card p {
    color: var(--color-text-secondary);
}

.cta-card a {
    color: var(--accent-vibrant);
    text-decoration: none;
    font-weight: 700;
}

.cta-card a:hover {
    text-decoration: underline;
}

/* ======================================
   MINIMAL PROCESS
   ====================================== */
.process-list {
    margin-top: 3rem;
    border-left: 1px solid var(--border-light);
}

.process-item {
    padding-left: 2.5rem;
    position: relative;
    padding-bottom: 3rem;
    border-left: 2px solid transparent;
    transition: all 0.3s;
    margin-left: -2px;
}

.process-item:hover {
    border-left-color: var(--accent-vibrant);
}

.process-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ======================================
   FOOTER (Simplified)
   ====================================== */
.site-footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
    background: var(--bg-main);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-secondary);
    /* Lighter footer text */
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-text-main);
    padding: 0.8rem 0.5rem;
    font-size: 1.1rem;
    color: var(--color-text-main);
    outline: none;
    font-family: var(--font-body);
    resize: vertical;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-bottom-color: var(--accent-vibrant);
    background: rgba(255, 255, 255, 0.5);
}

.form-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: start;
    text-align: left;
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
}

.form-consent input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    accent-color: var(--color-text-main);
    cursor: pointer;
}

.form-consent a {
    color: var(--color-text-main);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.form-btn {
    background: var(--color-text-main);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 1;
    border-radius: 4px;
    align-self: flex-end;
    transition: all 0.2s;
}

.form-btn:hover {
    opacity: 1;
}

.lead-magnet-box {
    margin: 2rem 0 3rem;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
}

.lead-magnet-form {
    display: grid;
    gap: 1rem;
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.lead-magnet-form .form-btn {
    width: 100%;
    margin-top: 0.25rem;
}

/* Mobile & Tablet Optimization */
@media (max-width: 768px) {
    /* Bento section: stack the asymmetric grid */
    .bento-asymmetric {
        grid-template-columns: 1fr !important;
    }

    /* Bento card 01: switch from row to column */
    .bento-card-dark {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 2rem !important;
        gap: 1.75rem !important;
    }

    .bento-card-dark img {
        max-width: 160px;
        width: 100%;
    }

    /* Form submit button: full width on mobile */
    .form-btn {
        width: 100%;
        align-self: stretch;
    }
}

/* Mobile & Tablet Optimization */
@media (max-width: 900px) {

    /* Layout Adjustments */
    .container {
        padding: 0 1.25rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        /* Prevent horizontal scroll triggers */
    }

    .section {
        padding: 3rem 0;
        /* More compact on mobile */
    }

    /* Navbar */
    .navbar {
        padding: 0.8rem 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero */
    .hero {
        padding-top: 5rem;
        text-align: center;
        align-items: center;
        overflow-x: hidden;
        /* Ensure hero doesn't overflow */
    }

    .hero h1 {
        font-size: clamp(1.2rem, 5.8vw, 3rem);
        margin: 1rem 0;
        padding: 0 0.5rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        align-items: center;
        padding: 0 1rem;
    }

    .btn-major,
    .btn-minor {
        width: 100%;
        padding: 0.9rem 1rem;
        /* Slightly reduced padding */
    }

    /* Hero Visual - Ensure it doesn't overflow */
    .hero-visual {
        margin-top: 2rem;
        width: 100%;
        max-width: 100%;
        /* Force constraint */
        padding: 0 0.5rem;
    }

    .dashboard-panel {
        max-width: 100%;
    }

    .panel-body {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
        /* Ensure padding doesn't add width */
    }

    .sidebar-mock {
        display: none;
    }

    /* Flow Animation Mobile Fixes */
    .flow-container {
        gap: 0.5rem;
        /* Drastically reduce gap */
        height: auto;
        padding: 1rem 0;
        flex-wrap: nowrap;
        /* Prevent wrapping implies scaling down */
        width: 100%;
    }

    .flow-anim-line {
        width: 40px;
        /* Much smaller line */
        flex-shrink: 1;
        /* Allow shrinking */
    }

    .label-manual,
    .label-auto {
        font-size: 0.65rem;
        /* Smaller text */
        white-space: nowrap;
    }

    .label-auto {
        padding: 0.3rem 0.5rem;
    }

    /* Bento Grid */
    .bento-grid {
        display: flex;
        /* Use flex col instead of grid for simpler stacking */
        flex-direction: column;
        gap: 1.5rem;
    }

    .bento-card {
        padding: 1.5rem;
        min-height: auto;
    }

    /* Process List */
    .process-list {
        margin-top: 2rem;
        padding-left: 0;
    }

    .process-item {
        padding-bottom: 2rem;
    }

    /* Form */
    /* Footer */
    .site-footer {
        padding: 3rem 0 2rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }

    /* Inline-style 2-column grids → single column on mobile */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Inline 1fr auto (CTA panels, etc.) */
    div[style*="grid-template-columns: 1fr auto"] {
        grid-template-columns: 1fr !important;
    }
}

/* ======================================
   FAQ — Editorial Row Style
   (native <details>/<summary> — deep-linkable)
   ====================================== */
.faq-container {
    counter-reset: faq;
}

.faq-item {
    border-top: 1px solid var(--border-light);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border-light);
}

.faq-item:hover {
    transform: none;
    box-shadow: none;
}

/* Hide default disclosure marker across browsers */
.faq-question {
    list-style: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::marker {
    content: '';
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.6rem 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    transition: opacity 0.15s ease;
}

.faq-question::before {
    counter-increment: faq;
    content: counter(faq, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--color-text-tertiary);
    min-width: 28px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.faq-question > span {
    flex: 1;
}

.faq-question:hover {
    opacity: 0.6;
}

.faq-icon {
    width: 15px;
    height: 15px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--color-text-tertiary);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.faq-item[open] > .faq-question {
    opacity: 1;
}

.faq-item[open] > .faq-question::before {
    color: var(--accent-vibrant);
}

.faq-item[open] > .faq-question .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-vibrant);
}

.faq-answer {
    padding: 0 0 0 calc(28px + 1.25rem);
    overflow: hidden;
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: 1.78;
    font-size: 0.93rem;
    max-width: 580px;
    padding-bottom: 1.75rem;
    margin: 0;
}

/* Subtle fade-in when opened */
.faq-item[open] > .faq-answer {
    animation: faq-fade-in 0.35s ease;
}

@keyframes faq-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Badge WIP */
.badge-wip {
    display: inline-block;
    background: var(--color-warning-bg);
    color: var(--color-warning);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75em;
    margin-right: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-document {
    max-inline-size: 48rem;
    padding-block: clamp(6.75rem, 11vw, 9rem) clamp(3rem, 7vw, 5.5rem);
    overflow-wrap: anywhere;
}

.legal-heading {
    padding-block-end: clamp(1rem, 3vw, 1.75rem);
    border-block-end: 1px solid var(--border-light);
}

.legal-heading h1 {
    margin: 0;
    font-size: clamp(2.35rem, 6vw, 4.25rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.1;
    text-wrap: balance;
}

.legal-content h2,
.legal-content h3 {
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -.015em;
}

.legal-content h2 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin: 2.25rem 0 .75rem;
}

.legal-content h3 {
    font-size: 1.125rem;
    margin: 1.75rem 0 .65rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    line-height: 1.7;
    letter-spacing: normal;
}

.legal-content p { margin: 0 0 .8rem; }
.legal-content ul { margin: .5rem 0 1.5rem; padding-inline-start: 1.25rem; }
.legal-content li + li { margin-block-start: .25rem; }
.legal-content strong { color: var(--text-primary); }
.legal-content a { text-decoration: underline; text-underline-offset: .16em; }

.legal-content table {
    inline-size: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: .875rem;
    line-height: 1.5;
}

.legal-content :is(th, td) {
    padding: .7rem clamp(.25rem, 2vw, .875rem);
    border-block-end: 1px solid var(--border-light);
    vertical-align: top;
    text-align: start;
}

.legal-content th { color: var(--text-primary); font-weight: 600; }
.legal-content td { color: var(--text-secondary); }
.legal-table th { inline-size: 30%; }
.cookie-table th:nth-child(2) { inline-size: 55%; }

.legal-content .legal-updated {
    margin-block: 2rem 0;
    padding-block-start: 1.25rem;
    border-block-start: 1px solid var(--border-light);
    font-size: .875rem;
}

#btn-revoke-cookies {
    min-block-size: 44px;
    padding: .65rem 1rem;
    border: 1px solid var(--border-hover);
    border-radius: 8px;
    background: var(--surface-card);
    color: var(--text-primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

#btn-revoke-cookies:is(:hover, :focus-visible) {
    border-color: var(--brand-action);
    color: var(--brand-action);
}

/* ======================================
   BLOG — Article Body
   ====================================== */
.article-body {
    max-inline-size: var(--article-measure, 41rem);
    margin-inline: auto;
    padding-block: clamp(1.75rem, 5vw, 3rem) clamp(3.5rem, 7vw, 5.5rem);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.6vw, 1.0625rem);
    line-height: 1.75;
    color: var(--text-secondary);
    overflow-wrap: break-word;
}

.article-body p {
    margin: 0 0 1.4rem;
    color: var(--text-secondary);
    letter-spacing: normal;
    text-wrap: pretty;
}

.article-body h2,
.article-body h3 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.25;
    text-wrap: pretty;
}

.article-body h2 {
    font-size: clamp(1.45rem, 3vw, 1.75rem);
    margin: 2.75rem 0 .9rem;
    letter-spacing: -.02em;
}

.article-body h3 {
    font-size: clamp(1.125rem, 2vw, 1.3rem);
    margin: 1.75rem 0 .75rem;
    letter-spacing: -.01em;
}

.article-body :is(ul, ol) {
    margin-block: 0 1.4rem;
    padding-inline-start: 1.4em;
}

.article-body li + li { margin-block-start: .375rem; }

.article-body :is(h2, h3)[id] { scroll-margin-block-start: 6rem; }


.article-body strong {
    color: var(--color-text-main);
    font-weight: 600;
}

.article-body a {
    color: var(--accent-vibrant);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body blockquote {
    border-left: 3px solid var(--accent-vibrant);
    margin: 2rem 0;
    padding: 0.75rem 0 0.75rem 1.5rem;
    background: rgba(37, 99, 235, 0.04);
    border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
    margin-bottom: 0.5rem;
    font-style: italic;
    color: var(--color-text-secondary);
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
    letter-spacing: 0.02em;
}

/* Imágenes inline dentro del artículo */
.article-body img {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    max-height: 400px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

/* Tables in articles */
.article-body table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: .875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.article-body th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .875rem;
    color: var(--text-primary);
    text-align: start;
    padding: 0.75rem 1rem 0.75rem 0;
    border-bottom: 2px solid var(--border-hover);
}

.article-body td {
    padding: 0.85rem 1rem 0.85rem 0;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.article-body tbody tr:last-child td {
    border-bottom: none;
}

.article-body td:first-child {
    color: var(--color-text-main);
    font-weight: 500;
}

.article-body td:nth-child(2) {
    font-weight: 500;
}

@media (max-width: 600px) {
    .article-body table,
    .article-body th {
        font-size: .8125rem;
    }

    .article-body th,
    .article-body td {
        padding: 0.6rem 0.5rem 0.6rem 0;
    }

    .article-body td:nth-child(2) {
        white-space: normal;
    }
}

.provider-comparison {
    margin: 2rem 0;
}

@media (max-width: 600px) {
    .provider-comparison table,
    .provider-comparison thead,
    .provider-comparison tbody,
    .provider-comparison tr,
    .provider-comparison th,
    .provider-comparison td {
        display: block;
        width: 100%;
    }

    .provider-comparison thead {
        display: none;
    }

    .provider-comparison tr {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-light);
    }

    .provider-comparison td {
        border-bottom: none;
        padding: 0.35rem 0;
    }

    .provider-comparison td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.1rem;
        font-family: var(--font-heading);
        font-size: 0.68rem;
        font-weight: 600;
        color: var(--color-text-tertiary);
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .provider-comparison td:first-child {
        font-size: 0.95rem;
    }
}

.article-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 3rem 0;
}

/* ======================================
   SUBSTACK INTEGRATION
   ====================================== */
.loading {
    font-family: var(--font-mono);
    color: var(--color-text-tertiary);
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* ======================================
   COOKIE CONSENT BANNER
   ====================================== */
#cookie-consent-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 9999;
    width: calc(100% - 3rem);
    max-width: 680px;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent-inner {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cookie-consent-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    flex: 1;
    margin: 0;
}

.cookie-consent-link {
    color: var(--accent-vibrant);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted var(--accent-vibrant);
}

.cookie-consent-link:hover {
    border-bottom-style: solid;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--color-text-main);
    color: white;
}

.cookie-btn-accept:hover {
    background: black;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--border-light);
}

.article-cta {
    margin: 3.5rem 0 0;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--color-text-main);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
}

.article-cta h3 {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--color-text-main);
}

.article-body .article-cta p {
    margin-bottom: 1.1rem;
    color: var(--color-text-secondary);
}

.article-body .article-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.8rem 1.1rem;
    border-radius: 6px;
    background: var(--color-text-main);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.article-body .article-cta-button:hover {
    background: black;
    transform: translateY(-1px);
}

.cookie-btn-reject:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-text-main);
}

/* Cookie Info Modal */
#cookie-info-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    max-width: 520px;
    width: calc(100% - 2rem);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.cookie-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-tertiary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.cookie-modal-close:hover {
    color: var(--color-text-main);
}

.cookie-modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.cookie-modal-content > p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.cookie-category {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.cookie-category h4 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.cookie-category p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-modal-footer {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    margin-top: 1rem;
    font-style: italic;
}

/* Cookie Banner Mobile */
@media (max-width: 600px) {
    #cookie-consent-banner {
        bottom: 1rem;
        width: calc(100% - 2rem);
    }

    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 1rem;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        padding: 0.7rem 0.5rem;
    }
}
/* ======================================
   ANIMACIONES — Scroll reveals & progress
   ====================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Mobile finishing pass: preserve readable, reachable layouts on short screens. */
@media (max-width: 600px) {
  .mobile-menu-btn {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-right: -12px;
  }

  div[style*="background: #0f172a"][style*="grid-template-columns"] {
    padding: 2rem !important;
  }
}
