/*
 * Developer Introvertido - Landing Page Styles
 * Estética: Terminal Dark Mode / GitHub-inspired
 */

/* ========================================
   CSS VARIABLES
======================================== */
:root {
    /* Colores principales */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #21262d;
    --bg-card-hover: #30363d;

    /* Colores de acento */
    --green-primary: #3fb950;
    --green-bright: #00ff41;
    --green-glow: rgba(63, 185, 80, 0.4);
    --amber: #d29922;
    --amber-glow: rgba(210, 153, 34, 0.3);
    --red: #f85149;
    --blue: #58a6ff;

    /* Texto */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-dim: #6e7681;

    /* Bordes */
    --border-color: #30363d;
    --border-hover: #3fb950;

    /* Tipografías */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

    /* Espaciados - mobile first */
    --section-padding: 56px 16px;
    --container-max: 1100px;
    --container-wide: 1320px;
    --container-narrow: 800px;

    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

@media (min-width: 768px) {
    :root {
        --section-padding: 80px 24px;
    }
}

/* ========================================
   RESET Y BASE
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Scanlines effect sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ========================================
   TIPOGRAFÍA
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(1.75rem, 6vw, 3.75rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.15rem, 3vw, 1.875rem);
}

@media (min-width: 1024px) {
    h1 { font-size: 3.75rem; }
    h2 { font-size: 2.75rem; }
    h3 { font-size: 1.875rem; }
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--green-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--green-bright);
    text-shadow: 0 0 10px var(--green-glow);
}

.mono { font-family: var(--font-mono); }
.text-green { color: var(--green-primary); }
.text-amber { color: var(--amber); }
.text-red { color: var(--red); }
.text-dim { color: var(--text-dim); }
.text-secondary { color: var(--text-secondary); }

/* ========================================
   LAYOUT
======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container,
    .container-wide {
        padding: 0 24px;
    }
}

section {
    padding: var(--section-padding);
}

.section-alt {
    background: var(--bg-secondary);
}

/* ========================================
   NAVEGACIÓN
======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .nav {
        background: rgba(13, 17, 23, 0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

@media (min-width: 768px) {
    .nav {
        padding: 16px 24px;
    }
}

.nav-content {
    max-width: var(--container-wide);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-logo-img {
    height: 28px;
    width: auto;
}

.nav-logo:hover {
    opacity: 0.85;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-actions .nav-cta-btn {
    display: none;
}

@media (min-width: 768px) {
    .nav-actions .nav-cta-btn {
        display: inline-flex;
    }
}

/* Hamburger */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1003;
    position: relative;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
    .nav-hamburger {
        display: none;
    }
}

/* Nav Links */
.nav-links {
    display: none;
    list-style: none;
}

.nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 1002;
    padding: 80px 24px 40px;
}

.nav-links.open li {
    list-style: none;
}

.nav-links.open a {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-primary);
}

.nav-links.open a:hover {
    color: var(--green-primary);
}

.nav-mobile-cta {
    display: none;
}

.nav-links.open .nav-mobile-cta {
    display: block;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .nav-mobile-cta {
        display: none !important;
    }
    .nav-links {
        display: flex;
        gap: 32px;
    }

    .nav-links a {
        font-family: var(--font-mono);
        font-size: 0.875rem;
        color: var(--text-secondary);
        transition: var(--transition-fast);
    }

    .nav-links a:hover {
        color: var(--green-primary);
    }
}

/* ========================================
   BOTONES
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .btn {
        padding: 14px 32px;
        font-size: 0.9rem;
    }
}

.btn-primary {
    background: var(--green-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--green-bright);
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--green-glow);
    color: var(--bg-primary);
    text-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 0.9rem;
    width: 100%;
}

@media (min-width: 480px) {
    .btn-large {
        width: auto;
        padding: 18px 48px;
        font-size: 1rem;
    }
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .btn-small {
        padding: 10px 20px;
    }
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 80px 16px 48px;
    position: relative;
}

@media (min-width: 768px) {
    .hero {
        padding: 120px 24px 80px;
    }
}

.hero-content {
    max-width: var(--container-wide);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    overflow: hidden;
}

@media (min-width: 1000px) {
    .hero-content {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 64px;
    }
}

.hero-text {
    text-align: center;
    min-width: 0;
    overflow: hidden;
}

@media (min-width: 900px) {
    .hero-text {
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 24px;
    }
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--green-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .hero h1 {
        margin-bottom: 20px;
    }
}

.hero h1 .highlight {
    color: var(--green-primary);
    position: relative;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 32px;
    }
}

@media (min-width: 900px) {
    .hero-subtitle {
        margin-left: 0;
        margin-right: auto;
    }
}

/* Hero Terminal Full */
.hero-terminal-full {
    margin: 24px 0;
    max-width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-terminal-full {
        margin: 32px 0;
    }
}

.hero-terminal-full .terminal {
    margin: 0;
    max-width: 100%;
}

.hero-terminal-full .terminal-body {
    font-size: 0.65rem;
    padding: 12px;
}

@media (min-width: 480px) {
    .hero-terminal-full .terminal-body {
        font-size: 0.8rem;
        padding: 16px;
    }
}

@media (min-width: 900px) {
    .hero-terminal-full .terminal-body {
        font-size: 0.95rem;
        padding: 20px;
    }
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

@media (min-width: 480px) {
    .hero-ctas {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .hero-ctas {
        margin-bottom: 40px;
    }
}

@media (min-width: 900px) {
    .hero-ctas {
        justify-content: flex-start;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .hero-stats {
        gap: 24px;
        padding-top: 32px;
    }
}

.stat {
    text-align: center;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

@media (min-width: 1000px) {
    .stat {
        text-align: left;
        padding: 20px 24px;
    }
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-primary);
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 1.75rem;
    }
}

@media (min-width: 1000px) {
    .stat-value {
        font-size: 2.25rem;
    }
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .stat-label {
        font-size: 0.85rem;
        margin-top: 8px;
    }
}

@media (min-width: 1000px) {
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Hero Book */
.hero-book {
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

@media (min-width: 1000px) {
    .hero-book {
        order: 0;
    }
}

.book-mockup {
    max-width: 240px;
    width: 100%;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

@media (min-width: 480px) {
    .book-mockup {
        max-width: 300px;
    }
}

@media (min-width: 1000px) {
    .book-mockup {
        max-width: 420px;
    }
}

@media (min-width: 1200px) {
    .book-mockup {
        max-width: 480px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ========================================
   TERMINAL / CODE BLOCKS
======================================== */
.terminal {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    overflow-x: auto;
    margin: 20px auto;
    max-width: min(700px, 100%);
    text-align: left;
}

@media (min-width: 768px) {
    .terminal {
        margin: 24px auto;
    }
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .terminal-header {
        gap: 8px;
        padding: 12px 16px;
    }
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .terminal-dot {
        width: 12px;
        height: 12px;
    }
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

@media (min-width: 768px) {
    .terminal-title {
        font-size: 0.75rem;
    }
}

.terminal-body {
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    line-height: 1.7;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 480px) {
    .terminal-body {
        font-size: 0.8rem;
        padding: 16px;
        line-height: 1.8;
    }
}

@media (min-width: 768px) {
    .terminal-body {
        font-size: 0.85rem;
        padding: 20px;
    }
}

.terminal-line {
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
}

.terminal-comment { color: var(--text-dim); }
.terminal-keyword { color: var(--amber); }
.terminal-string { color: var(--green-primary); }
.terminal-output { color: var(--green-bright); }

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--green-primary);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ========================================
   CARDS
======================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition-normal);
}

@media (min-width: 768px) {
    .card {
        padding: 24px;
    }
}

.card:hover {
    border-color: var(--green-primary);
    background: var(--bg-card-hover);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 16px;
    color: var(--green-primary);
    transition: var(--transition-normal);
}

@media (min-width: 768px) {
    .card-icon {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--green-primary);
    transition: var(--transition-normal);
}

@media (min-width: 768px) {
    .card-icon svg {
        width: 28px;
        height: 28px;
    }
}

.card:hover .card-icon {
    border-color: var(--green-primary);
    box-shadow: 0 0 20px var(--green-glow);
}

.card:hover .card-icon svg {
    stroke: var(--green-bright);
}

.card h3 {
    margin-bottom: 12px;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* ========================================
   PROBLEMA SECTION
======================================== */
.problem-list {
    list-style: none;
    margin: 24px 0;
}

@media (min-width: 768px) {
    .problem-list {
        margin: 32px 0;
    }
}

.problem-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .problem-item {
        gap: 16px;
        padding: 20px 0;
    }
}

.problem-item:last-child {
    border-bottom: none;
}

.problem-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--red);
    font-size: 1.25rem;
}

.problem-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.problem-text strong {
    color: var(--text-primary);
}

/* ========================================
   SOLUCIÓN / INSIGHT SECTION
======================================== */
.insight-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--green-primary);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .insight-box {
        padding: 40px;
        margin: 40px 0;
    }
}

.insight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-primary), var(--green-bright));
}

.insight-quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .insight-quote {
        font-size: 1.25rem;
    }
}

.insight-author {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-dim);
}

/* ========================================
   AUTOR SECTION
======================================== */
.author-section {
    padding: var(--section-padding);
}

.author-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

@media (min-width: 768px) {
    .author-card {
        grid-template-columns: 200px 1fr;
        gap: 40px;
    }
}

.author-image {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid var(--green-primary);
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .author-image {
        width: 200px;
        height: 200px;
    }
}

@media (min-width: 900px) {
    .author-image {
        width: 240px;
        height: 240px;
    }
}

.author-info h3 {
    margin-bottom: 8px;
}

.author-title {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--green-primary);
    margin-bottom: 20px;
}

.author-bio {
    color: var(--text-secondary);
    line-height: 1.8;
}

.author-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.credential {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.credential-icon {
    color: var(--green-primary);
}

/* ========================================
   CONTENIDO DEL LIBRO
======================================== */
.toc-section {
    padding: var(--section-padding);
}

.chapter-list {
    margin: 32px 0;
}

@media (min-width: 768px) {
    .chapter-list {
        margin: 40px 0;
    }
}

.chapter-group {
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .chapter-group {
        margin-bottom: 32px;
    }
}

.chapter-group-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .chapter-group-title {
        font-size: 0.75rem;
        margin-bottom: 16px;
    }
}

.chapter-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chapter-item:hover {
    border-color: var(--green-primary);
}

.chapter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

@media (min-width: 768px) {
    .chapter-header {
        gap: 16px;
        padding: 16px 20px;
    }
}

.chapter-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--green-primary);
    min-width: 40px;
}

@media (min-width: 768px) {
    .chapter-number {
        font-size: 0.75rem;
        min-width: 50px;
    }
}

.chapter-title {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .chapter-title {
        font-size: 0.95rem;
    }
}

.chapter-arrow {
    color: var(--text-dim);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.chapter-item.active .chapter-arrow {
    transform: rotate(90deg);
    color: var(--green-primary);
}

.chapter-content {
    display: none;
    padding: 0 16px 16px 68px;
}

@media (min-width: 768px) {
    .chapter-content {
        padding: 0 20px 20px 86px;
    }
}

.chapter-item.active .chapter-content {
    display: block;
}

.chapter-content ul {
    list-style: none;
}

.chapter-content li {
    padding: 5px 0;
    color: var(--text-secondary);
    font-size: 0.825rem;
}

@media (min-width: 768px) {
    .chapter-content li {
        padding: 6px 0;
        font-size: 0.875rem;
    }
}

.chapter-content li::before {
    content: '>';
    color: var(--green-primary);
    margin-right: 10px;
    font-family: var(--font-mono);
}

/* ========================================
   SCRIPTS / BONUS SECTION
======================================== */
.script-preview {
    background: var(--bg-card);
    border-left: 3px solid var(--green-primary);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

@media (min-width: 768px) {
    .script-preview {
        padding: 20px 24px;
        margin: 24px 0;
    }
}

.script-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .script-label {
        font-size: 0.7rem;
        margin-bottom: 12px;
    }
}

.script-text {
    font-style: italic;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .script-text {
        font-size: 1rem;
    }
}

.script-note {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 12px;
}

/* ========================================
   PRICING SECTION
======================================== */
.pricing-section {
    padding: var(--section-padding);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin-top: 48px;
    }
}

@media (min-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 20px;
    position: relative;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .pricing-card {
        padding: 32px 24px;
    }
}

.pricing-card:hover {
    border-color: var(--green-primary);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--green-primary);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(63, 185, 80, 0.05) 100%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-primary);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .pricing-badge {
        font-size: 0.7rem;
    }
}

.pricing-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .pricing-name {
        font-size: 0.8rem;
    }
}

.pricing-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .pricing-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
}

.pricing-price {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .pricing-price {
        margin-bottom: 24px;
    }
}

.price-current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-primary);
}

@media (min-width: 768px) {
    .price-current {
        font-size: 2.5rem;
    }
}

.price-original {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-left: 8px;
}

@media (min-width: 768px) {
    .price-original {
        font-size: 1rem;
    }
}

.pricing-features {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
}

@media (min-width: 768px) {
    .pricing-features {
        margin-bottom: 24px;
    }
}

.pricing-features li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.825rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

@media (min-width: 768px) {
    .pricing-features li {
        padding: 8px 0;
        font-size: 0.875rem;
        gap: 10px;
    }
}

.pricing-features li::before {
    content: '\2713';
    color: var(--green-primary);
    font-weight: bold;
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: var(--text-dim);
}

.pricing-features li.disabled::before {
    content: '\2014';
    color: var(--text-dim);
}

.pricing-cta {
    margin-top: auto;
}

.pricing-cta form {
    width: 100%;
}

.pricing-cta .btn {
    width: 100%;
}

/* ========================================
   GARANTÍA SECTION
======================================== */
.guarantee-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    margin: 32px 0;
}

@media (min-width: 768px) {
    .guarantee-box {
        padding: 40px;
        margin: 48px 0;
    }
}

.guarantee-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border: 2px solid var(--green-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .guarantee-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 24px;
        font-size: 1.75rem;
    }
}

.guarantee-title {
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .guarantee-title {
        margin-bottom: 16px;
    }
}

.guarantee-text {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   FAQ SECTION
======================================== */
.faq-section {
    padding: var(--section-padding);
    padding-bottom: 0;
}

.faq-bridge {
    text-align: center;
    padding: 48px 16px 0;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.faq-bridge .bridge-arrow {
    display: block;
    font-size: 1.5rem;
    margin-top: 12px;
    color: var(--green-primary);
    animation: bridgePulse 2s ease-in-out infinite;
}

@keyframes bridgePulse {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(6px); }
}

.faq-list {
    margin-top: 32px;
}

@media (min-width: 768px) {
    .faq-list {
        margin-top: 40px;
    }
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    gap: 12px;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .faq-question {
        padding: 24px 0;
    }
}

.faq-question h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

@media (min-width: 768px) {
    .faq-question h4 {
        font-size: 1rem;
    }
}

.faq-icon {
    color: var(--text-dim);
    font-size: 1.25rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--green-primary);
}

.faq-answer {
    display: none;
    padding-bottom: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .faq-answer {
        padding-bottom: 24px;
    }
}

.faq-item.active .faq-answer {
    display: block;
}

/* ========================================
   CTA FINAL
======================================== */
.final-cta {
    padding: 32px 16px 64px;
    text-align: center;
}

@media (min-width: 768px) {
    .final-cta {
        padding: 40px 24px 100px;
    }
}

.final-cta h2 {
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .final-cta h2 {
        margin-bottom: 48px;
    }
}

/* Options comparison */
.final-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 32px;
}

@media (min-width: 768px) {
    .final-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin-bottom: 48px;
    }
}

.option {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
}

@media (min-width: 768px) {
    .option {
        padding: 32px;
    }
}

.option.featured {
    border-color: var(--green-primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(63, 185, 80, 0.05) 100%);
}

.option-header {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .option-header {
        font-size: 0.75rem;
    }
}

.option-a .option-header {
    color: var(--text-dim);
}

.option-b .option-header {
    color: var(--green-primary);
}

.option-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .option-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
}

.option-list {
    list-style: none;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .option-list {
        margin-bottom: 24px;
    }
}

.option-list li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .option-list li {
        padding: 8px 0;
        padding-left: 24px;
        font-size: 0.95rem;
    }
}

.option-a .option-list li::before {
    content: '\2717';
    position: absolute;
    left: 0;
    color: var(--red);
}

.option-b .option-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--green-primary);
}

.option-cost {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .option-cost {
        font-size: 1rem;
    }
}

.option-a .option-cost {
    color: var(--red);
}

.option-cost.green {
    color: var(--green-primary);
    font-weight: 600;
}

/* Final CTA Content */
.final-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.final-message {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .final-message {
        font-size: 1.2rem;
        margin-bottom: 32px;
    }
}

.final-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 480px) {
    .final-cta-buttons {
        flex-direction: row;
        gap: 16px;
    }
}

/* ========================================
   FOOTER
======================================== */
.footer {
    padding: 32px 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

@media (min-width: 768px) {
    .footer {
        padding: 40px 24px;
    }
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-logo-img {
    height: 28px;
    width: auto;
}

@media (min-width: 768px) {
    .footer-logo {
        margin-bottom: 16px;
    }

    .footer-logo-img {
        height: 32px;
    }
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .footer-links {
        gap: 24px;
        margin-bottom: 24px;
    }
}

.footer-links a {
    font-size: 0.825rem;
    color: var(--text-dim);
}

@media (min-width: 768px) {
    .footer-links a {
        font-size: 0.875rem;
    }
}

.footer-links a:hover {
    color: var(--green-primary);
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--text-dim);
}

@media (min-width: 768px) {
    .footer-copy {
        font-size: 0.75rem;
    }
}

/* ========================================
   SECTION HEADERS
======================================== */
.section-header {
    text-align: center;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 48px;
    }
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .section-label {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
}

.section-header h2 {
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .section-header h2 {
        margin-bottom: 16px;
    }
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   UTILITIES
======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-4 { margin-top: 32px; }

.hidden {
    display: none;
}

@media (max-width: 767px) {
    .desktop-only {
        display: none;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}

/* ========================================
   ANIMATIONS
======================================== */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal - only hide when JS is ready */
.js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-ready [data-reveal].revealed,
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   GRACIAS PAGE (Post-compra)
======================================== */
.gracias-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.gracias-logo {
    height: 32px;
    width: auto;
}

@media (min-width: 768px) {
    .gracias-header {
        padding: 24px 40px;
    }
    .gracias-logo {
        height: 38px;
    }
}

.gracias-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px 64px;
    text-align: center;
}

@media (min-width: 768px) {
    .gracias-page {
        padding: 64px 24px 80px;
    }
}

.gracias-icon {
    width: 64px;
    height: 64px;
    background: var(--green-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2rem;
    color: var(--bg-primary);
}

@media (min-width: 768px) {
    .gracias-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 32px;
        font-size: 2.5rem;
    }
}

.gracias-content {
    max-width: 680px;
    width: 100%;
}

.gracias-content h1 {
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .gracias-content h1 {
        margin-bottom: 16px;
    }
}

.gracias-subtitle {
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .gracias-subtitle {
        margin-bottom: 32px;
    }
}

.gracias-content p {
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .gracias-content p {
        margin-bottom: 32px;
    }
}

.gracias-mentoria-box {
    background: var(--bg-card);
    border: 1px solid var(--green-primary);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .gracias-mentoria-box {
        padding: 32px;
        margin-top: 32px;
    }
}

.download-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .download-box {
        padding: 32px;
        margin-top: 32px;
    }
}

.download-box h3 {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .download-box h3 {
        margin-bottom: 24px;
    }
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 400px) {
    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ========================================
   SOLUCIÓN SECTION - ENHANCED
======================================== */
.results-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 32px 0;
}

@media (min-width: 768px) {
    .results-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin: 48px 0;
    }
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: var(--transition-normal);
}

@media (min-width: 768px) {
    .result-card {
        padding: 28px;
        gap: 16px;
    }
}

.result-card:hover {
    border-color: var(--green-primary);
    transform: translateY(-2px);
}

.result-card.featured {
    border-color: var(--green-primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(63, 185, 80, 0.08) 100%);
}

.result-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .result-icon {
        font-size: 2rem;
    }
}

.result-content {
    flex: 1;
}

.result-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-primary);
    line-height: 1;
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .result-number {
        font-size: 2rem;
        margin-bottom: 8px;
    }
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .result-label {
        font-size: 0.9rem;
    }
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 32px 0;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 48px 0;
    }
}

.benefit-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-fast);
}

@media (min-width: 768px) {
    .benefit-item {
        gap: 16px;
        padding: 20px;
    }
}

.benefit-item:hover {
    border-color: var(--green-primary);
}

.benefit-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(63, 185, 80, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-primary);
    font-weight: 600;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .benefit-check {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

.benefit-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .benefit-text {
        font-size: 0.95rem;
    }
}

.benefit-text strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* Comparison Block */
.comparison-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 20px;
    margin: 32px 0;
}

@media (min-width: 768px) {
    .comparison-block {
        padding: 40px;
        margin: 48px 0;
    }
}

.comparison-block h3 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .comparison-block h3 {
        margin-bottom: 32px;
        font-size: 1.25rem;
    }
}

.comparison-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@media (min-width: 700px) {
    .comparison-grid {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
}

.comparison-col {
    flex: 1;
    max-width: 280px;
    width: 100%;
}

.comparison-header {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .comparison-header {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .comparison-list li {
        gap: 12px;
        padding: 10px 0;
        font-size: 0.95rem;
    }
}

.step-num {
    width: 22px;
    height: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--green-primary);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .step-num {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}

.comparison-arrow {
    font-size: 1.5rem;
    color: var(--green-primary);
    transform: rotate(90deg);
}

@media (min-width: 700px) {
    .comparison-arrow {
        font-size: 2rem;
        transform: none;
    }
}

.tag-easy {
    background: rgba(63, 185, 80, 0.15);
    color: var(--green-primary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

@media (min-width: 768px) {
    .tag-easy {
        font-size: 0.7rem;
        padding: 2px 8px;
        margin-left: 8px;
    }
}

/* Differentiators */
.differentiators {
    margin: 32px 0;
}

@media (min-width: 768px) {
    .differentiators {
        margin: 48px 0;
    }
}

.differentiators h3 {
    text-align: center;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .differentiators h3 {
        margin-bottom: 32px;
    }
}

.differentiators .card h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .differentiators .card h4 {
        margin-bottom: 12px;
        font-size: 1.1rem;
    }
}

/* CTA Inline */
.cta-inline {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .cta-inline {
        margin-top: 48px;
        padding-top: 48px;
    }
}

.cta-note {
    margin-top: 12px;
    font-size: 0.825rem;
    color: var(--text-dim);
}

@media (min-width: 768px) {
    .cta-note {
        margin-top: 16px;
        font-size: 0.875rem;
    }
}

/* ========================================
   AUTHOR SECTION - NEW LAYOUT
======================================== */
.author-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 900px) {
    .author-layout {
        grid-template-columns: 280px 1fr;
        gap: 64px;
    }
}

.author-left {
    text-align: center;
}

@media (min-width: 900px) {
    .author-left {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}

.author-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .author-image-wrapper {
        margin-bottom: 32px;
    }
}

.author-badge-verified {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--green-primary);
    color: var(--bg-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 3px solid var(--bg-primary);
}

@media (min-width: 768px) {
    .author-badge-verified {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.author-social a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

@media (min-width: 768px) {
    .author-social a {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

.author-social a:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.author-details h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .author-details h3 {
        font-size: 1.75rem;
    }
}

.author-handle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--green-primary);
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .author-handle {
        font-size: 1rem;
        margin-bottom: 32px;
    }
}

.author-story {
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .author-story {
        margin-bottom: 32px;
    }
}

.author-story p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .author-story p {
        line-height: 1.8;
        margin-bottom: 16px;
        font-size: 1.05rem;
    }
}

.author-story p:last-child {
    margin-bottom: 0;
}

.author-story p strong {
    color: var(--red);
}

.author-highlight {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(63, 185, 80, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--green-primary);
    border-radius: 0 8px 8px 0;
    padding: 18px 20px;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .author-highlight {
        padding: 24px;
        margin: 24px 0;
    }
}

.author-highlight p {
    color: var(--text-primary);
    font-style: italic;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .author-highlight p {
        font-size: 1.05rem;
        line-height: 1.7;
    }
}

.author-credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.credential-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .credential-item {
        padding: 16px;
    }
}

.credential-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 2px;
}

@media (min-width: 768px) {
    .credential-value {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }
}

.credential-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .credential-label {
        font-size: 0.75rem;
    }
}

/* Author Timeline Compact */
.author-timeline-compact {
    text-align: left;
}

.timeline-item-compact {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .timeline-item-compact {
        gap: 12px;
        padding: 10px 0;
    }
}

.timeline-item-compact:last-child {
    border-bottom: none;
}

.timeline-item-compact.featured {
    background: rgba(63, 185, 80, 0.1);
    margin: 8px -10px 0;
    padding: 10px;
    border-radius: 8px;
    border-bottom: none;
}

@media (min-width: 768px) {
    .timeline-item-compact.featured {
        margin: 8px -12px 0;
        padding: 12px;
    }
}

.timeline-year-compact {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--amber);
    min-width: 36px;
}

@media (min-width: 768px) {
    .timeline-year-compact {
        font-size: 0.75rem;
        min-width: 40px;
    }
}

.timeline-text-compact {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .timeline-text-compact {
        font-size: 0.85rem;
    }
}

.timeline-item-compact.featured .timeline-text-compact {
    color: var(--green-primary);
    font-weight: 500;
}

/* Author Right */
.author-right {}

.author-name {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .author-name {
        font-size: 2rem;
        margin-bottom: 8px;
    }
}

/* Author Achievements */
.author-achievements {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .author-achievements {
        padding: 24px;
        margin-bottom: 32px;
    }
}

.author-achievements h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .author-achievements h4 {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

.achievements-list {
    list-style: none;
}

.achievements-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

@media (min-width: 768px) {
    .achievements-list li {
        gap: 16px;
        padding: 12px 0;
    }
}

.achievements-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.achievement-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--amber);
    min-width: 40px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .achievement-year {
        font-size: 0.8rem;
        min-width: 45px;
    }
}

.achievement-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .achievement-text {
        font-size: 0.9rem;
    }
}


/* ========================================
   STORYTELLING ELEMENTS
======================================== */

/* Story Block */
.story-block {
    max-width: 700px;
    margin: 0 auto 32px;
    padding: 24px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

@media (min-width: 768px) {
    .story-block {
        margin-bottom: 48px;
        padding: 40px;
    }
}

.story-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

@media (min-width: 768px) {
    .story-text {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 16px;
    }
}

.story-text:last-child {
    margin-bottom: 0;
}

.story-text.highlight-text {
    color: var(--green-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .story-text.highlight-text {
        font-size: 1.25rem;
    }
}

.story-text.dim {
    color: var(--text-dim);
    font-style: italic;
}

.story-text em {
    color: var(--text-primary);
}

/* Cost Block */
.cost-block {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .cost-block {
        margin-top: 48px;
        padding-top: 48px;
    }
}

.cost-block h3 {
    text-align: center;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .cost-block h3 {
        margin-bottom: 24px;
    }
}

.cost-note {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .cost-note {
        margin-top: 24px;
        font-size: 1.1rem;
    }
}

.cost-note strong {
    color: var(--text-primary);
    display: block;
    margin-top: 8px;
}

/* Key Insight */
.key-insight {
    max-width: 750px;
    margin: 0 auto 32px;
}

@media (min-width: 768px) {
    .key-insight {
        margin-bottom: 48px;
    }
}

.insight-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

@media (min-width: 768px) {
    .insight-intro {
        font-size: 1.15rem;
        line-height: 1.8;
        margin-bottom: 16px;
    }
}

.insight-intro.highlight-text {
    color: var(--amber);
    font-weight: 500;
}

/* Learn Section */
.learn-section {
    margin: 48px 0;
}

@media (min-width: 768px) {
    .learn-section {
        margin: 64px 0;
    }
}

.learn-section h3 {
    text-align: center;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .learn-section h3 {
        margin-bottom: 12px;
    }
}

.learn-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .learn-intro {
        margin-bottom: 32px;
    }
}

/* Comparison Intro */
.comparison-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .comparison-intro {
        margin-bottom: 32px;
    }
}

/* Differentiators Intro */
.diff-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .diff-intro {
        margin-bottom: 32px;
    }
}

/* Problem list enhanced */
.problem-list .problem-text {
    flex: 1;
}

.problem-list .problem-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .problem-list .problem-text strong {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }
}

.problem-list .problem-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .problem-list .problem-text p {
        font-size: 0.95rem;
    }
}

/* Author Timeline (legacy) */
.author-timeline {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .author-timeline {
        margin-top: 40px;
        padding-top: 40px;
    }
}

.author-timeline h4 {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .author-timeline h4 {
        font-size: 1rem;
        margin-bottom: 24px;
    }
}

.timeline-items {
    position: relative;
    padding-left: 24px;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
    padding-left: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 8px;
    width: 10px;
    height: 10px;
    background: var(--green-primary);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--amber);
    margin-bottom: 4px;
}

.timeline-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-text strong {
    color: var(--text-primary);
}

/* ========================================
   MOBILE NAV BODY LOCK
======================================== */
body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}
