html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

body.container {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

img,
picture img,
video {
  max-width: 100%;
  height: auto;
}

@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

.sectionGridItem img {
  width: 100%;
}

.team-list {
  min-width: 0 !important;
  min-height: 0 !important;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 0 0.5rem;
}

.carousel-wrapper.aspect-\[16\/5\] {
  aspect-ratio: auto;
  min-height: 72px;
}


@media (max-width: 768px) {
  .section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .pt-24 {
    padding-top: 5.5rem !important;
  }

  nav .max-w-screen-xl {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  nav [class*="min-w-"] {
    min-width: 0 !important;
  }

  nav .nav-discord-btn,
  nav .gradientBg.rounded-full.normalTextBold {
    font-size: 0.8125rem !important;
    padding: 0.5rem 0.75rem !important;
  }

  #estadisticasWeb {
    padding: 0 1rem;
  }

  #estadisticasWeb .stat-line {
    font-size: clamp(1.125rem, 4.5vw, 1.75rem) !important;
    line-height: 1.35;
  }

  #estadisticasWeb .stat-number {
    font-size: clamp(1.25rem, 5vw, 2rem) !important;
  }

  .text-6xl {
    font-size: clamp(1.75rem, 7.5vw, 2.75rem) !important;
    line-height: 1.15 !important;
  }

  .text-5xl {
    font-size: clamp(1.5rem, 6vw, 2.25rem) !important;
    line-height: 1.2 !important;
  }

  .text-4xl {
    font-size: clamp(1.375rem, 5.5vw, 2rem) !important;
    line-height: 1.2 !important;
  }

  .text-2xl {
    font-size: clamp(1rem, 4vw, 1.5rem) !important;
  }

  .extraBoldText {
    font-size: clamp(1.35rem, 5vw, 2rem) !important;
    line-height: 1.2;
  }

  .boldText {
    font-size: clamp(1.125rem, 4vw, 1.5rem) !important;
  }

  .normalText,
  .normalTextBold {
    font-size: 0.9375rem !important;
  }

  .contenedor-texto h1 {
    font-size: clamp(1.65rem, 6.5vw, 2.25rem) !important;
    line-height: 1.15 !important;
  }

  .contenedor-principal {
    gap: 1.5rem !important;
    padding: 1rem 0.75rem !important;
  }

  .contenedor-imagen {
    max-width: min(260px, 80vw) !important;
  }

  .boton-instalacion {
    width: 100%;
    max-width: 18rem;
  }

  .carousel {
    gap: 0.75rem;
  }

  .carousel-item {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  .carousel-item img {
    width: 44px !important;
    height: 44px !important;
  }

  .carousel-item h4 {
    font-size: 0.8125rem;
    max-width: 96px;
  }

  .carousel-item p {
    font-size: 0.6875rem;
  }

  .relative.mx-auto.my-auto.mt-8 .my-12 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .command-card {
    padding: 0.875rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .command-card .command-name {
    font-size: 1.125rem !important;
    word-break: break-word;
  }

  .command-card .command-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  .command-card .toggle-details-btn {
    width: 100%;
    text-align: center;
  }

  .command-card .main-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .command-card .tag {
    margin-right: 0 !important;
    margin-bottom: 0.25rem !important;
  }

  #commandsList {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  #commandsList::before {
    height: 56px !important;
  }

  .cardWBg.w-72,
  .cardWBg[class*="w-72"] {
    width: 100% !important;
    max-width: 18rem;
    padding: 1.5rem !important;
  }

  .team-item {
    max-width: 100% !important;
  }

  .floating-button {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    width: 46px;
    height: 46px;
  }

  .floating-menu {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(72px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 2rem);
    min-width: 10rem;
  }

  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  footer h2.text-4xl {
    padding: 0 1rem;
  }

  footer .flex.flex-col.md\:flex-row {
    gap: 1.5rem;
  }

  .sectionGridItemRight {
    padding-top: 0.5rem !important;
  }

  .sectionGrid {
    gap: 1.5rem;
  }

  #launcher .grid > div {
    padding: 1.25rem !important;
  }

  #launcher .w-32.h-32 {
    width: 6rem !important;
    height: 6rem !important;
  }

  .premium-plans {
    gap: 1.25rem;
  }

  .premium-plan-card {
    max-width: min(100%, 18rem);
    min-height: 0;
  }

  .premium-plan-card--featured {
    max-width: min(100%, 20rem);
  }

  .premium-plan-card .plan-price {
    line-height: 1.2;
    word-break: break-word;
  }

  .premium-plan-card .plan-cta {
    line-height: 1.35;
  }

  .payment-card {
    overflow: hidden;
  }

  .payment-card .flex.items-center.gap-4 {
    align-items: flex-start;
    gap: 0.875rem;
  }

  .payment-card h3 {
    font-size: 1.125rem !important;
    line-height: 1.3;
  }

  .payment-card p {
    line-height: 1.4;
  }

  section.overflow-x-auto table {
    font-size: 0.8125rem;
    min-width: 36rem;
  }

  section.overflow-x-auto th,
  section.overflow-x-auto td {
    padding: 0.625rem 0.5rem !important;
    white-space: nowrap;
  }

  section.overflow-x-auto td:first-child,
  section.overflow-x-auto th:first-child {
    white-space: normal;
    min-width: 9rem;
  }

  /* Evitar zoom/scale en touch */
  [class*="hover:scale"]:hover,
  [class*="group-hover:scale"]:hover {
    transform: none !important;
  }

  /* Espaciado global más compacto */
  .mt-36 {
    margin-top: 5.5rem !important;
  }

  .mb-16 {
    margin-bottom: 2.5rem !important;
  }

  .my-16 {
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;
  }

  .py-16 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .rounded-2xl.p-8,
  .rounded-2xl.p-10,
  .rounded-xl.p-8,
  .rounded-lg.p-6 {
    padding: 1.125rem !important;
  }

  .max-w-4xl,
  .max-w-5xl,
  .max-w-6xl,
  .max-w-7xl,
  .max-w-screen-xl {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .relative.mx-auto.my-auto.mt-8.max-w-7xl {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Legal / contenido largo */
  .text-center.max-w-4xl,
  .leading-relaxed {
    word-break: break-word;
  }

  .text-left.leading-relaxed,
  .text-white.text-left {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  /* API */
  .max-w-6xl.mx-auto .flex.items-center.gap-3.mb-3,
  .max-w-6xl.mx-auto .flex.items-center.gap-3.mb-4 {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .max-w-6xl.mx-auto h3.text-2xl {
    font-size: 1.25rem !important;
    line-height: 1.3;
  }

  .max-w-6xl.mx-auto .method {
    flex-shrink: 0;
  }

  .max-w-6xl.mx-auto a.break-all {
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  code.whitespace-pre,
  code[class*="whitespace-pre"],
  pre,
  .font-mono.text-sm {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    font-size: 0.6875rem !important;
    line-height: 1.45;
    white-space: pre-wrap !important;
    word-break: break-word;
  }

  /* FAQ */
  .category-btn {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    font-size: 0.875rem !important;
  }

  .faq-question {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    font-size: 0.9375rem !important;
    gap: 0.75rem;
  }

  .faq-question > span:first-child,
  .faq-question > div:first-child {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
  }

  .faq-item .faq-answer,
  .faq-item .px-6.py-4 {
    padding: 1rem !important;
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .faq-item button,
  .faq-item summary {
    text-align: left;
    line-height: 1.4;
  }

  .faq-item .p-4,
  .faq-item .px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* TaxiBots */
  .taxi-bot-grid {
    width: 100%;
  }

  .taxi-bot-card {
    width: 100%;
  }

  /* Checker */
  .contenedor-principal-checker.mb-16 {
    margin-bottom: 2.5rem !important;
  }

  main .flex.items-center.justify-center.gap-3.mb-6 {
    flex-wrap: wrap;
    text-align: center;
  }

  main .flex.items-center.justify-center.gap-3.mb-6 h2 {
    font-size: 1.375rem !important;
  }

  main .flex.flex-col.sm\:flex-row.gap-4 a.inline-flex {
    width: 100%;
    max-width: 20rem;
    justify-content: center;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  main .text-3xl.font-bold {
    font-size: 1.375rem !important;
  }

  /* Index launcher */
  #launcher .hover\:scale-\[1\.02\]:hover {
    transform: none !important;
  }

  #launcher a.w-full {
    font-size: 0.8125rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Overlay imágenes */
  .imagenExpandidaImg {
    max-width: calc(100vw - 2rem) !important;
    max-height: calc(100dvh - 5rem) !important;
  }

  .cerrarBtn {
    top: max(0.75rem, env(safe-area-inset-top)) !important;
    right: max(0.75rem, env(safe-area-inset-right)) !important;
    font-size: 1.75rem !important;
  }

  /* Footer */
  footer p.flex.items-center.justify-center {
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-left: 1rem;
    padding-right: 1rem;
    line-height: 1.5;
    text-align: center;
  }

  /* Subcomandos */
  .subcommand-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem;
  }

  .subcommand-name {
    font-size: 1rem !important;
    word-break: break-word;
  }
}


@supports (-webkit-touch-callout: none) {
  nav {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
}
