/* Bold Signal — Light default */
:root {
    --font-display: 'Satoshi', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --lh-display: 1.05;
    --lh-body: 1.55;
    --bg: #f8f8f8;
    --bg-surface: #ffffff;
    --bg-elevated: #efefef;
    --border: hsl(0 0% 0% / 0.1);
    --text: #0a0a0a;
    --text-secondary: hsl(0 0% 0% / 0.6);
    --text-muted: hsl(0 0% 0% / 0.35);
    --accent: #0a0a0a;
    --accent-surface: hsl(0 0% 0% / 0.06);
    --success: #16a34a;
    --warning: #ca8a04;
    --radius: 0px;
    --transition: 200ms;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg: #050505;
    --bg-surface: #0e0e0e;
    --bg-elevated: #161616;
    --border: hsl(0 0% 100% / 0.1);
    --text: #ffffff;
    --text-secondary: hsl(0 0% 100% / 0.7);
    --text-muted: hsl(0 0% 100% / 0.4);
    --accent: #ffffff;
    --accent-surface: hsl(0 0% 100% / 0.06);
    --success: #22c55e;
    --warning: #eab308;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; touch-action: pan-y; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: var(--lh-body);
    color: var(--text);
    background: var(--bg);
    transition: background var(--transition), color var(--transition);
}

/* ═══════ TOP BAR ═══════ */
.top-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), border var(--transition);
}
.top-left, .top-right { display: flex; align-items: center; gap: 0.8rem; }

.adri-home {
    display: flex; align-items: center;
    text-decoration: none; color: var(--text-muted);
    transition: color var(--transition);
    position: absolute; left: 50%; transform: translateX(-50%);
}
.adri-home:hover { color: var(--accent); }
.adri-home svg { width: 26px; height: 26px; }

.contact-btn {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center;
    padding: 0.3rem; transition: color var(--transition);
}
.contact-btn:hover { color: var(--accent); }
.contact-btn svg { width: 20px; height: 20px; }

.theme-toggle {
    background: none; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-muted);
    padding: 0.3rem; transition: color var(--transition);
}
.theme-toggle:hover { color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.fullscreen-btn {
    background: none; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-muted);
    padding: 0.3rem; transition: color var(--transition);
}
.fullscreen-btn:hover { color: var(--accent); }
.fullscreen-btn svg { width: 18px; height: 18px; }
.fullscreen-btn .icon-shrink { display: none; }
body.is-fullscreen .fullscreen-btn .icon-expand { display: none; }
body.is-fullscreen .fullscreen-btn .icon-shrink { display: block; }

/* ═══════ CONTACT MODAL ═══════ */
.contact-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: hsl(0 0% 0% / 0.3); display: none;
    backdrop-filter: blur(4px);
}
.contact-overlay.active { display: block; }
.contact-modal {
    background: var(--bg-surface); border: 1px solid var(--border);
    padding: 2rem; max-width: 320px; width: 90%;
    position: absolute; top: 3.5rem; left: 1.5rem;
    text-align: center;
}
.contact-modal h3 {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1.3rem; margin-bottom: 0.6rem;
}
.contact-modal .role {
    color: var(--text-secondary); font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
.contact-modal .email {
    color: var(--text-muted); font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.contact-modal .cta {
    display: inline-block; background: var(--accent); color: var(--bg);
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.8rem 2rem; text-decoration: none;
    transition: opacity var(--transition);
}
.contact-modal .cta:hover { opacity: 0.8; }
.contact-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 1.4rem; line-height: 1;
}
.contact-close:hover { color: var(--text); }

/* ═══════ HERO ═══════ */
.hero {
    padding: 7rem 4rem 2rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.hero-logo { height: 72px; margin-bottom: 1rem; opacity: 0.85; }
.logo-dark { display: none; }
.logo-light { display: block; }
[data-theme="dark"] .logo-dark { display: block; filter: brightness(0) invert(0.75); }
[data-theme="dark"] .logo-light { display: none; }

.hero-overline {
    font-family: var(--font-display); font-weight: 500;
    font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 1.5rem;
}
.hero h1 {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 5rem); line-height: 0.95;
    color: var(--accent); margin-bottom: 4rem;
    letter-spacing: -0.03em;
}
.hero p {
    font-size: 1.1rem; color: var(--text-secondary);
    max-width: 520px; line-height: 1.6;
}
.hero-meta {
    display: flex; gap: 2rem; margin-top: 1.2rem;
}
.hero-stat { font-family: var(--font-display); }
.hero-stat .num {
    font-weight: 900; font-size: 1.8rem; color: var(--accent);
    line-height: 1;
}
.hero-stat .label {
    font-size: 0.65rem; color: var(--text-muted);
    letter-spacing: 0.1em; text-transform: uppercase;
    font-weight: 500;
}

/* ═══════ PAGE SPACER (subpages without hero) ═══════ */
.page-spacer { height: 44px; }

/* ═══════ TABS ═══════ */
.tab-container {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 44px; z-index: 150;
    transition: background var(--transition);
    box-shadow: 0 -10px 0 0 var(--bg);
}
.tabs {
    display: flex; overflow-x: auto; scrollbar-width: none;
    max-width: 1200px; margin: 0 auto; padding: 0 4rem;
    background: var(--bg);
}
.tabs::-webkit-scrollbar { display: none; }

.tab-button {
    flex: 0 0 auto;
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 1rem 1.3rem; color: var(--text-muted);
    border: none; border-bottom: 3px solid transparent;
    background: transparent; cursor: pointer;
    transition: all var(--transition); white-space: nowrap;
    text-decoration: none; display: flex; align-items: center;
}
.tab-button:hover { color: var(--text); opacity: 1; }
.tab-button.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ═══════ MAIN CONTENT ═══════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ═══════ SECTIONS ═══════ */
.section {
    padding: 3rem 4rem;
    border-bottom: 1px solid var(--border);
}
.section-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-secondary); margin-bottom: 2rem;
}
.section-subtitle {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1.1rem; color: var(--text);
    margin: 2rem 0 1rem; letter-spacing: -0.01em;
}

p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.6; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
li { color: var(--text-secondary); margin-bottom: 0.5rem; line-height: 1.6; }
strong { font-weight: 600; color: var(--text); }
a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.7; }

/* ═══════ CARDS ═══════ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0;
}
.demo-cards-row {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.demo-cards-row .card { padding: 1.25rem; }
.demo-cards-row .card h3 { font-size: 0.85rem; }
.card {
    padding: 2rem;
    border: 1px solid var(--border);
    margin-right: -1px; margin-bottom: -1px;
    transition: background var(--transition);
}
.card:hover { background: var(--accent-surface); }
.card h3 {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1rem; color: var(--text);
    margin-bottom: 0.5rem;
}
.card p {
    font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.75rem;
}
.card-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent);
}
.card-link svg { width: 14px; height: 14px; }

/* ═══════ SPOTLIGHT (herramientas inicio) ═══════ */
.tools-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.tool-main {
    grid-row: 1 / 3;
    padding: 2.5rem;
    border: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: center;
}
.tool-main h3 {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1.8rem; letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}
.tool-main p { font-size: 0.95rem; max-width: 380px; }
.tool-tag {
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 1rem;
}
.tool-small {
    padding: 1.5rem 2rem;
    border: 1px solid var(--border);
    border-left: none;
    transition: background var(--transition);
}
.tool-small:first-of-type { border-bottom: none; }
.tool-small:hover { background: var(--accent-surface); }
.tool-small h3 {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1rem; margin-bottom: 0.3rem;
}
.tool-small p { font-size: 0.82rem; margin-bottom: 0.5rem; }

/* ═══════ INFO BOXES ═══════ */
.info-box {
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.info-box p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.info-box p:last-child { margin-bottom: 0; }
.success-box { border-left-color: var(--success); }
.warning-box { border-left-color: var(--warning); }

/* ═══════ GEMA CARDS ═══════ */
.gema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0;
}
.gema-card {
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    margin-right: -1px; margin-bottom: -1px;
    transition: background var(--transition);
    position: relative;
}
.gema-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
}
.gema-card:hover { background: var(--accent-surface); }
.gema-num {
    font-family: var(--font-display); font-weight: 900;
    font-size: 2rem; color: var(--accent);
    line-height: 1; margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
}
.gema-card h3 {
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.85rem; color: var(--text);
    margin-bottom: 0.4rem; text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gema-card p {
    font-size: 0.8rem; color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Colores de acento por gema */
.gema-exam::before { background: #ef4444; }
.gema-gift::before { background: #f97316; }
.gema-rubric::before { background: #eab308; }
.gema-ideas::before { background: #22c55e; }
.gema-h5p::before { background: #06b6d4; }
.gema-report::before { background: #8b5cf6; }
.gema-dept::before { background: #ec4899; }
.gema-adapt::before { background: #6366f1; }

/* ═══════ TIMELINE ═══════ */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
    content: ''; position: absolute;
    left: 0.5rem; top: 0; bottom: 0;
    width: 2px; background: var(--border);
}
.timeline-item {
    position: relative; margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: background var(--transition);
}
.timeline-item:hover { background: var(--accent-surface); }
.timeline-item::before {
    content: ''; position: absolute;
    left: -2.25rem; top: 1.7rem;
    width: 10px; height: 10px;
    background: var(--accent);
}
.timeline-item h4 {
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.95rem; color: var(--text);
    margin-bottom: 0.3rem;
}
.timeline-item p { font-size: 0.85rem; margin-bottom: 0; }
.time-badge {
    display: inline-block; margin-top: 0.5rem;
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text-muted);
}

/* ═══════ PIPELINE CARDS (Sesión 2) ═══════ */
.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.pipeline-card {
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    margin-right: -1px; margin-bottom: -1px;
    transition: background var(--transition);
}
.pipeline-card:hover { background: var(--accent-surface); }
.pipeline-num {
    font-family: var(--font-display); font-weight: 900;
    font-size: 2.5rem; color: var(--accent);
    line-height: 1; margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
}
.pipeline-card h3 {
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 0.4rem;
}
.pipeline-card p { font-size: 0.8rem; }

/* ═══════ FOOTER ═══════ */
.footer {
    padding: 1rem 4rem; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-display); font-weight: 500;
    font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-muted);
}
.footer-logo { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo img { height: 40px; opacity: 0.6; }

/* ═══════ TOAST ═══════ */
.toast {
    position: fixed; bottom: 2rem; right: 2rem;
    background: var(--bg-surface); color: var(--text);
    padding: 1rem 1.5rem; border: 1px solid var(--border);
    font-weight: 500; opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s; z-index: 1000;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ═══════ DEMOS TAB ═══════ */
.demo-tool {
    padding: 2.5rem 4rem;
    border-bottom: 1px solid var(--border);
}
.demo-tool-header {
    display: flex; align-items: baseline; gap: 1rem;
    margin-bottom: 0.5rem;
}
.demo-tool-name {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1.8rem; letter-spacing: -0.02em;
}
.demo-tool-tag {
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-muted);
}
.demo-tool-desc {
    color: var(--text-secondary); font-size: 0.95rem;
    max-width: 600px; margin-bottom: 1.5rem;
}
.demo-tool-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 0.7rem 1.5rem; text-decoration: none;
    transition: opacity var(--transition);
    margin-bottom: 2rem;
}
.demo-tool-link:hover { opacity: 0.75; }
.demo-tool-link svg { width: 14px; height: 14px; }
.subject-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0;
    border: 1px solid var(--border);
}
.subject-card {
    padding: 1.5rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.subject-card:hover { background: var(--accent-surface); }
.subject-card-link {
    text-decoration: none; color: inherit; display: block; cursor: pointer;
}
.subject-card-link:hover .subject-card-materia { color: var(--accent); }
.subject-card-link:hover { border-left: 3px solid var(--accent); padding-left: calc(1.5rem - 3px); }
.subject-card-materia {
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 0.4rem; color: var(--accent);
}
.subject-card-curso {
    font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem;
}
.subject-card-tema {
    font-size: 0.85rem; color: var(--text-secondary);
}
.subject-card-outputs {
    font-size: 0.7rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-top: 0.6rem;
}

/* ═══════ STEP BAR (Sesión 1) ═══════ */
.step-bar-container {
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
    position: sticky; top: 88px; z-index: 100;
}
.step-bar {
    display: flex; overflow-x: auto; scrollbar-width: none;
    gap: 0;
    max-width: 100%;
}
.step-bar::-webkit-scrollbar { display: none; }
.step-btn {
    flex: 1 0 auto;
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.9rem 1rem; background: transparent; border: none;
    border-bottom: 3px solid transparent; cursor: pointer;
    color: var(--text-muted); white-space: nowrap;
    transition: all var(--transition);
    display: flex; align-items: center; gap: 0.5rem;
}
.step-btn:hover { color: var(--text); }
.step-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.step-num {
    width: 20px; height: 20px;
    border: 1px solid currentColor; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; flex-shrink: 0;
}
.step-optional {
    font-size: 0.55rem; letter-spacing: 0.08em;
    color: #f97316; border: 1px solid rgba(249,115,22,0.4);
    padding: 1px 6px; text-transform: uppercase;
}
.step-content { display: none; }
.step-content.active { display: block; animation: fadeIn 0.2s var(--ease-out); }

/* ═══════ PROMPT BLOCK ═══════ */
.prompt-block {
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    margin: 1.5rem 0;
}
.prompt-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.prompt-label {
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-muted);
}
.copy-btn {
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
    background: var(--accent); color: var(--bg);
    border: none; padding: 0.35rem 0.8rem; cursor: pointer;
    transition: opacity var(--transition);
}
.copy-btn:hover { opacity: 0.8; }
.prompt-text {
    padding: 1rem 1.2rem;
    font-family: var(--font-body); font-size: 0.85rem;
    color: var(--text-secondary); line-height: 1.6;
    white-space: pre-wrap; word-break: break-word;
    margin: 0; max-height: 400px; overflow-y: auto;
}

/* ═══════ STEP CARD ═══════ */
.step-card {
    padding: 3rem 4rem;
}
.step-card-header {
    display: flex; align-items: baseline; gap: 1rem;
    margin-bottom: 0.5rem;
}
.step-card-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1.5rem; letter-spacing: -0.02em;
}
.step-card-time {
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text-muted);
}
.step-card-desc {
    color: var(--text-secondary); font-size: 0.95rem;
    max-width: 640px; margin-bottom: 1.5rem; line-height: 1.6;
}
.tool-link-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 0.65rem 1.2rem; text-decoration: none; margin-right: 0.5rem;
    border: 1px solid var(--border); color: var(--text);
    transition: background var(--transition), color var(--transition);
    margin-bottom: 0.5rem;
}
.tool-link-btn:hover { background: var(--accent); color: var(--bg); opacity: 1; }
.tool-link-btn svg { width: 13px; height: 13px; }
.tool-section {
    border-left: 4px solid var(--border);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 1.5rem 0;
    background: var(--accent-surface);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.tool-section--gemini { border-left-color: #4285f4; }
.tool-section--wispr { border-left-color: #06b6d4; }
.instrucciones-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-secondary); margin: 1.5rem 0 0.8rem;
}
.yt-embed {
    overflow: hidden; border-radius: 12px; margin-top: 0.5rem;
    max-width: 560px; aspect-ratio: 16 / 9;
}
.yt-embed iframe {
    width: 100%; height: 100%; border: 0;
}
.instrucciones ol {
    padding-left: 1.5rem; margin: 0;
}
.instrucciones li {
    font-size: 0.9rem; color: var(--text-secondary);
    margin-bottom: 0.5rem; padding-left: 0.3rem;
}
.badge-optional {
    display: inline-block;
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase;
    background: rgba(249,115,22,0.12); color: #f97316;
    border: 1px solid rgba(249,115,22,0.35);
    padding: 3px 10px; margin-bottom: 1rem;
}

/* ═══════ SESIÓN 2 ═══════ */
.s2-pipeline-link {
    text-decoration: none; color: inherit; display: block;
}
.s2-pipeline-link:hover .pipeline-num { opacity: 0.75; }

.s2-pmf-checks {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1.5rem; margin-top: 0.8rem;
}
.s2-pmf-check {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: var(--text-secondary);
    cursor: pointer; padding: 0.2rem 0;
}
.s2-pmf-check input { flex-shrink: 0; }

.s2-novedades-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; border: 1px solid var(--border);
}
.s2-novedad {
    padding: 1.5rem; border-right: 1px solid var(--border);
    display: flex; gap: 1.2rem; align-items: flex-start;
}
.s2-novedad:last-child { border-right: none; }
.s2-novedad strong {
    display: block; font-family: var(--font-display); font-weight: 900;
    font-size: 0.9rem; margin-bottom: 0.4rem;
}
.s2-novedad p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.s2-novedad-icon {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1.4rem; color: var(--text-muted);
    flex-shrink: 0; line-height: 1;
}

.s2-phase {
    border: 1px solid var(--border);
    border-top: none;
}
.s2-phase-head {
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 1.5rem;
    padding: 1.2rem 4rem;
    border-bottom: 1px solid var(--border);
    border-left: 4px solid transparent;
    background: var(--bg-elevated);
}
.s2-phase-num {
    font-family: var(--font-display); font-weight: 900;
    font-size: 2rem; line-height: 1; letter-spacing: -0.03em;
}
.s2-phase-name {
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.s2-phase-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.s2-phase-tools { font-size: 0.75rem; color: var(--text-muted); text-align: right; max-width: 280px; }
.s2-phase-body { padding: 1.5rem 4rem 2rem; }
.s2-phase-body > p {
    font-size: 0.9rem; color: var(--text-secondary);
    margin-bottom: 1rem; max-width: 680px;
}

.s2-steps { margin: 1rem 0 1.5rem; padding-left: 0; list-style: none; }
.s2-step {
    display: flex; gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.s2-step:last-child { border-bottom: none; }
.s2-step-num {
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.7rem; color: var(--text-muted);
    min-width: 1.5rem; margin-top: 0.1rem;
}
.s2-step-text {
    font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55;
}
.s2-step-text strong { color: var(--text); }

.s2-checklist { margin: 0.5rem 0 1rem; }
.s2-check-group { margin-bottom: 0.9rem; }
.s2-check-group:last-child { margin-bottom: 0; }
.s2-check-group-label {
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 0.3rem;
}
.s2-check-item {
    display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.3rem 0; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer;
}
.s2-check-item input[type="checkbox"] {
    margin-top: 0.15em; flex-shrink: 0; width: 14px; height: 14px; cursor: pointer;
    accent-color: var(--accent);
}
.s2-check-item.ideal { color: var(--text-muted); }

.s2-gema-links, .s2-tool-links {
    display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem;
}
.s2-gema-link {
    display: inline-flex; align-items: center;
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.35rem 0.75rem; border: 1px solid var(--border);
    color: var(--text-muted); text-decoration: none;
    transition: all var(--transition);
}
.s2-gema-link:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-surface); opacity: 1; }

.s2-plantilla-grid { border: 1px solid var(--border); margin: 1rem 0; }
.s2-plantilla { border-bottom: 1px solid var(--border); }
.s2-plantilla:last-child { border-bottom: none; }
.s2-plantilla-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 1rem; border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.s2-plantilla-label {
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text-muted);
}
.s2-plantilla-text {
    padding: 1rem 1.2rem; font-family: var(--font-body); font-size: 0.85rem;
    color: var(--text-secondary); line-height: 1.6;
    white-space: pre-wrap; word-break: break-word; margin: 0;
}

.s2-via-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; border: 1px solid var(--border);
}
.s2-via-card {
    padding: 1.5rem; border-right: 1px solid var(--border);
    transition: background var(--transition);
}
.s2-via-card:last-child { border-right: none; }
.s2-via-card:hover { background: var(--accent-surface); }
.s2-via-num {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1.8rem; letter-spacing: -0.03em;
    margin-bottom: 0.4rem; line-height: 1;
}
.s2-via-label {
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.s2-via-desc { font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 0.8rem; }
.s2-via-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-family: var(--font-display); font-weight: 900;
    font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent); text-decoration: none;
    padding-bottom: 0.15rem; border-bottom: 1px solid currentColor;
    transition: opacity var(--transition);
}
.s2-via-link:hover { opacity: 0.7; }

.s2-reflexion-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; border: 1px solid var(--border);
}
.s2-reflexion-item {
    padding: 1.5rem;
    border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.s2-reflexion-item:hover { background: var(--accent-surface); }
.s2-reflexion-item:nth-child(2n) { border-right: none; }
.s2-reflexion-item:nth-last-child(-n+2) { border-bottom: none; }
.s2-reflexion-num {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1.4rem; color: var(--text-muted);
    margin-bottom: 0.4rem; line-height: 1;
}
.s2-reflexion-item strong {
    display: block; font-family: var(--font-display); font-weight: 900;
    font-size: 0.88rem; margin-bottom: 0.3rem;
}
.s2-reflexion-item p { font-size: 0.83rem; color: var(--text-secondary); margin: 0; }

/* ═══════ RECURSOS — gema prompt inline ═══════ */
.gema-prompt-block {
    border: 1px solid var(--border);
    margin-top: 1.5rem;
}
.gema-prompt-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.gema-prompt-label {
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-muted);
}
.gema-full-card {
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: -1px;
}
.gema-full-card h3 {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1rem; margin-bottom: 0.3rem;
}
.gema-full-card p.desc {
    font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem;
}

/* ═══════ S2 VERTICAL TIMELINE (alternating) ═══════ */
@keyframes s2NodeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes s2PhaseIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.s2-tl-wrapper {
    position: relative;
    padding: 1rem 0 2rem;
}
.s2-tl-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: var(--border);
    z-index: 0;
}

/* Each row: 3-column grid — card | dot | card */
.s2-tl-row {
    display: grid;
    grid-template-columns: 1fr 2.5rem 1fr;
    gap: 0 1.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Card on the LEFT by default (odd phases) */
.s2-tl-row .s2-tl-card { grid-column: 1; grid-row: 1; }
/* Card on the RIGHT for even phases */
.s2-tl-row.s2-right .s2-tl-card { grid-column: 3; grid-row: 1; }
/* Dot always center */
.s2-tl-dot-wrap {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.s2-tl-card {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    animation: s2NodeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--i, 0) * 65ms);
    transition: transform 200ms ease,
                border-color 200ms ease,
                background 200ms ease;
}
.s2-tl-row:hover .s2-tl-card {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: var(--accent-surface);
}
.s2-tl-row:active .s2-tl-card {
    transform: scale(0.97);
    transition-duration: 80ms;
}

.s2-tl-dot {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.85rem;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    animation: s2NodeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--i, 0) * 65ms);
    transition: transform 200ms ease;
}
.s2-tl-row:hover .s2-tl-dot {
    transform: scale(1.08);
}

.s2-tl-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.s2-tl-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.3rem;
}
.s2-tl-tools {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Right-side cards: right-align text */
.s2-tl-row.s2-right .s2-tl-card { text-align: right; }

/* Pause divider */
.s2-tl-pause-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    animation: s2NodeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(3 * 65ms);
}
.s2-tl-pause-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg);
    padding: 0.3rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* Phase content animation */
.s2-phase-content.entering {
    animation: s2PhaseIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Back button */
.s2-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
    transition: all 200ms ease;
    margin-bottom: 0;
}
.s2-back-btn:hover {
    background: var(--accent-surface);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}
.s2-back-btn:active { transform: scale(0.97); }

/* Phase navigation */
.s2-phase-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}
.s2-phase-nav-btn {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
    transition: all 200ms ease;
}
.s2-phase-nav-btn:hover:not(:disabled) {
    background: var(--accent-surface);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}
.s2-phase-nav-btn:active:not(:disabled) { transform: scale(0.97); }
.s2-phase-nav-btn:disabled {
    opacity: 0.25;
    cursor: default;
}
.s2-phase-indicator {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ═══════ ANIMATIONS ═══════ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 768px) {
    .hero { padding: 5rem 1.5rem 3rem; }
    .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-meta { gap: 1.5rem; }
    .tabs { padding: 0 1.5rem; }
    .section { padding: 2rem 1.5rem; }
    .tools-spotlight { grid-template-columns: 1fr; }
    .tool-small { border-left: 1px solid var(--border); }
    .tool-small:first-of-type { border-bottom: 1px solid var(--border); }
    .cards { grid-template-columns: 1fr; }
    .demo-cards-row { grid-template-columns: 1fr !important; }
    .gema-grid { grid-template-columns: 1fr; }
    .pipeline-grid { grid-template-columns: 1fr; }
    .timeline { padding-left: 2rem; }
    .footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; }
    .demo-tool { padding: 2rem 1.5rem; }
    .step-bar-container { padding: 0 1.5rem; }
    .step-card { padding: 2rem 1.5rem; }
    .subject-cards { grid-template-columns: 1fr; }
    .s2-novedades-grid, .s2-via-grid, .s2-reflexion-grid { grid-template-columns: 1fr; }
    .s2-pmf-checks { grid-template-columns: 1fr; }
    .s2-novedad { border-right: none; border-bottom: 1px solid var(--border); }
    .s2-novedad:last-child { border-bottom: none; }
    .s2-via-card { border-right: none; border-bottom: 1px solid var(--border); }
    .s2-via-card:last-child { border-bottom: none; }
    .s2-reflexion-item { border-right: none; }
    .s2-phase-head { grid-template-columns: auto 1fr; padding: 1rem 1.5rem; }
    .s2-phase-tools { display: none; }
    .s2-phase-body { padding: 1.5rem; }
    .s2-tl-wrapper::before { left: 1.25rem; transform: none; }
    .s2-tl-row { grid-template-columns: 2.5rem 1fr; gap: 0 1rem; }
    .s2-tl-dot-wrap { grid-column: 1; }
    .s2-tl-row .s2-tl-card,
    .s2-tl-row.s2-right .s2-tl-card { grid-column: 2; text-align: left; }
    .s2-tl-name { font-size: 0.95rem; }
}

/* ═══════ PRINT ═══════ */
@media print {
    .top-bar, .tab-container, .contact-overlay { display: none; }
    body { background: white; color: black; }
}
