/* Extracted @media queries */

@media (prefers-reduced-motion: reduce){.reveal{opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;}}

@media (max-width: 1024px){.pricing-grid, .portfolio-grid{grid-template-columns: 1fr 1fr;}

.split{grid-template-columns: 1fr;}

.contact-layout{grid-template-columns: 1fr;}

.contact-cards{grid-template-columns: 1fr 1fr;}}

@media (max-width: 760px){.menu{display: none;}

.desktop-only{display: none;}

.hamburger{display: inline-flex;
  justify-self: end;}

.portfolio-grid, .pricing-grid{grid-template-columns: 1fr;}

.thumb{height: 220px;}

.site-header{inset: 10px 0 auto 0;}

.nav{width: min(var(--max), 92%);
  padding: 8px 10px;
  grid-template-columns: auto 1fr auto;}

.contact-cards{grid-template-columns: 1fr;}}

/* Improve mobile ergonomics and hero readability */
@media (max-width: 760px){
  :root{ --header-offset: 74px; }
  .section{ padding: 56px 0; }
  .wrap{ width: min(var(--max), 92%); }
  .hero .hero-wrap{ min-height: 92svh; padding-top: calc(var(--header-offset) + 6px); }
  .hero-content{ gap: 18px; padding-inline: 12px; }
  .eyebrow{ font-size: 12px; padding: 4px 10px; }
  .hero h1{ font-size: clamp(26px, 8vw, 32px); line-height: 1.12; overflow-wrap: anywhere; hyphens: auto; word-break: break-word; max-width: 22ch; margin-inline: auto; text-wrap: balance; }
  .hero p{ font-size: 15.5px; padding-inline: 2px; max-width: 36ch; text-wrap: pretty; }
  .hero .cta{ flex-direction: row; gap: 10px; justify-content: center; flex-wrap: nowrap; }
  .hero .cta .btn{ width: auto; padding: 12px 18px; min-height: 44px; flex: 0 1 auto; text-align: center; white-space: nowrap; font-size: .95rem; min-width: 0; }

  /* Pricing (mobile): botones en fila, switch abajo en nueva línea */
  .pricing-cats{ flex-direction: row; flex-wrap: wrap; align-items: center; }
  .pricing-cats .pcat{ width: auto; flex: 0 0 auto; text-align: center; }
  .pricing-cats .billing-toggle{ order: 2; width: 100%; margin-left: 0; margin-top: 6px; justify-content: flex-start; }

  /* Footer: centered layout and better spacing */
  .footer-top{ justify-items: center; text-align: center; gap: 14px; }
  .footer-desc{ text-align: center; margin: 6px 0 12px; }
  .footer-nav ul{ justify-content: center; gap: 14px; }
  .footer-bottom{ flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
  .footer-socials{ justify-content: center; width: 100%; }
  .footer-brand{ margin-inline: auto; }

  /* Brands slider: add side padding so edges don't touch screen */
  /* Keep slider container aligned to site width */
  .hero-bottom .wrap{ width: min(var(--max), 92%); padding-inline: 0; }
  .brands-marquee{
    width: 100%;
    margin-inline: auto;
    padding: 14px 0;
    /* Match desktop fade on both logos and lines */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    -webkit-mask-clip: border-box;
            mask-clip: border-box;
    position: relative;
  }
  /* Remove previous overlay approach; mask already clips borders */
  .brands-marquee::before,
  .brands-marquee::after{ content: none; }
}

/* Extra-small phones */
@media (max-width: 480px){
  :root{ --header-offset: 68px; }
  /* Alinear ancho del header con el contenedor principal (.wrap) */
  .nav{ width: min(var(--max), 92%); padding: 6px 8px; }
  .hero-content{ gap: 16px; padding-inline: 10px; }
  .hero h1{ font-size: clamp(24px, 8.6vw, 28px); overflow-wrap: anywhere; max-width: 20ch; }
  .hero p{ font-size: 15px; max-width: 34ch; }
  .hero-bottom .wrap{ padding-inline: 0; }
  .brands-marquee{ width: 100%; padding: 12px 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; -webkit-mask-size:100% 100%; mask-size:100% 100%; -webkit-mask-clip:border-box; mask-clip:border-box; }
}

@media (prefers-reduced-motion: reduce){.hero-gradient{animation: none;}

.work:hover .thumb img{transition: none;}

html:focus-within{scroll-behavior: auto;}}

@media (max-width:680px){.pricing-cats{gap: 8px;}}

@media (min-width: 980px){.pricing-cats{flex-wrap: nowrap;}}

/* Consolidated: keep only the final mobile size for the annual badge */

@media (max-width:700px){.precios .card .annual-badge{width: 40%;
  height: 28px;
  font-size: 10.5px;
  border-bottom-left-radius: 10px;}}

@media (prefers-reduced-motion: reduce){.demo-modal, .demo-modal-overlay{transition: none !important;}}

@media (prefers-reduced-motion: reduce){.brands-track{animation: none;}}

@media (max-width: 480px){:root{--brands-gap: clamp(1.25rem, 6vw, 2rem);}}
