/********** Template CSS **********/
:root {
    --primary: #1dafd9;
    --light: #F0FBFC;
    --dark: #05083d;
    --fondo: #225e8b;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 13px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 800.00px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../images/carousel-3.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service ***/
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}



#carousel {
  margin-top: 250px;
  position: relative;
  height: 400px;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
}
#carousel div {
  position: absolute;
  transition: transform 1s, left 1s, opacity 1s, z-index 0s;
  opacity: 1;
}
#carousel div img {
  width: 400px;
  transition: width 1s;
}
#carousel div.hideLeft {
  left: 0%;
  opacity: 0;
  transform: translateY(50%) translateX(-50%);
}
#carousel div.hideLef img {
  width: 200px;
}
#carousel div.hideRight {
  left: 100%;
  opacity: 0;
  transform: translateY(50%) translateX(-50%);
}
#carousel div.hideRight img {
  width: 200px;
}
#carousel div.prev {
  z-index: 5;
  left: 30%;
  transform: translateY(50px) translateX(-50%);
}
#carousel div.prev img {
  width: 300px;
}
#carousel div.prevLeftSecond {
  z-index: 4;
  left: 15%;
  transform: translateY(50%) translateX(-50%);
  opacity: 0.7;
}
#carousel div.prevLeftSecond img {
  width: 200px;
}
#carousel div.selected {
  z-index: 10;
  left: 50%;
  transform: translateY(0px) translateX(-50%);
}
#carousel div.next {
  z-index: 5;
  left: 70%;
  transform: translateY(50px) translateX(-50%);
}
#carousel div.next img {
  width: 300px;
}
#carousel div.nextRightSecond {
  z-index: 4;
  left: 85%;
  transform: translateY(50%) translateX(-50%);
  opacity: 0.7;
}
#carousel div.nextRightSecond img {
  width: 200px;
}






/* Resume */
.timeline {
    position: relative;
  }
  
  .timeline .timelin-title {
    font-size: 20px;
    text-transform: uppercase;
    margin-left: 25px;
  }
  .timeline .title-fantasma{
    color: white;
  }
  .timeline li {
    padding: 0 20px 20px 30px;
    list-style: none;
    border-left: 2px solid #f1f1f1;
  }
  
  .timeline li .content-text {
    background: #f2f2f2;
    padding: 20px;
  }
  
  .timeline li .line-title {
    font-size: 16px;
    line-height: 6px;
  }
  
  .timeline li span {
    font-size: 12px;
    padding: 9px 0;
    display: block;
  }
  
  .timeline li .line-text {
    color: #888;
    line-height: 18px;
  }
  
  .timeline li:first-child:before {
    border: 0;
    background: none;
    position: relative;
  }
  
  .timeline li:last-child {
    padding: 0 20px 0px 30px;
  }
  
  .timeline li:before {
    content: "";
    border: solid 2px;
    width: 8px;
    height: 8px;
    border-radius: 50px;
    -moz-border-radius: 50px;
    -webkit-border-radius: 50px;
    font-size: 8px;
    margin-left: -35px;
    font-weight: 400;
    background: #fff;
    display: block;
    position: absolute;
    margin-top: 18px;
    border-color: #0b1e3e !important;
  }
  
  .timeline li:first-child i {
    font-size: 20px;
    float: left;
    margin-left: -30px;
    line-height: 50px;
    border-radius: 30px;
    margin: -12px -55px;
    background: #0b1e3e;
    color: #fff;
    width: 50px;
    height: 50px;
    text-align: center;
  }


/*-----------------------------------
NUEVOS ESILOS PARA ADMISIONES 
--------------------------------*/
/* Estilos de Encabezado */
.page-header-slim {
    background: #001529;
    border-bottom: 1px solid rgba(79, 195, 247, 0.3);
}

.title-minimal {
    font-size: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.title-line {
    width: 40px;
    height: 2px;
    background: #4fc3f7;
    margin: 8px auto 0;
}
    :root {
        --primary-blue: #002129;
        --celeste-imedi: #4fc3f7;
        --soft-bg: #f4f7f8;
    }

    body { background-color: var(--soft-bg); color: var(--primary-blue); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

    /* Header Estilizado */
    .page-header {
        background: linear-gradient(rgba(0, 33, 41, 0.9), rgba(0, 33, 41, 0.8)), url('ficha2024/proceso.jpg') center center no-repeat;
        background-size: cover;
        padding: 100px 0;
        border-bottom: 5px solid var(--celeste-imedi);
    }

    /* Bloques de Proceso (Sustituyen la imagen) */
    .step-card {
        background: white;
        border-radius: 15px;
        padding: 30px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        transition: transform 0.3s ease;
        border-bottom: 4px solid transparent;
        height: 100%;
    }
    .step-card:hover { transform: translateY(-10px); border-color: var(--celeste-imedi); }
    .step-icon {
        width: 60px;
        height: 60px;
        background: var(--primary-blue);
        color: var(--celeste-imedi);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        font-size: 1.5rem;
    }

    /* Formulario Estilo Premium */
    .glass-form {
        background: white;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    }

    .section-divider {
        display: flex;
        align-items: center;
        margin: 30px 0 20px;
    }
    .section-divider span {
        background: var(--primary-blue);
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: bold;
        text-transform: uppercase;
        margin-right: 15px;
    }
    .section-divider hr { flex: 1; margin: 0; opacity: 0.1; }

    .form-floating > .form-control { border-radius: 10px; border: 1px solid #ddd; }
    .form-floating > .form-control:focus { border-color: var(--celeste-imedi); box-shadow: 0 0 0 0.25rem rgba(79, 195, 247, 0.1); }

    /* Licenciatura Selection */
    .lic-card {
        cursor: pointer;
        border: 2px solid transparent;
        border-radius: 15px;
        padding: 10px;
        transition: all 0.3s ease;
    }
    input[type="radio"].with-images { display: none; }
    input[type="radio"]:checked + .lic-card {
        border-color: var(--celeste-imedi);
        background: rgba(79, 195, 247, 0.05);
    }

    .btn-enviar {
        background: var(--primary-blue);
        color: white;
        border: none;
        padding: 15px;
        border-radius: 10px;
        font-weight: bold;
        letter-spacing: 1px;
        transition: 0.3s;
    }
    .btn-enviar:hover { background: var(--celeste-imedi); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

    .info-box {
        background: var(--primary-blue);
        color: white;
        border-radius: 15px;
        padding: 25px;
    }

  

    /*----------------------------
    MENU
    ------------------------*/
    /* --- CONFIGURACIÓN DE DESKTOP --- */
    .header-premium {
        height: 95px;
        padding: 0;
        /* Degradado Suave: Blanco -> Azul Obscuro */
        background: linear-gradient(to right, 
            #ffffff 0%, 
            #ffffff 15%, 
            #002349 45%, 
            #001529 100%
        );
        border-bottom: 1px solid rgba(79, 195, 247, 0.2);
        transition: all 0.4s ease;
        z-index: 1000;
    }

    .logo-fluid {
        max-height: 55px;
        margin-left: 20px;
        flex-shrink: 0;
    }

    /* Lista de navegación horizontal */
    .nav-list {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .navmenu a {
        color: #ffffff !important;
        font-size: 0.82rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        padding: 0 15px;
        line-height: 95px; /* Alineación vertical */
        white-space: nowrap;
        transition: 0.3s ease;
        text-decoration: none;
    }

    .navmenu a:hover, 
    .navmenu a.active {
        color: #4fc3f7 !important;
    }

    /* Botón especial para Ficha (opcional si quieres que resalte) */
    .navmenu a.btn-ficha {
        background: rgba(79, 195, 247, 0.1);
        border-left: 1px solid rgba(79, 195, 247, 0.2);
        padding: 0 25px;
    }

    .mobile-nav-toggle {
        display: none; /* Oculto en PC */
        cursor: pointer;
        font-size: 32px;
    }

    /* --- VISTA TABLET --- */
    @media (max-width: 1200px) {
        .navmenu a {
            font-size: 0.72rem;
            padding: 0 10px;
        }
        .header-premium {
            background: linear-gradient(to right, #ffffff 0%, #ffffff 18%, #002349 40%, #001529 100%);
        }
    }

    /* --- VISTA CELULAR --- */
    @media (max-width: 991px) {
        .header-premium {
            height: 75px;
            background: #ffffff; /* Fondo sólido en móvil */
            border-bottom: 2px solid #002349;
        }

        .logo-fluid {
            max-height: 45px;
        }

        .mobile-nav-toggle {
            display: block; 
            color: #002349 !important;
            margin-right: 20px;
        }

        .nav-list {
            display: none; /* Ocultar horizontal */
        }

        /* Menú activo en móvil */
        .navmenu.mobile-active .nav-list {
            display: block; 
            position: absolute;
            top: 75px;
            left: 0;
            right: 0;
            background: #002349;
            padding: 20px 0;
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            z-index: 1001;
        }

        .navmenu.mobile-active .nav-list li {
            width: 100%;
        }

        .navmenu.mobile-active .nav-list a {
            line-height: 50px; 
            padding: 0 30px;
            font-size: 1rem;
            display: block;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        
        .navmenu a.btn-ficha {
            background: #4fc3f7;
            color: #002349 !important;
        }
    }


    /* ----------------
    FOOTER 
    ---------------------------*/
    .footer-premium {
    position: relative;
    background-color: #002349; /* Azul Marino Institucional */
    overflow: hidden;
    padding: 0; /* Eliminamos padding excesivo */
}

.footer-mesh-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background: linear-gradient(45deg, #001a35, #002349, #004d99, #002349);
    background-size: 400% 400%;
    animation: meshGradient 15s ease infinite;
    opacity: 0.7;
}

@keyframes meshGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-celeste {
    color: #4fc3f7 !important; /* Celeste Premium */
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Botones sociales más pequeños y elegantes */
.social-btn-sm {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(79, 195, 247, 0.2);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn-sm:hover {
    background: #4fc3f7;
    color: #002349;
    transform: translateY(-2px);
}

.footer-glow-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, #002349, transparent);
    z-index: 3;
}

.footer-ticker-slim {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 21, 41, 0.5); /* Fondo oscuro muy sutil */
    padding: 5px 0; /* Más delgado */
    border-top: 1px solid rgba(79, 195, 247, 0.1);
    border-bottom: 1px solid rgba(79, 195, 247, 0.1);
    display: flex;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: infinite-scroll 20s linear infinite;
}

.ticker-item {
    color: #002349; /* Tu celeste institucional */
    font-size: 0.7rem; /* Texto pequeño y elegante */
    font-weight: 500;
    letter-spacing: 2px;
    padding: 0 40px;
    text-transform: uppercase;
}

/* La clave del movimiento infinito sin corte */
@keyframes infinite-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Se desplaza exactamente la mitad (el primer bloque) */
    }
}

/* Pausa suave al pasar el mouse */
.footer-ticker-slim:hover .ticker-content {
    animation-play-state: paused;
}
