@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --pmi-navy: #002D72;
    --pmi-blue: #00A3E0;
    --pmi-cyan: #22d3ee;
    --pmi-bg: #f8fafc;
    --pmi-text-main: #1e293b;
}

body {
    font-family: 'Lato', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--pmi-bg);
    color: var(--pmi-text-main);
    overflow-x: hidden;
    position: relative;
}

/* SUPER ANIMATED BACKGROUND (Smoke/Flow Effect) */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 163, 224, 0.08) 0%, transparent 60%),
        radial-gradient(circle, rgba(0, 45, 114, 0.05) 0%, transparent 40%);
    z-index: -2;
    animation: flowBackground 15s linear infinite;
    background-size: 50% 50%;
}

@keyframes flowBackground {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }

    50% {
        transform: rotate(5deg) translate(-2%, -2%);
    }

    100% {
        transform: rotate(0deg) translate(0, 0);
    }
}

/* Parallax Brand Sections - RESTORED IMAGES */
.bg-brand-hero {
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80');
    /* Corporate Skyscraper */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.bg-brand-city-med {
    background-image: linear-gradient(rgba(241, 245, 249, 0.8), rgba(241, 245, 249, 0.9)), url('https://images.unsplash.com/photo-1599571239274-1a067a96d577?auto=format&fit=crop&q=80');
    /* Medellin Landscape */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.bg-brand-city-cali {
    background-image: linear-gradient(rgba(241, 245, 249, 0.8), rgba(241, 245, 249, 0.9)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&q=80');
    /* Cali/Tropical Vibrant */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.bg-brand-funnel {
    background-image: linear-gradient(rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.95)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80');
    /* Data Visualization */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}


h1,
h2,
h3,
h4,
.font-poppins {
    font-family: 'Poppins', sans-serif;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

/* Text Gradients */
.pmi-gradient-text {
    background: linear-gradient(135deg, var(--pmi-navy) 0%, var(--pmi-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-section {
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    max-width: 100vw;
}

/* Corporate Card Style (Light w/ Premium Glassmorphism) */
.card-corporate {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(0, 45, 114, 0.08);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-corporate:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 45, 114, 0.15);
    border-color: var(--pmi-blue);
    background: rgba(255, 255, 255, 0.95);
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pmi-navy), var(--pmi-blue));
    z-index: 10000;
    width: 0%;
}

/* Logo Setup */
.logo-container {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 50;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Pulse */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Count-up special effect */
.count-up {
    display: inline-block;
    transition: transform 0.3s ease;
}

.count-up:hover {
    transform: scale(1.1);
}

/* =============================================== */
/* RESPONSIVE IMPROVEMENTS */
/* =============================================== */

/* Header Responsive */
header {
    transition: all 0.3s ease;
}

/* Mobile First - Small devices */
@media (max-width: 640px) {

    /* Header mobile optimization */
    header {
        padding: 0.75rem 1rem !important;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start !important;
    }

    header .flex {
        gap: 0.5rem !important;
    }

    header img {
        height: 1.75rem !important;
        /* Logo más pequeño: 28px */
    }

    header .h-6 {
        height: 1rem !important;
    }

    header span {
        font-size: 0.7rem !important;
        line-height: 1rem;
    }

    header>div:last-child {
        font-size: 0.6rem !important;
        padding: 0.25rem 0.5rem !important;
        align-self: flex-end;
    }

    /* General mobile spacing */
    .slide-section {
        padding: 60px 16px;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .card-corporate {
        padding: 16px !important;
    }

    /* Chart heights on mobile */
    canvas {
        min-height: 250px !important;
    }
}

/* Tablets */
@media (min-width: 641px) and (max-width: 1024px) {
    header {
        padding: 1rem 1.5rem !important;
    }

    header img {
        height: 2rem !important;
        /* 32px en tablet */
    }

    .slide-section {
        padding: 80px 24px;
    }

    canvas {
        min-height: 300px !important;
    }
}

/* Large screens - optimize spacing */
@media (min-width: 1025px) {
    .container {
        max-width: 1280px;
    }

    header img {
        height: 2.5rem;
        /* 40px en desktop */
    }
}