:root {
    --primary-blue: #2a8cc3;
    --secondary-blue: #1e6b94;
    --accent-orange: #fbb03b;
    --conexion-orange: #f58220;
    --dark-bg: #111111;
    --card-bg: rgba(20, 20, 20, 0.85);
    /* Neutral Polarized Glass */
    /* Polarized Glass: Darker and more opaque */
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65)), url('imagen_cde_panoramica.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.presentation-container {
    width: 100vw;
    height: 56.25vw;
    /* 16:9 ratio */
    max-height: 100vh;
    max-width: 177.78vh;
    /* 16:9 ratio */
    background: transparent;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(20px);
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Background elements */
.bg-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.15;
    border-radius: 50%;
}

.blob-1 {
    width: 40%;
    height: 40%;
    background: var(--primary-blue);
    top: -10%;
    right: -10%;
}

.blob-2 {
    width: 30%;
    height: 30%;
    background: var(--accent-orange);
    bottom: -5%;
    left: -5%;
}

/* Typography */
h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
    /* Drop shadow for gradient text */
    z-index: 1;
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #4db3ec;
    /* Slightly brighter blue for better contrast */
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    z-index: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.5);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

p,
li {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-main);
    /* Ensure white text */
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Subtle shadow for readability */
}

ul {
    list-style: none;
    margin-top: 1rem;
}

li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

/* Layout helpers */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    height: 100%;
    z-index: 1;
}

.flex-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

/* Components */
.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    /* Stronger blur for 'polarized' effect */
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--glass-border);
}

.institutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    height: 65%;
    max-width: 1200px;
    margin: auto auto;
}

.institutions-grid .card {
    min-height: 450px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.logo-container {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

#slide-1 .logo-img {
    height: 220px;
}

#slide-1 .logo-container {
    gap: 5rem;
    margin-top: 3rem;
}

.badge {
    display: inline-block;
    padding: 0.6rem 2rem;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-blue);
    color: #4db3ec;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Controls */
.controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.1);
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--primary-blue);
    width: 0%;
    transition: width 0.3s ease;
    z-index: 10;
}

.chip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

.chip {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 1.2rem 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    justify-content: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.chip-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chip-icon svg,
.chip-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.chip-icon img {
    filter: drop-shadow(0 0 5px rgba(42, 140, 195, 0.3));
}

.chip:hover svg {
    fill: var(--accent-orange);
}

.vertical-axes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: auto auto;
}

.axis-card {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    border-radius: 1.5rem;
    overflow: hidden;
    height: 180px;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.axis-card:hover {
    transform: scale(1.02);
    border-color: var(--primary-blue);
}

.axis-img {
    width: 300px;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.axis-content {
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.axis-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.axis-header-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(251, 176, 59, 0.4));
}

.axis-content h4 {
    font-size: 2rem;
    color: var(--accent-orange);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.axis-content p {
    font-size: 1.4rem;
    color: var(--text-main);
}

.priorities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
    margin: auto auto;
}

.priority-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.priority-card:hover {
    background: rgba(42, 140, 195, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.priority-icon {
    width: 60px;
    height: 60px;
    background: rgba(251, 176, 59, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.priority-icon svg,
.priority-icon lord-icon,
.priority-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.priority-icon img {
    filter: drop-shadow(0 0 8px rgba(251, 176, 59, 0.3));
}

.priority-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
}

.commitment-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
    margin: auto auto;
    width: 100%;
    max-width: 1300px;
}

.commitment-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem 2.5rem;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(25px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.commitment-item:hover {
    background: rgba(42, 140, 195, 0.12);
    border-color: var(--primary-blue);
    transform: translateX(20px);
}

.commitment-icon {
    width: 45px;
    height: 45px;
    background: rgba(251, 176, 59, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.commitment-icon svg,
.commitment-icon lord-icon {
    width: 32px;
    height: 32px;
    fill: var(--accent-orange);
}

.commitment-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.4;
}

.logo-highlight-container {
    background: rgba(255, 255, 255, 0.08);
    /* Very soft glass for the logo */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.logo-highlight {
    width: 100%;
    max-width: 350px;
    /* Reduced from 450px */
    filter: drop-shadow(0 0 20px rgba(42, 140, 195, 0.3));
    transition: transform 0.3s ease;
}

.logo-highlight:hover {
    transform: scale(1.05);
}

/* Slide 1 Specific Visibility Enhancements */
#slide-1 {
    text-align: center;
    justify-content: center;
}

#slide-1 h1 {
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

#slide-1 p {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    display: inline-block;
    padding: 0.4rem 2rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 3rem;
    margin-top: 1rem;
}

#slide-1 .logo-container {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    padding: 2rem;
    border-radius: 50%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in>* {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-in>*:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-in>*:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-in>*:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-in>*:nth-child(4) {
    animation-delay: 0.4s;
}

.animate-in>*:nth-child(5) {
    animation-delay: 0.5s;
}