/* ============================================
   COSECHANDO IGUALDAD — DESIGN SYSTEM
   Vault: Obsidian > Presentacion_Final
   Slides: 15 | ISO 9001:2015 + ISO 14001:2015
   ============================================ */

:root {
    /* ---- Palette: Tierra, Cosecha, Vida ---- */
    --soil-deep:    #1A2421;
    --soil-dark:    #243330;
    --forest:       #2D4A3E;
    --leaf:         #3D6B4E;
    --leaf-light:   #5B8C6F;
    --terracotta:   #C85A32;
    --terracotta-bright: #D46A44;
    --gold:         #E8A838;
    --gold-light:   #F0C060;
    --cream:        #F5F0E8;
    --cream-warm:   #EDE4D6;
    --sand:         #E2D5C0;
    --white:        #FAF9F6;
    --charcoal:     #2D2D2D;
    --muted:        #8A8278;

    /* ---- Typography ---- */
    --font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-body:    'DM Sans', 'Helvetica Neue', 'Arial', sans-serif;
    --font-mono:    'SF Mono', 'Fira Code', monospace;

    /* ---- Spacing ---- */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* ---- Timing ---- */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--cream);
    overflow-x: hidden;
    cursor: none;
}

/* ---- CUSTOM CURSOR ---- */
.cursor {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--terracotta);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out;
}
.cursor-follower {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--terracotta);
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
    transition: transform 0.3s var(--ease-out-expo), width 0.3s, height 0.3s;
}
.cursor--hover .cursor-follower { width: 60px; height: 60px; background: rgba(200, 90, 50, 0.1); }
.cursor--hidden .cursor, .cursor--hidden .cursor-follower { opacity: 0; }

/* ---- SCROLL SNAP (Slides) ---- */
body {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}
body::-webkit-scrollbar { display: none; }

.slide {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slide--portada { background: var(--soil-deep); color: var(--white); }
.slide--dark    { background: var(--soil-dark); color: var(--white); }
.slide--light   { background: var(--cream); color: var(--charcoal); }
.slide--accent  { background: var(--forest); color: var(--white); }

.slide__content {
    width: 100%;
    max-width: 1280px;
    padding: var(--space-2xl) var(--space-xl);
    position: relative;
    z-index: 10;
}

/* ---- GRID ---- */
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-xl); align-items: start; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.align-center { text-align: center; }

/* ---- PROGRESS BAR ---- */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--terracotta);
    z-index: 200;
    width: 0%;
    transition: width 0.1s linear;
}

/* ---- NAV DOTS ---- */
.nav-dots {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.nav-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(138, 130, 120, 0.4);
    border: 1.5px solid rgba(138, 130, 120, 0.5);
    transition: all 0.35s var(--ease-out-expo);
    cursor: pointer;
}
.nav-dot.active { background: var(--terracotta); border-color: var(--terracotta); transform: scale(1.4); }
.nav-dot:hover { background: var(--terracotta-bright); border-color: var(--terracotta-bright); transform: scale(1.2); }

/* ---- LABEL ---- */
.slide__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: var(--space-lg);
}
.slide__label--light { color: rgba(255, 255, 255, 0.45); }

/* ---- HEADING ---- */
.slide__heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}
.slide__heading--light { color: var(--white); }

/* ---- TEXT ---- */
.slide__text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: var(--space-lg);
    max-width: 640px;
}
.slide--dark .slide__text { color: rgba(255, 255, 255, 0.6); }
.slide__text--light { color: rgba(255, 255, 255, 0.7); }
.slide__text strong { color: var(--gold); font-weight: 600; }

/* ---- TAG ---- */
.tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
}
.tag--gold { background: rgba(232, 168, 56, 0.12); color: var(--gold); border: 1px solid rgba(232, 168, 56, 0.3); }
.tag--outline { background: transparent; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.15); }

/* ---- ANIMATIONS ---- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.35s; }
.delay-4 { transition-delay: 0.5s; }

/* ==================== SLIDE 1: PORTADA ==================== */
.portada__top {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-md);
    right: var(--space-md);
    display: flex;
    justify-content: space-between;
}

.portada__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.portada__emblem { margin-bottom: var(--space-sm); }
.emblem { width: 80px; height: 80px; opacity: 0.6; animation: emblem-rotate 30s linear infinite; }
@keyframes emblem-rotate { to { transform: rotate(360deg); } }

.portada__title { text-align: center; padding: var(--space-2xl) 0; }
.portada__title .line {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: -0.03em;
}
.portada__title .line--1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--gold);
    opacity: 0.8;
    font-style: italic;
    margin-bottom: -1rem;
}
.portada__title .line--2 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1;
}

.portada__subtitle {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
    text-align: center;
    margin-top: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.portada__footer {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-md);
    right: var(--space-md);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
}
.portada__footer strong { color: rgba(255, 255, 255, 0.6); font-weight: 400; }
.portada__team { display: flex; flex-direction: column; gap: 0.2rem; }

.bg-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    z-index: 1;
}
.bg-element--1 { width: 600px; height: 600px; background: var(--terracotta); top: -200px; right: -200px; }
.bg-element--2 { width: 500px; height: 500px; background: var(--gold); bottom: -250px; left: -150px; }
.bg-element--3 { width: 350px; height: 350px; background: var(--leaf); top: 40%; left: 60%; }

/* ==================== SLIDE 2: RESUMEN EJECUTIVO ==================== */
.slide__highlights { display: flex; flex-direction: column; gap: var(--space-md); }
.hl-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hl-icon {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--terracotta);
    letter-spacing: 0.1em;
}
.hl-item p { font-size: 0.95rem; line-height: 1.6; color: rgba(255,255,255,0.6); }

/* ==================== SLIDE 3: TERRITORIO ==================== */
.territory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.territory-card {
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}
.territory-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }

.territory-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
}
.card--cordoba::before { background: var(--terracotta); }
.card--bolivar::before  { background: var(--forest); }
.card--sucre::before    { background: var(--gold); }

.card__region {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}
.card__towns { font-size: 0.8rem; color: var(--muted); margin-bottom: var(--space-sm); }
.card__crops {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.card__context { font-size: 0.8rem; color: var(--muted); margin-bottom: var(--space-sm); line-height: 1.5; }
.card__highlight {
    font-size: 0.8rem;
    color: var(--charcoal);
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}
.card__icon { color: var(--gold); }

/* ==================== SLIDE 4: MATRIOSHKA ==================== */
.matrioshka {
    display: flex;
    justify-content: center;
}
.matrioshka__svg { width: 100%; max-width: 600px; }

/* ==================== SLIDE 5: GRAN DOCUMENTAL ==================== */
.doc-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.spec {
    background: rgba(255,255,255,0.04);
    padding: var(--space-md);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}
.spec__key {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.35);
    margin-bottom: var(--space-xs);
}
.spec__val {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
}

.arcs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}
.arc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.arc__num {
    display: inline-block;
    width: 22px; height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: rgba(232,168,56,0.15);
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 600;
    margin-right: var(--space-sm);
}

/* ==================== SLIDE 6: KITS ==================== */
.kit-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}
.kit-item {
    background: var(--white);
    padding: var(--space-lg) var(--space-md);
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    transition: transform 0.25s var(--ease-out-expo);
}
.kit-item:hover { transform: translateY(-5px); }
.kit-item__icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.kit-item__title { font-weight: 600; font-size: 0.85rem; margin-bottom: var(--space-xs); color: var(--forest); }
.kit-item__detail { font-size: 0.7rem; color: var(--muted); line-height: 1.5; }

/* ==================== SLIDE 7: SPIN-OFFS ==================== */
.spinoff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.spinoff-card {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: var(--space-xl);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s;
}
.spinoff-card:hover { background: rgba(255,255,255,0.1); }
.spinoff-card__emoji { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.spinoff-card__title { font-weight: 700; font-size: 1.1rem; margin-bottom: var(--space-xs); color: var(--gold); }
.spinoff-card__loc { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.4); margin-bottom: var(--space-md); }
.spinoff-card__text { font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.6); }

/* ==================== SLIDE 8: INFOGRAPHICS ==================== */
.infographics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}
.infographic {
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-xl);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 2px 16px rgba(0,0,0,0.03);
}
.infographic h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    color: var(--forest);
}
.chart { width: 100%; }

.radar-chart {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.radar-axis {
    background: rgba(0,0,0,0.03);
    border-radius: 6px;
    overflow: hidden;
    height: 36px;
}
.radar-bar {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    background: var(--forest);
    border-radius: 6px;
}

/* ==================== SLIDE 9: ISO ==================== */
.iso-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.iso-col { padding: 0; }
.iso-badge {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    padding: var(--space-sm) var(--space-md);
    border-radius: 6px;
    margin-bottom: var(--space-lg);
    display: inline-block;
}
.iso--9001 { background: rgba(200,90,50,0.15); color: var(--terracotta-bright); border: 1px solid rgba(200,90,50,0.25); }
.iso--14001 { background: rgba(91,140,111,0.15); color: var(--leaf-light); border: 1px solid rgba(91,140,111,0.25); }
.iso-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.iso-list li {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    padding-left: 1.2rem;
    position: relative;
}
.iso-list li::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--terracotta);
    border-radius: 50%;
    position: absolute;
    left: 0; top: 0.55rem;
}

/* ==================== SLIDE 10: EQUIPO ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}
.team-card {
    background: var(--white);
    border-radius: 10px;
    padding: var(--space-lg) var(--space-md);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 2px 12px rgba(0,0,0,0.02);
}
.team-card--lead { grid-column: span 2; border-left: 3px solid var(--terracotta); }
.team-card--staff { grid-column: span 1; }
.team-card__name { font-weight: 700; font-size: 0.9rem; color: var(--charcoal); margin-bottom: 0.2rem; }
.team-card__role { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--terracotta); font-weight: 600; margin-bottom: var(--space-sm); }
.team-card__desc { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }

/* ==================== SLIDE 11: PRESUPUESTO ==================== */
.budget-layout {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
    margin-bottom: var(--space-lg);
}
.budget-donut { flex-shrink: 0; }
.donut-svg { width: 200px; height: 200px; }
.budget-legend { display: flex; flex-direction: column; gap: 0.5rem; }
.legend-item {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}
.legend-color {
    width: 10px; height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ==================== SLIDE 12: GANTT ==================== */
.gantt {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-xl);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 2px 16px rgba(0,0,0,0.03);
}
.gantt-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    min-height: 38px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.gantt-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--charcoal);
    padding: var(--space-xs) 0;
}
.gantt-bars {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    height: 100%;
    min-height: 32px;
    align-items: center;
}
.gantt-bar {
    height: 24px;
    border-radius: 4px;
    padding: 0 var(--space-sm);
    display: flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}
.gantt-bar--1 { background: var(--terracotta); }
.gantt-bar--2 { background: var(--gold); }
.gantt-bar--3 { background: var(--forest); }
.gantt-bar--4 { background: var(--leaf); }
.gantt-bar--5 { background: var(--terracotta-bright); }
.gantt-bar--6 { background: var(--leaf-light); }
.gantt-bar--7 { background: var(--gold-light); color: var(--charcoal); }
.gantt-bar--8 { background: var(--soil-dark); }

.gantt-scale {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: var(--space-xs) 0 var(--space-xs) 200px;
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* ==================== SLIDE 13: DIFUSIÓN ==================== */
.diffusion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}
.diff-card {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: var(--space-lg);
    border: 1px solid rgba(255,255,255,0.08);
}
.diff-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}
.diff-card p { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

.kpi-strip {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-lg);
}
.kpi { text-align: center; }
.kpi__val { display: block; font-size: 1.8rem; font-weight: 700; font-family: var(--font-display); color: var(--gold); }
.kpi__label { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.4); margin-top: 0.2rem; }

/* ==================== SLIDE 14: REFERENTES ==================== */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}
.ref-card {
    background: var(--white);
    border-radius: 8px;
    padding: var(--space-md);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 8px rgba(0,0,0,0.02);
}
.ref-card--featured { grid-column: span 2; border-left: 3px solid var(--terracotta); }
.ref-card--featured .ref-card__tag {
    display: inline-block;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(200,90,50,0.08);
    color: var(--terracotta);
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: var(--space-sm);
}
.ref-card h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.1rem; color: var(--charcoal); }
.ref-card em { font-size: 0.65rem; color: var(--muted); display: block; margin-bottom: var(--space-sm); }
.ref-card p { font-size: 0.72rem; color: var(--muted); line-height: 1.5; }

/* ==================== SLIDE 15: CIERRE ==================== */
.slide--closing .slide__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}
.commitments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem var(--space-md);
    justify-content: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    max-width: 700px;
}
.closing-quote {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-style: italic;
    color: rgba(255,255,255,0.5);
    max-width: 700px;
    text-align: center;
    line-height: 1.6;
    border: none;
    padding: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .territory-grid, .kit-grid, .spinoff-grid, .diffusion-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .team-card--lead { grid-column: span 3; }
    .ref-grid { grid-template-columns: repeat(2, 1fr); }
    .ref-card--featured { grid-column: span 2; }
    .infographics { grid-template-columns: 1fr; }
    .iso-cols { grid-template-columns: 1fr; }
    .doc-specs { grid-template-columns: repeat(2, 1fr); }
    .budget-layout { flex-direction: column; align-items: flex-start; }
    .gantt { overflow-x: auto; }
    .gantt-row { grid-template-columns: 140px 1fr; }
    .gantt-scale { padding-left: 140px; }
}

@media (max-width: 768px) {
    /* ---- Remove scroll-snap for tablets too ---- */
    body {
        height: auto;
        scroll-snap-type: none;
    }
    .slide {
        height: auto;
        min-height: 100vh;
        scroll-snap-align: none;
        overflow: visible;
        padding: var(--space-xl) 0;
    }
}

@media (max-width: 640px) {
    /* ---- Remove scroll-snap, allow natural long-scroll ---- */
    body {
        height: auto;
        scroll-snap-type: none;
        cursor: auto;
    }

    .slide {
        height: auto;
        min-height: 100vh;
        scroll-snap-align: none;
        overflow: visible;
        padding: var(--space-2xl) 0;
    }

    /* ---- Hide custom cursor on touch devices ---- */
    .cursor, .cursor-follower { display: none; }

    /* ---- Nav dots smaller and tighter ---- */
    .nav-dots { right: 0.5rem; gap: 0.4rem; }
    .nav-dot { width: 7px; height: 7px; }

    /* ---- General content spacing ---- */
    .slide__content {
        padding: var(--space-lg) var(--space-md);
    }
    .slide__heading {
        font-size: 1.6rem;
        margin-bottom: var(--space-md);
    }
    .slide__text {
        font-size: 0.95rem;
    }
    .slide__label {
        margin-bottom: var(--space-md);
    }

    /* ---- Grid collapse ---- */
    .grid-12 { grid-template-columns: 1fr; gap: var(--space-md); }
    .span-5, .span-7 { grid-column: span 1; }

    /* ---- SLIDE 1: PORTADA ---- */
    .slide--portada {
        padding: var(--space-xl) 0;
    }
    .slide--portada .slide__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        padding: var(--space-xl) var(--space-md);
    }
    .portada__top {
        position: relative;
        top: auto; left: auto; right: auto;
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    .portada__center {
        gap: var(--space-md);
    }
    .portada__title .line--1 {
        font-size: 1.2rem;
        margin-bottom: -0.5rem;
    }
    .portada__title .line--2 {
        font-size: 3rem;
    }
    .portada__subtitle {
        font-size: 0.9rem;
        padding: 0 var(--space-sm);
        margin-top: var(--space-sm);
    }
    .portada__footer {
        position: relative;
        bottom: auto; left: auto; right: auto;
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
        text-align: center;
    }
    .portada__team {
        align-items: center;
        text-align: center;
    }
    .portada__iso {
        font-size: 0.65rem;
    }

    .bg-element { opacity: 0.04; }

    /* ---- SLIDE 3: TERRITORIO ---- */
    .territory-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .territory-card { padding: var(--space-lg); }

    /* ---- SLIDE 4: MATRIOSHKA ---- */
    .matrioshka__svg { max-width: 100%; }

    /* ---- SLIDE 5: GRAN DOCUMENTAL ---- */
    .doc-specs { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
    .arcs { grid-template-columns: 1fr; }

    /* ---- SLIDE 6: KITS ---- */
    .kit-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .kit-item { padding: var(--space-lg) var(--space-md); }

    /* ---- SLIDE 7: SPIN-OFFS ---- */
    .spinoff-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .spinoff-card { padding: var(--space-lg); }

    /* ---- SLIDE 10: EQUIPO ---- */
    .team-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .team-card--lead { grid-column: span 1; }

    /* ---- SLIDE 11: PRESUPUESTO ---- */
    .budget-layout {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
    }
    .donut-svg { width: 160px; height: 160px; }

    /* ---- SLIDE 12: GANTT ---- */
    .gantt { padding: var(--space-md); overflow-x: auto; }
    .gantt-row { grid-template-columns: 100px 1fr; }
    .gantt-label { font-size: 0.65rem; }
    .gantt-scale { padding-left: 100px; }

    /* ---- SLIDE 13: DIFUSIÓN ---- */
    .diffusion-grid { grid-template-columns: 1fr; }
    .kpi-strip { flex-wrap: wrap; gap: var(--space-md); }

    /* ---- SLIDE 14: REFERENTES ---- */
    .ref-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .ref-card--featured { grid-column: span 1; }

    /* ---- SLIDE 15: CIERRE ---- */
    .slide--closing .slide__content {
        gap: var(--space-lg);
    }
    .commitments {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
        font-size: 0.8rem;
    }
    .commitments span:nth-child(even) {
        display: none; /* hide bullet separators, stack vertically */
    }
    .closing-quote {
        font-size: 1.1rem;
    }
}