/* ============================================================
   HERO CAROUSEL — CorpoSabana
   Carrusel de portada con peek lateral e infinite loop
   ============================================================ */

/* -- Reset dentro del hero ---------------------------------- */
.cps2-hero h1::after,
.cps2-hero h2::after,
.cps2-hero h3::after { display: none !important; content: none !important; }
.cps2-hero * { box-sizing: border-box; line-height: normal; }

/* -- Contenedor principal ----------------------------------- */
.cps2-hero {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    background: #d8d8d8;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
}

/* -- Track: tira horizontal de slides ---------------------- */
.cps2-track {
    display: flex;
    align-items: stretch;
    flex: 1;
    gap: 18px;
    transition: transform .65s cubic-bezier(.25, 0, .25, 1);
    will-change: transform;
}

/* -- Slide -------------------------------------------------- */
.cps2-slide {
    flex: 0 0 93%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    min-height: 76vh;
}

/* Ocultar contenido en slides inactivos */
.cps2-slide:not(.active) .cps2-content,
.cps2-slide:not(.active) .cps2-badges { opacity: 0 !important; animation: none !important; }

/* Gradiente oscuro de abajo hacia arriba sobre la imagen */
.cps2-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.82) 0%,
        rgba(0,0,0,.48) 42%,
        rgba(0,0,0,.22) 70%,
        rgba(0,0,0,.08) 100%
    );
}

/* -- Overlay de luces de color ----------------------------- */
.cps2-lights {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(15,30,90,0.78) 0%, rgba(8,18,55,0.60) 50%, rgba(20,10,60,0.72) 100%),
        radial-gradient(ellipse at 30% 60%, rgba(249,115,22,0.22) 0%, transparent 55%);
}

/* -- Tarjeta glassmorphism (derecha) ----------------------- */
.cps2-feature-card {
    position: absolute;
    right: 17rem;
    top: calc(50% - 1.5rem);
    z-index: 3;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: 22px;
    padding: 2rem 2.4rem 1.8rem;
    min-width: 290px;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    opacity: 0;
    transform: translateY(-50%) translateX(22px);
}
.cps2-slide.active .cps2-feature-card {
    animation: cps2CardIn .5s .30s ease forwards;
}
@keyframes cps2CardIn {
    from { opacity: 0; transform: translateY(-50%) translateX(22px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.cps2-feature-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.cps2-feature-item .cps2-fi-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(11,124,128,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0B7C80;
    font-size: 1rem;
}
.cps2-feature-divider {
    height: 1px;
    background: rgba(255,255,255,0.18);
    margin: .1rem 0;
}
.cps2-feature-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.2rem;
    align-self: stretch;
    width: 60%;
    margin: 0 auto;
    background: linear-gradient(135deg, #f97316, #e05c00);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(249,115,22,.35);
    transition: transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.cps2-feature-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249,115,22,.52);
    color: #fff;
    text-decoration: none;
}
@media(max-width: 900px) { .cps2-feature-card { display: none; } }

/* -- Contenido bottom-left --------------------------------- */
.cps2-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 3;
    padding: 0 4rem 5.5rem;
    max-width: 820px;
    pointer-events: none;
}
.cps2-content * { pointer-events: auto; }

/* -- Animaciones de entrada -------------------------------- */
@keyframes cps2Up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cps2-eyebrow, .cps2-title, .cps2-desc, .cps2-btn, .cps2-feature-card { opacity: 0; }
.cps2-slide.active .cps2-eyebrow { animation: cps2Up .5s  .10s ease forwards; }
.cps2-slide.active .cps2-title   { animation: cps2Up .55s .22s ease forwards; }
.cps2-slide.active .cps2-desc    { animation: cps2Up .5s  .36s ease forwards; }
.cps2-slide.active .cps2-btn     { animation: cps2Up .5s  .50s ease forwards; }

/* -- Eyebrow (etiqueta naranja) ----------------------------- */
.cps2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fb923c;
    margin-bottom: .9rem;
}
.cps2-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: #f97316;
    border-radius: 2px;
}

/* -- Título principal -------------------------------------- */
.cps2-title {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.08;
    margin: 0 0 1.1rem;
    text-transform: uppercase;
    letter-spacing: -.02em;
    text-shadow: 0 2px 24px rgba(0,0,0,.5);
}

/* -- Descripción ------------------------------------------- */
.cps2-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.72);
    margin: 0 0 2.2rem;
    max-width: 500px;
}
.cps2-desc strong { color: #fff; }

/* -- Botón CTA principal ----------------------------------- */
.cps2-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 1.01rem 3.15rem;
    background: linear-gradient(135deg, #f97316, #dc4c0a);
    color: #fff;
    font-size: 1.46rem;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(249,115,22,.42);
    transition: transform .2s, box-shadow .2s;
}
.cps2-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(249,115,22,.58); color: #fff; text-decoration: none; }
.cps2-btn i { transition: transform .2s; }
.cps2-btn:hover i { transform: translateX(4px); }

/* -- Flechas de navegación --------------------------------- */
.cps2-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cps2-arrow:hover { background: rgba(249,115,22,.4); transform: translateY(-50%) scale(1.08); }
.cps2-prev { left: 1.5rem; }
.cps2-next { right: 1.5rem; }

/* -- Barras de progreso (bottom) --------------------------- */
.cps2-bars {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    gap: 3px;
}
.cps2-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,.2);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.cps2-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 0%;
    background: #f97316;
    transition: none;
}
.cps2-bar.done::after  { width: 100%; }
.cps2-bar.active::after { animation: cps2BarFill 5500ms linear forwards; }
@keyframes cps2BarFill { from { width: 0% } to { width: 100% } }

/* -- Responsive -------------------------------------------- */
@media(max-width: 768px) {
    .cps2-content  { padding: 0 1.6rem 4.8rem; max-width: 100%; }
    .cps2-arrow    { display: none; }
    .cps2-title    { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
}

/* ============================================================
   DOCENTES CAROUSEL
   ============================================================ */
.doc-car-wrap {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0 5rem;
}
.doc-car-track {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: transform .65s cubic-bezier(.25, 0, .25, 1);
    will-change: transform;
}
.doc-car-slide {
    flex: 0 0 500px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 2.2rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.38;
    transition: opacity .45s, border-color .45s, background .45s;
}
.doc-car-slide.active {
    opacity: 1;
    border-color: rgba(15,158,164,0.35);
    background: rgba(15,158,164,0.07);
}
.doc-car-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    appearance: none;
}
.doc-car-arrow:hover { background: rgba(15,158,164,.4); transform: translateY(-50%) scale(1.08); }
.doc-car-prev { left: 1rem; }
.doc-car-next { right: 1rem; }
.doc-car-bars {
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}
.doc-car-bar {
    width: 36px;
    height: 4px;
    background: rgba(255,255,255,.18);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
}
.doc-car-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 0%;
    background: #0f9ea4;
    transition: none;
}
.doc-car-bar.done::after  { width: 100%; }
.doc-car-bar.active::after { animation: docBarFill 5500ms linear forwards; }
@keyframes docBarFill { from { width: 0% } to { width: 100% } }
@media(max-width: 768px) {
    .doc-car-slide { flex: 0 0 280px; }
    .doc-car-arrow { display: none; }
}
