/* ============================================================
   BigHit Mkt — Premium layer
   Mejoras de accesibilidad, rendimiento percibido y componentes
   propios (formularios, FAB, chat IA, cotizador).
   Se carga DESPUES de style.css para poder sobreescribirlo.
   ============================================================ */

/* ---------- 1. Accesibilidad ------------------------------- */

/* Enlace "saltar al contenido" (visible solo al enfocar con teclado) */
.cs-skip_link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 12px 20px;
  background: #6633ff;
  color: #fff !important;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.cs-skip_link:focus {
  left: 0;
}

/* Foco visible y consistente para navegacion por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #6633ff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respeta la preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .cs-cursor_lg,
  .cs-cursor_sm {
    display: none !important;
  }
}

/* El cursor personalizado solo aporta en dispositivos con puntero fino */
@media (hover: none), (pointer: coarse) {
  .cs-cursor_lg,
  .cs-cursor_sm {
    display: none !important;
  }
}

/* Contenido solo para lectores de pantalla */
.cs-sr_only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 2. Formularios --------------------------------- */

/* Honeypot anti-spam: invisible para personas, visible para bots */
.cs-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Mensaje de estado del formulario */
.cs-form_status {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  min-height: 20px;
}
.cs-form_status.is-success {
  color: #1a7f37;
}
.cs-form_status.is-error {
  color: #c0392b;
}

/* Feedback visual de validacion nativa: solo despues de que la persona
   interactua con el campo (los vacios al cargar no son errores). */
.cs-form_field:user-invalid {
  border-color: #e07a5f;
}
.cs-form_field:focus {
  border-color: #6633ff;
  box-shadow: 0 0 0 3px rgba(102, 51, 255, 0.12);
}

/* ---------- 3. Botones flotantes (Chat IA + WhatsApp + Arriba) ---------- */

/* Un unico stack vertical, alineado a la derecha.
   Orden visual (arriba -> abajo): Chat IA · WhatsApp · Volver arriba */
.cs-fab_stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Separacion mediante margen (no `gap`) para que el boton
   "volver arriba" pueda colapsar del todo sin dejar hueco. */
.cs-fab_stack > * + * {
  margin-top: 12px;
}

.cs-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.cs-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}
.cs-fab svg {
  width: 26px;
  height: 26px;
  display: block;
}
.cs-fab_whatsapp {
  background: #25d366;
}
.cs-fab_chat {
  background: #6633ff;
}

/* --- "Volver arriba" integrado en el stack -------------------
   Se integra como ultimo boton (abajo del todo) y se alinea
   con los demas. Se revela con una transicion suave al hacer
   scroll y se oculta colapsando su espacio. */
.cs-fab_stack .cs-scrollup {
  position: static;
  bottom: auto;
  right: auto;
  width: 56px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  background-color: #241c3a;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: width 0.28s ease, height 0.28s ease, margin 0.28s ease,
    opacity 0.22s ease, transform 0.28s ease, background-color 0.2s ease;
}

/* Oculto: colapsa por completo (sin espacio residual debajo) */
.cs-fab_stack .cs-scrollup:not(.cs-scrollup_show) {
  width: 0;
  height: 0;
  margin-top: 0;
}

.cs-fab_stack .cs-scrollup.cs-scrollup_show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.cs-fab_stack .cs-scrollup svg {
  width: 20px;
  height: 20px;
  display: block;
}

.cs-fab_stack .cs-scrollup:hover,
.cs-fab_stack .cs-scrollup:focus-visible {
  background-color: #6633ff;
}
.cs-fab_stack .cs-scrollup:hover {
  transform: translateY(-3px) scale(1.04);
}
.cs-fab_stack .cs-scrollup:focus-visible {
  outline: 3px solid #6633ff;
  outline-offset: 2px;
}

/* ---------- 4. Widget de chat IA --------------------------- */

.cs-chat {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 9500;
  width: 370px;
  max-width: calc(100vw - 32px);
  max-height: min(620px, calc(100vh - 130px));
  max-height: min(620px, calc(100dvh - 130px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(20, 10, 60, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
/* Sin transform al abrir: en iOS un contenedor fijo con transform
   rompe el foco de los campos. */
.cs-chat.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cs-chat_header {
  background: linear-gradient(135deg, #6633ff, #8a5cff);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-chat_header strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.cs-chat_header small {
  opacity: 0.85;
  font-size: 12px;
}
.cs-chat_close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.cs-chat_body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  background: #f7f6fb;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.cs-msg_bot {
  background: #fff;
  color: #241c3a;
  border: 1px solid #ece9f6;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.cs-msg_user {
  background: #6633ff;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.cs-chat_quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  background: #f7f6fb;
}
.cs-chat_quick button {
  background: #fff;
  border: 1px solid #d9d2f5;
  color: #6633ff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  cursor: pointer;
  font-weight: 600;
}
.cs-chat_quick button:hover {
  background: #6633ff;
  color: #fff;
}
/* Pie del asistente: CTA a persona (sin campo de texto) */
.cs-chat_actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #edeaf7;
  background: #fff;
}
.cs-chat_actions_hint {
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 1.4em;
  text-align: center;
  color: #6b6485;
}
.cs-chat_cta {
  display: block;
  text-align: center;
  background: #6633ff;
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.cs-chat_cta:hover,
.cs-chat_cta:focus-visible {
  background: #5426d6;
  color: #fff;
}
.cs-chat_wa {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #1f7a4d;
  text-decoration: none;
  padding: 2px 0;
}
.cs-chat_wa:hover,
.cs-chat_wa:focus-visible {
  text-decoration: underline;
  color: #1f7a4d;
}
.cs-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  background: #a99ce0;
  border-radius: 50%;
  animation: cs-typing 1s infinite ease-in-out;
}
.cs-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.cs-typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes cs-typing {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .cs-chat {
    right: 12px;
    left: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
  }
  .cs-fab_stack {
    right: 14px;
    bottom: 14px;
  }
}

/* ---------- 5. Imagenes responsivas (anti-CLS) ------------- */

/* Regla canonica: evita desbordes y respeta el aspect-ratio
   declarado con los atributos width/height. */
img {
  max-width: 100%;
  height: auto;
}

/* Evita el salto de layout reservando el espacio del hero */
.cs-hero,
.cs-portfolio_bg,
.cs-member_thumb {
  background-color: #f2f0f8;
}

/* Los iconos SVG decorativos no deben estirarse */
.cs-funfact_shape img,
.cs-contact_info svg,
.cs-social_btns svg {
  flex: none;
}

/* ---------- 6. Cotizador MaaS ------------------------------ */

.cs-quoter {
  background: #fff;
  border: 1px solid #ece9f6;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 18px 48px rgba(20, 10, 60, 0.06);
}
.cs-quoter_title {
  font-size: 30px;
  margin: 0 0 6px;
  line-height: 1.2;
}
.cs-quoter_sub {
  color: #6b6482;
  margin: 0 0 22px;
}
.cs-quoter_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.cs-quoter_item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e4dff5;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  color: #241c3a;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.cs-quoter_item:hover {
  border-color: #6633ff;
  background: #f8f6ff;
}
.cs-quoter_item input {
  accent-color: #6633ff;
  width: 18px;
  height: 18px;
}
.cs-quoter_result {
  margin: 26px 0 20px;
  padding: 20px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f1ff, #ece7ff);
}
.cs-quoter_result strong {
  display: block;
  font-size: 34px;
  color: #6633ff;
  font-family: "Poppins", sans-serif;
  line-height: 1.15;
}
.cs-quoter_result small {
  color: #6b6482;
}
.cs-quoter_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Formulario dentro del chat */
.cs-chat_lead input {
  font-size: 14px;
}

@media (max-width: 600px) {
  .cs-quoter {
    padding: 22px;
  }
  .cs-quoter_title {
    font-size: 24px;
  }
  .cs-quoter_result strong {
    font-size: 27px;
  }
}

/* ---------- 7. Video: carga diferida y fondo neutro ------ */

/* Los videos usan preload="none": no se descargan hasta pulsar play.
   El fondo evita un bloque negro mientras estan sin cargar. */
video {
  background-color: #f2f0f8;
  max-width: 100%;
}

/* Contenedores de video del portafolio */
.cs-swiper_parallax_bg video {
  border-radius: 12px;
  display: block;
}

/* ---------- 8. Landing: propuesta de valor (home) --------- */

/* Hero: el titular es una frase, no una palabra display */
.bh-hero_kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9bdff;
  margin: 0 0 18px;
}

.cs-hero.cs-style1 .cs-hero_title.bh-hero_title {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.18em;
  margin-bottom: 26px;
  max-width: 900px;
}

.bh-hero_subtitle {
  font-size: 18px;
  line-height: 1.7em;
  color: #FEFEFE;
  max-width: 660px;
  margin: 0 0 34px;
}

.cs-hero.cs-style1 .cs-hero_info {
  gap: 16px 26px;
  flex-wrap: wrap;
}

/* Tarjetas de servicio: descripcion y CTA debajo de la tarjeta */
.bh-service_text {
  padding-top: 18px;
}

.bh-service_text p {
  font-size: 14px;
  line-height: 1.6em;
  color: rgba(254, 254, 254, 0.75);
  margin: 0 0 12px;
}

.bh-service_cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #6633FF;
}

.bh-service_cta:hover {
  color: #fff;
}

/* Contadores: numeros en una linea y etiquetas mas compactas */
.cs-funfact_wrap.bh-funfact .cs-funfact_number {
  font-size: 42px;
  white-space: nowrap;
}

/* La tarjeta de cifras sube sobre el hero (el tema usa -130px).
   Con -130 el bloque decorativo .cs-funfact_shape quedaba pegado al
   boton del hero (solo 20px). Con -96 el aire es de ~54px y la
   tarjeta sigue montada sobre la foto. */
.cs-funfact_wrap.cs-type1.bh-funfact {
  margin-top: -96px;
}

.cs-funfact_wrap.bh-funfact .cs-funfact_number .odometer {
  white-space: nowrap;
}

.cs-funfact_wrap.bh-funfact .cs-funfact.cs-style1 {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.cs-funfact_wrap.bh-funfact .cs-funfact.cs-style1 .cs-funfact_number {
  margin-right: 10px;
  /* Sin esto el flex encoge la columna del numero y las cifras se apilan */
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
}

.cs-funfact_wrap.bh-funfact .cs-funfact_text p {
  font-size: 14px;
  line-height: 1.45em;
}

/* Bloque "No somos una agencia. Somos el sistema." */
.bh-statement {
  max-width: 900px;
  margin: 0 auto;
}

.bh-statement_lead {
  font-size: 18px;
  line-height: 1.8em;
  color: rgba(254, 254, 254, 0.75);
  max-width: 780px;
  margin: 0 auto;
}

.bh-statement_points {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  max-width: 780px;
  display: grid;
  gap: 12px;
}

.bh-statement_points li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.6em;
  color: #FEFEFE;
  text-align: left;
}

.bh-statement_points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #6633FF;
  font-weight: 700;
}

/* Testimonios: linea de contexto con lo que se monto */
.bh-testimonial_context {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9bdff;
  margin-bottom: 16px;
}

/* CTA final */
.bh-cta_text {
  font-size: 18px;
  line-height: 1.7em;
  color: #FEFEFE;
  max-width: 720px;
  margin: 0 auto;
}

/* Aviso de asistente automatico */
.bh-ai_notice {
  font-size: 13px;
  line-height: 1.6em;
  color: rgba(254, 254, 254, 0.45);
  margin: 0;
  padding: 0 0 30px;
  text-align: center;
}

/* Hero de portada.
   El alto = padding-top (menu fijo + aire) + contenido + padding-bottom.
   - Arriba: los 100px del menu fijo + 56px de aire.
   - Abajo: 150px. La tarjeta de cifras sube 96px sobre el hero
     (margin-top: -96px), asi que quedan ~54px de aire hasta los botones.
   Sin min-height: la caja se ajusta al texto y no deja hueco de mas. */
.cs-hero.cs-style1.bh-hero_home {
  height: auto;
  min-height: 0;
  padding: 156px 0 150px;
}

@media screen and (max-width: 1199px) {
  /* Aqui el menu fijo mide 80px */
  .cs-hero.cs-style1.bh-hero_home {
    padding-top: 136px;
  }
}

@media screen and (max-width: 767px) {
  .cs-hero.cs-style1.bh-hero_home {
    min-height: 0;
    /* 150px abajo: mismos ~54px de aire hasta la tarjeta de cifras */
    padding: 130px 0 150px;
  }

  /* Velo para que el titular se lea sobre la foto en pantallas pequenas */
  .cs-hero.cs-style1.bh-hero_home::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(12, 9, 22, 0.78) 0%, rgba(12, 9, 22, 0.62) 45%, rgba(12, 9, 22, 0.88) 100%);
  }

  .cs-hero.cs-style1.bh-hero_home .cs-hero_text {
    position: relative;
    z-index: 2;
  }

  .cs-hero.cs-style1.bh-hero_home .cs-hero_title.bh-hero_title {
    font-size: clamp(26px, 7.4vw, 34px);
    line-height: 1.16em;
    margin-bottom: 16px;
  }

  .bh-hero_subtitle {
    font-size: 16px;
    line-height: 1.65em;
    margin-bottom: 26px;
  }

  .cs-hero.cs-style1.bh-hero_home .cs-hero_info {
    width: 100%;
    gap: 12px;
  }

  .cs-hero.cs-style1.bh-hero_home .cs-hero_info > div {
    width: 100%;
  }

  .cs-hero.cs-style1.bh-hero_home .cs-hero_info .cs-btn {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    font-size: 16px;
    line-height: 1.3em;
    text-align: center;
  }

  /* CTA secundario: mismo tamano tactil, peso visual menor */
  .cs-hero.cs-style1.bh-hero_home .cs-hero_info .cs-text_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border: 2px solid rgba(254, 254, 254, 0.45);
    border-radius: 15px;
    font-size: 16px;
  }

  .cs-hero.cs-style1.bh-hero_home .cs-hero_info .cs-text_btn:hover {
    border-color: #6633FF;
  }
}

/* En movil los dos CTA del hero se apilan: principal primero */
@media screen and (max-width: 991px) {
  .cs-hero.cs-style1.bh-hero_home .cs-hero_info {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 18px;
  }
}

/* ---------- 9. Footer: rejilla y jerarquia ----------------- */

/* Titulos de columna mas compactos y legibles */
.bh-footer .cs-widget_title {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FEFEFE;
  margin-bottom: 22px;
}

.bh-footer .cs-footer_item {
  margin-bottom: 36px;
}

.bh-footer .cs-menu_widget li:not(:last-child) {
  margin-bottom: 14px;
}

.bh-footer .cs-menu_widget a {
  color: rgba(254, 254, 254, 0.7);
}

.bh-footer .cs-menu_widget a:hover {
  color: #6633FF;
}

/* En pantallas medianas el titulo comercial no debe ocupar todo el ancho */
.bh-footer .cs-text_widget {
  max-width: 320px;
}

.bh-footer_contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bh-footer_contact li {
  margin-bottom: 16px;
}

.bh-footer_contact li:last-child {
  margin-bottom: 0;
}

.bh-footer_mail {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid #6633FF;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #FEFEFE;
}

.bh-footer_mail:hover {
  background-color: #6633FF;
  color: #fff;
}

.bh-footer_place {
  font-size: 14px;
  line-height: 1.6em;
  color: rgba(254, 254, 254, 0.55);
}

.bh-footer_credit {
  font-size: 14px;
  color: rgba(254, 254, 254, 0.55);
}

@media screen and (max-width: 991px) {
  .bh-footer .cs-widget_title {
    margin-bottom: 18px;
  }
  .bh-footer .cs-footer_item {
    margin-bottom: 28px;
  }
}

/* En movil los botones flotantes ocupan la esquina inferior derecha:
   el aviso legal-IA necesita hueco para no quedar tapado. */
@media screen and (max-width: 767px) {
  .bh-ai_notice {
    padding-bottom: 150px;
    padding-left: 56px;
    padding-right: 56px;
  }
}

/* ---------- 10. Movil: escala, tactil y legibilidad ---------- */

/* El h1 global mide 120px: los heroes de las paginas legales lo heredaban
   y se salian de la pantalla. Escala fluida para cualquier ancho. */
.cs-page_title_wrap .cs-page_title {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.2em;
  word-break: break-word;
}

@media screen and (max-width: 767px) {

  /* --- Escala tipografica --- */
  .cs-section_title {
    font-size: 26px;
    line-height: 1.28em;
  }
  .cs-font_50 {
    font-size: 26px;
    line-height: 1.3em;
  }
  .cs-cta_title {
    font-size: 24px;
    line-height: 1.32em;
  }
  .cs-funfact_heading h2 {
    font-size: 26px;
    line-height: 1.28em;
  }
  .bh-statement .cs-font_50 {
    font-size: 26px !important;
    line-height: 1.3em;
  }
  .cs-post_title {
    font-size: 18px;
    line-height: 1.35em;
  }
  .cs-page_title_wrap .cs-page_title_in > br {
    display: none;
  }
  .cs-page_title_wrap {
    padding: 120px 0 46px;
  }

  /* --- Areas tactiles: minimo 44px de alto --- */
  .cs-menu_widget a,
  .cs-footer_links a,
  .cs-contact_info a,
  .bh-service_cta {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    min-height: 44px;
  }
  .cs-social_btns.cs-style1 a {
    width: 44px;
    height: 44px;
  }
  .cs-slider_arrows .cs-left_arrow,
  .cs-slider_arrows .cs-right_arrow,
  .cs-swiper_button_prev,
  .cs-swiper_button_next,
  .cs-close,
  .cs-video_popup_close {
    min-width: 44px;
    min-height: 44px;
  }
  .cs-text_btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    min-height: 44px;
  }

  /* Logo y cabeceras: area tactil comoda sin agrandar el logo */
  .cs-main_header_left > a,
  .cs-text_widget > a {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    min-height: 44px;
  }

  /* Flechas de los carruseles */
  .slick-prev,
  .slick-next {
    min-height: 44px;
  }

  /* Boton de cerrar del chat flotante */
  .cs-chat_close {
    width: 44px;
    height: 44px;
  }

  /* Campo del boletin */
  .cs-newsletter .cs-newsletter_input {
    min-height: 44px;
    font-size: 16px;
  }

  /* El indicador de scroll se solapa con los CTA del hero en movil */
  .cs-down_btn {
    display: none;
  }

  /* --- Formularios: 16px evita el zoom automatico de iOS --- */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  textarea,
  select,
  .cs-form_field {
    font-size: 16px;
  }
  .cs-form_field {
    min-height: 48px;
    padding: 12px 16px;
  }

  /* --- Legibilidad de los heroes sobre foto --- */
  .cs-page_heading.cs-style1::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(12, 9, 22, 0.55)), to(rgba(12, 9, 22, 0.78)));
    background: linear-gradient(180deg, rgba(12, 9, 22, 0.55) 0%, rgba(12, 9, 22, 0.78) 100%);
  }

  .cs-page_title_wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(12, 9, 22, 0.55)), to(rgba(12, 9, 22, 0.8)));
    background: linear-gradient(180deg, rgba(12, 9, 22, 0.55) 0%, rgba(12, 9, 22, 0.8) 100%);
  }
  .cs-page_title_wrap {
    position: relative;
  }
  .cs-page_title_wrap > * {
    position: relative;
    z-index: 2;
  }
}

/* ---------- 11. Portafolio en movil ------------------------ */

/* La tarjeta tenia 500px fijos: la imagen escalaba y dejaba un hueco gris.
   En movil la altura la marca la imagen y el titulo pasa a ser una
   banda sobre la foto (mas legible que el circulo de 300px). */
@media screen and (max-width: 767px) {
  .cs-portfolio.cs-style1 {
    height: auto;
  }

  .cs-portfolio.cs-style1 .cs-portfolio_bg {
    height: auto;
  }

  .cs-portfolio.cs-style1 .cs-portfolio_bg img {
    display: block;
    width: 100%;
    height: auto;
  }

  .cs-portfolio.cs-style1 .cs-portfolio_info {
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    width: auto;
    padding: 42px 16px 14px;
    border-radius: 0;
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(10, 8, 20, 0.92)), to(rgba(10, 8, 20, 0)));
    background: linear-gradient(to top, rgba(10, 8, 20, 0.92) 0%, rgba(10, 8, 20, 0) 100%);
  }

  .cs-portfolio.cs-style1 .cs-portfolio_info_bg {
    display: none;
  }

  .cs-portfolio.cs-style1 .cs-portfolio_title {
    font-size: 18px;
    line-height: 1.3em;
    margin-bottom: 0;
    /* El template oculta el titulo hasta que el carrusel lo marca activo:
       en movil se muestra siempre para no perder el nombre del proyecto. */
    visibility: visible;
    opacity: 1;
  }
}

/* ---------- 12. Lista de servicios de marketing ---------------- */

.bh-service_list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(254, 254, 254, 0.12);
}

.bh-service_list li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(254, 254, 254, 0.12);
}

.bh-service_list a {
  font-size: 17px;
  font-weight: 600;
  color: #FEFEFE;
}

.bh-service_list a:hover {
  color: #6633FF;
}

.bh-service_list span {
  font-size: 14px;
  color: rgba(254, 254, 254, 0.55);
  text-align: right;
}

@media screen and (max-width: 767px) {
  .bh-service_list li {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 4px;
    padding: 14px 0;
  }
  .bh-service_list span {
    text-align: left;
  }
  .bh-service_list a {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    min-height: 32px;
  }
}

/* ---------- 13. Paginas de casos de exito ---------------------- */

/* Linea de contexto en cada caso del carrusel a pantalla completa */
.bh-case_service {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9bdff;
}

.bh-case_result {
  margin: 6px 0 26px;
  font-size: 15px;
  line-height: 1.5em;
  color: rgba(254, 254, 254, 0.8);
}

/* El carrusel usaba 100px de titular y 100px de padding lateral */
@media screen and (max-width: 991px) {
  .cs-hero.cs-style4,
  .cs-hero.cs-style5 {
    padding: 120px 24px 100px;
    height: auto;
    min-height: 100vh;
  }
  .cs-hero.cs-style4 .cs-hero_title,
  .cs-hero.cs-style5 .cs-hero_title {
    font-size: 40px;
    line-height: 1.12em;
  }
}

@media screen and (max-width: 575px) {
  .cs-hero.cs-style4 .cs-hero_title,
  .cs-hero.cs-style5 .cs-hero_title {
    font-size: 32px;
  }
  .bh-case_result {
    font-size: 14px;
    margin-bottom: 20px;
  }
  /* Los botones prev/next del carrusel se salian de la pantalla */
  .cs-swiper_button_prev,
  .cs-swiper_button_next {
    font-size: 0;
    padding: 10px;
  }
  .cs-swiper_button_prev svg,
  .cs-swiper_button_next svg {
    width: 22px;
    height: 12px;
  }
}

/* ---------- 14. Casos de exito: texto siempre visible -------- */

/* En estos carruseles el titular y el subtitulo se revelaban solo
   cuando Swiper marcaba la diapositiva como activa; con loop o sin
   transiciones el texto quedaba oculto para siempre. */
.bh-cases .cs-hero {
  background-color: #0c0916;
}

.bh-cases .cs-hero_text {
  opacity: 1 !important;
  top: 0 !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  transition: none !important;
}

/* Velo para que el texto se lea sobre cualquier foto */
.bh-cases .cs-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: -webkit-gradient(linear, left top, right top, from(rgba(12, 9, 22, 0.9)), to(rgba(12, 9, 22, 0.15)));
  background: linear-gradient(90deg, rgba(12, 9, 22, 0.9) 0%, rgba(12, 9, 22, 0.15) 100%);
}

.bh-cases .cs-hero_text {
  position: relative;
  z-index: 3;
}

.bh-cases .cs-hero_title {
  font-size: clamp(30px, 5.2vw, 64px);
  line-height: 1.1em;
  margin-bottom: 0;
  position: relative;
}

.bh-cases .cs-hero_title + .cs-hero_title {
  margin-top: 2px;
}

@media screen and (max-width: 991px) {
  .bh-cases .cs-hero.cs-style4,
  .bh-cases .cs-hero.cs-style5 {
    padding: 120px 24px 120px;
  }
  .bh-cases .cs-hero_text {
    padding-left: 0 !important;
    padding-top: 0;
  }
  .bh-cases .cs-hero_title {
    font-size: 30px;
  }
}

/* Titulares de los casos: blancos y legibles sobre cualquier foto */
.bh-cases .cs-hero_title,
.bh-cases .cs-hero_title span {
  color: #fff;
}

/* El carrusel se ocultaba hasta que Swiper terminaba de inicializar:
   si el JS fallaba o tardaba, la pagina quedaba en blanco. */
.bh-cases {
  opacity: 1 !important;
  visibility: visible !important;
}

/* La linea de acento del template cruzaba el titular y parecia un tachado */
.bh-cases .cs-hero.cs-style4 .cs-hero_title span::before {
  display: none;
}

/* Refuerzo: cualquier enlace de footer o campo debe ser tactil en movil */
@media screen and (max-width: 767px) {
  .bh-footer a,
  .cs-footer_links a,
  .cs-menu_widget a,
  .cs-contact_info a {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    min-height: 44px;
  }
  .bh-service_list a {
    min-height: 44px;
  }
  input:not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="radio"]):not([type="checkbox"]),
  select,
  textarea {
    min-height: 44px;
    font-size: 16px;
  }
}

@media screen and (max-width: 767px) {
  /* Migas de pan: area tactil sin romper el separador */
  .breadcrumb-item a {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    min-height: 32px;
    padding: 6px 0;
  }
  /* Casillas del cotizador: el objetivo real es la etiqueta entera */
  .cs-quoter_item {
    min-height: 44px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}

/* ---------- 15. Tarjetas de caso de exito ---------------------- */

.bh-case_card {
  display: block;
  height: 100%;
  margin-bottom: 32px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #101018;
  border: 1px solid rgba(254, 254, 254, 0.08);
  -webkit-transition: border-color 0.25s ease, -webkit-transform 0.25s ease;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.bh-case_card:hover {
  border-color: #6633FF;
  -webkit-transform: translateY(-4px);
          transform: translateY(-4px);
}

.bh-case_card_media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #0c0916;
}

.bh-case_card_media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.bh-case_card_sector {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background-color: rgba(12, 9, 22, 0.75);
}

.bh-case_card_body {
  padding: 22px 22px 24px;
}

.bh-case_card_title {
  font-size: 20px;
  line-height: 1.3em;
  margin: 0 0 8px;
  color: #FEFEFE;
}

.bh-case_card_service {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9bdff;
}

.bh-case_card_result {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55em;
  color: rgba(254, 254, 254, 0.72);
}

.bh-case_card_link {
  font-size: 14px;
  font-weight: 700;
  color: #6633FF;
}

.bh-case_card:hover .bh-case_card_link {
  color: #FEFEFE;
}

@media screen and (max-width: 767px) {
  .bh-case_card_body {
    padding: 18px 18px 20px;
  }
  .bh-case_card_title {
    font-size: 18px;
  }
}

/* ---------- 16. Precios: escalera de producto ------------------ */

.bh-order_lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7em;
  color: rgba(254, 254, 254, 0.72);
}

.bh-order_step {
  height: 100%;
  padding: 26px 24px 24px;
  border: 1px solid rgba(254, 254, 254, 0.1);
  border-radius: 16px;
  background-color: #101018;
  margin-bottom: 30px;
}

.bh-order_num {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #6633FF;
  margin-bottom: 10px;
}

.bh-order_title {
  font-size: 21px;
  line-height: 1.3em;
  margin: 0 0 10px;
  color: #FEFEFE;
}

.bh-order_text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6em;
  color: rgba(254, 254, 254, 0.7);
}

.bh-order_price {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #FEFEFE;
}

/* Plan destacado: el agente es el producto de entrada */
.bh-plan_col {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.bh-plan {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

/* La cifra no debe partirse en dos lineas */
.bh-plan .cs-price h3 {
  font-size: 32px;
  white-space: nowrap;
}

.bh-plan .cs-pricing_info,
.bh-plan .cs-pricing_feature {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 auto;
          flex: 1 0 auto;
}

.bh-plan_featured {
  border: 1px solid #6633FF;
  -webkit-box-shadow: 0 18px 44px rgba(102, 51, 255, 0.18);
          box-shadow: 0 18px 44px rgba(102, 51, 255, 0.18);
}

.bh-plan_badge {
  display: inline-block;
  /* Dentro de un contenedor flex en columna, sin esto la etiqueta se estira
     a todo el ancho y parece un boton desalineado. */
  -ms-flex-item-align: start;
      align-self: flex-start;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-top: 22px;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: #6633FF;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bh-plan_featured .cs-pricing_title {
  padding-top: 14px;
}

.bh-plan_note {
  margin: -2px 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #c9bdff;
  line-height: 1.4em;
}

.bh-plan .cs-pricing_btn_wrap .cs-btn {
  width: 100%;
  text-align: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

/* Qué incluye la cuota mensual */
.bh-included {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(254, 254, 254, 0.12);
}

.bh-included li {
  position: relative;
  padding: 16px 0 16px 32px;
  border-bottom: 1px solid rgba(254, 254, 254, 0.12);
  font-size: 16px;
  line-height: 1.5em;
  color: #FEFEFE;
}

.bh-included li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 15px;
  color: #6633FF;
  font-weight: 700;
}

/* Garantias */
.bh-plan_trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.bh-plan_trust li {
  padding: 16px 18px;
  border-radius: 12px;
  background-color: rgba(254, 254, 254, 0.04);
  border: 1px solid rgba(254, 254, 254, 0.08);
  font-size: 14px;
  font-weight: 600;
  color: #FEFEFE;
  text-align: center;
}

@media screen and (max-width: 991px) {
  .bh-plan_trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .bh-order_lead {
    font-size: 16px;
  }
  .bh-plan_trust {
    grid-template-columns: 1fr;
  }
  .bh-plan .cs-price h3 {
    font-size: 28px;
  }
}

/* ---------- 17. Banda de precios en paginas de servicio --------- */

.bh-prices_band {
  max-width: 960px;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 32px;
  padding: 40px 44px;
  border-radius: 16px;
  background: -webkit-gradient(linear, left top, right top, from(#161616), to(#080808));
  background: linear-gradient(90deg, #161616 0%, #080808 100%);
  border: 1px solid rgba(254, 254, 254, 0.08);
}

.bh-prices_band_text {
  max-width: 720px;
}

.bh-prices_band_cta {
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

@media screen and (max-width: 767px) {
  .bh-prices_band {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    padding: 28px 22px;
    gap: 22px;
  }
  .bh-prices_band_cta,
  .bh-prices_band_cta .cs-btn {
    width: 100%;
  }
}

/* ---------- 18. Brillo al pasar sobre las tarjetas de precio ------- */

/* El template pinta un cuadrado violeta de 135px con blur(125px) en la
   esquina superior derecha. Chrome lo recorta contra el overflow:hidden
   de la tarjeta y al pasar el ratón aparece un cuadrado duro en la
   esquina en lugar de un resplandor. Se sustituye por un degradado
   radial, que se difumina solo y no deja borde visible. */
.cs-pricing_table.bh-plan::before {
  right: -80px;
  top: -80px;
  height: 240px;
  width: 240px;
  background: -webkit-radial-gradient(circle, rgba(102, 51, 255, 0.5) 0%, rgba(102, 51, 255, 0) 70%);
  background: radial-gradient(circle, rgba(102, 51, 255, 0.5) 0%, rgba(102, 51, 255, 0) 70%);
  -webkit-filter: none;
          filter: none;
  opacity: 0;
  -webkit-transition: opacity 0.35s ease;
  transition: opacity 0.35s ease;
}

.cs-pricing_table.bh-plan:hover::before {
  opacity: 1;
}

/* Realce del borde en hover sin mover el layout */
.bh-plan {
  -webkit-transition: border-color 0.25s ease, -webkit-box-shadow 0.25s ease;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bh-plan:hover {
  -webkit-box-shadow: 0 0 0 1px rgba(102, 51, 255, 0.55);
          box-shadow: 0 0 0 1px rgba(102, 51, 255, 0.55);
}

.bh-plan_featured:hover {
  -webkit-box-shadow: 0 0 0 1px rgba(102, 51, 255, 0.9), 0 18px 44px rgba(102, 51, 255, 0.28);
          box-shadow: 0 0 0 1px rgba(102, 51, 255, 0.9), 0 18px 44px rgba(102, 51, 255, 0.28);
}
