@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

:root {
    --tt-blue: #4650E1;
    --tt-green: #23E18C;
    --tt-red: #FF5760;
    --tt-yellow: #FFBE37;
    
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-muted: rgba(255, 255, 255, 0.1);
    
    --font-primary: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--tt-blue);
    color: var(--text-light);
    overflow: hidden; /* For presentation slides */
    min-height: 100vh;
}

/* Presentation Container */
.presentation-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Bottom Controls */
.bottom-controls {
    background-color: #1c2024;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
}

.pagination-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #444;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--tt-green);
}

.menu-btn {
    position: absolute;
    right: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--tt-green);
    padding: 6px 16px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Slide Menu Overlay */
.slide-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.slide-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slide-menu-content {
    position: absolute;
    bottom: 60px;
    right: 20px;
    width: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    color: #333;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.slide-menu-overlay.active .slide-menu-content {
    transform: translateY(0);
}

.menu-header {
    background-color: #0b2463; color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.menu-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tt-blue);
}

.close-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
}

.slide-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.data-table th, .data-table td {
    padding: 6px 10px; /* Reduced vertical padding */
    border-bottom: 1px solid #eee;
    text-align: right;
    font-size: 0.85rem; /* Reduced font size */
}

.slide-list li {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.slide-list li:hover {
    background-color: #f9f9f9;
    color: var(--tt-blue);
}

.slide-list li.active {
    background-color: rgba(70, 80, 225, 0.1);
    color: var(--tt-blue);
    border-left: 3px solid var(--tt-blue);
}

/* Slide Divider */
.slide-divider {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
}
/* When hidden, flex must be overridden or opacity/visibility is used. The default slide hidden is opacity:0, visibility:hidden. */
.slide.slide-divider.active {
    display: flex !important;
}

.divider-left {
    width: 25%;
    background-color: #212BA3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.divider-green-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: #23E18C;
}
.divider-logo {
    width: 75%;
    max-width: 250px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.divider-right {
    width: 75%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.divider-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(33, 43, 163, 0.7);
    z-index: 1;
}
.divider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.divider-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 80%;
    margin-bottom: 20px;
}
.divider-line {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
}
.divider-title {
    font-size: 5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 2px;
}
.divider-subtitle {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

/* Slides Wrapper */
.slides-wrapper {
    flex-grow: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Cover Slide Specific Styles */
.slide-cover {
    background-color: var(--tt-blue);
    border-top: 8px solid var(--tt-green);
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cover-logo-img {
    height: 180px;
    width: auto;
    object-fit: contain;
    margin-bottom: 40px;
}

/* Top text */
.cover-header-text {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* Main Title Area */
.cover-main-content {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-title {
    font-size: 6.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.cover-date-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.date-dot {
    width: 14px;
    height: 14px;
    background-color: var(--tt-green);
    border-radius: 50%;
}

.cover-date {
    font-size: 2.6rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Custom Legend Styling */
.chart-legend-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 5px;
}

/* Slide 6: Resumen Acumulado */
.slide-acumulado {
    background-color: #929aed; /* Light purple from the image */
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto; /* Allow scroll if needed */
}

.resumen-container {
    width: 95%;
    max-width: 1000px;
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: auto; /* Ensure it floats centered even with scroll */
}

.resumen-chart-section {
    display: block;
    width: 100%;
}

.resumen-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.resumen-chart-wrapper {
    position: relative;
    width: 100%;
    height: 220px; /* Safe fixed height */
    margin-bottom: 15px;
}

.filter-container select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    font-weight: 600;
    color: #000080;
    outline: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.resumen-table {
    width: 100%;
}

.resumen-table th {
    background-color: #000080; /* Dark blue header like image */
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

.resumen-table td {
    padding: 12px 10px;
    text-align: center;
    font-size: 0.95rem;
    color: #333;
}

.resumen-table tr {
    border-bottom: 1px solid #ddd;
    background-color: transparent !important; /* Quitar franjas */
}

.resumen-table tr:last-child {
    border-bottom: none;
}

.resumen-table tr.total-row {
    font-weight: bold;
    background-color: #000080 !important;
    color: white !important;
}

.resumen-table tr.total-row td {
    color: white !important;
}

#table-resumen th, #table-resumen td {
    font-size: 0.75rem !important;
    padding: 6px 8px !important;
}

/* Footer Section */
.cover-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border-muted);
    padding-top: 30px;
    margin-top: auto;
    width: 100%;
    max-width: 600px;
}

.cover-author {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Slide 2: Resumen General */
.slide-resumen {
    background-color: white;
    color: #333;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.top-strip, .bottom-strip {
    height: 12px;
    background-color: var(--tt-green);
    width: 100%;
}

.resumen-header {
    background-color: #212BA3;
    color: white;
    text-align: center;
    padding: 12px 20px;
    margin: 8px 10px;
    border-radius: 4px;
}

.resumen-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.resumen-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 4px;
}

.resumen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 8px 15px 10px 15px;
    flex: 1;
    overflow: hidden;
}

.resumen-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resumen-right {
    display: flex;
    flex-direction: column;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.donut-card {
    flex: 1;
}

.table-card {
    flex: 1;
}

.bar-card {
    flex: 1;
    height: 100%;
}

.card-title {
    color: #212BA3;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #212BA3;
    padding-bottom: 5px;
}

.donut-container {
    position: relative;
    height: 270px;
    width: 100%;
}

.bar-container {
    position: relative;
    height: 100%;
    min-height: 280px;
    width: 100%;
}

.resumen-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.resumen-table th {
    background-color: #212BA3;
    color: white;
    text-align: right;
    padding: 8px 10px;
    font-weight: 600;
}
.resumen-table th:first-child {
    text-align: left;
}

.resumen-table td {
    padding: 8px 10px;
    text-align: right;
    border-bottom: 1px solid #eee;
    color: #444;
}

.resumen-table tr:nth-child(even) td {
    background-color: transparent;
}

.resumen-table .total-row td {
    background-color: #212BA3;
    color: white;
    font-weight: 700;
    border-bottom: none;
}

.watermark-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url('logo_TT_FULL_HORIZONTAL_01.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Slide 3 & 4: Actividades & Variaciones */
.slide-actividades, .slide-variaciones {
    background-color: white;
    color: #333;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.actividades-header {
    background-color: #212BA3;
    color: white;
    text-align: center;
    padding: 15px 25px; /* Restored padding for a thicker header */
    margin: 0; /* Removed margin to make it stretch full width */
    border-radius: 0; /* Removed radius since it touches the edges now */
    position: relative;
}

.header-logo-white {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.actividades-title {
    font-size: 1.3rem; 
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
}

.actividades-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 5px;
}

/* Toggle Button */
.toggle-container {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    padding: 4px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: var(--tt-green);
    color: #212BA3;
}

.actividades-grid {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 15px;
    padding: 10px 15px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.actividades-tables {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    flex: 1;
}

.actividades-footer-logo-row {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    padding-left: 5px;
    padding-top: 5px;
}

.actividades-corner-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
}

/* Let table containers size naturally based on content */
.actividades-tables .table-container {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.actividades-tables .table-container .data-table {
    width: 100%;
}

/* Distribute rows evenly within each table */
.actividades-tables .data-table tbody tr {
    height: auto;
}

/* Increase row spacing (padding) but reduce horizontal padding to save space */
.actividades-tables .data-table th,
.actividades-tables .data-table td {
    padding: 10px 4px;
}

.table-title {
    color: #212BA3;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.mt-4 { margin-top: 20px; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    table-layout: auto;
}

/* First column wider, rest equal */
.data-table th:first-child,
.data-table td:first-child {
    width: 22%;
}

.data-table th:not(:first-child),
.data-table td:not(:first-child) {
    width: auto;
    white-space: nowrap;
}

.data-table th {
    background-color: #212BA3;
    color: white;
    text-align: right;
    padding: 4px 6px;
    font-weight: 500;
}
.data-table th:first-child { text-align: left; }

.data-table td {
    padding: 4px 6px;
    text-align: right;
    border-bottom: 1px solid #eee;
    color: #444;
}
.data-table td:first-child { text-align: left; font-weight: 600; color: #212BA3; }

/* Highlight Alcance / Var % columns (5th and 9th) for Slides 4 and 5 in the body only */
#table-tours tbody td:nth-child(5), #table-tours tbody td:nth-child(9),
#table-comp tbody td:nth-child(5), #table-comp tbody td:nth-child(9),
#table-tours-4 tbody td:nth-child(5), #table-tours-4 tbody td:nth-child(9),
#table-comp-4 tbody td:nth-child(5), #table-comp-4 tbody td:nth-child(9) {
    background-color: rgba(33, 43, 163, 0.08);
    font-weight: 700;
    color: #0b2463;
}

/* Also highlight the headers for those columns slightly */
#table-tours th:nth-child(5), #table-tours th:nth-child(9),
#table-comp th:nth-child(5), #table-comp th:nth-child(9),
#table-tours-4 th:nth-child(5), #table-tours-4 th:nth-child(9),
#table-comp-4 th:nth-child(5), #table-comp-4 th:nth-child(9) {
    background-color: #2b38be; /* Lighter shade of the primary blue */
}

.data-table tr:nth-child(even) td { background-color: transparent; }

.data-table tfoot td {
    background-color: #212BA3;
    color: white;
    font-weight: 700;
}

/* Right Gauges Panel */
.actividades-gauges {
    background-color: rgba(70, 80, 225, 0.1);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Fill full height of the grid row */
    align-self: stretch;
    justify-content: space-evenly;
}

.gauge-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-title {
    color: #212BA3;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.gauge-wrapper {
    position: relative;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.gauge-value {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.08);
}

/* Slide 4: Variaciones Red Theme */
.slide-variaciones #panel-gauges-4 {
    background-color: rgba(70, 80, 225, 0.1); /* Same as slide 3 */
    border: none;
    box-shadow: none;
}

.table-title-red {
    color: #212BA3; /* Same blue as slide 3 */
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Slide 5: Canales de Venta */
.slide-canales {
    background-color: white;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Main 2-column grid that fills all remaining space */
.canales-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    /* Stretch both columns to full height */
    align-items: stretch;
}

/* LEFT COLUMN */
.canales-left {
    display: flex;
    flex-direction: column;
    padding: 10px 12px 10px 12px;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid #e0e0e0;
}

.canales-chart-card {
    flex-shrink: 0;
}

.canales-bar-wrapper {
    position: relative;
    width: 100%;
    height: 265px;
}

.chart-title {
    color: #212BA3;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.canales-table-card {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Compact Table for Slide 5 */
#table-canales {
    width: 100%;
    margin: 0;
    flex: 1;
}
#table-canales th,
#table-canales td {
    padding: 4px 7px;
    font-size: 0.76rem;
}
#table-canales td i {
    width: 12px !important;
    height: 12px !important;
}

/* RIGHT COLUMN - two equal halves stacked */
.canales-right {
    background-color: #212BA3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.canales-pie-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    min-height: 0;
}

.canales-pie-card + .canales-pie-card {
    border-top: 1px solid rgba(255,255,255,0.2);
}

.canales-pie-card .chart-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    flex-shrink: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.2);
    padding: 6px;
    border-radius: 4px;
}

.canales-pie-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 100px;
}

/* Slide 7: Histórico */
.historico-header {
    margin: 20px 20px 10px 20px;
}
.historico-title {
    color: #212BA3;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
}
.historico-subtitle {
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
}
.historico-yoy-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px 15px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.historico-table-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 10px;
    border: 1px solid #eaeaea;
    overflow: auto;
    flex: 1;
    min-height: 0;
}
.historico-table-card.full-table-card {
    flex: 1;
    overflow: auto;
    min-height: 0;
}
.historico-bottom-grid {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-shrink: 0;
    align-items: stretch;
    height: 230px;
}
.historico-chart-card {
    flex: 2;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 10px;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
}
.insights-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}
.insights-container.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-content: center;
}
.insight-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    border-left: 4px solid #ccc;
}
.insight-item.positive { border-left-color: #23E18C; }
.insight-item.negative { border-left-color: #FF5760; }
.insight-label { font-size: 0.8rem; color: #555; }
.insight-tour { font-size: 0.9rem; font-weight: 700; color: #333; }
.insight-value { font-size: 1.1rem; font-weight: 800; }
.insight-value.positive { color: #1b8f5c; }
.insight-value.negative { color: #b3222a; }

tr.grand-total-row td {
    background-color: #d1fae5;
    color: #065f46;
    font-weight: 800;
}
tr.highlight-row td {
    background-color: #f4f6ff;
    color: #1a237e;
}
.total-category-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
.total-category-toggle:hover {
    color: #000080;
}
.total-category-toggle i {
    transition: transform 0.2s ease;
}
.total-category-toggle.collapsed i {
    transform: rotate(-90deg);
}
.subcat-row.hidden {
    display: none;
}
#table-historico-pax th, #table-historico-ingresos th {
    text-align: center;
    padding: 16px 10px;
    font-size: 0.95rem;
    vertical-align: middle;
}
#table-historico-pax td, #table-historico-ingresos td {
    text-align: center;
    padding: 8px 10px;
    font-size: 0.85rem;
    vertical-align: middle;
}
#table-historico-pax td:first-child, #table-historico-ingresos td:first-child {
    text-align: left;
}
.subcat-row td:first-child {
    padding-left: 25px;
    color: #555;
    font-size: 0.8rem;
}
.var-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.var-pill.positive {
    background: rgba(35, 225, 140, 0.15);
    color: #1b8f5c;
}
.var-pill.negative {
    background: rgba(255, 87, 96, 0.15);
    color: #b3222a;
}
.part-col {
    color: #A020F0;
    font-weight: 700;
}
.historico-charts-row {
    display: flex;
    gap: 15px;
    flex: 1;
    min-height: 0;
}
.chart-container-yoy {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 10px;
    border: 1px solid #eaeaea;
    min-height: 0;
}
.chart-vert-title {
    color: #212BA3;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}
.chart-vert-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 0;
}

/* Slide 11: Capacidades Trek */
.slide-capacidades { background-color: #fcfcfc; display: flex; flex-direction: column; }
.capacidades-header { text-align: center; margin-top: 15px; margin-bottom: 10px; }
.capacidades-title { color: #f7525a; font-size: 2rem; font-weight: 800; text-transform: uppercase; }
.capacidades-content { flex: 1; display: flex; flex-direction: column; padding: 0 100px 20px 100px; gap: 15px; }
.heatmap-container { width: 100%; background: white; border: 1px solid #eaeaea; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.heatmap-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; text-align: right; }
.heatmap-table th, .heatmap-table td { padding: 6px 10px; border-bottom: 1px solid #ddd; }
.heatmap-table th { background-color: #f7525a; color: white; font-weight: 700; text-align: center; text-transform: uppercase; }
.heatmap-table td:first-child { background-color: #0b2463; color: white; font-weight: 600; text-align: right; border-right: 1px solid #ddd; }
.tasa-row td { background-color: #0b2463 !important; color: white !important; font-weight: bold; text-align: right; border-bottom: none !important; border-top: 1px solid white; }
.capacidades-bottom-grid { display: flex; gap: 20px; height: 260px; margin-bottom: 10px; }
.funnel-container, .radar-container { flex: 1; background: white; border-radius: 8px; border: 1px solid #eaeaea; box-shadow: 0 2px 4px rgba(0,0,0,0.05); padding: 10px; position: relative; min-height: 0;  }

/* Theme Blue */
.theme-blue .heatmap-table th { background-color: #005eb8; }
.theme-blue .heatmap-table td:first-child { background-color: #0b2463 !important; color: white; }

/* Theme Orange */
.theme-orange .heatmap-table th { background-color: #f7a827; }
.theme-orange .heatmap-table td:first-child { background-color: #0b2463 !important; color: white; }

/* Theme Green */
.theme-green .heatmap-table th { background-color: #3ddc84; color: white; }
.theme-green .heatmap-table td:first-child { background-color: #3ddc84 !important; color: white; border-bottom: 1px solid white !important; }
.theme-green .tasa-row td { background-color: #27a65b !important; border-top: 1px solid white !important; }

/* Specific Walk Layout */
.participation-container {
    margin-bottom: 15px;
}
.walk-mini-table-container {
    margin-bottom: 15px;
}
#table-capacidades-walk td:first-child {
    background-color: #0b2463 !important;
    color: white !important;
    border-bottom: 1px solid white;
    font-weight: 700;
}
#table-capacidades-walk tbody tr:nth-child(1) td {
    background-color: #51e08e;
    color: white;
    font-weight: bold;
    text-align: center;
}
#table-capacidades-walk tbody tr:nth-child(2) td {
    background-color: #2eb868;
    color: white;
    font-weight: bold;
    text-align: center;
}

.slide-capacidades canvas { width: 100% !important; height: 100% !important; }

/* Specific Arboreal Layout (Fewer rows) */
#table-capacidades-arboreal th, #table-capacidades-arboreal td {
    padding: 16px 10px;
}

/* Logo bottom right for Capacidades slides */
.logo-bottom-right {
    position: absolute;
    bottom: 15px;
    right: 10px;
    width: 100px;
    z-index: 50;
    opacity: 0.9;
}
.logo-bottom-right img {
    width: 100%;
    height: auto;
}

/* =====================================================
   SLIDE 15: TOP VENDEDORES
   ===================================================== */

.slide-vendedores {
    background: linear-gradient(160deg, #f0f4ff 0%, #ffffff 60%, #e8f0ff 100%);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.vendedores-header {
    text-align: center;
    padding: 20px 30px 10px;
    background: linear-gradient(90deg, #212BA3 0%, #0b2463 100%);
    color: white;
}
.vendedores-title {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}
.vendedores-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
    margin: 4px 0 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Two-column grid */
.vendedores-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 20px 40px 15px;
    min-height: 0;
}

.vendedores-table-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(33, 43, 163, 0.12);
}

/* Section Headers */
.vendedores-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
    text-transform: uppercase;
}
.vendedores-agencias-header {
    background: linear-gradient(90deg, #212BA3, #3a48d4);
}
.vendedores-hoteles-header {
    background: linear-gradient(90deg, #0b2463, #1e3a8a);
}
/* Minimalist label tag */
.vendedores-tag {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: white;
}

/* Table */
.vendedores-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
.vendedores-table thead th {
    background-color: #eef1ff;
    color: #212BA3;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 8px 12px;
    text-align: right;
    border-bottom: 2px solid #212BA3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vendedores-table thead th.col-rank { text-align: center; width: 40px; }
.vendedores-table thead th.col-nombre { text-align: left; }

.vendedores-table tbody tr {
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}
.vendedores-table tbody tr:hover {
    background-color: #f5f7ff;
}

.vendedores-table td {
    padding: 10px 12px;
    font-size: 0.83rem;
    color: #333;
    text-align: right;
}
.vendedores-table td.col-rank {
    text-align: center;
    font-weight: 700;
}
.vendedores-table td.col-nombre {
    text-align: left;
    font-weight: 600;
    color: #0b2463;
}
.vendedores-table td.ventas-2026 {
    font-weight: 700;
    color: #212BA3;
}

/* Rank badges */
.rank-badge {
    display: inline-block;
    font-size: 1.3rem;
    line-height: 1;
}
.rank-badge.rank-gold { }
.rank-badge.rank-silver { }
.rank-badge.rank-bronze { }

/* Row highlights for top 3 */
.vendedores-table tbody tr.rank-gold {
    background-color: rgba(255, 215, 0, 0.07);
}
.vendedores-table tbody tr.rank-silver {
    background-color: rgba(192, 192, 192, 0.07);
}
.vendedores-table tbody tr.rank-bronze {
    background-color: rgba(205, 127, 50, 0.07);
}

/* Var % pills */
.var-pct {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
}
.var-pct.var-positive {
    background-color: rgba(61, 220, 132, 0.15);
    color: #1a7a45;
}
.var-pct.var-negative {
    background-color: rgba(255, 80, 80, 0.12);
    color: #c0392b;
}

/* =====================================================
   SLIDE 17: EGRESOS POR CENTRO DE COSTO
   ===================================================== */

.slide-egresos {
    background-color: white;
    color: #333;
    display: flex;
    flex-direction: column;
}

.egresos-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 3.3fr 1.1fr;
    gap: 20px;
    padding: 15px 30px;
    min-height: 0;
}

.egresos-left {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.egresos-table-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
    padding: 10px;
    flex: 1;
    min-height: 0;
    overflow: auto;
}

/* Specific styling for egresos table */
#table-egresos {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

#table-egresos th {
    background-color: #0b2463;
    color: white;
    font-weight: 700;
    padding: 8px 10px;
    text-align: right;
    border-bottom: 2px solid #212BA3;
}

#table-egresos th:first-child {
    text-align: left;
    width: 28%;
}

#table-egresos td {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
}

#table-egresos td.col-cc {
    text-align: left;
    font-weight: 600;
    color: #0b2463;
}

/* Total row styling */
.table-total-row td {
    background-color: #eef1ff !important;
    font-weight: 800 !important;
    border-top: 2px solid #212BA3 !important;
    border-bottom: 2px solid #212BA3 !important;
    color: #0b2463 !important;
}

/* Sidebar styling */
/* Sidebar styling */
.egresos-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.egresos-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.egresos-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #212BA3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}

.egresos-exec-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.egresos-exec-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0b2463;
    line-height: 1;
}

.egresos-exec-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

.egresos-exec-subtext {
    font-size: 0.8rem;
    margin-top: 10px;
    text-align: center;
    color: #444;
}

/* Highlights List */
.egresos-highlights-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.egresos-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    justify-content: space-evenly;
}

.egresos-logo-card {
    height: 80px;
    min-height: 80px;
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px !important;
}

.egresos-logo-card img, .planilla-logo-card img {
    max-width: 85%;
    max-height: 50px;
    object-fit: contain;
    display: block;
}

.egresos-highlight-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 15px;
}

.egresos-highlight-item.saving {
    border-left: 3px solid #2e7d32;
}

.egresos-highlight-item.overspend {
    border-left: 3px solid #c62828;
}

.egresos-highlight-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.egresos-highlight-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0b2463;
}

.egresos-highlight-val {
    font-size: 0.8rem;
    color: #444;
}


/* Grand Total row styling */
.table-grand-total-row td {
    background-color: #dbe4ff !important;
    font-weight: 900 !important;
    border-top: 2px double #212BA3 !important;
    border-bottom: 2px double #212BA3 !important;
    color: #0b2463 !important;
    font-size: 0.83rem !important;
}

/* =====================================================
   SLIDE 18: GASTO PLANILLA CON CASO DE CASCADA
   ===================================================== */

.slide-planilla {
    background-color: white;
    color: #333;
    display: flex;
    flex-direction: column;
}

.planilla-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 3.3fr 1.1fr;
    gap: 20px;
    padding: 15px 30px;
    min-height: 0;
}

.planilla-left {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.planilla-table-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
    padding: 10px;
    flex: 1;
    min-height: 0;
    overflow: auto;
}

/* Specific styling for planilla table */
#table-planilla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

#table-planilla th {
    background-color: #0b2463;
    color: white;
    font-weight: 700;
    padding: 8px 10px;
    text-align: right;
    border-bottom: 2px solid #212BA3;
}

#table-planilla th:first-child {
    text-align: left;
    width: 32%;
}

#table-planilla td {
    padding: 5px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
}

#table-planilla td.col-cc {
    text-align: left;
    font-weight: 600;
    color: #0b2463;
}

.planilla-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.planilla-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.planilla-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #212BA3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}

.planilla-exec-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.planilla-exec-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0b2463;
    line-height: 1;
}

.planilla-exec-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

.planilla-exec-subtext {
    font-size: 0.8rem;
    margin-top: 10px;
    text-align: center;
    color: #444;
}

.planilla-highlights-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.planilla-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    justify-content: space-evenly;
}

.planilla-logo-card {
    height: 80px;
    min-height: 80px;
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px !important;
}

.planilla-highlight-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 15px;
}

.planilla-highlight-item.saving {
    border-left: 3px solid #2e7d32;
}

.planilla-highlight-item.overspend {
    border-left: 3px solid #c62828;
}

.planilla-highlight-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.planilla-highlight-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0b2463;
}

.planilla-highlight-val {
    font-size: 0.82rem;
    color: #444;
}

/* =====================================================
   SLIDE 19: CARTERA DE CRÉDITO (CXC)
   ===================================================== */

.slide-cxc {
    background-color: white;
    color: #333;
    display: flex;
    flex-direction: column;
}

.cxc-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 3.3fr 1.1fr;
    gap: 20px;
    padding: 15px 30px;
    min-height: 0;
}

.cxc-left {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cxc-table-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
    padding: 10px;
    flex: 1;
    min-height: 0;
    overflow: auto;
}

#table-cxc {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
}

#table-cxc th {
    background-color: #0b2463;
    color: white;
    font-weight: 700;
    padding: 8px 10px;
    text-align: right;
    border-bottom: 2px solid #212BA3;
}

#table-cxc th:first-child {
    text-align: left;
    width: 32%;
}

#table-cxc td {
    padding: 5px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
}

#table-cxc td.col-cc {
    text-align: left;
    font-weight: 600;
    color: #0b2463;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cxc-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cxc-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cxc-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #212BA3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}

.cxc-exec-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.cxc-exec-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0b2463;
    line-height: 1;
}

.cxc-exec-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

.cxc-exec-subtext {
    font-size: 0.8rem;
    margin-top: 10px;
    text-align: center;
    color: #444;
}

.cxc-highlights-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cxc-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    justify-content: space-evenly;
}

.cxc-highlight-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 15px;
}

.cxc-highlight-item.saving {
    border-left: 3px solid #2e7d32;
}

.cxc-highlight-item.overspend {
    border-left: 3px solid #c62828;
}

.cxc-highlight-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.cxc-highlight-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0b2463;
}

.cxc-highlight-val {
    font-size: 0.82rem;
    color: #444;
}

.cxc-logo-card {
    height: 80px;
    min-height: 80px;
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px !important;
}

.cxc-logo-card img {
    max-width: 85%;
    max-height: 50px;
    object-fit: contain;
    display: block;
}

/* =====================================================
   SLIDE 21: ANÁLISIS DE COLABORADORES (RECURSOS HUMANOS)
   ===================================================== */

.slide-rrhh {
    background-color: #fcfcfc;
    color: #333;
    display: flex;
    flex-direction: column;
}

.rrhh-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    min-height: 0;
}

.rrhh-split-container {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 30px;
    width: 100%;
    height: 100%;
    align-items: stretch;
}

.rrhh-image-panel {
    border-radius: 0;
    overflow: hidden;
    height: 100%;
}

.rrhh-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.rrhh-data-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 40px 25px 0;
    min-height: 0;
    justify-content: center;
}

/* KPI Row */
.rrhh-kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    height: 140px;
    min-height: 140px;
    flex: 0 0 140px;
}

.rrhh-kpi-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.rrhh-kpi-card.cyan {
    border: 3px solid #00bcd4;
}

.rrhh-kpi-card.yellow {
    border: 3px solid #ffb300;
}

.rrhh-kpi-card.red {
    border: 3px solid #e53935;
}

.rrhh-kpi-num {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
}

.rrhh-kpi-num.cyan { color: #00acc1; }
.rrhh-kpi-num.yellow { color: #ffb300; }
.rrhh-kpi-num.red { color: #e53935; }

.rrhh-kpi-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212BA3;
    margin-top: 12px;
}

/* Charts Row */
.rrhh-charts-row {
    flex: 1;
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 25px;
    min-height: 0;
}

.rrhh-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.rrhh-panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: #212BA3;
    margin-bottom: 8px;
}

.rrhh-panel-card {
    background-color: #161c6a;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.rrhh-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* =====================================================
   SLIDE 22: ESTADO DE SITUACIÓN FINANCIERA (BALANCE SHEET)
   ===================================================== */

.slide-balance {
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
}

.balance-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 30px;
    min-height: 0;
}

.balance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    flex: 1;
    min-height: 0;
}

.balance-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    min-height: 0;
}

.balance-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 15px 20px;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.balance-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 5px;
}

.balance-section-title.green-accent {
    color: #2e7d32;
    border-bottom: 2px solid #2e7d32;
}

.balance-section-title.blue-accent {
    color: #1e2694;
    border-bottom: 2px solid #1e2694;
}

.balance-table {
    width: 100%;
    border-collapse: collapse;
}

.balance-table tr {
    border-bottom: 1px solid #f2f2f2;
}

.balance-table tr:last-child {
    border-bottom: none;
}

.balance-summary-card {
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.balance-summary-card.green-bg {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
}

.balance-summary-card.blue-bg {
    background: linear-gradient(135deg, #1e2694, #2196f3);
}

.balance-summary-card .summary-label {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.balance-summary-card .summary-value {
    font-size: 1.5rem;
    font-weight: 900;
}

/* =====================================================
   SLIDE 23: ESTADO DE RESULTADOS (INCOME STATEMENT)
   ===================================================== */

.slide-results {
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
}

.results-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 30px;
    min-height: 0;
}

.results-full-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 12px 20px;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    width: 82%;
    margin: 0 auto;
}

.results-table-full {
    width: 100%;
    border-collapse: collapse;
}

.results-table-full th {
    font-size: 0.78rem;
    color: #555;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-bottom: 2px solid #ddd;
    background-color: #f8f9fa;
}

.results-table-full td {
    border-bottom: 1px solid #f2f2f2;
}

.results-table-full tr:last-child td {
    border-bottom: none;
}

.slide-var-results {
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
}

.slide-var-results .results-full-card {
    width: 92%;
}

/* =====================================================
   SLIDE 26: ROTACIÓN Y ESTRUCTURA DEMOGRÁFICA (DASHBOARD)
   ===================================================== */

.slide-rrhh-db {
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
}

.rrhh-dashboard-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.60fr;
    gap: 20px;
    padding: 15px 30px;
    min-height: 0;
}

/* Left Panel: Rotation progress bars */
.rrhh-left-panel {
    background-color: #1a237e; /* Dark blue background */
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    color: white;
    min-height: 0;
    position: relative;
    border-top: 15px solid #23E18C; /* Green top accent strip */
}

.rrhh-left-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: white;
    margin: 0;
}

.rrhh-left-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-weight: 500;
}

.rrhh-rotation-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.rrhh-rot-item {
    display: flex;
    flex-direction: column;
}

.rrhh-rot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 700;
}

.rrhh-rot-name {
    color: white;
}

.rrhh-rot-pct {
    font-size: 0.95rem;
    font-weight: 800;
}

.rrhh-rot-bar-outer {
    width: 100%;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 7px;
    overflow: hidden;
    margin-top: 5px;
}

.rrhh-rot-bar-inner {
    height: 100%;
    border-radius: 7px;
    transition: width 0.6s ease;
}

.rrhh-rot-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 3px;
    font-weight: 500;
}

/* Legend at the bottom of left panel */
.rrhh-left-legend {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.rrhh-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.rrhh-legend-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Right Panel: Table + Age distribution + Output Reasons */
.rrhh-right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

.rrhh-table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
    border: 1px solid #eaeaea;
}

.rrhh-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a237e;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#table-rrhh {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

#table-rrhh th {
    background-color: #f1f3f7;
    color: #444;
    font-weight: 700;
    padding: 10px;
    text-align: right;
    border-bottom: 2px solid #ddd;
}

#table-rrhh th:first-child {
    text-align: left;
}

#table-rrhh td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
}

#table-rrhh td:first-child {
    text-align: left;
}

.rrhh-bottom-charts {
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 20px;
    min-height: 0;
}

.rrhh-chart-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.rrhh-chart-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* =====================================================
   SLIDE TARIFAS: ANÁLISIS DE TARIFAS
   ===================================================== */

.slide-tarifas {
    background-color: #0b1a4a;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 0;
    font-family: var(--font-primary);
}

.tarifas-header {
    padding: 18px 50px 10px;
    text-align: center;
}

.tarifas-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

/* KPI Row */
.tarifas-kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 10px 50px 16px;
}

.tarifas-kpi-card {
    background-color: #1a2d6e;
    border-radius: 10px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tarifas-kpi-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tarifas-kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.tarifas-kpi-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* Bottom split */
.tarifas-bottom {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    flex: 1;
    padding: 0 50px 15px;
    min-height: 0;
}

.tarifas-chart-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tarifas-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

.tarifas-chart-wrapper {
    flex: 1;
    position: relative;
    min-height: 0;
}

.tarifas-chart-wrapper canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

/* Variation Panel */
.tarifas-var-panel {
    background-color: #fff;
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #111;
}

.tarifas-var-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #212BA3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.tarifas-var-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tarifas-var-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.tarifas-var-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #333;
}

.tarifas-var-value.orange {
    color: #FF6B7A;
}

.tarifas-var-note {
    font-size: 0.78rem;
    color: #555;
    line-height: 1.5;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 4px;
}
