/* IFP Custom styles - Mobile, WhatsApp, etc. */

/* Ocultar loader - evita que se quede trancado al ir para atrás */
.page-loader {
  display: none !important;
}

/* Menú móvil - forzar visibilidad del panel con los botones hamburguesa */
@media (max-width: 991px) {
  /* CRÍTICO: El template oculta el primer inner que tiene los toggles - lo mostramos */
  .rd-navbar-fixed.rd-navbar-secondary .rd-navbar-inner:first-child,
  .rd-navbar-secondary .rd-navbar-inner:first-child {
    display: flex !important;
  }
  .rd-navbar .rd-navbar-panel {
    display: flex !important;
  }
  /* Solo hamburguesa (líneas): ocultar el de puntos */
  .rd-navbar-collapse-toggle {
    display: none !important;
  }
  .rd-navbar-toggle {
    display: inline-block !important;
    z-index: 100002;
    cursor: pointer;
  }
  /* Menú y panel bien adelante para que no tape nada */
  .rd-navbar-fixed .rd-navbar-nav-wrap {
    z-index: 100000 !important;
  }
  .rd-navbar-fixed .rd-navbar-collapse {
    z-index: 100000 !important;
  }
  .rd-navbar-fixed .rd-navbar-panel {
    z-index: 100001 !important;
  }
  /* Menú desplegable: fondo oscuro y letras claras */
  .rd-navbar-fixed .rd-navbar-nav-wrap {
    background: #212121 !important;
    color: #fff !important;
    box-shadow: 2px 0 15px rgba(0,0,0,0.3);
  }
  .rd-navbar-fixed .rd-navbar-nav-wrap .rd-navbar-nav {
    background: #212121 !important;
    color: #fff !important;
  }
  .rd-navbar-fixed .rd-navbar-nav li > a {
    color: #fff !important;
  }
  .rd-navbar-fixed .rd-navbar-nav li > a:hover,
  .rd-navbar-fixed .rd-navbar-nav li.active > a {
    color: #212121 !important;
    background: #FF8C00 !important;
  }
  .rd-navbar-fixed .rd-navbar-nav li.opened > a {
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
  }
  .rd-navbar-fixed .rd-navbar-nav .rd-navbar-submenu-toggle::after {
    color: #fff !important;
  }
  .rd-navbar-fixed .rd-navbar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3) !important;
  }
  .rd-navbar-fixed .rd-navbar-nav::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2) !important;
  }
  /* Panel de contacto: fondo oscuro, texto claro */
  .rd-navbar-fixed .rd-navbar-collapse {
    background-color: #212121 !important;
    color: #fff !important;
  }
  .rd-navbar-fixed .rd-navbar-collapse .title,
  .rd-navbar-fixed .rd-navbar-collapse .small {
    color: rgba(255,255,255,0.8) !important;
  }
  .rd-navbar-fixed .rd-navbar-collapse h3,
  .rd-navbar-fixed .rd-navbar-collapse h3 a {
    color: #fff !important;
  }
  .rd-navbar-fixed .rd-navbar-collapse .icon-primary {
    color: #25d366 !important;
  }
  .rd-navbar-fixed .rd-navbar-collapse .icon-silver-chalice {
    color: rgba(255,255,255,0.8) !important;
  }
  .rd-navbar-fixed .rd-navbar-collapse a.icon-silver-chalice:hover {
    color: #FF8C00 !important;
  }
  /* Un solo panel: contacto debajo del menú en la misma columna */
  .rd-navbar-fixed .rd-navbar-collapse.active {
    left: 0 !important;
    right: auto !important;
    width: 232px !important;
    top: auto !important;
    bottom: 0 !important;
  }
}

/* Botón WhatsApp flotante - oculto */
.whatsapp-float {
  display: none !important;
}

/* Logo en escritorio: un poco más compacto */
@media (min-width: 992px) {
  .rd-navbar-brand img.brand-device,
  .rd-navbar-brand img.brand-mobile {
    max-height: 52px;
    width: auto !important;
  }
}


/* Logo: un poco más chico; GIF con texto oscuro legible sobre barra oscura */
@media (max-width: 991px) {
  .rd-navbar-brand .brand-name {
    display: inline-block;
    background: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    line-height: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  }
  .rd-navbar-brand img.brand-device,
  .rd-navbar-brand img.brand-mobile {
    max-width: 118px !important;
    width: auto !important;
    height: auto !important;
  }
}

/* Hamburguesa más grande y etiqueta “Menú” */
@media (max-width: 991px) {
  .rd-navbar-toggle {
    min-width: 52px !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    margin-right: 6px !important;
  }
  .rd-navbar-toggle span,
  .rd-navbar-toggle span::before,
  .rd-navbar-toggle span::after {
    width: 28px !important;
  }
  .rd-navbar-toggle span {
    height: 4px !important;
    margin-top: -2px !important;
  }
  .rd-navbar-panel {
    align-items: center !important;
  }
  .ifp-menu-hint {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    text-transform: uppercase;
    margin-right: 4px;
    user-select: none;
    flex-shrink: 0;
  }
}

/* Franja de accesos tipo “cuadros” visibles en celular (sin reemplazar menú off-canvas) */
.ifp-quicknav {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}
@media (max-width: 991px) {
  .ifp-quicknav {
    display: flex;
  }
}
.ifp-quicknav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #212121 !important;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none !important;
}
.ifp-quicknav a:hover,
.ifp-quicknav a:focus {
  background: #FF8C00;
  color: #212121 !important;
  border-color: #FF8C00;
}
.ifp-quicknav a.ifp-quicknav-active {
  background: #212121;
  color: #fff !important;
  border-color: #212121;
}
/* Catálogo largo: bloques de curso */
.ifp-sst-course {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e8e8;
}
.ifp-sst-course:last-child {
  border-bottom: 0;
}

/* Pie: línea de contexto en móvil (qué página estás viendo) */
@media (max-width: 991px) {
  .ifp-footer-context {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92) !important;
    border-left: 3px solid #FF8C00;
    padding: 10px 12px;
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.2);
  }
}

/* Página Cursos: menos aire entre hero y listado */
.ifp-cursos-hero.section-xl {
  padding-top: 35px !important;
  padding-bottom: 35px !important;
}
@media (max-width: 767px) {
  .ifp-cursos-hero.section-xl {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  .ifp-cursos-hero .col-xl-16 h2 {
    margin-top: 0 !important;
  }
  .ifp-cursos-hero .col-xl-16 br:first-of-type {
    display: none;
  }
}
.ifp-nuestros-cursos-title {
  margin-bottom: 20px;
  margin-top: 0;
  color: #212121;
  text-align: center;
}
@media (min-width: 768px) {
  .ifp-nuestros-cursos-title {
    text-align: left;
  }
}
#custom-way-point.section-xl-75 {
  padding-top: 40px !important;
}
@media (max-width: 767px) {
  #custom-way-point.section-xl-75 {
    padding-top: 28px !important;
  }
}

.page-footer-classic .img-responsive[src*="logo.gif"] {
  max-width: 200px;
}

/* Mejoras móviles */
@media (max-width: 768px) {
  .rd-navbar-brand img.brand-device {
    max-width: 118px;
  }
  .rd-navbar-brand img.brand-mobile {
    max-width: 118px;
  }
}
@media (max-width: 575px) {
  .swiper-slide-caption h1 {
    font-size: 22px !important;
    line-height: 1.3;
    padding: 0 10px;
  }
  .swiper-slide-caption .h3 {
    font-size: 16px !important;
  }
  .swiper-slide-caption .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Responsive móvil - navegación y contenido */
@media (max-width: 991px) {
  .rd-navbar-nav li a {
    padding: 10px 12px;
    font-size: 14px;
  }
  .rd-navbar-nav {
    padding: 15px 0;
  }
}
@media (max-width: 767px) {
  .section-75, .section-md-120, .section-lg-120 {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .blog-grid-content h5,
  .blog-grid-content p {
    font-size: 15px;
    line-height: 1.5;
  }
  .page-footer-classic .row-55 > [class*="col-"] {
    margin-bottom: 25px;
  }
  .unit-body a, .unit-body h6 {
    font-size: 14px;
  }
}
@media (max-width: 575px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .rd-navbar-brand img.brand-device,
  .rd-navbar-brand img.brand-mobile {
    max-width: 100px !important;
  }
  .box-info-custom-title {
    font-size: 16px !important;
    line-height: 1.3;
  }
  .breadcrumb-classic {
    padding: 20px 0;
  }
  .list-breadcrumb {
    font-size: 14px;
  }
  img.img-responsive {
    max-width: 100%;
    height: auto;
  }
  .blog-grid-image img {
    width: 100%;
    height: auto;
  }
}
