/* ===== Namespace base ===== */
:root {
    --koon-bg: #0b486b;
    --koon-bg-dark: #051f2b;
    --koon-accent: #00a4a6;
    --koon-text: #f5f7fb;
    --koon-muted: #cfe3ea;
    --koon-card: rgba(255, 255, 255, .06);
}

.koon-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.koon-btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.koon-btn:hover {
    transform: translateY(-2px);
}

.koon-btn--primary {
    background: var(--koon-accent);
    color: #ffffff;
}

.koon-btn--ghost {
    background: transparent;
    color: var(--koon-text);
    border-color: rgba(255, 255, 255, .3);
}

.koon-btn--light {
    background: #fff;
    color: #00222b;
}

/* ===== HERO CON VIDEO ===== */
.koon-hero {
    position: relative;
    color: var(--koon-text);
    padding: clamp(25px, 6vw, 20px) 0;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Contenedor del video */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Video de fondo */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1) contrast(1.1);
    /* Disminuye brillo para mejor legibilidad */
}

/* Overlay para oscurecer el video y mejorar legibilidad */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(11, 72, 107, 0.8) 0%,
            rgba(2, 47, 64, 0.5) 100%);
    z-index: 2;
}

/* Asegurar que el contenido esté sobre el video */
.koon-hero .koon-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
}

/* Mejorar legibilidad del texto sobre video */
.koon-hero__copy h1 {
    font-size: clamp(28px, 3.8vw, 42px);
    line-height: 1.15;
    margin: 0 0 14px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.koon-hero__copy .lead {
    font-size: clamp(15px, 2vw, 19px);
    color: var(--koon-muted);
    margin: 0 0 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Botones con mejor contraste sobre video */
.koon-hero__cta .koon-btn {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.koon-hero__cta .koon-btn--primary {
    background: rgba(0, 164, 166, 0.9);
}

.koon-hero__cta .koon-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
}

.koon-hero__cta .koon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Imagen y blob sobre video */
.koon-hero__media {
    position: relative;
    display: grid;
    place-items: center;
}

.koon-hero__image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    transform: translateY(-10px);
}

.koon-blob {
    position: absolute;
    top: -40px;
    right: -30px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(25, 192, 194, 0.6), rgba(0, 124, 126, 0.4));
    filter: blur(50px) saturate(1.3);
    opacity: 0.5;
    z-index: 1;
}

/* ===== RESPONSIVE PARA VIDEO ===== */
@media (max-width: 992px) {
    .koon-hero .koon-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .koon-hero__media {
        margin-top: 30px;
    }

    .koon-hero__image {
        max-width: 300px;
        transform: none;
    }

    .koon-blob {
        width: 260px;
        height: 260px;
        top: auto;
        bottom: -40px;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 768px) {
    .koon-hero {
        min-height: 80vh;
    }

    .hero-video {
        filter: brightness(0.3) contrast(1.1);
        /* Más oscuro en móviles */
    }
}

/* Optimización para rendimiento */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }

    .hero-video-container {
        background: linear-gradient(135deg, var(--koon-bg) 0%, #022f40 100%);
    }
}

/* Fallback para navegadores antiguos */
@supports not (object-fit: cover) {
    .hero-video {
        display: none;
    }

    .hero-video-container {
        background: linear-gradient(135deg, var(--koon-bg) 0%, #022f40 100%);
    }
}


/* ===== SECTION PROBLEMA MEJORADO ===== */
#problema {
    background: linear-gradient(135deg, #18516b 0%, #1c6b85 50%, #18516b 100%);
    padding: clamp(56px, 8vw, 96px) 0;
    color: var(--koon-text);
}

.problema-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: center;
}

.problema-text {
    display: flex;
    flex-direction: column;
}

.problema-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.problema-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.problema-image img:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Grid de cards ajustado */
.problema-grid {
    display: grid;
    gap: 20px;
}

.problema-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Cards más anchas y prominentes */
.problema-card {
    background: linear-gradient(145deg, rgba(48, 67, 93, 0.8) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px 10px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

/* Grid ajustado para cards más anchas */
.problema-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* Asegurar que las cards ocupen todo el ancho disponible */
.problema-grid {
    display: grid;
    width: 100%;
}

/* Efectos hover mejorados para cards anchas */
.problema-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 164, 166, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.problema-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--koon-accent), #19c0c2, #00a4a6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.problema-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 164, 166, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 164, 166, 0.4);
}

.problema-card:hover::before {
    opacity: 1;
}

.problema-card:hover::after {
    transform: scaleX(1);
}

/* Iconos más grandes para cards anchas */
.problema-card-icon {
    width: 100px;
    height: 90px;
    background: linear-gradient(135deg, var(--koon-accent) 0%, #b1feff 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 15px 30px rgba(0, 164, 166, 0.35);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

/* Iconos más grandes para cards anchas */
.problema-card-icon img {
    width: 70px;
    height: 70px;

}

.problema-card:hover .problema-card-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 20px 40px rgba(0, 164, 166, 0.5);
}

/* Tipografía más grande para cards anchas */
.problema-card h3 {
    margin: 0 0 25px;
    font-size: 22px;
    color: white;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.problema-card p {
    margin: 0;
    color: var(--koon-muted);
    line-height: 1.3;
    font-size: 16px;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* Ajustes responsive para cards anchas */
@media (max-width: 1200px) {
    .problema-card {
        padding: 35px 30px;
        min-height: 300px;
    }

    .problema-card-icon {
        width: 85px;
        height: 85px;
        font-size: 2.1rem;
    }

    .problema-card h3 {
        font-size: 22px;
    }

    .problema-card p {
        font-size: 17px;
    }
}

@media (max-width: 1024px) {
    .problema-grid--3 {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 600px;
        margin: 0 auto;
    }

    .problema-card {
        padding: 40px 35px;
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .problema-card {
        padding: 35px 25px;
        min-height: auto;
        border-radius: 18px;
    }

    .problema-card-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .problema-card h3 {
        font-size: 21px;
        margin-bottom: 20px;
    }

    .problema-card p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .problema-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .problema-card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .problema-card h3 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .problema-grid--3 {
        gap: 25px;
    }
}

/* Efecto adicional para mayor impacto visual */
.problema-card .card-glow {
    position: absolute;
    width: 150%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 164, 166, 0.1) 0%, transparent 70%);
    top: -25%;
    left: -25%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.problema-card:hover .card-glow {
    opacity: 1;
}

/* ===== GRID CARDS ===== */
.koon-grid {
    display: grid;
    gap: 24px;
}

.koon-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.koon-card {
    background: var(--koon-card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 30px 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
    backdrop-filter: blur(6px);
    transition: transform .25s ease, box-shadow .25s ease;
    text-align: center;
}

.koon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .35);
}

.koon-card h3 {
    margin: 0 0 16px;
    font-size: 20px;
    color: var(--koon-accent);
    font-weight: 600;
}

.koon-card p {
    margin: 0;
    color: var(--koon-muted);
    line-height: 1.6;
    font-size: 16px;
}

/* ===== FEATURES ===== */
.koon-feature {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.koon-feature__item {
    background: var(--koon-card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 30px 24px;
    text-align: center;
}

.koon-feature__item h3 {
    margin: 0 0 16px;
    font-size: 20px;
    color: var(--koon-accent);
    font-weight: 600;
}

.koon-feature__item p {
    margin: 0;
    color: var(--koon-muted);
    line-height: 1.6;
    font-size: 16px;
}

/* ===== SPLIT BENEFICIOS ===== */
.koon-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.koon-split__col {
    background: var(--koon-card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 30px 24px;
}

.koon-badge {
    display: inline-block;
    background: var(--koon-accent);
    color: #03252b;
    font-weight: 800;
    border-radius: 999px;
    padding: 8px 16px;
    margin-bottom: 16px;
}

.koon-list {
    margin: 0;
    padding-left: 16px;
    color: var(--koon-muted);
}

.koon-list li {
    margin: 8px 0;
    line-height: 1.6;
}

/* ===== CTA / MISIÓN CON VIDEO CORREGIDO ===== */
#mision {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 80px) 0;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.mision-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.mision-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4) contrast(1.1);
}

.mision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(8, 113, 139, 0.2) 0%,
            rgba(11, 72, 107, 0.2) 100%,
            rgba(2, 47, 64, 0.2) 100%);
    z-index: 2;
}

#mision .koon-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.koon-cta {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.koon-cta__copy h2 {
    margin: 0 0 20px;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.koon-cta__copy p {
    color: #f0f8ff;
    margin: 0 0 25px;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.3;
    font-weight: 300;
}

.koon-cta__copy .koon-btn--light {
    background: rgba(255, 255, 255, 0.95);
    color: #00222b;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
}


.koon-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.koon-logo img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}

.koon-logo:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.koon-logo:hover img {
    transform: scale(1.1);
}

.koon-seal {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 2px;
    background: radial-gradient(circle at 35% 35%, #19bfc26a, #008c8e);
    color: #001921;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    #mision {
        min-height: 350px;
        padding: clamp(30px, 5vw, 60px) 0;
    }

    .koon-cta {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .koon-cta__media {
        order: -1;
    }

    .koon-seal {
        width: 140px;
        height: 140px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    #mision {
        min-height: 300px;
        padding: 40px 0;
    }

    .koon-cta {
        gap: 25px;
    }

    .koon-seal {
        width: 120px;
        height: 120px;
        font-size: 18px;
    }
}