:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --sidebar-bg: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-on-dark: #f1f5f9;
    --unjfsc-blue: #0369a1;
    --unjfsc-cyan: #06b6d4;
    --unjfsc-yellow: #eab308;
    --unjfsc-amber: #f59e0b;
    --border-light: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow: hidden;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: var(--text-on-dark);
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-logo {
    padding: 0 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo img {
    height: 50px;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.3));
}

.nav-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.nav-item {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    /* Balanced size for index */
    font-weight: 400;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* LED Indicator dot */
.nav-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.nav-item.completed::before,
.nav-item.active::before {
    background: var(--unjfsc-cyan);
    box-shadow: 0 0 10px var(--unjfsc-cyan);
}

.nav-item.active {
    color: white;
    font-weight: 700;
    background: rgba(6, 182, 212, 0.05);
}

.nav-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--unjfsc-cyan);
    min-width: 20px;
    opacity: 0.5;
}

.nav-item.active .nav-number {
    opacity: 1;
}

/* Main Content Area */
.presentation-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    background: var(--bg-primary);
    position: relative;
}

section {
    min-height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    padding: 8rem 4rem 4rem;
    /* Increased top padding for better spacing */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    /* Increased gap between columns */
    align-items: center;
    position: relative;
}

.section-full {
    grid-template-columns: 1fr;
}

/* Top Navigation Bar (Breadcrumbs) */
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Simplified header */
    background: transparent;
    z-index: 50;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--unjfsc-blue);
    border-bottom: none;
    /* Removed horizontal line */
}

.breadcrumb span {
    color: var(--unjfsc-blue);
}

.back-to-map {
    position: absolute;
    bottom: 2rem;
    right: 4rem;
    color: var(--unjfsc-cyan);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--unjfsc-cyan);
    border-radius: 50px;
    background: white;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
    cursor: pointer;
    z-index: 60;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-map:hover {
    background: var(--unjfsc-cyan);
    color: white;
    transform: translateY(-3px);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.1;
}

h1 {
    font-size: 4.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--unjfsc-blue);
    margin-bottom: 1rem;
}

p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* MO-TI Diagram Styles - UNIFIED GRID */
.diagram-container {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    grid-template-rows: repeat(9, auto);
    gap: 8px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.diag-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    text-transform: uppercase;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 45px;
}

.diag-block span.num {
    font-size: 0.55rem;
    opacity: 0.8;
    margin-bottom: 2px;
    display: block;
}

.diag-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    filter: brightness(1.05);
}

.block-organizacion:hover {
    transform: rotate(180deg) translateX(2px);
    /* Corrected hover for rotated block */
}

/* Row & Column Assignments */
.block-gobierno {
    grid-row: 1;
    grid-column: 1 / 4;
    background: #ffff00;
    color: #000;
}

.block-arquitectura {
    grid-row: 2;
    grid-column: 2;
    background: #ff9900;
}

.block-organizacion {
    grid-row: 3 / 8;
    grid-column: 1;
    background: #d9d9d9;
    color: #000;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.block-demanda {
    grid-row: 3;
    grid-column: 2;
    background: #800000;
}

.block-atencion {
    grid-row: 4;
    grid-column: 2;
    background: #7030a0;
}

.block-desarrollo-container {
    grid-row: 5;
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: #333399;
    padding: 6px;
    border-radius: 4px;
}

.block-desarrollo-title {
    grid-column: 1 / 4;
    color: white;
    font-size: 0.6rem;
    margin-bottom: 4px;
    text-align: center;
    font-weight: 800;
}

.block-inner {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px;
    font-size: 0.6rem;
    border-radius: 2px;
    color: white;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    transition: background 0.2s;
}

.block-inner:hover {
    background: rgba(255, 255, 255, 0.3);
}

.block-soporte {
    grid-row: 6;
    grid-column: 2;
    background: #92d050;
    color: #000;
}

.block-adm {
    grid-row: 7;
    grid-column: 2;
    background: #ccc0da;
    color: #000;
}

.block-certificacion {
    grid-row: 3 / 8;
    grid-column: 3;
    background: #76933c;
    writing-mode: vertical-rl;
}

.block-seguridad {
    grid-row: 8;
    grid-column: 1 / 4;
    background: #a6a6a6;
    color: #000;
}

.block-gestion-serv {
    grid-row: 9;
    grid-column: 1 / 4;
    background: #7f7f7f;
}

/* Fixed section issues */
section {
    min-height: 100vh;
    padding: 5rem 2rem 2rem;
    overflow: hidden;
}

/* Removed Progress Aura in favor of LED indicators */
.progress-container {
    display: none;
}

/* Utilities */
.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--unjfsc-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.accent-box {
    /* hacer centrar el contenido de accent-box */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 6px;
    border-top: 4px solid var(--unjfsc-cyan);
}

.info-point {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
    border-left: 3px solid var(--border-light);
}

.image-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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