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

:root {
    /* Mapeo a "Estetica Oscura" (Academy by Physica) */
    --black: #0D1B2A;          /* bg principal */
    --white: #FFFFFF;
    --off-white: #F5F5F5;
    --gray: #162236;           /* bg-card — fondo de slides */
    --gray-mid: #1C2E45;       /* bg-secondary */
    --bg-secondary: #1C2E45;
    --gray-light: #8A9BB0;     /* text-secondary */
    --accent: #8B0000;         /* accent-red — dominante de marca */
    --accent-hover: #A50000;
    --accent-blue: #2D6BE4;    /* azul secundario para datos/destacados */
    --accent-blue-hover: #3B7BF4;
    --border: #1E3A5F;         /* accent-border */
    --bg-tag: #1A3050;

    /* Verde rico — acento principal del pitch */
    --green-rich: #10B981;
    --green-rich-deep: #043D2F;             /* sólido darker, fallback */
    --green-rich-bg: rgba(4, 61, 47, 0.82); /* bg translúcido para cajas verdes */

    /* Amber highlight — ubicación + cupos */
    --amber: #fdd200;

    --shadow: 0 4px 32px rgba(0,0,0,0.35);
    --shadow-hover: 0 12px 48px rgba(0,0,0,0.55);

    --radius-card: 14px;
    --radius-btn: 12px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--black);
}

h1, h2, h3, h4 {
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.01em;
    font-weight: 800;
}

/* ===== LANDING PAGE (index.html) ===== */
.landing-body {
    background: var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.pitch-launch-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--white);
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 64px 56px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.pitch-launch-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-hover), 0 0 0 1px var(--accent);
    border-color: var(--accent);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(139,0,0,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.card-logo {
    height: 72px;
    margin-bottom: 36px;
    opacity: 0.95;
}

.card-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--green-rich);
    margin-bottom: 18px;
}

.pitch-launch-card h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--white);
}

.card-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-light);
    max-width: 420px;
    line-height: 1.5;
    white-space: nowrap;
}

.card-divider {
    width: 48px;
    height: 2px;
    background: var(--green-rich);
    margin: 28px 0;
    opacity: 0.8;
}

.card-cta {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--white);
    background: var(--green-rich-deep);
    border: 1px solid var(--green-rich-deep);
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    transition: background 0.3s, border-color 0.3s;
}

.pitch-launch-card:hover .card-cta {
    background: var(--green-rich);
    border-color: var(--green-rich);
}

.landing-footer {
    text-align: center;
    padding: 20px;
}

.landing-footer p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.1em;
}

/* ===== PRESENTATION (pitch.html) ===== */
.pitch-body {
    background: var(--black);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Deck */
.deck {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual slide */
.slide {
    display: none;
    position: absolute;
    inset: 0;
    background: var(--gray);
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideFade 0.4s ease;
}

.slide.active .slide-content {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 16:9 inner frame */
.slide-content {
    width: 100%;
    max-width: min(1280px, calc((100vh - 120px) * 16 / 9));
    padding: clamp(28px, 4.5vh, 56px) clamp(36px, 6vw, 88px);
    position: relative;
    z-index: 1;
}

.slide-content.slide-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Watermark logo bottom-right */
.slide-watermark {
    position: absolute;
    bottom: 28px;
    right: 36px;
    height: 32px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* Cover slide */
.slide-logo-big {
    height: 96px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.slide-hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: 0.005em;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--white);
    max-width: 1000px;
}

.slide-hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 400;
    color: var(--gray-light);
    margin-bottom: 0;
    line-height: 1.5;
    max-width: 680px;
}

.slide-hero-line {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 32px 0;
    opacity: 0.8;
}

.slide-hero-author {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Tags — estilo eyebrow */
.slide-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 18px;
}

.slide-tag--propuesta {
    color: var(--white);
    background: var(--accent-blue);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border: none;
}

/* Slide typography */
.slide h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--white);
}

.slide p {
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
    margin-bottom: 18px;
    max-width: 860px;
    font-weight: 400;
}

.slide p strong {
    color: var(--white);
    font-weight: 600;
}

/* Two column layout */
.slide-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 8px;
}

/* Table */
.slide-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.slide-table th {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
    padding: 14px 20px;
    background: var(--gray-mid);
    color: var(--gray-light);
    border-bottom: 1px solid var(--border);
}

.slide-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    color: rgba(255,255,255,0.75);
    vertical-align: top;
}

.slide-table tr:last-child td { border-bottom: none; }

.row-highlight td {
    background: var(--green-rich-bg);
    color: var(--white);
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.row-highlight td strong {
    color: var(--white);
    font-weight: 700;
}

/* UL compacto dentro de celdas de tabla (slide 4) */
.slide-table td ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slide-table td ul li {
    position: relative;
    padding: 4px 0 4px 14px;
    line-height: 1.45;
}

.slide-table td ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.75;
}

/* Footnote */
.slide-footnote {
    font-size: clamp(0.85rem, 1.1vw, 1rem) !important;
    color: var(--gray-light) !important;
    border-left: 2px solid var(--accent);
    padding-left: 16px;
    margin-top: 20px !important;
    font-style: normal;
    font-weight: 400;
}

/* Bullet list */
.slide-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    text-align: left;
}

.slide-bullets li {
    position: relative;
    padding: clamp(12px, 1.4vh, 18px) 0 clamp(12px, 1.4vh, 18px) 28px;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    line-height: 1.5;
    color: rgba(255,255,255,0.78);
    border-bottom: 1px solid var(--border);
    font-weight: 400;
}

.slide-bullets li:last-child { border-bottom: none; }

.slide-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.9;
}

.slide-bullets li strong {
    color: var(--white);
    font-weight: 600;
}

.slide-bullets.steps li::before {
    border-radius: 50%;
    background: var(--accent-blue);
    opacity: 1;
}

.slide-bullets.compact li {
    padding: 10px 0 10px 24px;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    border-bottom: none;
}

.slide-bullets.compact li::before {
    top: 18px;
    width: 6px;
    height: 6px;
}

/* Metrics grid */
.slide-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 8px;
}

.s-metric {
    text-align: center;
    padding: 28px 16px;
    background: var(--gray-mid);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    transition: border-color 0.25s ease;
}

.s-metric:hover {
    border-color: var(--accent);
}

.s-metric-num {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 2.8vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 10px;
}

.s-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: var(--green-rich);
    margin: 0 auto 12px;
}

.s-metric-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.s-metric-lbl {
    font-size: clamp(0.75rem, 0.95vw, 0.9rem);
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    line-height: 1.3;
    display: block;
}

/* Canje box */
.slide-canje-box {
    padding: 36px 48px;
    background: var(--gray-mid);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    margin-bottom: 28px;
    max-width: 640px;
    width: 100%;
}

.slide-canje-amount {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.4rem, 4.2vw, 3.6rem);
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    white-space: nowrap;
    line-height: 1;
}

.slide-canje-fmt {
    font-size: clamp(0.9rem, 1.15vw, 1.1rem);
    color: var(--gray-light);
    letter-spacing: 0.02em;
}

/* Closing */
.slide-closing {
    margin-top: 32px;
    padding: 28px 32px;
    background: var(--gray-mid);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    max-width: 640px;
}

.slide-closing p {
    color: rgba(255,255,255,0.8) !important;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem) !important;
    margin-bottom: 12px !important;
}

.slide-closing-end {
    font-weight: 700 !important;
    color: var(--accent) !important;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem) !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.02em;
}

.slide-logo-bottom {
    height: 40px;
    opacity: 0.6;
    margin-top: 32px;
}

/* Back link */
.deck-back {
    position: fixed;
    top: 24px;
    left: 28px;
    z-index: 100;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gray-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    background: rgba(13,27,42,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.deck-back:hover {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

/* Deck controls */
.deck-controls {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 100;
    background: rgba(13,27,42,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 9999px;
    border: 1px solid var(--border);
}

.deck-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s;
}

.deck-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.deck-btn:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

.deck-counter {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gray-light);
    min-width: 50px;
    text-align: center;
}

.deck-sep {
    opacity: 0.4;
    margin: 0 2px;
}

/* Progress bar */
.deck-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(30,58,95,0.4);
    z-index: 100;
}

.deck-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.4s ease;
    opacity: 0.9;
}

/* ===== VERDE RICO — utilitarias ===== */
.text-green-rich { color: var(--green-rich); }
.bg-green-rich-deep { background-color: var(--green-rich-deep); color: var(--white); }

/* Footnote estilo barra verde (fallback legacy) */
.slide-footnote--bar {
    background: var(--green-rich-deep);
    color: var(--white) !important;
    padding: 14px 20px !important;
    border-radius: 10px;
    margin-top: 24px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-left: none !important;
    font-style: normal !important;
}

/* Footnote/banner estilo ámbar (slide 4 ubicación + slide 10 cupos) */
.slide-footnote--amber {
    background: rgba(253, 210, 0, 0.55);
    color: #0D1B2A !important;
    padding: 14px 20px !important;
    border-radius: 10px;
    margin-top: 24px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-left: none !important;
    font-style: normal !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Tarjeta de cierre en verde profundo (slide 11) */
.slide-closing-card {
    background: var(--green-rich-bg);
    color: var(--white);
    padding: 28px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.5;
    margin-top: 24px;
    max-width: 640px;
    text-align: center;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.slide-closing-card p {
    color: var(--white) !important;
    margin: 0 !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    max-width: none !important;
}

.slide-closing-standalone {
    font-weight: 700 !important;
    color: var(--white) !important;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem) !important;
    letter-spacing: 0.02em;
    margin-top: 20px !important;
}

/* Mailto en steps */
.mail-link {
    color: var(--green-rich);
    text-decoration: none;
    font-weight: 600;
    transition: text-decoration 0.2s ease, color 0.2s ease;
}
.mail-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Subhead "Formas de pago" (slide 10) */
.slide-paysub {
    color: var(--green-rich);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 22px;
    margin-bottom: 8px;
}

/* Monto en verde rico (slide 10) */
.slide-canje-amount.is-green {
    color: var(--green-rich);
    font-weight: 800;
}

/* ===== FADE IN (observer-based, Base compatibility) ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

/* ========== TABLET — iPad ========== */
@media (max-width: 1024px) {
    .slide-content {
        padding: 40px 48px;
        max-width: 100%;
    }
    .slide-hero-title { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; }
    .slide-hero-sub   { font-size: 1.05rem; }
    .slide h2         { font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.15; }
    .slide-two-col    { grid-template-columns: 1fr 1fr; gap: 24px; }
    .slide-metrics    { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .s-metric-num     { font-size: 2.6rem; }
    .slide-canje-amount { font-size: clamp(3rem, 9vw, 5.5rem); }
    .slide-logo-big   { max-width: 180px; }
    .slide-watermark  { max-width: 70px; opacity: 0.5; }
    .deck-controls    { bottom: 24px; }
}

/* ========== MOBILE — iPhone ========== */
@media (max-width: 767px) {
    .slide-content {
        padding: 24px 20px;
        padding-bottom: 96px; /* aire para los controles fijos */
    }
    .slide-hero-title   { font-size: clamp(2rem, 9vw, 2.8rem); }
    .slide-hero-sub     { font-size: 0.95rem; }
    .slide h2           { font-size: 1.55rem; line-height: 1.2; }
    .slide-tag          { font-size: 0.68rem; }

    /* Dos columnas → una */
    .slide-two-col { grid-template-columns: 1fr; gap: 18px; }

    /* Métricas 6 cards → 2 columnas */
    .slide-metrics { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .s-metric      { padding: 16px 12px; }
    .s-metric-num  { font-size: 1.8rem; }
    .s-metric-icon svg { width: 44px; height: 44px; }
    .s-metric-lbl  { font-size: 0.78rem; }

    /* Tabla slide 4 → CARDS apiladas (la tabla horizontal no funciona en iPhone) */
    .slide-table, .slide-table thead, .slide-table tbody, .slide-table tr, .slide-table th, .slide-table td {
        display: block;
        width: 100%;
    }
    .slide-table thead { display: none; }
    .slide-table tr {
        margin-bottom: 14px;
        border-radius: 12px;
        overflow: hidden;
    }
    .slide-table td {
        padding: 10px 16px;
        border: none;
    }
    .slide-table td:first-child {
        font-weight: 700;
        font-size: 1rem;
        padding-top: 16px;
    }
    .slide-table td:nth-child(2) {
        font-size: 0.85rem;
        opacity: 0.9;
        padding-bottom: 10px;
    }
    .slide-table td:last-child {
        padding-bottom: 16px;
    }
    .slide-table td ul { padding-left: 18px; margin: 0; }
    .slide-table td ul li { font-size: 0.9rem; line-height: 1.45; margin-bottom: 4px; }

    /* Canje box */
    .slide-canje-box     { padding: 24px 18px; }
    .slide-canje-amount  { font-size: 3rem; line-height: 1; }
    .slide-canje-fmt     { font-size: 0.85rem; }

    /* Footnotes ámbar */
    .slide-footnote--amber { padding: 12px 16px; font-size: 0.88rem; line-height: 1.4; }

    /* Closing card slide 11 */
    .slide-closing-card { padding: 22px 20px; font-size: 1rem; line-height: 1.45; }

    /* Logos */
    .slide-logo-big      { max-width: 140px; }
    .slide-logo-bottom   { max-width: 90px; }
    .slide-watermark     { max-width: 44px; opacity: 0.35; top: 14px; right: 14px; }

    /* Controles del deck — touch friendly */
    .deck-controls {
        bottom: 16px;
        padding: 6px 10px;
        gap: 10px;
    }
    .deck-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .deck-counter { font-size: 0.82rem; }
    .deck-back    { top: 14px; left: 14px; font-size: 0.85rem; padding: 8px 12px; }

    /* Bullets más apretados */
    .slide-bullets li { font-size: 0.95rem; line-height: 1.5; margin-bottom: 8px; }

    /* Index landing */
    .pitch-launch-card { padding: 40px 24px; }
    .pitch-launch-card h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
    .card-logo { height: 56px; margin-bottom: 24px; }
    .card-subtitle { white-space: normal; }
}

/* ========== iPhone pequeño (SE / mini) ========== */
@media (max-width: 389px) {
    .slide h2           { font-size: 1.35rem; }
    .slide-hero-title   { font-size: 1.9rem; }
    .slide-canje-amount { font-size: 2.5rem; }
    .slide-metrics      { grid-template-columns: 1fr; }
}

/* Evita desbordes horizontales en todos los breakpoints */
html, body { overflow-x: hidden; }
.slide { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ========== FIX v3.3 — Flotantes con glass effect en mobile ========== */
@media (max-width: 767px) {

    /* Dar más aire al contenido para que nunca quede debajo de los flotantes */
    .slide-content {
        padding-top: 72px;
        padding-bottom: 120px;
    }

    /* Botón Volver — glass effect */
    .deck-back {
        background: rgba(13, 27, 42, 0.78);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 999px;
        padding: 10px 16px;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--white);
        z-index: 50;
        top: 16px;
        left: 16px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }

    /* Controles del deck — glass effect */
    .deck-controls {
        background: rgba(13, 27, 42, 0.82);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 999px;
        padding: 8px 12px;
        gap: 8px;
        bottom: 20px;
        z-index: 50;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    }
    .deck-btn {
        width: 42px;
        height: 42px;
        border-radius: 999px;
        font-size: 1.1rem;
    }
    .deck-counter {
        color: var(--white);
        font-size: 0.85rem;
        font-weight: 600;
        padding: 0 6px;
    }

    /* Progress bar sobre los controles */
    .deck-progress {
        bottom: 88px !important;
        z-index: 40;
    }

    /* Slide 4 — banner ámbar separado del borde */
    .slide-footnote--amber {
        margin-top: 18px;
        margin-bottom: 8px;
    }

    /* Slide 10 — footnote genérica sin barra roja, centrada y discreta */
    .slide-footnote {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 18px;
        font-size: 0.82rem;
        line-height: 1.5;
        color: var(--gray-light);
        text-align: center;
    }
    /* Re-aplicamos el estilo propio al banner ámbar para que no herede la centrada/gris */
    .slide-footnote--amber {
        border-left: none !important;
        padding-left: 16px !important;
        text-align: left;
        color: #0D1B2A;
    }
}

/* ========== iPad (768-1024) — flotantes con glass ========== */
@media (min-width: 768px) and (max-width: 1024px) {
    .deck-back {
        background: rgba(13, 27, 42, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 999px;
        padding: 10px 18px;
    }
    .deck-controls {
        background: rgba(13, 27, 42, 0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 999px;
    }
}

/* ========== FIX v3.4 — slides scrolleables en mobile ========== */
@media (max-width: 767px) {

    /* Body deja de estar encerrado en 100vh */
    .pitch-body {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        display: block;
    }

    /* Deck deja de ser flex container con altura fija */
    .deck {
        flex: none;
        position: static;
        display: block;
        min-height: 100vh;
    }

    /* Slide: flujo normal, altura por contenido */
    .slide {
        position: relative;
        inset: auto;
        min-height: 100vh;
        height: auto;
    }
    .slide.active {
        display: block;
        align-items: initial;
        justify-content: initial;
        animation: slideFade 0.4s ease;
        scroll-margin-top: 0;
    }

    /* Contenido ocupa todo el ancho, sin marco 16:9 */
    .slide-content {
        width: 100%;
        max-width: 100%;
        padding: 80px 20px 130px;
    }
    .slide-content.slide-center {
        text-align: center;
    }

    /* Evitar overflow horizontal en cajas */
    .slide-canje-box,
    .slide-closing,
    .slide-closing-card { max-width: 100%; }

    /* Watermark más chico para no robar espacio */
    .slide-watermark { height: 18px; bottom: 100px; right: 14px; opacity: 0.18; }

    /* Progress bar siempre al fondo del viewport */
    .deck-progress {
        position: fixed;
        bottom: 0;
        z-index: 90;
    }
}

/* ========== FIX v3.5 — Limpieza tabla slide 4 y pulido flotantes ========== */
@media (max-width: 767px) {

    /* Slide 4 — quitar borde/fondo del contenedor de la tabla */
    .slide-table,
    .slide-table tbody {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .slide-table tr {
        background: transparent;
    }

    /* Card styling refinado por fila verde */
    .slide-table tr.row-highlight {
        display: block;
        background: var(--green-rich-bg);
        border-radius: 16px;
        margin-bottom: 16px;
        padding: 22px 20px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(16, 185, 129, 0.15);
        overflow: hidden;
    }
    .slide-table tr.row-highlight td {
        display: block;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        color: var(--white) !important;
    }

    /* Jerarquía tipográfica dentro del card */
    .slide-table tr.row-highlight td:first-child {
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        margin-bottom: 4px;
        color: var(--white) !important;
    }
    .slide-table tr.row-highlight td:nth-child(2) {
        font-size: 0.82rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.72) !important;
        margin-bottom: 14px;
        letter-spacing: 0.02em;
    }
    .slide-table tr.row-highlight td:last-child {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Lista dentro del card */
    .slide-table tr.row-highlight td ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .slide-table tr.row-highlight td ul li {
        position: relative;
        padding-left: 18px;
        margin-bottom: 8px;
        font-size: 0.95rem;
        line-height: 1.45;
        color: rgba(255, 255, 255, 0.92);
    }
    .slide-table tr.row-highlight td ul li:last-child { margin-bottom: 0; }
    .slide-table tr.row-highlight td ul li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 8px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--green-rich);
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    }

    /* Card "Cierre teórico" más compacto */
    .slide-table tr.row-highlight:last-of-type {
        padding: 20px;
    }

    /* Amber card separado y con sombra suave */
    .slide-footnote--amber {
        margin-top: 24px;
        border-radius: 14px;
        padding: 14px 18px;
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.45;
        box-shadow: 0 4px 14px rgba(253, 210, 0, 0.12);
    }

    /* Volver — más visible sobre verde */
    .deck-back {
        background: rgba(13, 27, 42, 0.92);
        backdrop-filter: blur(16px) saturate(140%);
        -webkit-backdrop-filter: blur(16px) saturate(140%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
        padding: 10px 18px;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    /* Controles del deck — consistencia */
    .deck-controls {
        background: rgba(13, 27, 42, 0.9);
        backdrop-filter: blur(18px) saturate(140%);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    /* Progress bar más discreta */
    .deck-progress {
        bottom: 0;
        height: 2px;
        opacity: 0.5;
    }
}

/* ========== CTA group (slide 11) ========== */
.slide-cta-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 640px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 56px;
    min-width: 200px;
}
.cta-btn:hover {
    transform: translateY(-2px);
}
.cta-btn-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    text-align: left;
}
.cta-btn-lead {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.cta-btn-sub {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 2px;
}

/* Primary — WhatsApp */
.cta-btn--whatsapp {
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}
.cta-btn--whatsapp:hover {
    background: #1EBE5A;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

/* Secondary — Email (ghost verde rico) */
.cta-btn--email {
    background: transparent;
    color: var(--green-rich);
    border: 1.5px solid rgba(16, 185, 129, 0.4);
}
.cta-btn--email:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--green-rich);
    color: var(--white);
}

/* ========== Botón flotante WhatsApp (solo mobile) ========== */
.wa-float {
    display: none; /* oculto por defecto; se activa en mobile */
    position: fixed;
    right: 18px;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 95;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: waFloatIn 0.5s ease 0.8s both;
}
.wa-float:hover,
.wa-float:active {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0, 0, 0, 0.35);
}

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

/* Mobile: activar el botón flotante */
@media (max-width: 767px) {
    .wa-float { display: inline-flex; }

    /* El CTA group en slide 11 se apila vertical para que cada botón sea
       touch-friendly sin apretar */
    .slide-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cta-btn {
        justify-content: center;
        min-width: 0;
        width: 100%;
    }

    /* Pulso sutil cada 4s para que el usuario lo note pero sin ser invasivo */
    .wa-float::before {
        content: '';
        position: absolute;
        inset: -6px;
        border-radius: 50%;
        border: 2px solid rgba(37, 211, 102, 0.4);
        animation: waPulse 2.2s ease-in-out infinite;
    }
}
@keyframes waPulse {
    0%   { opacity: 0.7; transform: scale(1);    }
    70%  { opacity: 0;   transform: scale(1.35); }
    100% { opacity: 0;   transform: scale(1.35); }
}

/* Tablet/desktop: no se muestra flotante (ya hay CTA en slide 11) */
@media (min-width: 768px) {
    .wa-float { display: none !important; }
}
