:root {
    --primary-green: #006b3f; /* Verde de la bandera de Andalucía */
    --secondary-green: #008f55;
    --accent-green: #e1f2e9;
    --white: #ffffff;
    --bg-light: #f8faf9;
    --text-dark: #1a2f26;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 107, 63, 0.1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

.presentation-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-green) 100%);
}

/* Background Shapes for Premium Feel */
.presentation-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 107, 63, 0.05) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    z-index: 0;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 107, 63, 0.1);
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background: var(--primary-green);
    width: 0%;
    transition: width var(--transition-fast);
}

/* Slides Wrapper */
.slides-wrapper {
    flex: 1;
    display: flex;
    transition: transform var(--transition-slow);
    will-change: transform;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0.5;
    transform: scale(0.95);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.content {
    max-width: 1000px;
    width: 100%;
    padding: 60px;
    position: relative;
    z-index: 1;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 50, 30, 0.05);
}

/* Typography styles */
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-green);
    color: var(--primary-green);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.highlight {
    color: var(--primary-green);
    position: relative;
}

.subtitle {
    font-size: 1.5rem;
    color: #556b60;
    max-width: 700px;
}

.accent-line {
    width: 80px;
    height: 6px;
    background: var(--primary-green);
    margin-top: 40px;
    border-radius: 3px;
}

.header-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.slide-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-green);
    opacity: 0.5;
    background: var(--accent-green);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.headline {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #44554d;
}

/* Grids & Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    text-align: center;
    transition: transform var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Dual Grid for Cartography Slide */
.dual-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    padding: 24px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.info-box h3 {
    color: var(--primary-green);
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Solution Layout */
.solution-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

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

.check-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 900;
    background: var(--accent-green);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Mockup UI */
.visual-side {
    padding: 30px;
    border-radius: 20px;
}

.mockup-ui {
    background: #111;
    border-radius: 12px;
    height: 240px;
    padding: 15px;
    position: relative;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.ui-content {
    margin-top: 15px;
}

.ui-bar {
    width: 100%;
    height: 20px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 15px;
}

.ui-map {
    width: 100%;
    height: 120px;
    background: linear-gradient(45deg, #111, #222);
    border: 1px dashed #444;
    border-radius: 8px;
    position: relative;
}

.ui-map::after {
    content: '';
}

/* Stats Styles */
.stats-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.stat-item {
    padding: 24px;
    text-align: center;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

/* Visualization Styles */
.viz-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.viz-card {
    padding: 20px;
    text-align: center;
    overflow: hidden;
}

.viz-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
}

/* Efficiency Cards */
.efficiency-cards {
    display: flex;
    gap: 24px;
}

.e-card {
    flex: 1;
    padding: 40px;
    border-radius: 24px;
}

.e-card.green {
    background: var(--primary-green);
    color: var(--white);
}

.e-card.white {
    background: var(--white);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
}

/* Use case box */
.use-case-box {
    padding: 40px;
    display: flex;
    justify-content: space-around;
}

.step {
    text-align: center;
    flex: 1;
}

.step-num {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 50px;
    margin-bottom: 15px;
}

/* Final CTA */
.final {
    text-align: center;
}

.final-text {
    font-size: 1.8rem;
    margin: 30px 0;
    color: #44554d;
}

.cta-button {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 18px 48px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 10px 20px rgba(0, 107, 63, 0.2);
}

.cta-button:hover {
    background: var(--secondary-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 107, 63, 0.3);
}

footer {
    margin-top: 60px;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Navigation Controls */
.controls {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100;
    backdrop-filter: blur(5px);
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    transition: transform 0.2s;
}

.control-btn:hover {
    transform: scale(1.2);
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slide-indicator {
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .content { padding: 30px; }
    .features-grid { grid-template-columns: 1fr; }
    .solution-content { grid-template-columns: 1fr; }
    .solution-content .visual-side { order: -1; }
    .stats-showcase { grid-template-columns: repeat(2, 1fr); }
    .efficiency-cards { flex-direction: column; }
    .use-case-box { flex-direction: column; gap: 30px; }
}
