:root {
    --bg-color: #f7f9fc;
    --primary-accent: #FF0000;
    --secondary-accent: #1E2836;

    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 12px 40px rgba(30, 40, 54, 0.08);

    --tag-desarrollo: #FF0000;
    --tag-paralelo: #FF5722;
    --tag-operativa: #1a1a1e;
    --tag-roadmap: #888;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--secondary-accent);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.accent-primary {
    color: var(--primary-accent);
}

.accent-secondary {
    color: var(--secondary-accent);
}

/* ===== GLASSMORPHISM ===== */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    box-shadow: var(--glass-shadow);
}

/* ===== PRESENTATION ===== */
.presentation {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== SLIDES ===== */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(0.96) translateY(20px);
    display: flex;
    flex-direction: column;
    padding: 5% 8%;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    z-index: 10;
}

/* ===== LOGO ===== */
.logo-container {
    position: absolute;
    top: 3%;
    left: 3%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo-container img {
    height: 45px;
    object-fit: contain;
    display: block;
}

/* ===== ANIMATED BLOBS ===== */
.blob {
    position: absolute;
    filter: blur(90px);
    z-index: -1;
    opacity: 0.2;
    border-radius: 50%;
    animation: float 12s ease-in-out infinite alternate;
}

.blob-1 {
    width: 700px;
    height: 700px;
    background: var(--primary-accent);
    top: -100px;
    left: -150px;
}

.blob-2 {
    width: 800px;
    height: 800px;
    background: var(--secondary-accent);
    bottom: -200px;
    right: -100px;
    animation-duration: 18s;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 80px) scale(1.15);
    }
}

/* ===== PORTADA & CIERRE ===== */
.center-content {
    justify-content: center;
    align-items: center;
}

.center-card {
    text-align: center;
    padding: 5rem 7rem;
    max-width: 900px;
}

.center-card h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.center-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.center-card p {
    font-size: 1.5rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.closing-text {
    margin-top: 1.5rem;
    font-size: 1.6rem !important;
    line-height: 1.6 !important;
    color: #333 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    max-width: 800px;
}

/* ===== HEADER SECTION (CENTERED, WITH ICON PILL) ===== */
.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 10px;
    text-align: center;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 18px 40px;
    border-radius: 60px;
    margin-bottom: 12px;
}

.header-icon {
    font-size: 2.8rem;
    color: var(--primary-accent);
    background: rgba(255, 0, 0, 0.08);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-pill h1 {
    font-size: 2.8rem;
    margin: 0;
    line-height: 1;
}

.header-section .subtitle {
    font-size: 1.3rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== GRIDS ===== */
.bento-grid {
    display: grid;
    gap: 25px;
    width: 100%;
    flex-grow: 1;
    max-height: 72vh;
}

.two-cols {
    grid-template-columns: 1fr 1fr;
}

.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

.two-cols-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/* ===== CARDS ===== */
.card {
    padding: 30px 35px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.card::-webkit-scrollbar {
    width: 5px;
}

.card::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.card-header {
    margin-bottom: 18px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
}

.card-header h2 {
    font-size: 1.7rem;
    margin-top: 12px;
    line-height: 1.2;
}

/* ===== TAGS ===== */
.tag {
    display: inline-block;
    padding: 5px 12px;
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag-desarrollo {
    background: var(--tag-desarrollo);
}

.tag-paralelo {
    background: var(--tag-paralelo);
}

.tag-operativa {
    background: var(--tag-operativa);
}

.tag-roadmap {
    background: var(--tag-roadmap);
}

/* ===== BULLETS ===== */
.bullet-list {
    list-style: none;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bullet-list li {
    position: relative;
    padding-left: 22px;
}

.bullet-list li::before {
    content: "•";
    color: var(--primary-accent);
    font-size: 1.6rem;
    position: absolute;
    left: 0;
    top: -3px;
}

.bullet-list li strong {
    color: var(--secondary-accent);
    font-weight: 700;
}

/* ===== SCREENSHOT SLIDES ===== */
.screenshot-slide {
    padding: 4% 6%;
}

/* -- Banner Header for Screenshots -- */
.screenshot-banner {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    margin-top: 10px;
}

.screenshot-banner-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 45px;
    border-radius: 60px;
    position: relative;
    overflow: hidden;
}

.screenshot-banner-inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--primary-accent);
    border-radius: 28px 0 0 28px;
}

.screenshot-icon {
    font-size: 2.6rem;
    color: white;
    background: var(--secondary-accent);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-banner-text {
    display: flex;
    flex-direction: column;
}

.screenshot-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-accent);
    margin-bottom: 2px;
}

.screenshot-banner-text h1 {
    font-size: 2.4rem;
    margin: 0;
    line-height: 1;
}

.screenshot-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 4px;
    margin-left: 10px;
    align-self: center;
}

/* -- Image Grids & Cards (Unified) -- */
.image-grid {
    display: grid;
    gap: 30px;
    width: 100%;
    flex-grow: 1;
    align-items: stretch;
    min-height: 0;
}

.img-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.img-card-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
}

.img-card-label .material-icons-round {
    font-size: 1.5rem;
    color: var(--primary-accent);
}

.img-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--secondary-accent);
    text-align: center;
    margin: 0;
}

.img-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(240, 243, 247, 0.6);
    min-height: 0;
    padding: 10px;
}

.img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ===== CONTROLS ===== */
.controls {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.75);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--secondary-accent);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.nav-btn:hover {
    transform: scale(1.2);
    color: var(--primary-accent);
}

.nav-btn:active {
    transform: scale(0.9);
}

#slide-indicator {
    font-weight: 600;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-accent);
    min-width: 60px;
    text-align: center;
}