:root {
  --acreduca-orange: #ff7a00;
  --acreduca-blue: #181e6d;
  --acreduca-green: #62b832;
}

/* ===== DROPDOWN MENUS NAVBAR ===== */
.header-fixed-top .dropdown-menu {
  min-width: 300px;
  max-width: 440px;
  padding: 0.75rem;
  margin-top: 0.75rem;
  border: 1px solid rgba(24, 30, 109, 0.09);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.14),
    0 4px 10px rgba(15, 23, 42, 0.06);
  overflow: visible;
}

/* Evita que el dropdown se cierre al mover el mouse desde el título hacia el menú */
@media (min-width: 1400px) {
  .header-fixed-top .navbar .nav-item.dropdown {
    position: relative;
  }

  .header-fixed-top .navbar .nav-item.dropdown > .dropdown-menu {
    margin-top: 0.75rem;
  }

  .header-fixed-top .navbar .nav-item.dropdown > .dropdown-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.85rem;
    height: 0.85rem;
    background: transparent;
  }
}

/* ===== FIX DROPDOWNS MOBILE ===== */
@media (max-width: 1399.98px) {

  /* Los items con link + flecha deben permitir que el menú baje */
  .header-fixed-top .navbar .nav-item.dropdown.d-flex {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    width: 100%;
  }

  .header-fixed-top .navbar .nav-item.dropdown.d-flex > .nav-link:first-child {
    flex: 0 1 auto;
    padding-right: 0.35rem;
  }

  .header-fixed-top .navbar .nav-item.dropdown.d-flex > .dropdown-toggle-split {
    flex: 0 0 auto;
    padding-left: 0.15rem !important;
    padding-right: 0.35rem !important;
  }

  /* Fuerza que el menú desplegable siempre quede debajo del título */
  .header-fixed-top .navbar .nav-item.dropdown.d-flex > .dropdown-menu {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-top: 0.55rem;
    margin-left: 0;
  }

  /* También normaliza los dropdowns que no usan d-flex */
  .header-fixed-top .navbar .nav-item.dropdown > .dropdown-menu {
    width: 100%;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  /* Evita desbordes horizontales en textos largos */
  .header-fixed-top .dropdown-menu .dropdown-item {
    width: 100%;
    max-width: 100%;
  }

  .header-fixed-top .dropdown-menu .dropdown-item span {
    min-width: 0;
    white-space: normal;
  }
}

/* Quitamos cualquier fondo heredado raro */
.header-fixed-top .dropdown-menu::before {
  content: none !important;
}

/* Items */
.header-fixed-top .dropdown-menu .dropdown-item {
  white-space: normal;
  line-height: 1.35;
  font-size: 0.94rem;
  font-weight: 400;
  color: #3d3d3d;
  padding: 0.68rem 0.85rem;
  border-radius: 0.75rem;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-fixed-top .dropdown-menu .dropdown-item:hover,
.header-fixed-top .dropdown-menu .dropdown-item:focus {
  background-color: rgba(24, 30, 109, 0.06);
  color: #181e6d;
  transform: translateX(2px);
}

/* Íconos */
.header-fixed-top .dropdown-menu .dropdown-item i {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #181e6d;
  background-color: rgba(24, 30, 109, 0.07);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.header-fixed-top .dropdown-menu .dropdown-item:hover i,
.header-fixed-top .dropdown-menu .dropdown-item:focus i {
  background-color: rgba(255, 122, 0, 0.13);
  color: #ff7a00;
  transform: scale(1.04);
}

.header-fixed-top .dropdown-menu .dropdown-item span {
  flex: 1;
}

/* Divisor */
.header-fixed-top .dropdown-menu .dropdown-divider {
  margin: 0.55rem 0.85rem;
  border-top-color: rgba(24, 30, 109, 0.08);
}

/* Flecha */
.header-fixed-top .navbar .nav-link.dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.header-fixed-top .dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.45rem;
  vertical-align: 0.15em;
  position: relative;
  top: -1px;
  border-top: 0.3em solid currentColor;
  border-right: 0.3em solid transparent;
  border-left: 0.3em solid transparent;
  transition: transform 0.16s ease;
}

.header-fixed-top .dropdown-toggle.show::after {
  transform: rotate(180deg);
}

/* IMPORTANTE:
   Evita que un menú anterior se quede visible por hover mientras Bootstrap abre otro */
@media (min-width: 1400px) {
  .header-fixed-top .navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }

  .header-fixed-top .navbar .nav-item.dropdown:not(:hover) > .dropdown-menu:not(.show) {
    display: none;
  }

  .header-fixed-top .dropdown-menu {
    animation: acreducaDropdownIn 0.12s ease both;
  }

  @keyframes acreducaDropdownIn {
    from {
      opacity: 0;
      transform: translateY(6px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Menús largos */
.header-fixed-top #navbarServicios + .dropdown-menu,
.header-fixed-top #navbarModelos + .dropdown-menu,
.header-fixed-top #navbarNosotros + .dropdown-menu {
  min-width: 330px;
}

/* Mejor lectura */
.header-fixed-top .dropdown-menu li a {
  word-break: break-word;
}

/* ===== MOBILE ===== */
@media (max-width: 1399.98px) {
  .header-fixed-top .navbar-collapse {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .header-fixed-top .dropdown-menu {
    display: none;
    position: static;
    float: none;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    margin-top: 0.45rem;
    margin-bottom: 0.5rem;
    padding: 0.55rem;
    border-radius: 0.85rem;
    box-shadow: none;
    background: rgba(24, 30, 109, 0.035) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-fixed-top .dropdown-menu.show {
    display: block;
  }

  .header-fixed-top .navbar .nav-link.dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .header-fixed-top .dropdown-menu .dropdown-item {
    padding: 0.7rem 0.75rem;
  }

  .header-fixed-top .dropdown-menu .dropdown-item:hover,
  .header-fixed-top .dropdown-menu .dropdown-item:focus {
    transform: none;
  }
}

/* Ajuste para items padre con link + flecha separada */
.header-fixed-top .navbar .nav-item.dropdown.d-flex {
  gap: 0;
}

.header-fixed-top .navbar .nav-item.dropdown.d-flex > .nav-link:first-child {
  padding-right: 0.1rem;
}

.header-fixed-top .navbar .nav-item.dropdown.d-flex > .dropdown-toggle-split {
  width: auto;
  padding-left: 0.25rem !important;
  padding-right: 0.75rem !important;
  gap: 0 !important;
}

.header-fixed-top .navbar .nav-item.dropdown.d-flex > .dropdown-toggle-split::after {
  margin-left: 0.32rem !important;
}

/* footer */
#footer {
  position: relative;
  z-index: 1;
  overflow: visible !important;
}

.footer-brand-row {
  gap: 1rem;
}

.footer-logo {
  width: 110px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-theme-switch {
  position: relative;
  z-index: 30;
}

.footer-theme-switch .dropdown-menu {
  z-index: 2000;
}

.footer-theme-switch .btn {
  flex-shrink: 0;
}

.footer-theme-switch .theme-icon-active,
.footer-theme-switch .theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 576px) {
  .footer-brand-row {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.85rem;
  }

  .footer-theme-switch {
    margin-left: 0.25rem;
  }
}

/*17-05-26*/
.acreduca-top-header {
  background: #181e6d !important;
  color: #ffffff !important;
  border-bottom: none !important;
  font-size: 0.85rem;
}

.acreduca-top-header .container {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.acreduca-top-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.acreduca-top-left,
.acreduca-top-right {
  display: flex;
  align-items: center;
}

.acreduca-top-right {
  gap: 42px;
}

.acreduca-top-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 400;
  line-height: 1;
}

.acreduca-top-item i {
  color: #2f9bff !important;
  font-size: 1rem;
}

.acreduca-top-item span {
  color: #ffffff !important;
}

.acreduca-top-item:hover,
.acreduca-top-item:hover span {
  color: var(--acreduca-orange) !important;
}

.acreduca-top-item:hover i {
  color: var(--acreduca-orange) !important;
}

/* Botón/enlace Oficina */
.acreduca-top-office {
  letter-spacing: 0.03em;
  font-weight: 400;
}

/* Tablet y móvil */
@media (max-width: 767.98px) {
  .acreduca-top-header .container {
    min-height: 42px;
  }

  .acreduca-top-content {
    gap: 12px;
  }

  .acreduca-top-right {
    gap: 16px;
  }

  .acreduca-top-email {
    display: none !important;
  }

  .acreduca-top-item {
    font-size: 0.8rem;
    gap: 6px;
  }
}

@media (min-width: 1400px) {
    .pt-lg-custom {
        padding-top: 7rem !important;
    }
}

/* Ajuste para items padre con link + flecha separada */
.header-fixed-top .navbar .nav-item.dropdown.d-flex {
  gap: 0;
}

.header-fixed-top .navbar .nav-item.dropdown.d-flex > .nav-link:first-child {
  padding-right: 0.1rem;
}

.header-fixed-top .navbar .nav-item.dropdown.d-flex > .dropdown-toggle-split {
  width: auto;
  padding-left: 0.25rem !important;
  padding-right: 0.75rem !important;
  gap: 0 !important;
}

.header-fixed-top .navbar .nav-item.dropdown.d-flex > .dropdown-toggle-split::after {
  margin-left: 0.32rem !important;
}

/* =========================================================
   SERVICIOS - SUBMENUS MULTINIVEL
   ========================================================= */

.header-fixed-top .dropdown-submenu {
    position: relative;
}


/* ---------------------------------------------------------
   ITEM QUE ABRE SUBMENU
   --------------------------------------------------------- */

.header-fixed-top
.dropdown-submenu
> .dropdown-submenu-toggle {

    position: relative;

    display: flex;
    align-items: center;

    width: 100%;

    gap: 0.75rem;
}


.header-fixed-top
.dropdown-submenu
> .dropdown-submenu-toggle
> span {

    flex: 1;
    min-width: 0;
}


/* Segunda línea */
.header-fixed-top
.dropdown-submenu-toggle
small {

    display: block;

    margin-top: 0.15rem;

    color: #777d8f;

    font-size: 0.73rem;
    font-weight: 400;
    line-height: 1.3;
}


/* ---------------------------------------------------------
   FLECHA DE SUBMENU
   --------------------------------------------------------- */

.header-fixed-top
.dropdown-submenu
> .dropdown-submenu-toggle
> .submenu-arrow {

    width: auto !important;
    height: auto !important;
    min-width: auto !important;

    margin-left: auto;
    padding-left: 0.55rem;

    border-radius: 0 !important;

    background: transparent !important;

    color: #181e6d;

    font-size: 0.75rem;

    flex: 0 0 auto;

    transform: none !important;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1400px) {

    /* -----------------------------------------------------
       SUBMENUS OCULTOS POR DEFECTO
       ----------------------------------------------------- */

    .header-fixed-top
    .dropdown-submenu
    > ul.dropdown-menu {

        display: none !important;

        position: absolute !important;

        margin: 0 !important;

        opacity: 1 !important;
        visibility: visible !important;

        transform: none !important;

        z-index: 2000 !important;
    }


    /* Mostrar submenu por hover */
    .header-fixed-top
    .dropdown-submenu:hover
    > ul.dropdown-menu {

        display: block !important;
    }


    /* Mantener activo el padre */
    .header-fixed-top
    .dropdown-submenu:hover
    > .dropdown-submenu-toggle {

        background-color: rgba(24, 30, 109, 0.06);

        color: #181e6d;

        transform: none !important;
    }


    /* Flecha naranja */
    .header-fixed-top
    .dropdown-submenu:hover
    > .dropdown-submenu-toggle
    > .submenu-arrow {

        color: #ff7a00 !important;
    }


    /* =====================================================
       NIVEL 2
       PROYECTOS EDUCATIVOS
       ===================================================== */

    .header-fixed-top
    #navbarServicios
    ~ .dropdown-menu
    > .dropdown-submenu
    > ul.dropdown-menu {

        top: -0.65rem !important;

        left: calc(100% + 8px) !important;
        right: auto !important;

        width: 370px !important;

        min-width: 370px !important;
        max-width: 370px !important;

        padding: 0.65rem !important;
    }


    /*
     * Puente invisible entre Servicios
     * y Proyectos Educativos
     */
    .header-fixed-top
    #navbarServicios
    ~ .dropdown-menu
    > .dropdown-submenu
    > ul.dropdown-menu::after {

        content: "";

        position: absolute;

        top: 0;
        bottom: 0;

        left: -10px;

        width: 10px;

        background: transparent;
    }


    /* Items del segundo nivel */
    .header-fixed-top
    #navbarServicios
    ~ .dropdown-menu
    > .dropdown-submenu
    > ul.dropdown-menu
    > .dropdown-submenu
    > .dropdown-item {

        padding: 0.75rem 0.8rem;

        align-items: center;
    }


    /* =====================================================
       NIVEL 3
       DESCRIPCIÓN
       ===================================================== */

    /*
     * Este nivel abre hacia la IZQUIERDA
     * para no quedarse sin espacio.
     */
    .header-fixed-top
    .dropdown-submenu
    .dropdown-submenu
    > ul.dropdown-menu {

        top: 0 !important;

        left: auto !important;

        right: calc(100% + 8px) !important;

        width: 300px !important;

        min-width: 300px !important;
        max-width: 300px !important;

        padding: 0.6rem !important;
    }


    /*
     * Puente invisible hacia la izquierda.
     */
    .header-fixed-top
    .dropdown-submenu
    .dropdown-submenu
    > ul.dropdown-menu::after {

        content: "";

        position: absolute;

        top: 0;
        bottom: 0;

        left: auto !important;
        right: -10px !important;

        width: 10px;

        background: transparent;
    }


    /* =====================================================
       ITEM DESCRIPTIVO
       ===================================================== */

    .header-fixed-top
    .dropdown-description-item {

        display: flex !important;

        align-items: flex-start !important;

        gap: 0.75rem !important;

        padding: 0.9rem 1rem !important;

        white-space: normal !important;

        transform: none !important;
    }


    .header-fixed-top
    .dropdown-description-item:hover,
    .header-fixed-top
    .dropdown-description-item:focus {

        transform: none !important;

        background-color: rgba(24, 30, 109, 0.045);
    }


    .header-fixed-top
    .dropdown-description-item
    > span {

        min-width: 0;

        white-space: normal !important;

        color: #596174;

        font-size: 0.82rem;
        font-weight: 400;
        line-height: 1.45;
    }


    .header-fixed-top
    .dropdown-description-item
    > i {

        width: 1.9rem !important;
        height: 1.9rem !important;
        min-width: 1.9rem !important;

        margin-top: 0.05rem;

        flex-shrink: 0;
    }


    /* =====================================================
       AJUSTES VISUALES NIVEL 2
       ===================================================== */

    .header-fixed-top
    #navbarServicios
    ~ .dropdown-menu
    .dropdown-submenu-toggle
    > span {

        color: #343849;

        font-size: 0.9rem;
        font-weight: 500;
        line-height: 1.3;
    }


    .header-fixed-top
    #navbarServicios
    ~ .dropdown-menu
    .dropdown-submenu:hover
    > .dropdown-submenu-toggle
    > span {

        color: #181e6d;
    }


    .header-fixed-top
    #navbarServicios
    ~ .dropdown-menu
    .dropdown-submenu-toggle
    small {

        color: #7b8191;

        font-size: 0.72rem;
        font-weight: 400;
    }


    /* Evitar desplazamiento lateral heredado */
    .header-fixed-top
    .dropdown-submenu
    > .dropdown-item:hover {

        transform: none !important;
    }
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 1399.98px) {

    .header-fixed-top
    .dropdown-submenu {

        width: 100%;
    }


    /*
     * En móvil no hay menús laterales.
     * Se despliegan debajo.
     */
    .header-fixed-top
    .dropdown-submenu
    > ul.dropdown-menu {

        display: none !important;

        position: static !important;

        width: 100% !important;

        min-width: 100% !important;
        max-width: 100% !important;

        margin: 0.35rem 0 0.5rem 0 !important;

        padding: 0.5rem !important;

        transform: none !important;

        box-shadow: none !important;

        background: rgba(24, 30, 109, 0.035) !important;
    }


    .header-fixed-top
    .dropdown-submenu
    > ul.dropdown-menu.show {

        display: block !important;
    }


    .header-fixed-top
    .dropdown-submenu-toggle
    small {

        font-size: 0.72rem;

        line-height: 1.3;
    }


    .header-fixed-top
    .dropdown-description-item {

        align-items: flex-start !important;

        gap: 0.7rem;

        transform: none !important;
    }


    .header-fixed-top
    .dropdown-description-item
    > span {

        min-width: 0;

        white-space: normal !important;

        color: #596174;

        font-size: 0.82rem;
        line-height: 1.45;
    }


    .header-fixed-top
    .dropdown-description-item
    > i {

        flex-shrink: 0;
    }


    .header-fixed-top
    .dropdown-submenu
    > .dropdown-item:hover {

        transform: none !important;
    }
}

/* =========================================================
   NOSOTROS - CONFIANZA / ISO 9001
   ========================================================= */

/*
 * El item principal hereda el mismo estilo visual
 * de los demás elementos del dropdown.
 */
.header-fixed-top
#navbarNosotros
~ .dropdown-menu
> .nosotros-special-item
> .dropdown-submenu-toggle {

    display: flex;
    align-items: center;

    width: 100%;

    min-height: auto;

    padding: 0.68rem 0.85rem;

    /* Igual que los otros items */
    gap: 0.85rem;

    border-radius: 0.75rem;

    color: #3d3d3d;

    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.35;

    /* IMPORTANTE: sin fondo permanente */
    background-color: transparent;

    transform: none !important;
}


/* Texto principal */
.header-fixed-top
#navbarNosotros
~ .dropdown-menu
> .nosotros-special-item
> .dropdown-submenu-toggle
> span {

    flex: 1;
    min-width: 0;

    padding: 0;

    color: #3d3d3d;

    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.35;

    white-space: normal;
}


/* =========================================================
   ICONO PRINCIPAL
   ========================================================= */

/*
 * Igual que Quiénes Somos, Misión, Visión, etc.
 */
.header-fixed-top
#navbarNosotros
~ .dropdown-menu
> .nosotros-special-item
> .dropdown-submenu-toggle
> i:not(.submenu-arrow) {

    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;

    padding: 0 !important;

    border-radius: 999px !important;

    color: #181e6d !important;

    background-color: rgba(24, 30, 109, 0.07) !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 0.9rem;

    transform: none !important;
}


/* =========================================================
   FLECHA DERECHA
   ========================================================= */

.header-fixed-top
#navbarNosotros
~ .dropdown-menu
> .nosotros-special-item
> .dropdown-submenu-toggle
> .submenu-arrow {

    width: auto !important;
    height: auto !important;
    min-width: auto !important;

    margin-left: auto;

    padding: 0 !important;

    border-radius: 0 !important;

    background: transparent !important;

    color: #181e6d;

    font-size: 0.75rem;

    flex: 0 0 auto;

    transform: none !important;
}


/* =========================================================
   HOVER DEL ITEM PADRE
   ========================================================= */

.header-fixed-top
#navbarNosotros
~ .dropdown-menu
> .nosotros-special-item:hover
> .dropdown-submenu-toggle {

    background-color: rgba(24, 30, 109, 0.06);

    color: #181e6d;

    transform: none !important;
}


.header-fixed-top
#navbarNosotros
~ .dropdown-menu
> .nosotros-special-item:hover
> .dropdown-submenu-toggle
> span {

    color: #181e6d;
}


/* Icono naranja al hover, igual que los otros items */
.header-fixed-top
#navbarNosotros
~ .dropdown-menu
> .nosotros-special-item:hover
> .dropdown-submenu-toggle
> i:not(.submenu-arrow) {

    background-color: rgba(255, 122, 0, 0.13) !important;

    color: #ff7a00 !important;

    transform: scale(1.04) !important;
}


/* Flecha naranja */
.header-fixed-top
#navbarNosotros
~ .dropdown-menu
> .nosotros-special-item:hover
> .dropdown-submenu-toggle
> .submenu-arrow {

    color: #ff7a00 !important;

    background: transparent !important;

    transform: none !important;
}


/* =========================================================
   SUBMENU ISO 9001
   ========================================================= */

@media (min-width: 1400px) {

    .header-fixed-top
    #navbarNosotros
    ~ .dropdown-menu
    > .nosotros-special-item
    > .nosotros-certificacion-menu {

        top: -0.55rem !important;

        left: calc(100% + 8px) !important;
        right: auto !important;

        width: 330px !important;

        min-width: 330px !important;
        max-width: 330px !important;

        margin: 0 !important;

        padding: 0.65rem !important;

        transform: none !important;

        z-index: 2100 !important;
    }


    /*
     * Puente invisible para poder mover
     * el mouse hacia el submenu.
     */
    .header-fixed-top
    #navbarNosotros
    ~ .dropdown-menu
    > .nosotros-special-item
    > .nosotros-certificacion-menu::after {

        content: "";

        position: absolute;

        top: 0;
        bottom: 0;

        left: -10px;

        width: 10px;

        background: transparent;
    }
}


/* =========================================================
   ITEM ISO
   ========================================================= */

.header-fixed-top
.nosotros-certificacion-menu
.nosotros-certificacion-link {

    display: flex;
    align-items: center;

    width: 100%;

    padding: 0.75rem 0.8rem;

    border-radius: 0.75rem;

    color: #3d3d3d;

    background-color: transparent;

    transform: none !important;
}


.header-fixed-top
.nosotros-certificacion-menu
.nosotros-certificacion-link
> span {

    min-width: 0;

    color: #3d3d3d;

    font-size: 0.9rem;
    font-weight: 500;

    line-height: 1.3;

    white-space: normal;
}


/* Segunda línea */
.header-fixed-top
.nosotros-certificacion-menu
.nosotros-certificacion-link
small {

    display: block;

    margin-top: 0.15rem;

    color: #7b8191;

    font-size: 0.72rem;
    font-weight: 400;

    line-height: 1.3;
}


/* Hover ISO */
.header-fixed-top
.nosotros-certificacion-menu
.nosotros-certificacion-link:hover,
.header-fixed-top
.nosotros-certificacion-menu
.nosotros-certificacion-link:focus {

    background-color: rgba(24, 30, 109, 0.06);

    color: #181e6d;

    transform: none !important;
}


.header-fixed-top
.nosotros-certificacion-menu
.nosotros-certificacion-link:hover
> span,
.header-fixed-top
.nosotros-certificacion-menu
.nosotros-certificacion-link:focus
> span {

    color: #181e6d;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1399.98px) {

    .header-fixed-top
    #navbarNosotros
    ~ .dropdown-menu
    > .nosotros-special-item
    > .dropdown-submenu-toggle {

        width: 100%;

        padding: 0.7rem 0.75rem;

        gap: 0.85rem;
    }


    .header-fixed-top
    #navbarNosotros
    ~ .dropdown-menu
    > .nosotros-special-item
    > .nosotros-certificacion-menu {

        width: 100% !important;

        min-width: 100% !important;
        max-width: 100% !important;

        margin-top: 0.35rem !important;
    }
}

.header-fixed-top
#navbarNosotros
~ .dropdown-menu
> .nosotros-special-item
> .dropdown-submenu-toggle
> span {

    font-size: 0.86rem;
    line-height: 1.28;
}

/* =========================================================
   SERVICIOS - HOMOLOGAR "PROYECTOS EDUCATIVOS"
   CON LOS DEMÁS ITEMS DEL PRIMER NIVEL
   ========================================================= */

.header-fixed-top
#navbarServicios
~ .dropdown-menu
> .dropdown-submenu
> .dropdown-submenu-toggle {

    /* Igual que Auditorías / Consultorías / Capacitaciones */
    padding: 0.68rem 0.85rem;

    gap: 0.85rem;

    color: #3d3d3d;

    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.35;

    background-color: transparent;

    transform: none !important;
}


/* Texto */
.header-fixed-top
#navbarServicios
~ .dropdown-menu
> .dropdown-submenu
> .dropdown-submenu-toggle
> span {

    color: #3d3d3d;

    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.35;
}


/* Icono principal igual que los otros */
.header-fixed-top
#navbarServicios
~ .dropdown-menu
> .dropdown-submenu
> .dropdown-submenu-toggle
> i:not(.submenu-arrow) {

    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;

    padding: 0 !important;

    border-radius: 999px !important;

    color: #181e6d !important;

    background-color: rgba(24, 30, 109, 0.07) !important;

    font-size: 0.9rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    transform: none !important;
}


/* Flecha */
.header-fixed-top
#navbarServicios
~ .dropdown-menu
> .dropdown-submenu
> .dropdown-submenu-toggle
> .submenu-arrow {

    width: auto !important;
    height: auto !important;
    min-width: auto !important;

    margin-left: auto;

    padding: 0 !important;

    border-radius: 0 !important;

    background: transparent !important;

    color: #181e6d;

    font-size: 0.75rem;

    transform: none !important;
}


/* Hover del item */
.header-fixed-top
#navbarServicios
~ .dropdown-menu
> .dropdown-submenu:hover
> .dropdown-submenu-toggle {

    background-color: rgba(24, 30, 109, 0.06);

    color: #181e6d;

    transform: none !important;
}


/* Texto azul en hover */
.header-fixed-top
#navbarServicios
~ .dropdown-menu
> .dropdown-submenu:hover
> .dropdown-submenu-toggle
> span {

    color: #181e6d;

    font-weight: 400;
}


/* Icono naranja en hover */
.header-fixed-top
#navbarServicios
~ .dropdown-menu
> .dropdown-submenu:hover
> .dropdown-submenu-toggle
> i:not(.submenu-arrow) {

    background-color: rgba(255, 122, 0, 0.13) !important;

    color: #ff7a00 !important;

    transform: scale(1.04) !important;
}


/* Flecha naranja */
.header-fixed-top
#navbarServicios
~ .dropdown-menu
> .dropdown-submenu:hover
> .dropdown-submenu-toggle
> .submenu-arrow {

    color: #ff7a00 !important;

    background: transparent !important;

    transform: none !important;
}

/* =========================================================
   NAVBAR - RESPETAR CAPITALIZACIÓN ORIGINAL
   ========================================================= */

.header-fixed-top .dropdown-menu .dropdown-item,
.header-fixed-top .dropdown-submenu-toggle,
.header-fixed-top .dropdown-menu .dropdown-item span {
    text-transform: none !important;
}

/* Mantener los datos de contacto a la derecha,
   incluso cuando el selector administrativo no exista */

.acreduca-top-right {
    margin-left: auto;
}


/* =========================================================
   A C R E D U C A
   NUEVA NAVEGACIÓN PRINCIPAL
   ========================================================= */

/* ==========================================
   LOGO ACRE DUCA
   ========================================== */

.header-fixed-top .navbar .acreduca-main-logo {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;

    flex: 0 0 auto;
    flex-shrink: 0 !important;

    width: auto !important;
    max-width: none !important;

    margin-right: 2rem;
    padding: 0;

    visibility: visible !important;
    opacity: 1 !important;
}

/* Imagen principal del logo */

.header-fixed-top .navbar .acreduca-logo-img {
    display: block !important;

    width: 120px !important;
    height: auto !important;

    max-width: none !important;
    min-width: 0;

    object-fit: contain;

    position: static !important;
    transform: none !important;

    visibility: visible !important;
    opacity: 1 !important;
}


/* ==========================================
   NAVBAR PRINCIPAL
   ========================================== */

.header-fixed-top .acreduca-main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Contenedor de cada opción */

.header-fixed-top .acreduca-main-nav > .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;

    max-width: 185px;
}

/* Enlaces principales */

.header-fixed-top .acreduca-main-nav
> .nav-item > .nav-link {

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.79rem;
    font-weight: 600;
    line-height: 1.25;

    color: #5c5c65;

    text-align: center;
    text-transform: none !important;

    white-space: normal;

    padding: 0.65rem 0.45rem;

    transition: color 0.2s ease;
}

/* Hover */

.header-fixed-top .acreduca-main-nav
> .nav-item > .nav-link:hover,

.header-fixed-top .acreduca-main-nav
> .nav-item > .nav-link:focus {

    color: #ff7a00;
}


/* ==========================================
   OCULTAR TRIÁNGULOS
   ========================================== */

.header-fixed-top .acreduca-main-nav
> .nav-item > .nav-link::after {

    display: none !important;
    content: none !important;
}

/* Los nuevos enlaces no contienen dropdowns */


/* ==========================================
   ACCESO DE USUARIO
   ========================================== */

.header-fixed-top .acreduca-login-item {
    max-width: none !important;
    flex-shrink: 0;
}

.header-fixed-top .acreduca-login-item .nav-link {
    font-size: 1rem !important;
    padding-left: 0.65rem !important;
    padding-right: 0.25rem !important;
}

.header-fixed-top .acreduca-login-item i {
    font-size: 1rem;
}


/* ==========================================
   CONTACTOS A LA DERECHA
   ========================================== */

.acreduca-top-right {
    margin-left: auto;
}


/* ==========================================
   TABLET Y MÓVIL
   ========================================== */

@media (max-width: 1399.98px) {

    .header-fixed-top .navbar-collapse {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .header-fixed-top .acreduca-main-nav {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .header-fixed-top .acreduca-main-nav
    > .nav-item {

        max-width: 100%;
        width: 100%;

        justify-content: flex-start;
    }

    .header-fixed-top .acreduca-main-nav
    > .nav-item > .nav-link {

        display: block;
        width: 100%;

        text-align: left;
        justify-content: flex-start;

        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }

    .header-fixed-top .acreduca-main-nav
    > .nav-item > .nav-link:hover {

        background-color: rgba(24, 30, 109, 0.04);
    }

    .header-fixed-top .acreduca-login-item {
        justify-content: flex-start;
    }
}


/* ==========================================
   PANTALLAS PEQUEÑAS
   ========================================== */

@media (max-width: 575.98px) {

    .header-fixed-top .navbar .acreduca-main-logo {
        margin-right: 1rem;
    }

    .header-fixed-top .navbar .acreduca-logo-img {
        width: 110px !important;
    }

    .header-fixed-top .acreduca-main-nav
    > .nav-item > .nav-link {

        font-size: 0.88rem;
        padding: 0.8rem 0.9rem;
    }
}

/* =========================================================
   ACRE DUCA - MEGAMENÚ SOLUCIONES
   ========================================================= */

.header-fixed-top .navbar .container {
    position: relative;
}

.header-fixed-top .acreduca-solutions-nav {
    position: static;
}

/* Botón principal */
.header-fixed-top .acreduca-solutions-trigger {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.header-fixed-top .acreduca-solutions-trigger.is-active {
    color: var(--acreduca-blue) !important;
}

/* Contenedor principal */
.header-fixed-top .acreduca-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    background: #ffffff;
    color: #343849;

    border: 1px solid #e9ebf1;
    border-top: 3px solid var(--acreduca-blue);
    border-radius: 0 0 16px 16px;

    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.17);

    z-index: 2100;
    overflow: hidden;
    text-align: left;

    max-height: 78vh;
    overflow-y: auto;
}

.header-fixed-top .acreduca-mega-menu.is-open {
    display: block;
}

/* Encabezado */
.acreduca-mega-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;

    padding: 1.5rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid #edf0f5;
}

.acreduca-mega-eyebrow {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--acreduca-orange);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.acreduca-mega-header h2 {
    margin: 0 0 0.35rem;
    color: var(--acreduca-blue);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.acreduca-mega-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.87rem;
}

.acreduca-mega-close {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;

    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;

    background: #f1f3f8;
    color: #687085;
    cursor: pointer;
}

.acreduca-mega-close:hover {
    background: #e8ebf5;
    color: var(--acreduca-blue);
}

/* Distribución */
.acreduca-mega-content {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 320px;
}

/* Portafolios */
.acreduca-mega-portfolios {
    padding: 1.3rem 1.5rem;
    border-right: 1px solid #edf0f5;
}

.acreduca-mega-portfolios > h3 {
    margin: 0 0 0.9rem;
    color: #72798a;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.acreduca-portfolio-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;

    width: 100%;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.25rem;

    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;

    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease,
                border-color 0.18s ease;
}

.acreduca-portfolio-item:hover,
.acreduca-portfolio-item.is-selected {
    background: #f2f4fa;
    border-color: #e8ebf5;
}

.acreduca-portfolio-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 35px;
    height: 35px;
    flex-shrink: 0;

    background: #eef0f8;
    border-radius: 8px;

    color: var(--acreduca-blue);
    font-size: 0.75rem;
    font-weight: 700;
}

.acreduca-portfolio-item.is-selected
.acreduca-portfolio-number {
    background: var(--acreduca-blue);
    color: white;
}

.acreduca-portfolio-name {
    flex: 1;
    color: #41465a;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
}

.acreduca-portfolio-item > i {
    color: #a4a9b6;
    font-size: 0.7rem;
}

.acreduca-portfolio-item:hover > i,
.acreduca-portfolio-item.is-selected > i {
    color: var(--acreduca-orange);
}

/* Panel derecho */
.acreduca-mega-details {
    background: #fafbfe;
    padding: 1.5rem;
}

.acreduca-mega-default {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}

.acreduca-mega-default[hidden],
.acreduca-services-panel[hidden] {
    display: none !important;
}

.acreduca-mega-default-icon {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 50px;
    height: 50px;
    margin-bottom: 1rem;

    border-radius: 12px;
    background: #eef0f9;
    color: var(--acreduca-blue);
    font-size: 1.3rem;
}

.acreduca-mega-default h3,
.acreduca-services-panel h3 {
    color: var(--acreduca-blue);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.acreduca-mega-default p {
    color: #777e8d;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Servicios P1 */
.acreduca-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.acreduca-service-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;

    padding: 0.85rem;
    border: 1px solid #e7eaf2;
    border-radius: 10px;

    background: #ffffff;
    text-decoration: none;

    transition: border-color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.2s ease;
}

.acreduca-service-item:hover {
    border-color: rgba(24, 30, 109, 0.3);
    box-shadow: 0 6px 18px rgba(24, 30, 109, 0.07);
    transform: translateY(-2px);
}

.acreduca-service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;

    width: 40px;
    height: 40px;
    border-radius: 10px;

    background: #eef0fa;
    color: var(--acreduca-blue);
    font-size: 1.1rem;
}

.acreduca-service-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 0.2rem;
}

.acreduca-service-info small {
    color: var(--acreduca-orange);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.acreduca-service-info strong {
    color: #343849;
    font-size: 0.79rem;
    font-weight: 600;
    line-height: 1.4;
}

.acreduca-service-info > span {
    color: #737b8c;
    font-size: 0.72rem;
}

.acreduca-service-item > i {
    flex-shrink: 0;
    color: #969dac;
    font-size: 0.85rem;
}

.acreduca-service-item:hover > i {
    color: var(--acreduca-orange);
}

/* Franja institucional inferior */
.acreduca-mega-footer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;

    padding: 1.35rem 2rem;
    background: #e9eef8;
    border-top: 1px solid #dbe3f1;
}

.acreduca-mega-footer-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;

    width: 42px;
    height: 42px;
    border-radius: 12px;

    background: var(--acreduca-blue);
    color: #ffffff;
    font-size: 1.05rem;
}

.acreduca-mega-footer h3 {
    margin: 0 0 0.45rem;
    color: var(--acreduca-blue);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
}

.acreduca-mega-footer p {
    margin: 0;
    color: #4f586d;
    font-size: 0.86rem;
    line-height: 1.7;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1399.98px) {

    .header-fixed-top .acreduca-solutions-nav {
        display: block !important;
    }

    .header-fixed-top .acreduca-solutions-trigger {
        width: 100%;
        text-align: left !important;
    }

    .header-fixed-top .acreduca-mega-menu {
        position: static;
        width: 100%;
        max-height: 65vh;
        margin: 0.5rem 0 1rem;
        border-radius: 12px;
        box-shadow: none;
    }

    .acreduca-mega-content {
        grid-template-columns: 1fr;
    }

    .acreduca-mega-portfolios {
        border-right: none;
        border-bottom: 1px solid #edf0f5;
    }

    .acreduca-mega-header,
    .acreduca-mega-portfolios,
    .acreduca-mega-details,
    .acreduca-mega-footer {
        padding: 1.2rem;
    }

    .acreduca-mega-default {
        min-height: 110px;
    }

}

@media (max-width: 575.98px) {

    .acreduca-mega-header h2 {
        font-size: 1.05rem;
    }

    .acreduca-portfolio-name {
        font-size: 0.77rem;
    }

    .acreduca-mega-footer {
        flex-direction: column;
    }

    .acreduca-mega-footer h3 {
        font-size: 0.82rem;
    }

}


/* =========================================================
   ACREDUCA - MEGAMENÚ MODELOS DE CALIDAD
   ========================================================= */

/* ==========================================
   BOTÓN PRINCIPAL
   ========================================== */

.header-fixed-top .acreduca-models-nav {
    position: static;
}

.header-fixed-top .acreduca-models-trigger {
    border: 0;
    background: transparent;

    font-family: inherit;
    cursor: pointer;
}

.header-fixed-top .acreduca-models-trigger.is-active {
    color: var(--acreduca-blue) !important;
}


/* ==========================================
   CONTENEDOR PRINCIPAL
   ========================================== */

.header-fixed-top .acreduca-models-mega {
    border-top-color: var(--acreduca-blue);
}

/* Listado vertical de modelos */

.acreduca-models-content {
    display: flex;
    flex-direction: column;

    gap: 0.75rem;
    padding: 1.5rem 2rem;

    background: #fafbfe;
}


/* ==========================================
   TARJETAS DE LOS MODELOS
   ========================================== */

.acreduca-model-card {
    display: flex;
    align-items: center;

    gap: 1rem;
    padding: 1.1rem 1.25rem;

    background: #ffffff;

    border: 1px solid #e7eaf2;
    border-radius: 12px;

    text-decoration: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.acreduca-model-card:hover,
.acreduca-model-card:focus {
    border-color: rgba(24, 30, 109, 0.28);

    box-shadow:
        0 8px 22px rgba(24, 30, 109, 0.08);

    transform: translateY(-2px);

    text-decoration: none;
}


/* ==========================================
   ICONOS
   ========================================== */

.acreduca-model-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 48px;
    height: 48px;

    border-radius: 12px;

    background: #eef0fa;
    color: var(--acreduca-blue);

    font-size: 1.25rem;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.acreduca-model-card:hover
.acreduca-model-icon {
    background: rgba(255, 122, 0, 0.12);
    color: var(--acreduca-orange);
}


/* ==========================================
   INFORMACIÓN DEL MODELO
   ========================================== */

.acreduca-model-info {
    flex: 1;
    min-width: 0;
}

.acreduca-model-category {
    display: block;

    margin-bottom: 0.35rem;

    color: var(--acreduca-orange);

    font-size: 0.65rem;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.acreduca-model-info h3 {
    margin: 0 0 0.3rem;

    color: #343849;

    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.4;
}

.acreduca-model-info p {
    margin: 0;

    color: #737b8c;

    font-size: 0.78rem;
    line-height: 1.4;
}


/* ==========================================
   FLECHA DERECHA
   ========================================== */

.acreduca-model-arrow {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-shrink: 0;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    color: #9aa2b1;
    background: #f4f5f9;

    font-size: 0.9rem;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.acreduca-model-card:hover
.acreduca-model-arrow {
    color: #ffffff;
    background: var(--acreduca-blue);
}


/* ==========================================
   MENSAJE INSTITUCIONAL
   ========================================== */

.acreduca-models-footer-description {
    margin-top: 0.55rem !important;
}


/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1399.98px) {

    .header-fixed-top .acreduca-models-nav {
        display: block !important;
    }

    .header-fixed-top .acreduca-models-trigger {
        width: 100%;
        text-align: left !important;
    }

    .acreduca-models-content {
        padding: 1.2rem;
    }

    .acreduca-model-card {
        padding: 0.95rem;
    }
}

@media (max-width: 575.98px) {

    .acreduca-models-content {
        gap: 0.6rem;
        padding: 0.9rem;
    }

    .acreduca-model-card {
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .acreduca-model-icon {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .acreduca-model-info h3 {
        font-size: 0.82rem;
    }

    .acreduca-model-info p {
        font-size: 0.72rem;
    }

    .acreduca-model-arrow {
        width: 28px;
        height: 28px;
    }
}


/* =========================================================
   ACREDUCA - MEGAMENÚ FORMACIÓN E INNOVACIÓN
   ========================================================= */

/* ==========================================
   BOTÓN DEL NAVBAR
   ========================================== */

.header-fixed-top .acreduca-training-nav {
    position: static;
}

.header-fixed-top .acreduca-training-trigger {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.header-fixed-top .acreduca-training-trigger.is-active {
    color: var(--acreduca-blue) !important;
}


/* ==========================================
   CONTENEDOR DEL MEGAMENÚ
   ========================================== */

.header-fixed-top .acreduca-training-mega {
    border-top-color: var(--acreduca-blue);
}


/* ==========================================
   CONTENIDO
   ========================================== */

.acreduca-training-content {
    padding: 1.5rem 2rem;
    background: #fafbfe;
}

/* Cuadrícula de dos columnas */

.acreduca-training-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}


/* ==========================================
   TARJETAS DE FORMACIÓN
   ========================================== */

.acreduca-training-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;

    padding: 1.1rem 1.2rem;

    background: #ffffff;
    border: 1px solid #e7eaf2;
    border-radius: 12px;

    min-width: 0;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.acreduca-training-card:hover {
    border-color: rgba(24, 30, 109, 0.25);

    box-shadow:
        0 6px 18px rgba(24, 30, 109, 0.06);
}


/* ==========================================
   ICONOS
   ========================================== */

.acreduca-training-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 44px;
    height: 44px;

    border-radius: 11px;

    background: #eef0fa;
    color: var(--acreduca-blue);

    font-size: 1.2rem;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.acreduca-training-card:hover
.acreduca-training-icon {
    background: rgba(255, 122, 0, 0.12);
    color: var(--acreduca-orange);
}


/* ==========================================
   INFORMACIÓN
   ========================================== */

.acreduca-training-info {
    flex: 1;
    min-width: 0;
}

.acreduca-training-category {
    display: block;

    margin-bottom: 0.35rem;

    color: var(--acreduca-orange);

    font-size: 0.65rem;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.acreduca-training-info h3 {
    margin: 0 0 0.35rem;

    color: #343849;

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.acreduca-training-info p {
    margin: 0;

    color: #737b8c;

    font-size: 0.76rem;
    line-height: 1.5;
}


/* ==========================================
   ENLACES INFERIORES
   ========================================== */

.acreduca-training-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;

    gap: 1.25rem;
    margin-top: 1.2rem;
}

.acreduca-training-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    color: var(--acreduca-blue);

    font-size: 0.82rem;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.acreduca-training-action:hover {
    color: var(--acreduca-orange);
    text-decoration: none;
}

.acreduca-training-action i {
    font-size: 0.85rem;
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1399.98px) {

    .header-fixed-top .acreduca-training-nav {
        display: block !important;
    }

    .header-fixed-top .acreduca-training-trigger {
        width: 100%;
        text-align: left !important;
    }

    .acreduca-training-content {
        padding: 1.2rem;
    }

}


/* ==========================================
   MÓVIL
   ========================================== */

@media (max-width: 767.98px) {

    .acreduca-training-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .acreduca-training-card {
        padding: 0.95rem;
        gap: 0.75rem;
    }

    .acreduca-training-icon {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .acreduca-training-info h3 {
        font-size: 0.83rem;
    }

    .acreduca-training-info p {
        font-size: 0.72rem;
    }

    .acreduca-training-actions {
        justify-content: flex-start;
        gap: 1rem;
    }

}


/* =========================================================
   ACREDUCA - MEGAMENÚ NUESTRA HUELLA
   ========================================================= */

/* ==========================================
   BOTÓN PRINCIPAL DEL NAVBAR
   ========================================== */

.header-fixed-top .acreduca-impact-nav {
    position: static;
}

.header-fixed-top .acreduca-impact-trigger {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.header-fixed-top .acreduca-impact-trigger.is-active {
    color: var(--acreduca-blue) !important;
}

/* ==========================================
   CONTENEDOR DEL MEGAMENÚ
   ========================================== */

.header-fixed-top .acreduca-impact-mega {
    border-top-color: var(--acreduca-blue);
}

/* ==========================================
   CONTENIDO INSTITUCIONAL
   ========================================== */

.acreduca-impact-content {
    padding: 2rem;
    background: #fafbfe;
}

.acreduca-impact-intro {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;

    padding: 1.75rem;

    background: #ffffff;
    border: 1px solid #e7eaf2;
    border-radius: 14px;
}

/* ==========================================
   ICONO
   ========================================== */

.acreduca-impact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    flex-shrink: 0;

    border-radius: 14px;

    background: #eef0fa;
    color: var(--acreduca-blue);

    font-size: 1.6rem;
}

/* ==========================================
   TEXTO INSTITUCIONAL
   ========================================== */

.acreduca-impact-info {
    flex: 1;
    min-width: 0;
    max-width: 760px;
}

.acreduca-impact-info h3 {
    margin: 0 0 1rem;

    color: var(--acreduca-blue);

    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
}

.acreduca-impact-info p {
    margin: 0;

    color: #626b7e;

    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.8;
}

/* ==========================================
   ACCIÓN INFERIOR
   ========================================== */

.acreduca-impact-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 1.5rem;
    padding-top: 1.3rem;

    border-top: 1px solid #e7eaf2;
}

/* Botón institucional */

.acreduca-impact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;

    padding: 0.85rem 1.5rem;

    border: 1px solid var(--acreduca-blue);
    border-radius: 50px;

    background: var(--acreduca-blue);
    color: #ffffff;

    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Botón pendiente de destino */

.acreduca-impact-button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Efectos solo cuando esté habilitado */

.acreduca-impact-button:not(:disabled):hover,
.acreduca-impact-button:not(:disabled):focus {
    background: var(--acreduca-orange);
    border-color: var(--acreduca-orange);
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(24, 30, 109, 0.15);
}

.acreduca-impact-button i {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.acreduca-impact-button:not(:disabled):hover i {
    transform: translateX(3px);
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1399.98px) {

    .header-fixed-top .acreduca-impact-nav {
        display: block !important;
    }

    .header-fixed-top .acreduca-impact-trigger {
        width: 100%;
        text-align: left !important;
    }

    .acreduca-impact-content {
        padding: 1.2rem;
    }

    .acreduca-impact-intro {
        padding: 1.3rem;
        gap: 1rem;
    }

}

/* ==========================================
   MÓVIL
   ========================================== */

@media (max-width: 767.98px) {

    .acreduca-impact-content {
        padding: 0.9rem;
    }

    .acreduca-impact-intro {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem;
    }

    .acreduca-impact-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .acreduca-impact-info h3 {
        font-size: 0.98rem;
        margin-bottom: 0.75rem;
    }

    .acreduca-impact-info p {
        font-size: 0.82rem;
        line-height: 1.65;
    }

    .acreduca-impact-actions {
        justify-content: stretch;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .acreduca-impact-button {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 0.82rem;
    }

}


/* =========================================================
   ACREDUCA - MEGAMENÚ ¿QUÉ NOS INSPIRA?
   ========================================================= */

/* BOTÓN PRINCIPAL */

.header-fixed-top .acreduca-inspiration-nav {
    position: static;
}

.header-fixed-top .acreduca-inspiration-trigger {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.header-fixed-top .acreduca-inspiration-trigger.is-active {
    color: var(--acreduca-blue) !important;
}

/* CONTENEDOR */

.header-fixed-top .acreduca-inspiration-mega {
    border-top-color: var(--acreduca-blue);
}

/* CONTENIDO */

.acreduca-inspiration-content {
    padding: 1.5rem 2rem;
    background: #fafbfe;
}

/* CUADRÍCULA */

.acreduca-inspiration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

/* TARJETAS */

.acreduca-inspiration-card {
    display: flex;
    align-items: center;
    gap: 1rem;

    min-width: 0;
    padding: 1.1rem 1.2rem;

    background: #ffffff;
    border: 1px solid #e7eaf2;
    border-radius: 12px;

    text-decoration: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

a.acreduca-inspiration-card:hover,
a.acreduca-inspiration-card:focus-visible {
    border-color: rgba(24, 30, 109, 0.28);

    box-shadow:
        0 8px 22px rgba(24, 30, 109, 0.07);

    transform: translateY(-2px);
    text-decoration: none;
}

.acreduca-inspiration-card-wide {
    grid-column: 1 / -1;
}

/* TARJETAS SIN ENLACE */

.acreduca-inspiration-card-static {
    cursor: default;
}

.acreduca-inspiration-card-static:hover {
    transform: none;
}

/* ICONOS */

.acreduca-inspiration-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;

    width: 46px;
    height: 46px;

    border-radius: 11px;

    color: var(--acreduca-blue);
    background: #eef0fa;

    font-size: 1.2rem;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

a.acreduca-inspiration-card:hover
.acreduca-inspiration-icon {
    color: var(--acreduca-orange);
    background: rgba(255, 122, 0, 0.12);
}

/* INFORMACIÓN */

.acreduca-inspiration-info {
    flex: 1;
    min-width: 0;
}

.acreduca-inspiration-info h3 {
    margin: 0 0 0.35rem;

    color: #343849;

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.acreduca-inspiration-info p {
    margin: 0;

    color: #737b8c;

    font-size: 0.76rem;
    line-height: 1.5;
}

/* FLECHA DE NAVEGACIÓN */

.acreduca-inspiration-arrow {
    flex-shrink: 0;

    color: #9aa2b1;
    font-size: 0.9rem;

    transition: color 0.2s ease;
}

a.acreduca-inspiration-card:hover
.acreduca-inspiration-arrow {
    color: var(--acreduca-orange);
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1399.98px) {

    .header-fixed-top .acreduca-inspiration-nav {
        display: block !important;
    }

    .header-fixed-top .acreduca-inspiration-trigger {
        width: 100%;
        text-align: left !important;
    }

    .acreduca-inspiration-content {
        padding: 1.2rem;
    }
}

/* ==========================================
   MÓVIL
   ========================================== */

@media (max-width: 767.98px) {

    .acreduca-inspiration-content {
        padding: 0.9rem;
    }

    .acreduca-inspiration-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
    }

    .acreduca-inspiration-card-wide {
        grid-column: auto;
    }

    .acreduca-inspiration-card {
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .acreduca-inspiration-icon {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .acreduca-inspiration-info h3 {
        font-size: 0.83rem;
    }

    .acreduca-inspiration-info p {
        font-size: 0.72rem;
    }
}


/* =========================================================
   ACREDUCA - MEGAMENÚ ¿CONVERSAMOS?
   ========================================================= */

/* ==========================================
   BOTÓN PRINCIPAL
   ========================================== */

.header-fixed-top .acreduca-contact-nav {
    position: static;
}

.header-fixed-top .acreduca-contact-trigger {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.header-fixed-top .acreduca-contact-trigger.is-active {
    color: var(--acreduca-blue) !important;
}

/* ==========================================
   CONTENEDOR
   ========================================== */

.header-fixed-top .acreduca-contact-mega {
    border-top-color: var(--acreduca-blue);
}

/* ==========================================
   CONTENIDO
   ========================================== */

.acreduca-contact-content {
    padding: 1.5rem 2rem;
    background: #fafbfe;
}

.acreduca-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

/* ==========================================
   TARJETAS
   ========================================== */

.acreduca-contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;

    min-width: 0;
    padding: 1.1rem 1.2rem;

    background: #ffffff;
    border: 1px solid #e7eaf2;
    border-radius: 12px;

    text-decoration: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.acreduca-contact-card:hover,
.acreduca-contact-card:focus-visible {
    border-color: rgba(24, 30, 109, 0.3);

    box-shadow:
        0 8px 22px rgba(24, 30, 109, 0.08);

    transform: translateY(-2px);
    text-decoration: none;
}

.acreduca-contact-card-wide {
    grid-column: 1 / -1;
}

/* ==========================================
   ICONOS
   ========================================== */

.acreduca-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 46px;
    height: 46px;

    border-radius: 11px;

    background: #eef0fa;
    color: var(--acreduca-blue);

    font-size: 1.2rem;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.acreduca-contact-card:hover
.acreduca-contact-icon {
    background: rgba(255, 122, 0, 0.12);
    color: var(--acreduca-orange);
}

/* ==========================================
   INFORMACIÓN
   ========================================== */

.acreduca-contact-info {
    flex: 1;
    min-width: 0;
}

.acreduca-contact-info h3 {
    margin: 0 0 0.35rem;

    color: #343849;

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.acreduca-contact-info p {
    margin: 0;

    color: #737b8c;

    font-size: 0.76rem;
    line-height: 1.5;
}

.acreduca-contact-arrow {
    flex-shrink: 0;

    color: #9aa2b1;
    font-size: 0.9rem;

    transition: color 0.2s ease;
}

.acreduca-contact-card:hover
.acreduca-contact-arrow {
    color: var(--acreduca-orange);
}

/* ==========================================
   MENSAJE INSTITUCIONAL
   ========================================== */

.acreduca-contact-footer {
    align-items: flex-start;
}

.acreduca-contact-footer-body {
    flex: 1;
    min-width: 0;
}

.acreduca-contact-footer-body p strong {
    color: #343849;
    font-weight: 600;
}

/* ==========================================
   BOTONES DE CONTACTO
   ========================================== */

.acreduca-contact-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;

    margin-top: 1.3rem;
}

.acreduca-contact-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;

    padding: 0.85rem 1.25rem;

    border: 1px solid transparent;
    border-radius: 50px;

    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.acreduca-contact-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* BOTÓN PRIMARIO */

.acreduca-contact-button-primary {
    background: var(--acreduca-blue);
    border-color: var(--acreduca-blue);
    color: #ffffff;
}

.acreduca-contact-button-primary:hover {
    background: #29318e;
    border-color: #29318e;
    color: #ffffff;

    box-shadow:
        0 6px 16px rgba(24, 30, 109, 0.16);
}

/* BOTÓN SECUNDARIO */

.acreduca-contact-button-secondary {
    background: #ffffff;
    border-color: var(--acreduca-blue);
    color: var(--acreduca-blue);
}

.acreduca-contact-button-secondary:hover {
    background: var(--acreduca-blue);
    border-color: var(--acreduca-blue);
    color: #ffffff;

    box-shadow:
        0 6px 16px rgba(24, 30, 109, 0.12);
}

.acreduca-contact-button i {
    font-size: 0.95rem;
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1399.98px) {

    .header-fixed-top .acreduca-contact-nav {
        display: block !important;
    }

    .header-fixed-top .acreduca-contact-trigger {
        width: 100%;
        text-align: left !important;
    }

    .acreduca-contact-content {
        padding: 1.2rem;
    }

}

/* ==========================================
   MÓVIL
   ========================================== */

@media (max-width: 767.98px) {

    .acreduca-contact-content {
        padding: 0.9rem;
    }

    .acreduca-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
    }

    .acreduca-contact-card-wide {
        grid-column: auto;
    }

    .acreduca-contact-card {
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .acreduca-contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .acreduca-contact-info h3 {
        font-size: 0.83rem;
    }

    .acreduca-contact-info p {
        font-size: 0.72rem;
    }

    .acreduca-contact-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .acreduca-contact-button {
        width: 100%;
        padding: 0.85rem 1rem;
    }

}


/* =========================================================
   ACREDUCA - DETALLE PORTAFOLIOS P2 A P5
   ========================================================= */

.acreduca-portfolio-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
    height: 100%;

    padding: 0.25rem 0;
}

.acreduca-portfolio-detail[hidden] {
    display: none !important;
}

/* ICONO */

.acreduca-portfolio-detail-icon {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 48px;
    height: 48px;

    margin-bottom: 1rem;

    border-radius: 12px;

    background: #eef0fa;
    color: var(--acreduca-blue);

    font-size: 1.3rem;
}

/* TÍTULO */

.acreduca-portfolio-detail > h3 {
    margin: 0 0 0.85rem;

    color: var(--acreduca-blue);

    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

/* MENSAJE PRINCIPAL */

.acreduca-portfolio-detail-headline {
    margin: 0 0 0.7rem;

    color: #343849;

    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.5;
}

/* DESCRIPCIÓN */

.acreduca-portfolio-detail-description {
    margin: 0 0 1rem;

    color: #667085;

    font-size: 0.81rem;
    line-height: 1.65;
}

/* CAPACIDADES */

.acreduca-portfolio-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;

    width: 100%;
    margin-bottom: 1.2rem;
}

.acreduca-portfolio-benefits[hidden] {
    display: none !important;
}

.acreduca-portfolio-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;

    color: #454d60;

    font-size: 0.78rem;
    line-height: 1.4;
}

.acreduca-portfolio-benefit i {
    flex-shrink: 0;

    margin-top: 0.05rem;

    color: var(--acreduca-green);
    font-size: 0.9rem;
}

/* ACCIONES */

.acreduca-portfolio-detail-actions {
    display: flex;
    align-items: center;

    width: 100%;
    margin-top: auto;
    padding-top: 0.85rem;

    border-top: 1px solid #e5e9f2;
}

/* BOTÓN INSTITUCIONAL */

.acreduca-portfolio-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;

    min-height: 42px;
    padding: 0.75rem 1.25rem;

    border: 1px solid var(--acreduca-blue);
    border-radius: 50px;

    background: var(--acreduca-blue);
    color: #ffffff;

    font-family: inherit;
    font-size: 0.79rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.acreduca-portfolio-detail-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.acreduca-portfolio-detail-button:not(:disabled):hover {
    background: var(--acreduca-orange);
    border-color: var(--acreduca-orange);
    color: #ffffff;
    transform: translateY(-2px);
}

.acreduca-portfolio-detail-button i {
    font-size: 0.9rem;
}

/* TABLET */

@media (max-width: 1399.98px) {

    .acreduca-portfolio-detail {
        padding: 0;
    }

    .acreduca-portfolio-detail-actions {
        margin-top: 1rem;
    }
}

/* MÓVIL */

@media (max-width: 575.98px) {

    .acreduca-portfolio-detail > h3 {
        font-size: 0.96rem;
    }

    .acreduca-portfolio-detail-headline {
        font-size: 0.82rem;
    }

    .acreduca-portfolio-detail-description {
        font-size: 0.78rem;
    }

    .acreduca-portfolio-detail-button {
        width: 100%;
    }
}

.acreduca-portfolio-benefit[hidden],
.acreduca-portfolio-detail-headline[hidden] {
    display: none !important;
}

/* =========================================================
   FORMACIÓN - TARJETAS CON ENLACE
   ========================================================= */

a.acreduca-training-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.acreduca-training-card:hover,
a.acreduca-training-card:focus-visible {
    color: inherit;
    text-decoration: none;
    border-color: rgba(24, 30, 109, 0.3);
    box-shadow: 0 8px 20px rgba(24, 30, 109, 0.08);
}

.acreduca-training-link-arrow {
    margin-left: auto;
    align-self: center;
    flex-shrink: 0;

    color: #a0a7b5;
    font-size: 0.9rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

a.acreduca-training-card:hover
.acreduca-training-link-arrow {
    color: var(--acreduca-orange);
    transform: translate(2px, -2px);
}

a.acreduca-training-card:focus-visible {
    outline: 2px solid var(--acreduca-blue);
    outline-offset: 3px;
}


/* =========================================================
   ACREDUCA - ALTURA UNIFORME DEL NAVBAR
   ========================================================= */

/* Escritorio */
@media (min-width: 1200px) {

    .header-fixed-top > nav.navbar.navbar-expand-xxl {
        min-height: 76px !important;
    }

    .header-fixed-top > nav.navbar.navbar-expand-xxl > .container {
        display: flex;
        align-items: center;
    }

    .header-fixed-top .acreduca-main-logo {
        display: flex;
        align-items: center;
    }
}


/* ENLACE A LA VISTA GENERAL P1 */

.acreduca-p1-portfolio-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.acreduca-p1-portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: .6rem;

    color: var(--acreduca-blue, #181e6d);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.acreduca-p1-portfolio-link:hover {
    color: var(--acreduca-orange, #e66d00);
    text-decoration: none;
}

.acreduca-p1-portfolio-link i {
    transition: transform .2s ease;
}

.acreduca-p1-portfolio-link:hover i {
    transform: translateX(3px);
}

/* ==========================================
   CONTACTO - TARJETAS INTERACTIVAS
   ========================================== */

button.acreduca-contact-card {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.acreduca-contact-card {
    text-decoration: none;
}

.acreduca-contact-card:hover,
.acreduca-contact-card:focus {
    text-decoration: none;
}

.acreduca-contact-card:focus-visible {
    outline: 3px solid #ee7100;
    outline-offset: 3px;
}

/* =========================================================
   ACREDUCA - IMAGEN INICIAL DEL MEGAMENÚ SOLUCIONES
   Conserva el diseño original
   ========================================================= */

#solutionsDefaultPanel .acreduca-mega-default-image {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    margin-bottom: 1rem;
}

#solutionsDefaultPanel .acreduca-mega-default-image img {
    display: block;

    width: 100%;
    max-width: 190px;
    max-height: 145px;

    object-fit: contain;
    object-position: left center;
}

/* Evitar que los paneles ocultos ocupen espacio */
#solutionsMegaMenu [hidden] {
    display: none !important;
}

/* Mantener los tamaños originales de la lista */
#solutionsMegaMenu .acreduca-portfolio-name {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 575.98px) {

    #solutionsDefaultPanel .acreduca-mega-default-image img {
        max-width: 155px;
        max-height: 115px;
    }

    #solutionsMegaMenu .acreduca-portfolio-name {
        font-size: 0.77rem;
    }
}

/* =========================================================
   ACREDUCA - ENCABEZADOS SUPERIORES DE MEGAMENÚS
   ========================================================= */

.acreduca-mega-menu .acreduca-mega-eyebrow {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1.5;
}



/* =========================================================
   ACREDUCA - MODELOS DE CALIDAD
   TARJETAS CON LOGOS INSTITUCIONALES
   ========================================================= */

/* DISTRIBUCIÓN DE LAS TARJETAS */

#modelsMegaMenu .acreduca-model-card {
    display: grid;

    grid-template-columns:
        48px
        minmax(0, 1fr)
        160px
        32px;

    align-items: center;
    column-gap: 1.25rem;

    min-height: 116px;
    padding: 0.85rem 1.25rem;

    position: relative;
    overflow: hidden;
}

/* ICONO IZQUIERDO */

#modelsMegaMenu .acreduca-model-icon {
    margin: 0;
    flex-shrink: 0;
}

/* INFORMACIÓN */

#modelsMegaMenu .acreduca-model-info {
    min-width: 0;
}

#modelsMegaMenu .acreduca-model-info h3 {
    margin: 0 0 0.35rem;

    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

#modelsMegaMenu .acreduca-model-info p {
    margin: 0;

    font-size: 0.83rem;
    line-height: 1.4;
}

/* ==========================================
   CONTENEDOR DE LOGOS
   ========================================== */

#modelsMegaMenu .acreduca-model-illustration {
    display: flex;
    align-items: center;
    justify-content: center;

    justify-self: center;

    width: 160px;
    height: 88px;

    margin: 0;
    padding: 8px;

    overflow: hidden;

    border: 1px solid #edf0f6;
    border-radius: 12px;

    background: #ffffff;

    /* Eliminar desplazamiento anterior */
    transform: none;

    transition:
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* ==========================================
   IMÁGENES SIN RECORTES
   ========================================== */

#modelsMegaMenu .acreduca-model-illustration img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;

    opacity: 1;
    visibility: visible;
}

/* HOVER */

#modelsMegaMenu .acreduca-model-card:hover
.acreduca-model-illustration {
    transform: none;

    border-color: #dce2f2;

    box-shadow: 0 6px 16px rgba(24, 30, 109, 0.08);
}

/* FLECHA DERECHA */

#modelsMegaMenu .acreduca-model-arrow {
    justify-self: end;
    margin: 0;
}

/* ==========================================
   TABLETS
   ========================================== */

@media (max-width: 991.98px) {

    #modelsMegaMenu .acreduca-model-card {
        grid-template-columns:
            44px
            minmax(0, 1fr)
            120px
            30px;

        column-gap: 0.75rem;
    }

    #modelsMegaMenu .acreduca-model-illustration {
        width: 120px;
        height: 78px;

        padding: 6px;
    }
}

/* ==========================================
   MÓVILES
   ========================================== */

@media (max-width: 575.98px) {

    #modelsMegaMenu .acreduca-model-card {
        grid-template-columns:
            38px
            minmax(0, 1fr)
            72px
            22px;

        column-gap: 0.55rem;

        padding: 0.8rem;
        min-height: 100px;
    }

    #modelsMegaMenu .acreduca-model-info h3 {
        font-size: 0.79rem;
    }

    #modelsMegaMenu .acreduca-model-info p {
        font-size: 0.74rem;
    }

    #modelsMegaMenu .acreduca-model-illustration {
        width: 72px;
        height: 68px;

        padding: 4px;
        border-radius: 8px;
    }
}



/* =========================================================
   ACREDUCA - NUESTRA HUELLA
   TARJETA ÚNICA CON FOTOGRAFÍA
   ========================================================= */

/* DISTRIBUCIÓN DE LA TARJETA ORIGINAL */

#impactMegaMenu .acreduca-impact-intro {
    display: grid;
    grid-template-columns:
        58px
        minmax(0, 1fr)
        280px;

    align-items: center;
    gap: 1.4rem;

    padding: 1.5rem 1.75rem;
}

/* ICONO ORIGINAL */

#impactMegaMenu .acreduca-impact-icon {
    width: 58px;
    height: 58px;
    margin: 0;
}

/* TEXTO */

#impactMegaMenu .acreduca-impact-text {
    min-width: 0;
}

#impactMegaMenu .acreduca-impact-text h3 {
    margin: 0 0 0.85rem;

    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
}

#impactMegaMenu .acreduca-impact-text p {
    margin: 0;

    font-size: 0.9rem;
    line-height: 1.7;
}

/* FOTOGRAFÍA */

#impactMegaMenu .acreduca-impact-photo {
    width: 280px;
    height: 160px;

    overflow: hidden;
    border-radius: 12px;

    background: #f4f6fb;
}

#impactMegaMenu .acreduca-impact-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.3s ease;
}

#impactMegaMenu .acreduca-impact-intro:hover
.acreduca-impact-photo img {
    transform: scale(1.04);
}

/* TABLETS */

@media (max-width: 991.98px) {

    #impactMegaMenu .acreduca-impact-intro {
        grid-template-columns:
            50px
            minmax(0, 1fr)
            200px;

        gap: 1rem;
    }

    #impactMegaMenu .acreduca-impact-photo {
        width: 200px;
        height: 135px;
    }

}

/* MÓVILES */

@media (max-width: 767.98px) {

    #impactMegaMenu .acreduca-impact-intro {
        grid-template-columns: 45px minmax(0, 1fr);
        align-items: start;

        padding: 1.25rem;
    }

    #impactMegaMenu .acreduca-impact-icon {
        width: 45px;
        height: 45px;
    }

    #impactMegaMenu .acreduca-impact-photo {
        grid-column: 1 / -1;

        width: 100%;
        height: 190px;
    }

}


/* =========================================================
   ACREDUCA - SWITCH ADMINISTRATIVO
   ALINEADO CON EL NAVBAR PRINCIPAL
   ========================================================= */

.acreduca-admin-floating {
    position: fixed;
    top: 15px;
    right: 22px;
    z-index: 1900;
}

/* DETALLES DEL SWITCH */

.acreduca-admin-switch {
    position: relative;
}

/* BOTÓN PRINCIPAL */

.acreduca-admin-switch-trigger {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    margin-left: auto;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;

    background: #181e6d;
    color: #ffffff;

    box-shadow: 0 6px 20px rgba(24, 30, 109, 0.22);

    cursor: pointer;

    list-style: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.acreduca-admin-switch-trigger::-webkit-details-marker {
    display: none;
}

.acreduca-admin-switch-trigger::marker {
    content: "";
}

.acreduca-admin-switch-trigger i {
    font-size: 1.15rem;
    line-height: 1;
}

.acreduca-admin-switch-trigger:hover {
    background: #303783;
    transform: translateY(-2px);

    box-shadow: 0 9px 24px rgba(24, 30, 109, 0.28);
}

.acreduca-admin-switch[open]
.acreduca-admin-switch-trigger {
    background: #ff7a00;
}

/* ACCESIBILIDAD */

.acreduca-admin-switch-trigger:focus-visible {
    outline: 3px solid #ff7a00;
    outline-offset: 3px;
}

/* PANEL DESPLEGABLE */

.acreduca-admin-switch-panel {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 260px;
    max-width: calc(100vw - 24px);

    padding: 0.8rem;

    border: 1px solid #e5e9f4;
    border-radius: 16px;

    background: #ffffff;
    color: #181e6d;

    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.17);
}

/* ENCABEZADO DEL PANEL */

.acreduca-admin-switch-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;

    padding: 0.65rem 0.7rem 0.85rem;

    margin-bottom: 0.35rem;

    border-bottom: 1px solid #e8ebf4;

    color: #181e6d;

    font-size: 0.85rem;
    font-weight: 800;
}

/* OPCIONES */

.acreduca-admin-switch-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    width: 100%;

    padding: 0.85rem 0.75rem;

    border-radius: 10px;

    color: #343f60;
    background: transparent;

    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

a.acreduca-admin-switch-option:hover {
    background: #f0f2fb;
    color: #181e6d;
    text-decoration: none;
}

.acreduca-admin-switch-option > i:first-child {
    flex-shrink: 0;
    font-size: 1rem;
}

.acreduca-admin-switch-option > span {
    flex: 1;
}

/* INDICADOR DERECHO */

.acreduca-admin-switch-end {
    margin-left: auto;
    font-size: 0.9rem;
    color: #8a93a9;
}

/* OPCIÓN ACTUAL */

.acreduca-admin-switch-option.is-current {
    background: #eef1fc;
    color: #181e6d;

    cursor: default;
}

.acreduca-admin-switch-option.is-current
.acreduca-admin-switch-end {
    color: #238b45;
}

/* MODO OSCURO:
   se mantiene el menú legible */

[data-bs-theme="dark"] .acreduca-admin-switch-panel {
    background: #252b54;
    border-color: rgba(255, 255, 255, 0.16);
}

[data-bs-theme="dark"] .acreduca-admin-switch-heading,
[data-bs-theme="dark"] .acreduca-admin-switch-option {
    color: #ffffff;
}

[data-bs-theme="dark"]
a.acreduca-admin-switch-option:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

[data-bs-theme="dark"]
.acreduca-admin-switch-option.is-current {
    background: rgba(255, 255, 255, 0.12);
}

/* MÓVILES */

@media (max-width: 767.98px) {

    .acreduca-admin-floating {
        top: 14px;
        right: 14px;
    }

    .acreduca-admin-switch-trigger {
        width: 42px;
        height: 42px;
    }

    .acreduca-admin-switch-panel {
        width: 245px;
    }
}

/* RESPETAR REDUCCIÓN DE MOVIMIENTO */

@media (prefers-reduced-motion: reduce) {

    .acreduca-admin-switch-trigger,
    .acreduca-admin-switch-option {
        transition: none;
    }

}

/* =========================================================
   ACREDUCA - ALTURA GLOBAL DEL HEADER PÚBLICO
   Sin barra superior de contacto
   ========================================================= */

:root {
    --acreduca-public-header-height: 76px;
}

/* Páginas públicas con header fijo */
body:has(> .header-fixed-top) > main {
    padding-top: var(--acreduca-public-header-height) !important;
}

/* =========================================================
   ACREDUCA - MEGAMENU SOLUCIONES
   P3: DOS PROYECTOS EDUCATIVOS PRINCIPALES
   ========================================================= */

/* Ocultos para los demás portafolios */
#solutionsOtherPanel .acreduca-p3-projects-preview {
    display: none;
}

/* Mostrar los proyectos solo cuando P3 esté seleccionado */
#solutionsOtherPanel.is-p3 .acreduca-p3-projects-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;

    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
}

/* Ocultar los tres beneficios genéricos solo en P3 */
#solutionsOtherPanel.is-p3 #solutionsOtherBenefits {
    display: none !important;
}

/* Tarjetas de proyectos */

#solutionsOtherPanel .acreduca-p3-preview-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;

    padding: 1rem;

    border: 1px solid #dfe4f1;
    border-left: 3px solid #181e6d;
    border-radius: 12px;

    background: #ffffff;
}

/* EDUTEN: destacar en naranja */

#solutionsOtherPanel .acreduca-p3-preview-eduten {
    border-color: #f3dac7;
    border-left-color: #ff7a00;

    background: #fff9f3;
}

/* Iconos */

#solutionsOtherPanel .acreduca-p3-preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    border-radius: 10px;

    background: #eef0fa;
    color: #181e6d;

    font-size: 1.15rem;
}

#solutionsOtherPanel .acreduca-p3-preview-eduten
.acreduca-p3-preview-icon {
    background: #ffead7;
    color: #e86c00;
}

/* Información */

#solutionsOtherPanel .acreduca-p3-preview-info {
    flex: 1;
    min-width: 0;
}

#solutionsOtherPanel .acreduca-p3-preview-label {
    display: block;

    margin-bottom: 0.3rem;

    color: #f07800;

    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

#solutionsOtherPanel .acreduca-p3-preview-info h4 {
    margin: 0 0 0.4rem;

    color: #181e6d;

    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1.4;
}

#solutionsOtherPanel .acreduca-p3-preview-info p {
    margin: 0;

    color: #59667f;

    font-size: 0.78rem;
    line-height: 1.6;
}

/* Móviles */

@media (max-width: 575.98px) {

    #solutionsOtherPanel .acreduca-p3-preview-card {
        padding: 0.85rem;
        gap: 0.7rem;
    }

    #solutionsOtherPanel .acreduca-p3-preview-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

}

/* =========================================================
   ACREDUCA - MODELOS DE CALIDAD
   ENLACE DE MATERIALES EN ISO 21001
   ========================================================= */

/* Tarjeta con dos destinos independientes */

#modelsMegaMenu .acreduca-model-card-with-resources {
    cursor: default;
}

/* Enlace principal del servicio */

#modelsMegaMenu .acreduca-model-main-link {
    display: block;
    width: fit-content;
    max-width: 100%;

    color: inherit;
    text-decoration: none;
}

#modelsMegaMenu .acreduca-model-main-link:hover h3 {
    color: #181e6d;
    text-decoration: underline;
    text-decoration-color: #ff7a00;
    text-underline-offset: 3px;
}

/* Enlace de materiales */

#modelsMegaMenu .acreduca-model-resources-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    width: fit-content;
    max-width: 100%;

    margin-top: 0.75rem;
    padding: 0.48rem 0.8rem;

    border: 1px solid #ffd5b2;
    border-radius: 8px;

    background: #fff2e7;
    color: #ad4e00;

    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

#modelsMegaMenu .acreduca-model-resources-link:hover {
    background: #ff7a00;
    border-color: #ff7a00;
    color: #ffffff;
}

#modelsMegaMenu .acreduca-model-resources-link:focus-visible {
    outline: 3px solid #181e6d;
    outline-offset: 3px;
}

/* Flecha de acceso al servicio */

#modelsMegaMenu .acreduca-model-arrow-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

/* Adaptación móvil */

@media (max-width: 575.98px) {

    #modelsMegaMenu .acreduca-model-resources-link {
        padding: 0.4rem 0.55rem;
        font-size: 0.72rem;
    }

    #modelsMegaMenu .acreduca-model-card-with-resources {
        row-gap: 0.45rem;
    }

}
