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

:root {
    --navy: #1a1a1a;
    --blue: #242424;
    --accent: #1a1a1a;
    --accent2: #666666;
    --gold: #1a1a1a;
    --green: #1a1a1a;
    --red: #1a1a1a;
    --yellow: #f59e0b;
    --light: #f9f9f7;
    --white: #ffffff;
    --gray: #666666;
    --border: #d1d1cf;
    --card-bg: #f9f9f7;
    --slide-bg: #efefed;
    --indigo-soft: rgba(26, 26, 26, 0.06);
    --dark-hero: #1a1a1a;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--slide-bg);
    color: #1e293b;
    overflow-x: hidden;
}

/* === NAV (Glassmorphism, like Vértice) === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 15, 30, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    gap: 12px;
}

.nav-logo-img {
    height: 36px;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8)) brightness(0) invert(1);
}

.nav-logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: white;
}

.nav-logo-text span {
    color: var(--accent2);
}

.nav-slides {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    flex: 1;
    padding: 0 16px;
    justify-content: flex-end;
}

.nav-slides::-webkit-scrollbar {
    display: none;
}

.nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-btn.active {
    background: #1a1a1a;
    color: white;
    font-weight: 600;
    border-radius: 8px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctrl-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn:hover {
    background: var(--accent);
}

.slide-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    white-space: nowrap;
}

/* === PROGRESS BAR === */
.progress-bar {
    display: none;
    /* Hide progress bar in scroll layout */
}

/* === SLIDES === */
.presentation {
    padding-top: 64px;
}

.slide {
    display: block;
    min-height: auto;
    padding: 80px 0;
    position: relative;
}

.slide.active {
    display: block;
}

.slide-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 60px;
}

/* Vértice-style section label */
.section-label {
    display: inline-block;
    background: var(--indigo-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.2);
    margin-bottom: 20px;
}

/* Slide header */
.slide-header {
    text-align: center;
    margin-bottom: 56px;
}

.slide-label {
    display: none;
}

.slide-title {
    font-size: 44px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.slide-subtitle {
    color: var(--gray);
    font-size: 1.15rem;
    margin-top: 16px;
    line-height: 1.7;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Pill CTA buttons (like Vértice) */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: white;
    padding: 16px 36px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 32px;
    transition: all 0.25s;
    border: none;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.btn-cta:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: white;
    padding: 15px 36px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 32px;
    margin-left: 16px;
    transition: all 0.25s;
    border: 2px solid rgba(255, 255, 255, 0.45);
    font-size: 1.05rem;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
}

/* === INTERACTIVE IMAGE LAYOUTS === */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    /* Increased from 40px to loosen the layout */
    align-items: center;
}

.split-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.split-exec-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.catalog-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 320px;
    background-size: 70%;
    background-position: center top 20px;
    background-repeat: no-repeat;
    background-color: var(--card-bg);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.catalog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.2) 60%, transparent 100%);
    transition: background 0.4s ease;
}

.catalog-card:hover::before {
    background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(37, 99, 235, 0.4) 100%);
}

.catalog-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.catalog-card:hover .catalog-overlay {
    transform: translateY(0);
}

.catalog-overlay h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.catalog-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.4s ease;
    line-height: 1.5;
}

.catalog-card:hover .catalog-overlay p {
    opacity: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 16px;
    margin-top: 24px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gallery-item:nth-child(2) {
    grid-row: span 2;
}

.gallery-item:nth-child(4) {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}


#slide-0 {
    padding: 0;
}

/* === SLIDE 0: HERO (Left-aligned like Vértice) === */
.cover-bg {
    min-height: 100vh;
    background: #1a1a1a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cover-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cover-content {
    position: relative;
    z-index: 2;
    padding: 64px 60px;
    max-width: 860px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.cover-logo-wrap {
    margin-bottom: 32px;
}

.cover-logo {
    height: 80px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    border-radius: 12px;
    background: white;
    padding: 8px 14px;
}

.cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
}

.cover-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

.cover-divider {
    display: none;
}

.cover-title {
    font-size: 64px;
    font-weight: 800;
    color: white;
    line-height: 1.08;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.cover-title em {
    color: var(--accent2);
    font-style: normal;
}

.cover-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.70);
    margin-bottom: 12px;
    line-height: 1.7;
    max-width: 560px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.cover-date {
    display: none;
}

.cover-tags {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tag {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

/* Hero stats row (like Vértice 24h / 100% / 6+ ) */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    display: block;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    display: block;
}

/* === SLIDE 1: EJECUTIVO === */
.exec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.exec-card {
    background: white;
    border-radius: 12px;
    padding: 24px 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.exec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.exec-card.highlight-card {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: white;
    border: none;
}

.exec-card.highlight-card h3,
.exec-card.highlight-card p {
    color: rgba(255, 255, 255, 0.9);
}

.exec-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.exec-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exec-metric {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
}

.exec-sub {
    font-size: 12px;
    color: var(--gray);
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.kpi-box {
    background: white;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.kpi-label {
    display: block;
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 28px;
    font-weight: 800;
    display: block;
}

.kpi-value.red {
    color: var(--red);
}

.kpi-value.green {
    color: var(--green);
}

.kpi-value.blue {
    color: var(--accent);
}

/* === SLIDE 2: DASHBOARD === */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.dash-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dash-card.span2 {
    grid-column: span 2;
}

.chart-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-wrap {
    position: relative;
    height: 200px;
}

.dash-kpis {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-kpi {
    display: flex;
    flex-direction: column;
}

.mini-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-val {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.mini-val.red-val {
    color: #fca5a5;
}

/* === SLIDE 3: P&L === */
.pl-container {
    overflow-x: auto;
}

.pl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pl-table thead tr {
    background: var(--navy);
    color: white;
}

.pl-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.pl-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.row-income td {
    background: #f0fdf4;
    color: #15803d;
    font-weight: 600;
}

.row-cogs td {
    color: var(--red);
}

.row-subtotal td {
    background: #eff6ff;
    font-size: 15px;
    color: var(--blue);
    border-top: 2px solid var(--accent);
}

.row-expense td {
    color: #374151;
}

.row-alert td {
    background: #fff7ed;
    color: #d97706;
    font-weight: 600;
}

.row-net td {
    background: var(--navy);
    color: white;
    font-size: 16px;
    border-top: 2px solid var(--accent);
}

.pl-note {
    margin-top: 16px;
    background: #fff7ed;
    border-left: 4px solid var(--gold);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #92400e;
}

/* === SLIDE 4: LINEAS === */
.lineas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.linea-card {
    background: white;
    border-radius: 12px;
    padding: 24px 20px;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.linea-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.linea-card.best {
    border-color: var(--green);
}

.linea-card.worst {
    border-color: var(--red);
}

.linea-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    background: #dcfce7;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-block;
    margin-top: 16px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.linea-badge.warn {
    color: var(--accent);
    background: var(--indigo-soft);
    border-color: rgba(79, 70, 229, 0.3);
}

.linea-badge.danger {
    color: var(--red);
    background: #fee2e2;
    border-color: rgba(239, 68, 68, 0.3);
}

.linea-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

/* Vértice-style blue descriptive question subtitle */
.card-question {
    font-size: 0.9rem;
    font-style: italic;
    color: #374151;
    font-weight: 500;
    border-left: 3px solid #374151;
    padding-left: 10px;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Vértice-style card icon box */
.card-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon-box svg {
    width: 26px;
    height: 26px;
    color: #374151;
}

.linea-bar-wrap {
    display: none;
}

.linea-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.linea-stats span {
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}

/* Section Background Injections */
#slide-4 {
    position: relative;
    background: linear-gradient(rgba(249, 250, 251, 0.95), rgba(243, 244, 246, 0.97)),
        url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat fixed !important;
}

#slide-6 {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(40, 40, 40, 0.95) 100%),
        url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat fixed !important;
    color: white;
}

.linea-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    transition: width 1s ease;
}

.linea-bar span {
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.linea-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.linea-stats span {
    font-size: 12px;
    color: var(--gray);
}

.lineas-chart-wrap {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    height: 140px;
    position: relative;
}

/* === SLIDE 5: EQUILIBRIO === */
.pe-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pe-formula {
    background: #eff6ff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.pe-formula-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.pe-formula-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
}

.pe-values {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pe-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.pe-result {
    background: var(--navy) !important;
    color: white;
}

.pe-result strong {
    color: var(--accent2);
}

.pe-actual {
    background: #dcfce7 !important;
    color: var(--green);
}

.pe-cushion {
    background: #eff6ff !important;
    color: var(--blue);
}

.pe-alert {
    margin-top: 16px;
    background: #dcfce7;
    border-left: 4px solid var(--green);
    padding: 12px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #166534;
}

.pe-chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    position: relative;
    height: 300px;
}

/* === SLIDE 6: PROYECCIÓN === */
.proy-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.proy-chart-wrap {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    position: relative;
    height: 340px;
}

.proy-scenarios {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scenario {
    border-radius: 12px;
    padding: 18px;
    border: 1px solid var(--border);
}

.scenario h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.scenario p {
    font-size: 13px;
    color: var(--gray);
}

.scenario.conservador {
    background: #f8fafc;
    border-color: var(--border);
}

.scenario.moderado {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: white;
    border: none;
}

.scenario.moderado h4,
.scenario.moderado p {
    color: rgba(255, 255, 255, 0.9);
}

.scenario.optimista {
    background: #f0fdf4;
    border-color: var(--green);
}

.scenario.optimista h4 {
    color: var(--green);
}

/* === SLIDE 7: DIAGNÓSTICO === */
.diag-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.diag-chart-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diag-chart-wrap canvas {
    max-height: 280px;
}

.diag-chart-label {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
    margin-top: 8px;
}

.diag-findings h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.finding {
    display: flex;
    gap: 16px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.finding:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.find-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.finding strong {
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.closing-card {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.closing-card p,
.closing-card h3 {
    color: rgba(255, 255, 255, 0.9);
}

.finding p {
    font-size: 13px;
    color: var(--gray);
}

.red-find {
    border-left: 3px solid var(--red);
}

.yellow-find {
    border-left: 3px solid var(--yellow);
}

.green-find {
    border-left: 3px solid var(--green);
}

/* === SLIDE 8: RECOMENDACIONES === */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.rec-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rec-priority {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.rec-card.priority-1 .rec-priority {
    color: var(--red);
}

.rec-card.priority-2 .rec-priority {
    color: var(--gold);
}

.rec-card.priority-3 .rec-priority {
    color: var(--accent);
}

.rec-card.priority-4 .rec-priority {
    color: var(--green);
}

.rec-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.rec-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.rec-card p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

.rec-impact {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    background: #dcfce7;
    padding: 6px 10px;
    border-radius: 6px;
}

/* === SLIDE 9: PRÓXIMOS PASOS === */
.steps-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.tl-item {
    position: relative;
    margin-bottom: 24px;
}

.tl-dot {
    position: absolute;
    left: -19px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--border);
}

.tl-dot.active {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.tl-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tl-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin: 4px 0;
}

.tl-content p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

.closing-card {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    color: white;
}

.closing-logo {
    height: 52px;
    background: white;
    border-radius: 10px;
    padding: 6px 12px;
    margin-bottom: 12px;
}

.closing-slogan {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
    margin-bottom: 18px !important;
}

.closing-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.closing-card>p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-info {
    text-align: left;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.closing-tag {
    font-size: 13px;
    color: var(--accent2);
    font-style: italic;
}
/* === MEDIA QUERIES === */

@media (max-width: 900px) {
    .nav {
        padding: 0 20px;
    }
    .slide-inner {
        padding: 40px 24px;
    }
    .split-layout, .proy-layout, .diag-layout, .pe-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .split-image {
        min-height: 250px;
    }
    .catalog-grid, .exec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item:nth-child(4) {
        grid-column: span 1;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dash-card.span2 {
        grid-column: span 1;
    }
    .lineas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cover-title {
        font-size: 42px;
    }
    .cover-subtitle {
        font-size: 1.1rem;
    }
    .hero-stats {
        gap: 20px;
        flex-direction: column;
    }
    .slide-title {
        font-size: 32px;
    }
    .btn-cta, .btn-outline {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    .btn-outline {
        margin-top: 16px;
        margin-left: 0;
    }
    .cover-tags {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .nav-logo-text {
        font-size: 1.1rem;
    }
    .nav-slides {
        padding: 0 8px;
    }
    .cover-content {
        padding: 40px 20px;
    }
    .cover-title {
        font-size: 32px;
    }
    .catalog-grid, .exec-grid, .lineas-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    .gallery-item:nth-child(2), .gallery-item:nth-child(4) {
        grid-row: span 1;
        grid-column: span 1;
    }
    .kpi-row, .rec-grid {
        grid-template-columns: 1fr;
    }
    .pl-table th, .pl-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    .steps-layout {
        grid-template-columns: 1fr;
    }
}
