/**
 * TheBestIn - UI Improvements
 * Mejoras de interfaz para thebestin.net
 */

/* =============================================
   1. MOBILE NAV FIX
   ============================================= */
@media (max-width: 991px) {
  /* Header compacto */
  header {
    max-width: 100vw !important;
  }

  .lp-menu-bar.header-bg-color-class {
    padding: 0 !important;
    min-height: auto !important;
  }

  .lp-menu-bar .container {
    padding: 0 15px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: auto !important;
    height: 56px !important;
  }

  .lp-menu-bar .row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    height: 56px !important;
  }

  /* Eliminar pseudo-elementos Bootstrap/clearfix que crean flex items fantasma */
  .lp-menu-bar .row::before,
  .lp-menu-bar .row::after,
  .lp-menu-bar .header-right-panel::before,
  .lp-menu-bar .header-right-panel::after {
    display: none !important;
  }

  /* Logo - forzar posicion estatica (tema inline usa absolute !important) */
  .lp-menu-bar .row .lp-logo-container {
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    float: none !important;
  }

  header .lp-menu-bar .lp-logo,
  header .lp-menu-bar .lp-logo-center {
    position: static !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    top: auto !important;
  }

  header .lp-menu-bar .lp-logo a {
    display: inline-block !important;
  }

  header .lp-menu-bar .lp-logo img {
    max-height: 32px !important;
    width: auto !important;
    position: static !important;
    display: block !important;
  }

  /* Panel derecho - static para que hamburguesa se posicione relativo al container */
  .lp-menu-bar .row .header-right-panel {
    position: static !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: 56px !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    float: none !important;
  }

  /* Hamburguesa - centrada horizontalmente en el header */
  header .lp-menu-bar .header-right-panel .mobile-nav-icon,
  header .lp-menu-bar .mobile-nav-icon {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    height: auto !important;
    min-height: auto !important;
    width: auto !important;
    right: auto !important;
    float: none !important;
    z-index: 100;
  }

  header .lp-menu-bar .mobile-nav-icon .nav-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
  }

  header .lp-menu-bar .mobile-nav-icon .nav-icon .icon-bar {
    width: 22px;
    height: 2px;
    background-color: #FFFFFF !important;
    margin-bottom: 5px;
    border-radius: 2px;
  }

  header .lp-menu-bar .mobile-nav-icon .nav-icon .icon-bar:last-child {
    margin-bottom: 0;
  }

  /* Overlay del header - fondo solido para header fijo */
  .lp-header-overlay {
    height: 56px !important;
    background: rgba(0, 0, 0, 0.85) !important;
  }

  /* Ocultar viejo chip WA del plugin (reemplazado por #thebestin-header-icons) */
  .lp-menu-bar a.wa-chip.only-icon {
    display: none !important;
  }
}

/* =============================================
   2. CTA SECTION
   ============================================= */

/* Ocultar promo box original de Elementor */
.elementor-element-afc686f {
  display: none !important;
}

#thebestin-cta {
  background: #f7f8fa;
  padding: 80px 0;
  overflow: hidden;
}

#thebestin-cta .thebestin-cta-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 60px;
}

#thebestin-cta .thebestin-cta-content {
  flex: 1 1 55%;
}

#thebestin-cta .thebestin-cta-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #DD3333;
  margin-bottom: 16px;
}

#thebestin-cta .thebestin-cta-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a2e;
  margin: 0 0 20px;
}

#thebestin-cta .thebestin-cta-desc {
  font-size: 16px;
  line-height: 1.75;
  color: #5a6370;
  margin: 0 0 32px;
  max-width: 460px;
}

#thebestin-cta .thebestin-cta-btn {
  display: inline-block;
  background: #DD3333;
  color: #fff !important;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(221, 51, 51, 0.3);
}

#thebestin-cta .thebestin-cta-btn:hover {
  background: #c42929;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(221, 51, 51, 0.4);
  color: #fff !important;
  text-decoration: none !important;
}

#thebestin-cta .thebestin-cta-visual {
  flex: 1 1 45%;
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 340px;
}

#thebestin-cta .thebestin-cta-img-wrap {
  position: relative;
  z-index: 2;
}

#thebestin-cta .thebestin-cta-img-wrap img {
  width: 100%;
  max-width: 440px;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Formas decorativas */
#thebestin-cta .thebestin-cta-shape-1 {
  position: absolute;
  width: 280px;
  height: 280px;
  background: #22403A;
  border-radius: 20px;
  top: -25px;
  right: -25px;
  z-index: 1;
}

#thebestin-cta .thebestin-cta-shape-2 {
  position: absolute;
  width: 80px;
  height: 80px;
  background: #DD3333;
  border-radius: 14px;
  bottom: -15px;
  left: 10%;
  z-index: 3;
  transform: rotate(15deg);
}

@media (max-width: 991px) {
  #thebestin-cta {
    padding: 50px 0;
  }

  #thebestin-cta .thebestin-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 20px;
  }

  #thebestin-cta .thebestin-cta-title {
    font-size: 28px;
  }

  #thebestin-cta .thebestin-cta-desc {
    max-width: 100%;
  }

  #thebestin-cta .thebestin-cta-visual {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    min-height: 260px;
  }

  #thebestin-cta .thebestin-cta-img-wrap img {
    height: 240px;
    max-width: 300px;
  }

  #thebestin-cta .thebestin-cta-shape-1 {
    width: 200px;
    height: 200px;
    top: -15px;
    right: -15px;
  }

  #thebestin-cta .thebestin-cta-shape-2 {
    width: 60px;
    height: 60px;
    bottom: -10px;
  }
}

/* =============================================
   3. METRICS / COUNTERS SECTION
   ============================================= */

/* Fondo oscuro premium */
.elementor-element-ad2e3c7 {
  background: #1a1a2e !important;
  padding: 60px 0 !important;
}

/* Cards translucidas */
.elementor-element-ad2e3c7 > .e-con-inner > .e-con {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 32px 24px 28px !important;
  text-align: center !important;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  grid-template-rows: none !important;
}

.elementor-element-ad2e3c7 > .e-con-inner > .e-con:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-4px);
}

/* Iconos con fondo de acento */
.elementor-element-ad2e3c7 .elementor-icon-wrapper {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 16px !important;
}

.elementor-element-ad2e3c7 .elementor-icon {
  width: 56px !important;
  height: 56px !important;
  background: rgba(221, 51, 51, 0.12) !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.elementor-element-ad2e3c7 .elementor-icon i {
  color: #DD3333 !important;
  font-size: 24px !important;
}

/* Numeros blancos */
.elementor-element-ad2e3c7 .elementor-counter-number-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: baseline !important;
  gap: 2px !important;
  margin-bottom: 4px !important;
}

.elementor-element-ad2e3c7 .elementor-counter-number,
.elementor-element-ad2e3c7 .elementor-counter-number-prefix {
  color: #FFFFFF !important;
  font-size: 44px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* Label de cada metrica */
.elementor-element-ad2e3c7 .elementor-counter-title {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  margin-bottom: 0 !important;
}

/* Ocultar fancy text roto debajo de cada contador */
.elementor-element-ad2e3c7 .elementor-widget-eael-fancy-text {
  display: none !important;
}

@media (max-width: 991px) {
  /* Full-width para que el fondo oscuro llegue a los bordes */
  .elementor-element-ad2e3c7 {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 40px 16px !important;
    box-sizing: border-box !important;
  }

  /* Grid 2x2 en movil */
  .elementor-element-ad2e3c7 > .e-con-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .elementor-element-ad2e3c7 > .e-con-inner > .e-con {
    padding: 24px 16px 20px !important;
  }

  /* Centrar todos los widgets (Elementor pone flex-start en algunos) */
  .elementor-element-ad2e3c7 > .e-con-inner > .e-con > .elementor-element {
    align-self: center !important;
    width: 100% !important;
    text-align: center !important;
  }

  .elementor-element-ad2e3c7 .elementor-counter-number,
  .elementor-element-ad2e3c7 .elementor-counter-number-prefix {
    font-size: 32px !important;
  }

  .elementor-element-ad2e3c7 .elementor-counter-title {
    font-size: 11px !important;
    letter-spacing: 1px !important;
  }

  .elementor-element-ad2e3c7 .elementor-icon {
    width: 48px !important;
    height: 48px !important;
  }

  .elementor-element-ad2e3c7 .elementor-icon i {
    font-size: 20px !important;
  }
}

/* =============================================
   4. CATEGORY CARDS FALLBACK
   ============================================= */
.elementor-image-box-wrapper img[src*="data:image/svg"] {
  background: linear-gradient(135deg, #22403A, #1a332e) !important;
  min-height: 200px;
  object-fit: cover;
}

/* =============================================
   5. TESTIMONIALS
   ============================================= */

/* Fondo sutil para separar la seccion */
.elementor-element-c23c787 {
  background: #f7f8fa !important;
  padding: 70px 0 !important;
}

/* Cards limpias con sombra */
.elementor-element-c23c787 > .e-con-inner > .e-con {
  background: #FFFFFF !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
  padding: 36px 28px 32px !important;
  text-align: center !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.elementor-element-c23c787 > .e-con-inner > .e-con:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* Icono de comillas - paleta del sitio */
.elementor-element-c23c787 .elementor-icon-wrapper {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
}

.elementor-element-c23c787 .elementor-icon {
  width: 48px !important;
  height: 48px !important;
  background: rgba(221, 51, 51, 0.1) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.elementor-element-c23c787 .elementor-icon svg {
  fill: #DD3333 !important;
  color: #DD3333 !important;
  width: 20px !important;
  height: 20px !important;
}

/* Texto del testimonio */
.elementor-element-c23c787 .eael-fancy-text-container,
.elementor-element-c23c787 .eael-fancy-text-strings {
  color: #4a5568 !important;
  font-size: 15px !important;
  font-style: italic !important;
  line-height: 1.75 !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  display: block !important;
}

/* Avatar circular y consistente */
.elementor-element-c23c787 .elementor-widget-image {
  margin: 20px 0 12px !important;
}

.elementor-element-c23c787 .elementor-widget-image img {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid #f0f0f0 !important;
}

.elementor-element-c23c787 .elementor-image {
  display: flex !important;
  justify-content: center !important;
}

/* Nombre del cliente */
.elementor-element-c23c787 .elementor-widget-heading h2 {
  color: #1a1a2e !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

@media (max-width: 991px) {
  /* Neutralizar padding del parent que comprime la seccion */
  .elementor-element-224aa98 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Full-width para fondo edge-to-edge */
  .elementor-element-c23c787 {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 50px 16px !important;
    box-sizing: border-box !important;
  }

  .elementor-element-c23c787 > .e-con-inner > .e-con {
    padding: 28px 20px 24px !important;
  }
}

/* =============================================
   6. FOOTER IMPROVEMENTS
   ============================================= */
footer.footer-style10 {
  background-color: #1a1a2e !important;
}

footer.footer-style10 .footer10-bottom-area {
  background-color: #1a1a2e !important;
}

footer.footer-style10,
footer.footer-style10 a,
footer.footer-style10 span,
footer.footer-style10 p {
  color: rgba(255, 255, 255, 0.7) !important;
  border-color: transparent !important;
}

footer.footer-style10 a:hover {
  color: #FFFFFF !important;
}

/* Limitar texto largo del footer */
footer.footer-style10 .padding-top-60 p {
  max-height: 180px;
  overflow: hidden;
  position: relative;
}

footer.footer-style10 .padding-top-60 p::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, #1a1a2e);
}

/* =============================================
   7. GLOBAL REFINEMENTS
   ============================================= */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

html {
  scroll-behavior: smooth;
}

.elementor-section,
.e-con {
  transition: opacity 0.3s ease;
}

.elementor-section-wrap > .e-con {
  margin-bottom: 20px;
}

/* =============================================
   8. GTRANSLATE MINIMAL - Solo bandera (desktop)
   ============================================= */

/* Ocultar widget generado por el loader global (paginas internas) */
#gt_wrapper_global .gt_float_switcher {
  display: none !important;
}

/* Ocultar texto y flecha del selector de idiomas */
.menu-item-gtranslate .gt-lang-code,
.menu-item-gtranslate .gt_float_switcher-arrow {
  display: none !important;
}

/* Bandera circular */
.menu-item-gtranslate .gt-current-lang img {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50%;
  object-fit: cover;
}

/* Contenedor compacto */
.menu-item-gtranslate .gt_float_switcher {
  padding: 0 !important;
  min-width: auto !important;
}

/* =============================================
   9. NAV DESKTOP - WA + Selector de idioma
   ============================================= */

.menu-item-wa-header a {
  display: flex !important;
  align-items: center;
  padding: 0 4px !important;
}

.menu-item-wa-header svg {
  transition: transform 0.2s ease;
}

.menu-item-wa-header a:hover svg {
  transform: scale(1.1);
}

/* Ocultar widget GTranslate roto del nav */
.menu-item-gtranslate {
  display: none !important;
}

/* Selector de idioma custom - solo desktop */
@media (max-width: 991px) {
  .menu-item-tb-lang {
    display: none !important;
  }
}

.menu-item-tb-lang {
  position: relative !important;
}

.tb-nav-lang-btn {
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 0 4px !important;
  display: flex !important;
  align-items: center;
  line-height: 1;
}

.tb-nav-lang-btn img {
  border-radius: 50%;
  object-fit: cover;
  width: 22px !important;
  height: 22px !important;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tb-nav-lang-btn:hover img {
  transform: scale(1.1);
  opacity: 0.85;
}

/* Dropdown */
.tb-nav-lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(8, 8, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px;
  list-style: none !important;
  margin: 0 !important;
  min-width: 148px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 9999;
}

.tb-nav-lang-list.active {
  display: flex !important;
}

.tb-nav-lang-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tb-nav-lang-list a {
  display: flex !important;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none !important;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.tb-nav-lang-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF !important;
}

.tb-nav-lang-list img {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* =============================================
   10. HEADER ICONS MOBILE - Bandera + WhatsApp
   ============================================= */

/* Ocultar en desktop (usa el del nav menu) */
@media (min-width: 992px) {
  #thebestin-header-icons {
    display: none !important;
  }
}

@media (max-width: 991px) {
  #thebestin-header-icons {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px;
    z-index: 101;
  }

  #thebestin-header-icons .thebestin-lang-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    position: relative;
  }

  #thebestin-header-icons .thebestin-lang-btn img,
  #thebestin-header-icons .thebestin-lang-btn svg {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
  }

  #thebestin-header-icons .thebestin-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #25D366;
    border-radius: 50%;
    color: white;
    text-decoration: none;
  }

  #thebestin-header-icons .thebestin-wa-btn svg {
    width: 16px;
    height: 16px;
  }

  /* Dropdown de idiomas */
  #thebestin-header-icons .thebestin-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.92);
    border-radius: 8px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    min-width: 130px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  #thebestin-header-icons .thebestin-lang-dropdown.active {
    display: flex;
  }

  #thebestin-header-icons .thebestin-lang-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: white !important;
    text-decoration: none !important;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
  }

  #thebestin-header-icons .thebestin-lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  #thebestin-header-icons .thebestin-lang-dropdown img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
  }
}

/* =============================================
   11. KEN BURNS HERO - Futuristic Edition
   ============================================= */

/* Ocultar el video solo cuando el Ken Burns ya está en el DOM */
.header-container.lp-vedio-bg:has(#thebestin-ken-burns) .video-lp {
  display: none !important;
}

.header-container.lp-vedio-bg {
  position: relative !important;
  overflow: hidden !important;
  min-height: 580px !important;
  height: 580px !important;
}

@media (max-width: 991px) {
  .header-container.lp-vedio-bg {
    min-height: 440px !important;
    height: 440px !important;
  }
}

@media (max-width: 768px) {
  .header-container.lp-vedio-bg {
    min-height: 360px !important;
    height: 360px !important;
  }
}

/* Contenedor del slideshow */
#thebestin-ken-burns {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 0 !important;
  overflow: hidden !important;
}

/* === Overlay multi-capa cinematico === */
#thebestin-ken-burns::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background:
    /* Textura dot-grid sutil */
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    /* Viñeta lateral izquierda */
    radial-gradient(ellipse at -10% 50%, rgba(5, 8, 28, 0.65) 0%, transparent 55%),
    /* Viñeta lateral derecha */
    radial-gradient(ellipse at 110% 50%, rgba(5, 8, 28, 0.65) 0%, transparent 55%),
    /* Gradiente principal: navy profundo → transparente → crimson */
    linear-gradient(
      175deg,
      rgba(5, 8, 28, 0.92) 0%,
      rgba(8, 10, 30, 0.42) 32%,
      rgba(20, 8, 8, 0.48) 65%,
      rgba(55, 5, 5, 0.88) 100%
    );
  background-size: 32px 32px, 100% 100%, 100% 100%, 100% 100%;
}

/* === Slides Ken Burns === */
.kb-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  z-index: 1;
  will-change: transform, opacity;
}

.kb-slide:nth-child(1) { animation: kb-zoom-in   30s ease-in-out 0s  infinite; }
.kb-slide:nth-child(2) { animation: kb-pan-right  30s ease-in-out 6s  infinite; }
.kb-slide:nth-child(3) { animation: kb-zoom-out   30s ease-in-out 12s infinite; }
.kb-slide:nth-child(4) { animation: kb-pan-left   30s ease-in-out 18s infinite; }
.kb-slide:nth-child(5) { animation: kb-diagonal   30s ease-in-out 24s infinite; }

@keyframes kb-zoom-in {
  0%   { opacity: 0; transform: scale(1.15); }
  5%   { opacity: 1; }
  15%  { opacity: 1; transform: scale(1.02); }
  20%  { opacity: 0; transform: scale(1.0); }
  100% { opacity: 0; transform: scale(1.0); }
}

@keyframes kb-pan-right {
  0%   { opacity: 0; transform: scale(1.08) translateX(-3%); }
  5%   { opacity: 1; }
  15%  { opacity: 1; transform: scale(1.08) translateX(3%); }
  20%  { opacity: 0; transform: scale(1.08) translateX(3%); }
  100% { opacity: 0; transform: scale(1.08) translateX(-3%); }
}

@keyframes kb-zoom-out {
  0%   { opacity: 0; transform: scale(1.0) translateY(1%); }
  5%   { opacity: 1; }
  15%  { opacity: 1; transform: scale(1.12) translateY(-1%); }
  20%  { opacity: 0; transform: scale(1.12) translateY(-1%); }
  100% { opacity: 0; transform: scale(1.0); }
}

@keyframes kb-pan-left {
  0%   { opacity: 0; transform: scale(1.08) translateX(3%); }
  5%   { opacity: 1; }
  15%  { opacity: 1; transform: scale(1.08) translateX(-3%); }
  20%  { opacity: 0; transform: scale(1.08) translateX(-3%); }
  100% { opacity: 0; transform: scale(1.08) translateX(3%); }
}

@keyframes kb-diagonal {
  0%   { opacity: 0; transform: scale(1.12) translate(-2%, -2%); }
  5%   { opacity: 1; }
  15%  { opacity: 1; transform: scale(1.0) translate(2%, 2%); }
  20%  { opacity: 0; transform: scale(1.0) translate(2%, 2%); }
  100% { opacity: 0; transform: scale(1.12) translate(-2%, -2%); }
}

/* === Reticulas de esquina === */
.kb-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  z-index: 15;
  opacity: 0;
  animation: corner-appear 1.2s ease forwards, corner-pulse 3.5s ease-in-out 1.2s infinite;
}

.kb-corner--tl { top: 24px;  left: 24px;  border-top: 2px solid #DD3333; border-left:  2px solid #DD3333; }
.kb-corner--tr { top: 24px;  right: 24px; border-top: 2px solid #DD3333; border-right: 2px solid #DD3333; animation-delay: 0.15s, 1.35s; }
.kb-corner--bl { bottom: 24px; left: 24px;  border-bottom: 2px solid #DD3333; border-left:  2px solid #DD3333; animation-delay: 0.3s, 1.5s; }
.kb-corner--br { bottom: 24px; right: 24px; border-bottom: 2px solid #DD3333; border-right: 2px solid #DD3333; animation-delay: 0.45s, 1.65s; }

@keyframes corner-appear {
  0%   { opacity: 0; transform: scale(0.4); }
  100% { opacity: 0.6; transform: scale(1); }
}

@keyframes corner-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.9; box-shadow: 0 0 8px rgba(221, 51, 51, 0.5); }
}

/* === Barra glow inferior === */
#thebestin-hero-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 15;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(221, 51, 51, 0.35) 18%,
    #DD3333 38%,
    #ff5555 50%,
    #DD3333 62%,
    rgba(221, 51, 51, 0.35) 82%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(221, 51, 51, 0.9),
    0 0 32px rgba(221, 51, 51, 0.5),
    0 0 65px rgba(221, 51, 51, 0.2);
  animation: glow-pulse 2.8s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; box-shadow: 0 0 18px rgba(221, 51, 51, 1), 0 0 50px rgba(221, 51, 51, 0.7), 0 0 90px rgba(221, 51, 51, 0.3); }
}

/* === Stat pills flotantes === */
#thebestin-hero-stats {
  position: absolute;
  bottom: 14px;
  right: 24px;
  z-index: 15;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.kb-stat {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(5, 8, 28, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  padding: 8px 18px 8px 12px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  opacity: 0;
}

.kb-stat:nth-child(1) { animation: stat-appear 0.7s 0.5s ease forwards, stat-float 5s 1.2s ease-in-out infinite; }
.kb-stat:nth-child(2) { animation: stat-appear 0.7s 0.8s ease forwards, stat-float 5s 1.6s ease-in-out infinite; }

.kb-stat-dot {
  width: 7px;
  height: 7px;
  background: #DD3333;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(221, 51, 51, 0.9);
  flex-shrink: 0;
  animation: dot-pulse 2.2s ease-in-out infinite;
}

.kb-stat:nth-child(2) .kb-stat-dot { animation-delay: 1.1s; }

@keyframes stat-appear {
  0%   { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes stat-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(221, 51, 51, 0.7); }
  50%       { box-shadow: 0 0 10px rgba(221, 51, 51, 1); }
}

/* === Mobile === */
@media (max-width: 768px) {
  #thebestin-ken-burns::after {
    background-size: 24px 24px, 100% 100%, 100% 100%, 100% 100%;
  }

  .kb-slide:nth-child(1) { animation-name: kb-zoom-in-sm; }
  .kb-slide:nth-child(2) { animation-name: kb-zoom-in-sm; }
  .kb-slide:nth-child(3) { animation-name: kb-zoom-out-sm; }
  .kb-slide:nth-child(4) { animation-name: kb-zoom-out-sm; }
  .kb-slide:nth-child(5) { animation-name: kb-zoom-in-sm; }

  .kb-corner { width: 22px; height: 22px; }
  .kb-corner--tl { top: 14px; left: 14px; }
  .kb-corner--tr { top: 14px; right: 14px; }
  .kb-corner--bl { bottom: 14px; left: 14px; }
  .kb-corner--br { bottom: 14px; right: 14px; }

  #thebestin-hero-stats {
    bottom: 10px;
    right: 14px;
    gap: 8px;
  }

  .kb-stat {
    font-size: 11px;
    padding: 6px 14px 6px 10px;
    gap: 7px;
  }

  .kb-stat-dot { width: 6px; height: 6px; }
}

@keyframes kb-zoom-in-sm {
  0%   { opacity: 0; transform: scale(1.08); }
  5%   { opacity: 1; }
  15%  { opacity: 1; transform: scale(1.01); }
  20%  { opacity: 0; transform: scale(1.0); }
  100% { opacity: 0; }
}

@keyframes kb-zoom-out-sm {
  0%   { opacity: 0; transform: scale(1.0); }
  5%   { opacity: 1; }
  15%  { opacity: 1; transform: scale(1.08); }
  20%  { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; }
}

/* === Corner line extensions === */
.kb-corner::before,
.kb-corner::after {
  content: '';
  position: absolute;
  background: rgba(221, 51, 51, 0.22);
}

/* Horizontales */
.kb-corner--tl::before { height: 2px; width: 50px; top: 0;    left: 36px;  }
.kb-corner--tr::before { height: 2px; width: 50px; top: 0;    right: 36px; }
.kb-corner--bl::before { height: 2px; width: 50px; bottom: 0; left: 36px;  }
.kb-corner--br::before { height: 2px; width: 50px; bottom: 0; right: 36px; }

/* Verticales */
.kb-corner--tl::after { width: 2px; height: 50px; left: 0;  top: 36px;    }
.kb-corner--tr::after { width: 2px; height: 50px; right: 0; top: 36px;    }
.kb-corner--bl::after { width: 2px; height: 50px; left: 0;  bottom: 36px; }
.kb-corner--br::after { width: 2px; height: 50px; right: 0; bottom: 36px; }

/* Mobile */
@media (max-width: 768px) {
  .kb-corner--tl::before, .kb-corner--tr::before,
  .kb-corner--bl::before, .kb-corner--br::before { width: 28px; }
  .kb-corner--tl::after,  .kb-corner--tr::after,
  .kb-corner--bl::after,  .kb-corner--br::after  { height: 28px; }

  .kb-corner--tl::before { left: 22px; }
  .kb-corner--tr::before { right: 22px; }
  .kb-corner--bl::before { left: 22px; }
  .kb-corner--br::before { right: 22px; }

  .kb-corner--tl::after { top: 22px; }
  .kb-corner--tr::after { top: 22px; }
  .kb-corner--bl::after { bottom: 22px; }
  .kb-corner--br::after { bottom: 22px; }
}

/* === Scan sweep === */
#thebestin-hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -110px;
  height: 110px;
  pointer-events: none;
  z-index: 16;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(221, 51, 51, 0.03) 50%,
    rgba(255, 255, 255, 0.055) 80%,
    rgba(221, 51, 51, 0.09) 100%
  );
  animation: scan-sweep 10s linear infinite;
}

@keyframes scan-sweep {
  0%   { top: -110px; }
  100% { top: 100%; }
}

/* === Coordenadas Buenos Aires === */
#thebestin-hero-coords {
  position: absolute;
  bottom: 16px;
  left: 72px;
  z-index: 15;
  color: rgba(255, 255, 255, 0.35);
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  line-height: 1.4;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  animation: coords-appear 1.5s 1.3s ease forwards;
}

@keyframes coords-appear {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@media (max-width: 768px) {
  #thebestin-hero-coords {
    left: 46px;
    bottom: 14px;
    font-size: 9px;
    letter-spacing: 1px;
    line-height: 1.4;
  }
}

/* === Hero content centrado === */
#thebestin-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  z-index: 20;
  text-align: center;
  width: 90%;
  max-width: 720px;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #DD3333;
  margin-bottom: 18px;
  opacity: 0;
  animation: hero-fade-up 0.9s 0.4s ease forwards;
}

.hero-headline {
  font-size: 72px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  line-height: 1.0 !important;
  margin: 0 0 36px !important;
  padding: 0 !important;
  text-shadow: 0 2px 48px rgba(0, 0, 0, 0.45);
  letter-spacing: -1.5px;
  opacity: 0;
  animation: hero-fade-up 0.9s 0.6s ease forwards;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(221, 51, 51, 0.92);
  color: #FFFFFF !important;
  text-decoration: none !important;
  padding: 15px 38px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  pointer-events: all;
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0;
  animation: hero-fade-up 0.9s 0.8s ease forwards;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 28px rgba(221, 51, 51, 0.45);
}

.hero-cta-btn:hover,
.hero-cta-btn:focus {
  background: #c42929 !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(221, 51, 51, 0.65);
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.hero-cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@keyframes hero-fade-up {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  #thebestin-hero-content {
    transform: translate(-50%, -55%);
  }

  .hero-headline {
    font-size: 52px !important;
    margin-bottom: 28px !important;
  }
}

@media (max-width: 768px) {
  #thebestin-hero-content {
    transform: translate(-50%, -55%);
  }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 2.5px;
    margin-bottom: 14px;
  }

  .hero-headline {
    font-size: 38px !important;
    letter-spacing: -0.5px;
    margin-bottom: 22px !important;
  }

  .hero-cta-btn {
    font-size: 14px;
    padding: 13px 28px;
    gap: 8px;
  }

  .hero-cta-btn svg {
    width: 16px;
    height: 16px;
  }
}
