@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Raleway:wght@300;400;700;900&display=swap');

:root {
    --color-blue: #0022FF;
    --color-yellow: #EAB308;
    --color-gray-bg: #F3F4F6;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-text-muted: #4B5563;
    --sidebar-width: 300px;
    --transition-reveal: 1s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--color-gray-bg);
    color: var(--color-black);
    display: flex;
    overflow: hidden;
}

/* Sidebar Menu */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--color-white);
    border-right: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    z-index: 100;
}

.logo-area {
    margin-bottom: 3rem;
}

.logo-text {
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--color-blue);
    letter-spacing: -0.02rem;
    line-height: 1.2;
}

.nav-menu {
    list-style: none;
    flex: 1;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: #F8FAFC;
    color: var(--color-blue);
}

.nav-link.active {
    background: rgba(0, 34, 255, 0.08);
    color: var(--color-blue);
}

.nav-section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: #9CA3AF;
    margin: 1.5rem 0 0.5rem 1rem;
    font-weight: 900;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    padding-left: 1rem;
    /* Alineado con los items del menú */
    border-top: 1px solid #F1F5F9;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.zenit-logo {
    max-width: 85%;
    height: auto;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    box-shadow: none !important;
}

.zenit-logo:hover {
    opacity: 1;
}

/* Main Content Area */
.main-content {
    flex: 1;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.slide {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    padding: 6% 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: var(--color-white);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-reveal);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Variations */
.slide-landing {
    background: white;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.landing-title {
    font-size: 5rem;
    /* Aumentado para ser el doble del subtitular */
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
}

.landing-subtitle {
    font-size: 2.5rem;
    /* Aumentado como se pidió anteriormente */
    color: var(--color-text-muted);
    font-weight: 700;
    max-width: 800px;
    line-height: 1.2;
}

.landing-image-container {
    display: flex;
    justify-content: center;
    mix-blend-mode: multiply;
    /* Integra mejor los trazos del dibujo con el fondo blanco */
    transition: transform 0.5s ease;
}

.landing-image-container:hover {
    transform: scale(1.02);
    /* Animación sutil en lugar de enfoque */
}

.landing-image {
    max-width: 100%;
    box-shadow: none !important;
    /* Asegura que no haya sombras */
    filter: none !important;
    /* Elimina cualquier filtro previo */
}

.landing-line {
    width: 60px;
    height: 5px;
    background: var(--color-blue);
    margin: 2.5rem 0;
}

.landing-image {
    max-width: 100%;
}

/* Section Header Slide */
.slide-section {
    background-color: var(--color-blue);
    color: var(--color-white);
    justify-content: flex-end;
}

.section-label {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
}

.section-line {
    width: 100px;
    height: 8px;
    background: white;
    margin-top: 3rem;
}

/* Golden Slide */
.slide-golden {
    background: var(--color-yellow);
    color: white;
    font-family: 'Raleway', sans-serif;
}

.golden-hero {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    font-family: 'Raleway', sans-serif;
}

/* Standard Content Layout */
.content-header {
    border-bottom: 2px solid var(--color-gray-bg);
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

.content-main-title {
    font-size: 5rem;
    /* El doble del subtitular */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.content-sub-intro {
    font-size: 2.5rem;
    color: var(--color-black);
    font-weight: 700;
    line-height: 1.3;
    max-width: 1000px;
}

.content-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
}

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

.bullet-list li {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-black);
    /* Cambiado a negro */
    font-weight: 900;
}

ol.bullet-list {
    counter-reset: item;
    list-style: none;
}

ol.bullet-list li::before {
    content: counter(item) ".";
    counter-increment: item;
    padding-right: 0.5rem;
    font-weight: 900;
}

.bullet-list-nav {
    list-style: none;
}

.bullet-list-nav li {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.arrow-cta {
    width: 45px;
    height: 45px;
    background-color: var(--color-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.arrow-cta:hover {
    transform: translateX(5px);
    background-color: #0011CC;
}

.bullet-list-nav span {
    color: var(--color-black);
}

/* Charts & Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 1.5rem 1rem;
    border-bottom: 2px solid var(--color-gray-bg);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.data-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #E5E7EB;
    font-size: 1.15rem;
}

.chart-row {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    height: 300px;
    margin-top: 2rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
}

.chart-bar {
    flex: 1;
    background: var(--color-blue);
    position: relative;
    border-radius: 8px 8px 0 0;
    height: 0;
}

.reveal.active .chart-bar {
    height: var(--h);
    transition: height 1s ease-out;
}

.bar-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 900;
    color: var(--color-blue);
}

/* Buttons */
.next-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-blue);
    color: white;
    text-decoration: none;
    font-weight: 900;
    border-radius: 8px;
    margin-top: 3rem;
    transition: opacity 0.2s;
}

.next-btn:hover {
    opacity: 0.9;
}

/* Grid helper */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Images */
.image-box {
    width: 100%;
    height: 500px;
    /* Un poco más alto para la foto de Nacho */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.image-box.vertical-box {
    height: 750px;
    /* Tamaño vertical como en la captura */
    max-width: 450px;
    /* No demasiado ancho */
    margin-left: auto;
}

.full-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-link-direct {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.video-cta-overlay {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-blue);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.video-link-direct:hover .video-cta-overlay {
    background: var(--color-blue);
    color: white;
    transform: translateX(-50%) translateY(-5px);
}

/* Modal Video Styling */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 900px;
    background: #000;
}

.iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scroll Indicator (Arrow) */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-blue);
    z-index: 10;
    pointer-events: none;
}

.arrow-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0, 34, 255, 0), var(--color-blue));
    position: relative;
    overflow: hidden;
}

.arrow-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: scroll-down-anim 2s infinite cubic-bezier(0.7, 0, 0.3, 1);
}

@keyframes scroll-down-anim {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.slide-section .scroll-indicator,
.slide-golden .scroll-indicator {
    color: white;
}

.slide-section .arrow-line,
.slide-golden .arrow-line {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
}

/* Popup/Modal for images */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.close-image-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.source-link-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
    color: var(--color-blue);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.source-link-container:hover {
    opacity: 0.8;
}

.source-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--color-blue);
    color: white;
    border-radius: 50%;
    font-size: 12px;
}

/* Chart Refinements */
.chart-row {
    display: flex;
    align-items: flex-end;
    gap: 4rem;
    height: 350px;
    padding-bottom: 40px;
    position: relative;
    margin-top: 2rem;
}

.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar-title {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.side-nav-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid white;
    /* Añade borde para que resalte */
}

.dot.active {
    background: var(--color-blue);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(0, 34, 255, 0.4);
}

/* Adaptive colors for dots when over dark backgrounds */
.dark-bg-active-dots .dot {
    background: rgba(255, 255, 255, 0.3);
}

.dark-bg-active-dots .dot.active {
    background: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Roadmap / Hoja de Ruta Styles */
.roadmap-container {
    padding-top: 1rem;
    width: 100%;
}

.roadmap-header-arrows {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    /* Espacio reducido */
    gap: 5px;
    /* Gap reducido */
    width: 100%;
}

.roadmap-arrow-box {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
    position: relative;
    clip-path: polygon(0% 0%, 93% 0%, 100% 50%, 93% 100%, 0% 100%, 7% 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.roadmap-arrow-box:first-child {
    clip-path: polygon(0% 0%, 93% 0%, 100% 50%, 93% 100%, 0% 100%);
    padding-left: 1.5rem;
}

.roadmap-arrow-box:last-child {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 7% 50%);
    padding-right: 1.5rem;
}

.arrow-blue {
    background-color: #e0f2fe;
    color: #0369a1;
}

.arrow-grey {
    background-color: #f1f5f9;
    color: #475569;
    position: relative;
}

.arrow-green {
    background-color: #f0fdf4;
    color: #15803d;
}

.roadmap-arrow-box span:first-child {
    font-weight: 900;
    font-size: 1.3rem;
    display: block;
}

.roadmap-arrow-box span:last-child {
    font-size: 1.1rem;
    opacity: 0.8;
}

.roadmap-arrow-box.arrow-grey::after {
    content: '▼';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: #cbd5e1;
    font-size: 1.2rem;
}

/* Roadmap Gantt-like Chart */
.roadmap-chart {
    border: 1px solid #e2e8f0;
    padding: 2rem 0;
    border-radius: 8px;
    background: #fff;
    overflow-x: auto;
    margin-top: 2rem;
}

.gantt-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

.gantt-table th {
    padding: 0.8rem;
    font-size: 0.85rem;
    color: #94a3b8;
    border-left: 1px solid #e2e8f0;
    text-align: left;
    font-weight: normal;
    height: 40px;
    /* Tick area */
}

.gantt-row {
    height: 45px;
}

.gantt-row td {
    border-left: 1px solid rgba(226, 232, 240, 0.4);
    /* Líneas verticales más suaves */
    border-bottom: 1px solid #f8fafc;
    padding: 0;
    position: relative;
    height: 45px;
}

.gantt-bar-cyan {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    background: #00ffff;
    z-index: 2;
    border-radius: 4px;
}

.gantt-bar-green {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    background: #4ade80;
    z-index: 2;
    border-radius: 4px;
}

.gantt-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    z-index: 5;
    white-space: nowrap;
}

/* Mobile Responsive Design for Sidebar */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--color-white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Transform to X when active */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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

@media (max-width: 1024px) {
    .hamburger-menu {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Make the whole screen usable for content on mobile */
    .main-content {
        width: 100vw;
    }

    /* Adjust paddings so slides look ok and don't collide with the hamburger button */
    .slide {
        padding: 4.5rem 8% 2rem 8%;
        height: auto;
        min-height: 100vh;
        justify-content: flex-start;
    }

    /* Font sizing adjustments for mobile so it fits better */
    .landing-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .landing-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .content-main-title,
    .content-title,
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .golden-hero {
        font-size: 2.5rem !important;
    }

    .landing-grid,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* For chart row to not overflow */
    .chart-row {
        gap: 1rem;
        flex-direction: column;
        height: auto;
        padding-top: 40px;
    }

    .chart-column {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 1rem;
    }

    .chart-bar {
        width: 100%;
        height: 40px !important;
        /* switch to horizontal bars maybe? */
        border-radius: 0 8px 8px 0;
    }
}