:root {
    --neon-red: #D90429;
    --dark-bg: #0a0a0a;
    --light-text: #f0f0f0;
    --card-bg-dark: rgba(20, 20, 20, 0.92);
    --neon-red-lighter: #ff5252;
    --border-dark: rgba(217,4,41,0.3);

    /* Light theme variables */
    --light-bg: #f3f4f6; 
    --dark-text-light-theme: #111827; 
    --neon-blue: #007bff;
    --neon-blue-lighter: #5cadff;
    --card-bg-light: rgba(255, 255, 255, 0.97); 
    --border-light: rgba(0,123,255,0.3);
}

html[data-theme='light'] {
    --neon-red: var(--neon-blue);
    --dark-bg: var(--light-bg);
    --light-text: var(--dark-text-light-theme);
    --card-bg-dark: var(--card-bg-light);
    --neon-red-lighter: var(--neon-blue-lighter);
    --border-dark: var(--border-light);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg); 
    color: var(--light-text); 
    overflow: hidden; 
}

.slide {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem; 
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
}
@media (min-width: 768px) { 
    .slide {
        padding: 2rem;
    }
}


.slide.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    z-index: 10;
}

.slide-content {
    background-color: var(--card-bg-dark);
    backdrop-filter: blur(12px);
    border-radius: 1rem; 
    padding: 1.5rem; 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    max-width: 1100px; 
    width: 100%;
    max-height: calc(100vh - 6rem); 
    text-align: left;
    border: 1px solid var(--border-dark);
    display: flex; 
    flex-direction: column; 
}
 @media (min-width: 768px) { 
    .slide-content {
        padding: 2.5rem;
        max-height: calc(100vh - 8rem);
    }
}

.slide-content-single-column { 
   align-items: center; 
   text-align: center;
}

.slide-title {
    font-size: 1.8rem; 
    font-weight: 800;
    color: var(--neon-red); 
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--neon-red-lighter); 
    padding-bottom: 0.5rem;
    width: 100%; 
}
@media (min-width: 768px) { 
    .slide-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        border-bottom-width: 4px;
        padding-bottom: 0.75rem;
    }
}

.card {
    background-color: rgba(30,30,30,0.95); 
    border-radius: 0.75rem;
    padding: 1rem; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-dark);
    color: var(--light-text); 
}
 @media (min-width: 768px) { 
    .card {
        padding: 1.5rem;
    }
}
html[data-theme='light'] .card {
    background-color: #f9fafb; 
    border: 1px solid var(--border-light);
    color: var(--dark-text-light-theme);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.card h3, .card p, .card li { 
    transition: color 0.3s ease;
}
.card .text-gray-600 { color: #d1d5db; }
html[data-theme='light'] .card .text-gray-600 { color: #4b5563; }
.card .text-sm { color: #d1d5db; }
html[data-theme='light'] .card .text-sm { color: #4b5563; }
.card .text-xs { color: #9ca3af; }
html[data-theme='light'] .card .text-xs { color: #6b7280; }

.nav-button {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(217, 4, 41, 0.85); 
    color: white;
    padding: 0.5rem; 
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(217,4,41,0.3);
}
@media (min-width: 768px) { 
    .nav-button {
        padding: 0.75rem;
    }
}
 html[data-theme='light'] .nav-button {
    background-color: rgba(0, 123, 255, 0.85);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}
.nav-button:hover {
    background-color: #B70020; 
    transform: translateY(-50%) scale(1.1);
}
html[data-theme='light'] .nav-button:hover {
    background-color: #0056b3; 
}

#prev-slide { left: 10px; } 
#next-slide { right: 10px; }
 @media (min-width: 768px) { 
    #prev-slide { left: 20px; }
    #next-slide { right: 20px; }
}


.dots-container {
    position: fixed;
    bottom: 10px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px; 
    z-index: 30;
}
 @media (min-width: 768px) { 
    .dots-container {
        bottom: 20px;
        gap: 10px;
    }
}
.dot {
    width: 10px; 
    height: 10px;
    background-color: rgba(156, 163, 175, 0.5); 
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
@media (min-width: 768px) { 
    .dot {
        width: 12px;
        height: 12px;
    }
}
.dot.active {
    background-color: var(--neon-red); 
    transform: scale(1.2);
}

nav {
    background-color: rgba(10, 10, 10, 0.9); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}
 html[data-theme='light'] nav {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-light);
}
nav .font-bold {
     color: var(--neon-red);
     transition: color 0.3s ease;
}
nav a.active-nav-link, nav .nav-menu-link:hover { 
    color: var(--neon-red); 
    font-weight: 600;
}
nav .nav-menu-link {
    color: var(--light-text); 
    transition: color 0.3s ease;
}
 html[data-theme='light'] nav .nav-menu-link {
    color: var(--dark-text-light-theme);
}

#portada {
    background: linear-gradient(145deg, var(--neon-red) 0%, var(--neon-red-lighter) 100%); 
}
#portada .slide-content {
    background-color: rgba(0,0,0,0.55); 
    color: white;
}
#portada .slide-title {
    color: white;
    border-bottom-color: #ff7979; 
}
html[data-theme='light'] #portada .slide-title {
    border-bottom-color: var(--neon-blue-lighter);
}


.fog-accent { border-left: 5px solid #22c55e; }
.wds-accent { border-left: 5px solid #B70020; } 

.card .text-green-600 { color: #22c55e !important; }
.card .text-red-600 { color: #ef4444 !important; }
.card .text-red-500 { color: var(--neon-red) !important; } 


.bar-chart-title {
    color: var(--neon-red); 
    transition: color 0.3s ease;
}
.bar-chart { display: flex; align-items: flex-end; height: 150px; gap: 0.5rem; margin-top: 0.5rem; width:100%; justify-content: space-around;}
 @media (min-width: 768px) { 
    .bar-chart { height: 180px; }
}
.bar { width: 25px; text-align: center; color: white; font-size: 0.6rem; padding-top: 0.25rem; border-radius: 0.25rem 0.25rem 0 0; transition: height 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.3s ease; height: 0; }
 @media (min-width: 768px) { 
    .bar { width: 35px; font-size: 0.7rem; }
}
.fog-bar { background-color: #22c55e; }
.wds-bar { background-color: #ef4444; }
.bar-label { text-align: center; font-size: 0.7rem; color: #9ca3af; margin-top: 0.25rem; transition: color 0.3s ease;}
 @media (min-width: 768px) { 
    .bar-label { font-size: 0.75rem; }
}
html[data-theme='light'] .bar-label {
    color: #4b5563;
}

.resource-button, .youtube-button {
    background-color: var(--neon-red);
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.resource-button:hover {
    background-color: var(--neon-red-lighter); 
    color: var(--dark-bg); 
}
 html[data-theme='light'] .resource-button {
    background-color: var(--neon-blue);
    color: white; 
 }
 html[data-theme='light'] .resource-button:hover {
    background-color: var(--neon-blue-lighter);
    color: white; 
}

.youtube-button {
    background-color: #CD201F; 
}
 html[data-theme='light'] .youtube-button {
     background-color: #007bff; 
     color: white;
 }
.youtube-button:hover {
    background-color: #B00000; 
}
 html[data-theme='light'] .youtube-button:hover {
    background-color: #0056b3; 
 }


#themeToggle {
    position: fixed;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 1001; 
    background: none;
    border: none; 
    color: var(--neon-red);
    font-size: 1.6rem; 
    cursor: pointer;
    padding: 0.25rem; 
    transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 4px var(--neon-red));
}
#themeToggle:hover {
    transform: scale(1.15);
    color: var(--neon-red-lighter); 
}
html[data-theme='light'] #themeToggle:hover {
     color: var(--neon-blue-lighter);
}

.slide-image-header { 
    max-height: 200px; 
    width: auto;
    max-width: 90%; 
    object-fit: contain;
    border-radius: 0.5rem;
    margin: 1rem auto 1.5rem auto; 
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
 @media (min-width: 768px) { 
    .slide-image-header { max-height: 250px; max-width: 70%;}
}
html[data-theme='dark'] .slide-image-header {
     box-shadow: 0 4px 12px rgba(217,4,41,0.2);
}

.slide-columns-container { 
    display: flex;
    flex-direction: column; 
    flex-grow: 1; 
    gap: 1.5rem; 
    align-items: stretch; 
    width: 100%;
    overflow: hidden; 
}
@media (min-width: 768px) { 
    .slide-columns-container {
        flex-direction: row; 
        gap: 2.5rem;
    }
}


.image-pane {
    flex: 1 1 auto; 
    max-width: 100%; 
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
    overflow: hidden; 
    margin-bottom: 1rem; 
}
 @media (min-width: 768px) { 
    .image-pane {
        flex: 0 0 45%; 
        max-width: 45%;
        margin-bottom: 0;
    }
}
.image-pane img {
    max-height: 40vh; 
    width: 100%; 
    object-fit: cover; 
    border-radius: 0.75rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
@media (min-width: 768px) { 
     .image-pane img {
        max-height: calc(100vh - 16rem); 
    }
}
 html[data-theme='dark'] .image-pane img {
     box-shadow: 0 8px 20px rgba(217,4,41,0.25);
}

.text-pane {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    max-height: calc(80vh - 10rem); 
    overflow-y: auto;
    padding-right: 5px; 
}
@media (min-width: 768px) { 
    .text-pane {
         max-height: calc(100vh - 16rem); 
         padding-right: 15px;
    }
}


.text-pane::-webkit-scrollbar { width: 8px; }
.text-pane::-webkit-scrollbar-track { background: rgba(128, 128, 128, 0.1); border-radius: 10px; }
.text-pane::-webkit-scrollbar-thumb { background: rgba(128, 128, 128, 0.3); border-radius: 10px; }
html[data-theme='dark'] .text-pane::-webkit-scrollbar-thumb { background: rgba(217, 4, 41, 0.4); }
.text-pane::-webkit-scrollbar-thumb:hover { background: rgba(128, 128, 128, 0.5); }
html[data-theme='dark'] .text-pane::-webkit-scrollbar-thumb:hover { background: rgba(217, 4, 41, 0.6); }

.mobile-nav-menu {
    position: absolute;
    top: 4rem; 
    left: 0;
    right: 0;
    background-color: var(--card-bg-dark); 
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 19; 
}
.acknowledgements-text p {
    margin-bottom: 0.75rem; 
    line-height: 1.6;
}
.acknowledgements-text strong {
    color: var(--neon-red);
}
.acknowledgements-list {
    list-style: none;
    padding-left: 0;
}
.acknowledgements-list li {
    margin-bottom: 0.5rem;
}
.slogan {
    margin-top: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neon-red);
    text-align: center;
}
.final-slogan-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; 
}
