/********** Template CSS **********/
:root {
    --primary: #C8A04A;
    --secondary: #555555;
    --light: #E5E9F0;
    --dark: #0A1A2F;
}

p.diplomados {
  text-align: justify;
}

#navbar {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  overflow: hidden;
}

/* === Botón Iniciar Sesión === */
.btn-login {
  color: #000;
  background-color: transparent;
  border: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 500;
}

/* Hover: fondo mostaza */
.btn-login:hover {
  background-color: transparent;
  transition: all 0.3s ease;
  color: var(--primary);
}

/* Icono blanco al pasar */
.btn-login:hover i {
  color: var(--primary);
  transition: all 0.3s ease;
}

/* Centrado adicional en móviles (seguridad extra) */
@media (max-width: 991px) {
  .navbar .btn-login {
    margin: auto;
    display: inline-flex;
  }
}

.container-teams {
    max-width: 1200px;
    max-height: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

#team {
    object-fit: fill;
    width: 100%;
    height: 100%;
}

.spinner-logo {
    animation: pulse-animation 2s ease-in-out infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);  
        opacity: 1;            
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;          
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.logo {
    padding-top: 5px;
    padding-bottom: 5px;
    margin-left: 5px;
    margin-bottom: 5px;
    width: 100px;
    height: 80px;
}

.ieep {
    margin-top: 15px;
}

.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 30px;
    background-color: #25D366;
    border-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

/* Efecto hover del botón */
.btn-whatsapp:hover {
    background-color: #1ebe5b;
    transform: scale(1.1);
    color: white;
}

/* Tooltip (texto flotante) */
.tooltip-text {
    visibility: hidden;
    width: 110px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 6px 8px;
    position: absolute;
    bottom: 90px;
    right: 50%;
    transform: translateX(50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Mostrar tooltip al pasar el mouse */
.btn-whatsapp:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    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-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    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;
}

/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/fondo_header.png) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #092139;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin: 15px;
    padding: 15px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* ===== SUBMENÚS DENTRO DEL DROPDOWN ===== */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 0;
  display: none;
  position: absolute;
}

/* Estilo para los textos */
.dropdown-menu .dropdown-item {
  color: #0A1A2F;
  background-color: #ffffff;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #C8A04A;
  color: #000;
}

/* Alinear la flecha ▸ */
.dropdown-submenu > .dropdown-item::after {
  content: "▸";
  float: right;
}

/* Evitar que todos los submenús se abran a la vez */
.dropdown-menu > .dropdown-submenu:not(:hover) > .dropdown-menu {
  display: none !important;
}

/* === diplomados.css === */
/* --- Ajustes generales --- */
.dropdown-menu {
  padding: 0 !important;
  margin: 0 !important;
}

/* --- Submenú (solo escritorio) --- */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  display: none;
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
  background-color: #fff;
  border-radius: 4px;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block !important;
}

/* --- Estilos de ítems --- */
.dropdown-item {
  padding: 6px 15px !important;
  color: #000 !important;
  background-color: #fff !important;
}

.dropdown-item:hover {
  background-color: #C8A04A !important;
  color: #000 !important;
}

/* --- Flecha del submenú --- */
.dropdown-submenu > .dropdown-item::after {
  content: "▸";
  float: right;
  margin-left: 5px;
  font-size: 12px;
  color: #666;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }

    /* === Flecha principal (Diplomados y Especializaciones) moderna === */
    .navbar .dropdown-toggle::after {
        border: none;
        content: "\f105"; /* fa-angle-right */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        vertical-align: middle;
        margin-left: 8px;
        transition: transform 0.3s ease;
        display: inline-block;
    }

    /* Al pasar el cursor: flecha hacia abajo */
    .navbar .nav-item:hover > .nav-link.dropdown-toggle::after {
        transform: rotate(90deg); /* gira 90° hacia abajo */
    }

    /* === Flechita animada para submenús === */
    .dropdown-submenu > .dropdown-item::after {
        content: "\f105";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        margin-left: 6px;
        opacity: 0.7;
        transition: transform 0.3s ease, opacity 0.3s ease;
        display: inline-block;
    }

    .dropdown-submenu:hover > .dropdown-item::after {
        transform: rotate(90deg);
        opacity: 1;
    }
}
/* ================================
/* ================================
   ACORDEÓN MÓVIL BONITO (3 niveles)
   ================================ */
@media (max-width: 991.98px) {
  /* Contenedor general del menú */
  .navbar .dropdown-menu {
    position: static !important;
    float: none !important;
    display: none;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    background: #fff;
  }

  /* Mostrar el nivel visible */
  .navbar .dropdown-menu.show {
    display: block;
  }

  /* ----------- Submenús ----------- */
  .dropdown-submenu > .dropdown-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin-left: 10px;
    border-left: 2px solid #e5e5e5;
    transition: max-height 0.35s ease, padding 0.25s ease, margin 0.25s ease;
    background-color: #fafafa;
    border-radius: 6px;
  }

  .dropdown-submenu.show > .dropdown-menu {
    max-height: 800px;
    padding: 5px 0;
    margin-top: 5px;
  }

  /* ----------- Ítems de menú ----------- */
  .dropdown-menu .dropdown-item {
    text-align: center;
    padding: 10px 16px !important;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: background 0.25s ease, color 0.25s ease;
    position: relative;
    font-weight: 500;
    color: #333;
  }

  .dropdown-menu .dropdown-item:hover {
    background-color: #f7f7f7;
    color: var(--primary);
  }

/* ----------- Flechas modernas (Font Awesome) ----------- */
.navbar .dropdown-toggle::after,
.dropdown-submenu > .dropdown-item::after {
  content: "\f105"; /* fa-angle-right */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.85rem;
  float: right;
  margin-left: 8px;
  color: #666;
  opacity: 0.8;
  transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

/* Flecha hacia abajo (cuando está abierta) */
.dropdown-toggle.show::after,
.dropdown-submenu.show > .dropdown-item::after {
  transform: rotate(90deg);
  color: var(--primary);
  opacity: 1;
}


  /* ----------- Nivel 3 (más indentado) ----------- */
  .dropdown-submenu .dropdown-submenu > .dropdown-menu {
    margin-left: 20px;
    border-left: 2px dashed #ddd;
    background-color: #fdfdfd;
  }

  .dropdown-submenu .dropdown-submenu > .dropdown-menu .dropdown-item {
    font-size: 0.9rem;
  }

  /* ----------- Animación y aspecto general ----------- */
  .navbar .dropdown-menu {
    border-radius: 8px;
  }

  .navbar .dropdown-item {
    border-bottom: 1px solid #eee;
  }

  .navbar .dropdown-item:last-child {
    border-bottom: none;
  }

  /* ----------- Botón de inicio de sesión ----------- */
  .navbar .btn-login {
    background: none !important;
    border: none !important;
    color: #000 !important;
    font-weight: 500;
    text-align: center;
    display: block;
    width: 100%;
    margin: 4px 0 !important;
    padding: 8px 0 !important;
    font-size: 0.95rem;
  }

  .navbar .btn-login:hover {
    background-color: #f7f7f7 !important;
    color: var(--primary) !important;
  }

  /* ----------- Espaciado general del menú ----------- */
  .navbar-nav .nav-link {
    margin: 3px 0 !important;
    padding: 6px 0 !important;
    font-size: 0.95rem;
    text-align: center;
  }

  .navbar-collapse {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
}
/* Wrapper */
.notification-wrapper {
    position: relative;
}

/* Campanita */
#openNotifPanel {
    cursor: pointer;
    transition: transform .2s ease;
}

/* Badge rojo */
.notif-badge {
    position: absolute;
    top: 15px;
    right: 5px;
    background: #e63946;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 6px;
    display: none;
}

/* Panel dropdown */
.notif-panel {
    width: 330px;
    max-height: 380px;
    overflow-y: auto;
    border-radius: 14px !important;
    padding: 0 !important;
    margin-top: 12px;
    left: 50% !important;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    transition: 0.25s ease;
}

/* Cuando el dropdown está abierto */
.show > .notif-panel {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Header */
.notif-header {
    padding: 12px;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid #eee;
}

/* Scroll */
.notif-panel::-webkit-scrollbar {
    width: 6px;
}
.notif-panel::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 8px;
}

/* Animación campana */
.bell-animate {
    animation: bellShake 0.6s ease;
}
@keyframes bellShake {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-18deg); }
    40% { transform: rotate(18deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}