

.linear {
    background: linear-gradient(90deg, #00a551, #a3dc35);
    color: white;
    min-height: 1vh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.linear-container {
    width: 100%;
    margin: 0 6%;
    display: flex;
    align-items: center;
}

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

.gestion-section {
    background: #ffffff;
    padding: 3.5rem 0 3.5rem 0;
}

/*  TÍTULO GESTIÓN PRODUCTIVA */
.gestion-titulo {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #212736;
    margin-bottom: 2.3rem;
    font-family: "Montserrat", sans-serif;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gestion-titulo span {
    display: inline-block;
    border-bottom: 2px solid #a3dc35;
    padding-bottom: 10px;
    line-height: 1.2;
}

/* ====== CONTENIDO: TEXTO + VIDEO ====== */
.gestion-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.2rem;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/*  COLUMNA DE TEXTO  */
.gestion-texto {
    flex: 1;
    color: #232736;
    font-size: 1.07rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
    text-align: justify;
    background: #fff;
    border-radius: 16px;
    box-shadow:
            0 4px 6px rgba(0, 0, 0, 0.04),
            0 12px 24px rgba(44, 44, 44, 0.06),
            0 24px 48px rgba(0, 165, 81, 0.03);
    padding: 2.5rem 2.8rem;
    min-width: 260px;
    border: 1px solid rgba(0, 165, 81, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gestion-texto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00a551, #a3dc35);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gestion-texto:hover {
    transform: translateY(-4px);
    box-shadow:
            0 8px 12px rgba(0, 0, 0, 0.06),
            0 16px 32px rgba(44, 44, 44, 0.08),
            0 32px 64px rgba(0, 165, 81, 0.08);
    border-color: rgba(0, 165, 81, 0.15);
}

.gestion-texto:hover::before {
    opacity: 1;
}

.gestion-texto::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
            circle,
            rgba(163, 220, 53, 0.03) 0%,
            transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.gestion-texto:hover::after {
    opacity: 1;
}


.gestion-lista {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: start;
}

.gestion-lista li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #232736;
}

.gestion-lista li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #00a551;
    font-size: 20px;
    line-height: 1.6;
}



.gestion-video {
    flex: 1.4;
    min-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gestion-video-wrapper {
    position: relative;
    padding: 5px;
    background: linear-gradient(90deg, #00a551, #a3dc35);
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 165, 81, 0.2);
    animation: brilloGestion 4s ease-in-out infinite;
    width: 100%;
    max-width: 900px;
}

.gestion-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gestion-video-container:hover {
    transform: translateY(-8px) scale(1.01);
}

/* Iframe de YouTube ocupa todo el espacio */
.gestion-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

/* Animación de brillo */
@keyframes brilloGestion {
    0%, 100% {
        box-shadow: 0 15px 50px rgba(0, 165, 81, 0.2);
    }
    50% {
        box-shadow: 0 20px 60px rgba(163, 220, 53, 0.4);
    }
}



@media (max-width: 1024px) {
    .gestion-content {
        gap: 2.8rem;
    }

    .gestion-video-wrapper {
        max-width: 800px;
    }
}

@media (max-width: 900px) {
    .gestion-content {
        flex-direction: column;
        gap: 2.5rem;
        align-items: stretch;
    }

    .gestion-video-wrapper {
        max-width: 100%;
    }

    .gestion-texto {
        padding: 1.7rem 1.1rem 1.7rem 1.1rem;
    }

    .gestion-titulo {
        font-size: 1.45rem;
    }
}

@media (max-width: 768px) {
    .gestion-section {
        padding: 2.5rem 0;
    }

    .gestion-texto {
        padding: 2rem 1.8rem;
        font-size: 1rem;
        border-radius: 12px;
    }

    .gestion-video-wrapper {
        border-radius: 20px;
        padding: 4px;
    }

    .gestion-video-container {
        border-radius: 16px;
    }

    .gestion-video-container iframe {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .gestion-section {
        padding: 2rem 0;
    }

    .gestion-texto {
        padding: 1.5rem 1.3rem;
        font-size: 0.95rem;
    }

    .gestion-video-wrapper {
        border-radius: 16px;
        padding: 3px;
    }

    .gestion-video-container {
        border-radius: 13px;
    }

    .gestion-video-container iframe {
        border-radius: 13px;
    }
}