/* ============================================================
   Talenza · Landing page
   Identidad: petróleo #173B45 · coral #E7796D · arena #E9D8B4 · salvia #A8C0B2 · marfil #F8F5EF · grafito #2B2E33
   Tipografía: Manrope (títulos y destacados) · Inter (textos e interfaz)
   ============================================================ */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url("../assets/fonts/talenza/manrope-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: "Manrope";
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url("../assets/fonts/talenza/manrope-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../assets/fonts/talenza/inter-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: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../assets/fonts/talenza/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
    --petroleo: #173b45;
    --petroleo-700: #1f4d59;
    --petroleo-900: #0f2a32;
    --coral: #e7796d;
    --coral-600: #c4513f;
    --coral-100: #fbe6e2;
    --arena: #e9d8b4;
    --arena-100: #f6eedb;
    --salvia: #a8c0b2;
    --salvia-100: #e4ede7;
    --marfil: #f8f5ef;
    --blanco: #ffffff;
    --grafito: #2b2e33;
    --texto: #3b4348;
    --texto-suave: #5d6a70;
    --borde: #e6e0d4;

    --font-title: "Manrope", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 8px rgba(23, 59, 69, .06);
    --shadow: 0 10px 30px rgba(23, 59, 69, .09);
    --shadow-lg: 0 24px 60px rgba(23, 59, 69, .14);
    --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--marfil);
    color: var(--texto);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--coral-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-title); color: var(--petroleo); line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-size: .9em; background: var(--arena-100); padding: .1em .4em; border-radius: 6px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 200;
    background: var(--petroleo); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; text-decoration: none; }

.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 3rem); }

.muted { color: var(--texto-suave); }
.accent { color: var(--coral); }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; line-height: 1; }
.brand__mark { width: 38px; height: auto; }
.brand__text { display: flex; flex-direction: column; gap: .15rem; }
.brand__word { font-family: var(--font-title); font-weight: 800; font-size: 1.65rem; letter-spacing: -.03em; color: var(--petroleo); }
.brand__tagline { font-size: .72rem; color: var(--texto-suave); letter-spacing: .01em; }
.brand--light .brand__word { color: #fff; }
.brand--light .brand__tagline { color: rgba(255, 255, 255, .75); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--font-title); font-weight: 700; font-size: .95rem; line-height: 1.2;
    cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn--primary { background: var(--coral-600); color: #fff; box-shadow: 0 8px 20px rgba(196, 81, 63, .28); }
.btn--primary:hover { background: #b0432f; color: #fff; box-shadow: 0 12px 26px rgba(196, 81, 63, .34); }
.btn--outline { background: transparent; color: var(--petroleo); border-color: var(--petroleo); }
.btn--outline:hover { background: var(--petroleo); color: #fff; }

/* ---------- Header (píldora flotante) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: .85rem 0; pointer-events: none; }

.site-header__bar {
    pointer-events: auto;
    width: min(1180px, 100% - 2rem); margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .55rem .65rem .55rem 1.25rem;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(23, 59, 69, .07);
    border-radius: 999px;
    box-shadow: 0 10px 34px rgba(23, 59, 69, .12);
}

.site-header__brand:hover { text-decoration: none; }
.site-header__brand .brand__mark { width: 32px; }
.site-header__brand .brand__word { font-size: 1.45rem; }

.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav__list { display: flex; align-items: center; gap: .25rem; }
.site-nav__list a {
    display: block; padding: .5rem .9rem; border-radius: 999px;
    color: var(--petroleo); font-weight: 600; font-size: .9rem;
}
.site-nav__list a:hover, .site-nav__list a.is-current { background: var(--salvia-100); text-decoration: none; }

.nav-toggle {
    display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: var(--salvia-100); color: var(--petroleo); cursor: pointer; place-items: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: grid; }
.nav-toggle__open { display: grid; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section--tint { background: linear-gradient(180deg, var(--arena-100), #f3ecdc 120%); }
.section--dark { background: var(--petroleo); color: rgba(255, 255, 255, .86); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--center { text-align: center; padding-top: calc(var(--header-h) + 5rem); }

.section__head { max-width: 760px; margin: 0 auto clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
.section__head--light .lead { color: rgba(255, 255, 255, .8); }
.section__head--sub { margin-top: clamp(3rem, 6vw, 4.5rem); margin-bottom: 1.6rem; }

.eyebrow {
    display: inline-block; margin-bottom: 1rem; padding: .35rem .85rem;
    background: var(--salvia-100); color: var(--petroleo);
    border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow--light { background: rgba(255, 255, 255, .12); color: var(--arena); }

.h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
.h2--sm { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 800; }
.lead { font-size: 1.12rem; color: var(--texto-suave); }
.section--dark .lead { color: rgba(255, 255, 255, .8); }

.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.two-col { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(3rem, 6vw, 5rem)) 0 clamp(4rem, 7vw, 6rem); }

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::before, .hero__bg::after { content: ""; position: absolute; border-radius: 50%; }
.hero__bg::before {
    width: 720px; height: 720px; right: -240px; top: -300px;
    border: 90px solid var(--arena);
    border-left-color: transparent; border-bottom-color: transparent;
    opacity: .75; transform: rotate(8deg);
}
.hero__bg::after {
    width: 520px; height: 520px; right: -170px; top: -140px;
    border: 70px solid var(--coral-100);
    border-left-color: transparent; border-bottom-color: transparent;
    transform: rotate(-8deg);
}

.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.hero__title { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .5em; }
.hero__lead { font-size: 1.2rem; color: var(--grafito); max-width: 34rem; }
.hero__support { color: var(--texto-suave); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }

.hero__visual { position: relative; display: grid; gap: 1rem; padding-top: 1.6rem; }
.hero__badge {
    position: absolute; top: 0; right: 0; z-index: 3;
    padding: .25rem .7rem; border-radius: 999px; background: var(--arena); color: var(--petroleo);
    font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero__badge--inline { position: static; display: inline-block; margin-bottom: .8rem; }

/* Tarjetas del mock */
.mock-card {
    background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radius);
    padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.mock-card--gaps { margin-left: clamp(0rem, 4vw, 3rem); }
.mock-card--match { margin-right: clamp(0rem, 4vw, 3rem); }
.mock-card__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.mock-card__head strong { display: block; font-family: var(--font-title); color: var(--petroleo); font-size: .98rem; line-height: 1.2; }
.mock-card__head small { display: block; color: var(--texto-suave); font-size: .78rem; }
.mock-card__head .mock-tag { margin-left: auto; }

.mock-tag { padding: .2rem .65rem; border-radius: 999px; background: var(--petroleo); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.mock-tag--coral { background: var(--coral-100); color: var(--coral-600); }
.mock-tag--sage { background: var(--salvia-100); color: var(--petroleo); }

.avatar {
    display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
    background: var(--coral); color: #fff; font-family: var(--font-title); font-weight: 800; font-size: .85rem;
}
.avatar--sand { background: var(--arena); color: var(--petroleo); }

.skill-list li {
    display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .8rem;
    padding: .55rem 0; border-top: 1px solid var(--borde); font-size: .86rem;
}
.skill-list--compact li { grid-template-columns: 1fr auto; }
.skill-list__name { color: var(--grafito); font-weight: 500; }

.dots { display: inline-flex; gap: .28rem; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #e7e2d6; }
.dot.on { background: var(--petroleo); }
.dot.gap { background: transparent; border: 2px solid var(--coral); }

.status { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.status .icon { width: 1em; height: 1em; }
.status--ok { color: #2f7a5a; }
.status--pending { color: #a8761a; }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .8rem 0 0; font-size: .74rem; color: var(--texto-suave); }
.legend .dot { width: 9px; height: 9px; margin-left: .5rem; }
.legend .dot:first-child { margin-left: 0; }

.match-row { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; background: var(--marfil); border-radius: var(--radius-sm); }
.match-row__body strong { display: block; font-size: .9rem; color: var(--petroleo); font-family: var(--font-title); line-height: 1.2; }
.match-row__body small { color: var(--texto-suave); font-size: .78rem; }
.mock-note { margin: .8rem 0 0; font-size: .76rem; color: var(--texto-suave); }

/* ---------- Tarjetas informativas ---------- */
.info-card {
    background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radius);
    padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.info-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .45em; }
.info-card p { margin: 0; color: var(--texto-suave); }
.info-card--soft { background: rgba(255, 255, 255, .75); }

.info-card__icon {
    display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.1rem;
    border-radius: 14px; background: var(--salvia-100); color: var(--petroleo);
}
.info-card__icon .icon { width: 26px; height: 26px; }
.info-card__icon--coral { background: var(--coral-100); color: var(--coral-600); }

.two-col--cards { margin-bottom: 1.6rem; }

.callout {
    margin: 0; padding: 1.8rem 2rem; border-radius: var(--radius);
    background: var(--petroleo); color: rgba(255, 255, 255, .9);
    font-family: var(--font-title); font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.45;
}
.callout p { margin: 0; }
.callout strong { color: var(--arena); }

/* ---------- Pasos de la solución ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: paso; position: relative; }
.step {
    position: relative; padding: 1.8rem 1.5rem 1.6rem; background: var(--blanco);
    border: 1px solid var(--borde); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.step:not(:last-child)::after {
    content: ""; position: absolute; top: 3.1rem; right: -1.4rem; width: 1.4rem; height: 2px; background: var(--salvia);
}
.step__num {
    position: absolute; top: -14px; left: 1.4rem; display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 50%; background: var(--coral-600); color: #fff;
    font-family: var(--font-title); font-weight: 800; font-size: .85rem;
}
.step__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem; border-radius: 14px; background: var(--arena-100); color: var(--petroleo); }
.step__icon .icon { width: 24px; height: 24px; }
.step h3 { font-size: 1.1rem; font-weight: 800; }
.step p { margin: 0; color: var(--texto-suave); font-size: .95rem; }

/* ---------- Recorrido (tabs) ---------- */
.journey { display: grid; grid-template-columns: 260px 1fr; gap: 1.6rem; align-items: stretch; }
.journey__tabs { display: grid; gap: .5rem; align-content: start; }
.journey__tab {
    display: flex; align-items: center; gap: .9rem; width: 100%; padding: .85rem 1rem; text-align: left;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
    color: rgba(255, 255, 255, .8); font-family: var(--font-title); font-weight: 700; font-size: .98rem; cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.journey__tab:hover { background: rgba(255, 255, 255, .12); }
.journey__tab.is-active { background: var(--coral); border-color: var(--coral); color: #fff; }
.journey__num { font-size: .78rem; opacity: .75; letter-spacing: .05em; }

.journey__panels { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem); }
.journey__panel { display: none; }
.journey__panel.is-active { display: block; animation: fade-in .3s ease; }
.journey__step { display: inline-block; margin-bottom: .8rem; color: var(--arena); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.journey__panel h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
.journey__panel p { font-size: 1.05rem; }
.journey__result { margin: 1.4rem 0 0 !important; padding: 1rem 1.2rem; background: rgba(168, 192, 178, .18); border-left: 4px solid var(--salvia); border-radius: 0 12px 12px 0; }
.journey__result strong { color: var(--arena); }
.journey__loop { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 2rem 0 0; color: var(--arena); font-weight: 600; text-align: center; }

.no-js .journey__panel { display: block; margin-bottom: 1.4rem; }
.no-js .journey__tabs { display: none; }

@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Módulos ---------- */
.group-title {
    display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 0 0 1.4rem;
    font-size: 1.15rem; font-weight: 700; color: var(--texto-suave);
}
.group-title--vision { margin-top: clamp(3rem, 6vw, 4.5rem); }
.group-title__tag {
    padding: .3rem .85rem; border-radius: 999px; background: var(--petroleo); color: #fff;
    font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.group-title__tag--vision { background: var(--arena); color: var(--petroleo); }

.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.modules--compact { grid-template-columns: repeat(4, 1fr); }

.module {
    display: flex; flex-direction: column; padding: clamp(1.6rem, 3vw, 2.2rem);
    background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.module:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.module__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.module__icon {
    display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.1rem;
    border-radius: 16px; background: var(--salvia-100); color: var(--petroleo);
}
.module__top .module__icon { margin-bottom: 0; }
.module__icon .icon { width: 28px; height: 28px; }
.module__name { font-size: 1.5rem; font-weight: 800; margin-bottom: .1em; }
.module__name::first-line { color: var(--petroleo); }
.module__sub { margin: 0 0 1.1rem; color: var(--texto-suave); font-size: .92rem; font-weight: 500; }
.module__title { margin: 0 0 .4rem; font-family: var(--font-title); font-weight: 700; font-size: 1.12rem; color: var(--coral-600); }
.module__desc { color: var(--texto); }
.module__close { margin: auto 0 1.1rem; padding-top: 1rem; border-top: 1px solid var(--borde); color: var(--texto-suave); font-size: .94rem; }

.module--vision { background: rgba(255, 255, 255, .6); border-style: dashed; padding: 1.5rem; }
.module--vision .module__name { font-size: 1.12rem; }
.module--vision .module__icon { background: var(--arena-100); }
.module--vision .module__desc { margin: 0; font-size: .92rem; color: var(--texto-suave); }

.badge { display: inline-block; padding: .22rem .65rem; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.badge--vision { background: var(--arena); color: var(--petroleo); }

.checklist { display: grid; gap: .55rem; margin: 0 0 1.1rem; }
.checklist li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; }
.checklist .icon { width: 1.1em; height: 1.1em; margin-top: .22em; color: var(--coral-600); stroke-width: 2.4; }
.section--dark .checklist .icon { color: var(--salvia); }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-title); font-weight: 700; color: var(--coral-600); }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .18s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Mi Talenza ---------- */
.portal { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.portal__copy .lead { margin-bottom: 1.4rem; }

.portal-app {
    display: grid; grid-template-columns: 170px 1fr; min-height: 380px;
    background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.portal-app__side { padding: 1.4rem 1rem; background: var(--petroleo); }
.portal-app__side .brand__mark { width: 26px; }
.portal-app__side .brand__word { font-size: 1.2rem; }
.portal-app__side ul { display: grid; gap: .3rem; margin-top: 1.6rem; }
.portal-app__side li { padding: .55rem .8rem; border-radius: 10px; color: rgba(255, 255, 255, .72); font-size: .84rem; font-weight: 500; }
.portal-app__side li.is-active { background: var(--coral); color: #fff; font-weight: 600; }

.portal-app__main { padding: 1.5rem 1.6rem; }
.portal-app__main h3 { font-size: 1.4rem; margin-bottom: .15em; }
.portal-app__main > p { margin-bottom: 1.2rem; color: var(--texto-suave); font-size: .92rem; }

.portal-plan { display: flex; align-items: center; gap: .9rem; padding: 1rem; border: 1px solid var(--borde); border-radius: 14px; background: var(--marfil); }
.portal-plan__icon { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--coral-100); color: var(--coral-600); }
.portal-plan__icon .icon { width: 22px; height: 22px; }
.portal-plan__body { flex: 1; min-width: 0; }
.portal-plan__body strong { display: block; font-family: var(--font-title); color: var(--petroleo); font-size: .95rem; line-height: 1.25; }
.portal-plan__body small { display: block; color: var(--texto-suave); font-size: .76rem; margin-bottom: .5rem; }
.portal-plan__pct { font-family: var(--font-title); font-weight: 800; color: var(--petroleo); font-size: .9rem; }

.progress { height: 8px; border-radius: 999px; background: #e7e2d6; overflow: hidden; }
.progress__bar { display: block; height: 100%; border-radius: 999px; background: var(--coral); }
.pct-25 { width: 25%; } .pct-50 { width: 50%; } .pct-75 { width: 75%; } .pct-100 { width: 100%; }

.portal-next { display: grid; gap: .55rem; margin-top: 1.2rem; }
.portal-next li { display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; background: var(--salvia-100); border-radius: 10px; font-size: .84rem; color: var(--petroleo); font-weight: 500; }
.portal-next .icon { width: 1.1em; height: 1.1em; }

/* ---------- Perfiles y casos ---------- */
.profiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.profile { padding: 1.5rem 1.3rem; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.profile__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1rem; border-radius: 13px; background: var(--salvia-100); color: var(--petroleo); }
.profile h3 { font-size: 1.05rem; font-weight: 800; }
.profile__finds { color: var(--texto-suave); font-size: .9rem; }
.profile__value { margin: 0; padding-top: .8rem; border-top: 1px solid var(--borde); font-size: .88rem; color: var(--petroleo); }

.note { display: flex; align-items: flex-start; justify-content: center; gap: .6rem; max-width: 760px; margin: 1.8rem auto 0; color: var(--texto-suave); font-size: .9rem; text-align: left; }
.note .icon { margin-top: .2em; color: var(--salvia); width: 1.4em; height: 1.4em; }

.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.case { position: relative; padding: 1.8rem 1.8rem 1.6rem 5rem; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.case__letter {
    position: absolute; left: 1.4rem; top: 1.7rem; display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; background: var(--arena); color: var(--petroleo); font-family: var(--font-title); font-weight: 800; font-size: 1.1rem;
}
.case h4 { font-size: 1.12rem; font-weight: 800; }
.case p { font-size: .93rem; color: var(--texto-suave); }
.case strong { color: var(--petroleo); }
.case__value { margin: 0; padding: .8rem 1rem; background: var(--coral-100); border-radius: 10px; color: var(--coral-600) !important; font-weight: 600; }

/* ---------- Academia ---------- */
.academy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.academy__quote { margin: 1.6rem 0 .5rem; padding-left: 1.2rem; border-left: 4px solid var(--coral); font-family: var(--font-title); font-weight: 700; font-size: 1.35rem; line-height: 1.35; color: #fff; }
.academy__sub { color: var(--arena); font-weight: 500; }

.flow { display: grid; gap: .7rem; counter-reset: flow; position: relative; }
.flow li {
    display: flex; align-items: center; gap: .9rem; padding: .85rem 1.1rem;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px;
    color: #fff; font-weight: 500; position: relative;
}
.flow li span { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--salvia); color: var(--petroleo); }
.flow li:not(:last-child)::after {
    content: ""; position: absolute; left: 1.95rem; bottom: -.7rem; width: 2px; height: .7rem; background: rgba(255, 255, 255, .3);
}
.flow li:last-child span { background: var(--coral); color: #fff; }

/* ---------- Ecosistema ---------- */
.ecosystem {
    margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(2rem, 4vw, 3rem); text-align: center;
    background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.ecosystem .lead { max-width: 720px; margin-inline: auto; font-size: 1.02rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
.chip {
    padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid transparent;
    font-family: var(--font-title); font-weight: 700; font-size: .9rem; transition: transform .18s ease, box-shadow .18s ease;
}
.chip:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip--core { background: var(--petroleo); color: #fff; }
.chip--academy { background: var(--salvia); color: var(--petroleo); }
.chip--vision { background: transparent; color: var(--petroleo); border-color: var(--arena); border-style: dashed; background: var(--arena-100); }

.chips__legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin: 1.4rem 0 0; font-size: .8rem; color: var(--texto-suave); }
.legend-dot { display: inline-block; width: 10px; height: 10px; margin-left: .7rem; border-radius: 50%; }
.legend-dot:first-child { margin-left: 0; }
.legend-dot--core { background: var(--petroleo); }
.legend-dot--academy { background: var(--salvia); }
.legend-dot--vision { background: var(--arena); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq__item { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem;
    font-family: var(--font-title); font-weight: 700; font-size: 1.02rem; color: var(--petroleo); cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--coral-600); transition: transform .2s ease; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item[open] { border-color: var(--salvia); }
.faq__item p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--texto-suave); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__note { display: flex; align-items: flex-start; gap: .6rem; padding: 1rem 1.2rem; background: var(--salvia-100); border-radius: var(--radius-sm); color: var(--petroleo); font-weight: 500; }
.contact__note .icon { margin-top: .2em; }
.contact__card { padding: clamp(1.5rem, 3vw, 2.3rem); background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; color: var(--petroleo); }
.req { color: var(--coral-600); }
.field input, .field select, .field textarea {
    width: 100%; padding: .75rem .95rem; border: 1.5px solid var(--borde); border-radius: 12px;
    background: var(--marfil); color: var(--grafito); font: inherit; font-size: .95rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--petroleo); box-shadow: 0 0 0 4px rgba(23, 59, 69, .1); }
.field .input-validation-error { border-color: var(--coral-600); background: #fff8f7; }
.field__error { min-height: 0; color: var(--coral-600); font-size: .8rem; font-weight: 500; }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.form__hint { color: var(--texto-suave); font-size: .86rem; }

.alert { display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.3rem; border-radius: var(--radius-sm); }
.alert p { margin: .2rem 0 0; }
.alert--ok { background: var(--salvia-100); color: var(--petroleo); }
.alert--ok .icon { width: 1.8rem; height: 1.8rem; padding: .3rem; border-radius: 50%; background: var(--petroleo); color: #fff; }
.alert--error { margin-bottom: 1.1rem; background: var(--coral-100); color: var(--coral-600); font-weight: 600; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petroleo-900); color: rgba(255, 255, 255, .75); padding: 3.5rem 0 1.6rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer__brand { max-width: 380px; }
.site-footer__brand p { margin: 1rem 0 0; font-size: .92rem; }
.site-footer__links { display: grid; grid-template-columns: repeat(2, auto); gap: .55rem 2.4rem; align-content: start; }
.site-footer__links a { color: rgba(255, 255, 255, .8); font-size: .92rem; }
.site-footer__links a:hover { color: var(--arena); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.4rem; font-size: .82rem; color: rgba(255, 255, 255, .55); }

.to-top {
    position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 90; display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%; background: var(--coral-600); color: #fff;
    box-shadow: 0 10px 24px rgba(196, 81, 63, .35); opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { text-decoration: none; background: #b0432f; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .journey__panel.is-active { animation: none; }
    * { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .modules--compact { grid-template-columns: repeat(2, 1fr); }
    .profiles { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .step:not(:last-child)::after { display: none; }
    .journey { grid-template-columns: 1fr; }
    .journey__tabs { grid-template-columns: repeat(4, 1fr); }
    .journey__tab { flex-direction: column; align-items: flex-start; gap: .2rem; }
}

@media (max-width: 960px) {
    .nav-toggle { display: grid; }
    .site-header__bar { position: relative; padding-right: .55rem; }
    .site-nav {
        position: absolute; top: calc(100% + .6rem); left: 0; right: 0;
        display: none; flex-direction: column; align-items: stretch; gap: .8rem; padding: 1rem;
        background: #fff; border: 1px solid var(--borde); border-radius: 24px; box-shadow: var(--shadow-lg);
    }
    .site-nav.is-open { display: flex; }
    .site-nav__list { flex-direction: column; align-items: stretch; }
    .site-nav__list a { padding: .75rem 1rem; }
    .site-nav__cta { width: 100%; }

    .hero__grid, .portal, .academy, .contact { grid-template-columns: 1fr; }
    .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
    .grid--3, .two-col { grid-template-columns: 1fr; }
    .modules, .cases { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container, .container--narrow { width: calc(100% - 2rem); }
    .modules--compact, .profiles, .steps { grid-template-columns: 1fr; }
    .journey__tabs { grid-template-columns: repeat(2, 1fr); }
    .form__grid { grid-template-columns: 1fr; }
    .portal-app { grid-template-columns: 1fr; }
    .portal-app__side { display: none; }
    .mock-card--gaps, .mock-card--match { margin-inline: 0; }
    .skill-list li { grid-template-columns: 1fr auto; }
    .skill-list .status { grid-column: 1 / -1; }
    .case { padding: 1.6rem 1.4rem; }
    .case__letter { position: static; margin-bottom: .8rem; }
    .site-footer__links { grid-template-columns: 1fr 1fr; }
    .hero__actions .btn { width: 100%; }
}
