@media (max-width: 1320px) {
  .aw-shell,
  .aw-shell--wide {
    width: min(100% - 28px, 1180px);
  }

  .aw-brand {
    min-width: 180px;
  }

  .aw-brand__copy small {
    display: none;
  }

  .aw-nav__link {
    padding-inline: 10px;
    font-size: 0.96rem;
  }

  .aw-header__actions {
    gap: 6px;
  }

  .aw-header__actions .aw-primary-btn {
    padding-inline: 16px;
  }

  .aw-menu {
    width: min(304px, calc(100vw - 32px));
  }
}

@media (max-width: 1199.98px) {
  :root {
    --aw-header-h: 68px;
  }

  .aw-brand {
    min-width: auto;
  }

  .aw-brand__copy strong {
    font-size: 0.98rem;
  }

  .aw-nav__link {
    height: 44px;
    padding-inline: 8px;
    gap: 6px;
    font-size: 0.9rem;
  }

  .aw-nav__link i:first-child {
    font-size: 0.88rem;
  }

  .aw-header__inner {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 24px;
  }

  .aw-icon-btn {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .aw-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .aw-hero__media {
    order: -1;
  }

  .aw-hero__media img {
    height: 440px;
  }

  .aw-footer__top {
    grid-template-columns: 1fr;
  }

  .aw-footer__grid {
    grid-template-columns: 1.35fr repeat(3, 1fr);
  }

  .aw-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aw-feature-band {
    grid-template-columns: 1fr 0.85fr;
  }
}

@media (max-width: 1040px) {
  .aw-brand__copy {
    display: none;
  }

  .aw-nav__link span {
    font-size: 0.86rem;
  }
}

@media (max-width: 991.98px) {
  :root {
    --aw-header-h: 64px;
  }

  html {
    scroll-padding-top: 88px;
  }

  body {
    padding-bottom: calc(86px + var(--aw-safe-bottom));
  }

  .aw-header {
    padding: 8px 0;
  }

  .aw-header.is-scrolled {
    padding: 6px 0;
  }

  .aw-header__inner {
    border-radius: 22px;
  }

  .aw-nav {
    display: none;
  }

  .aw-mobile-bar {
    display: flex;
  }

  .aw-brand__copy {
    display: grid;
  }

  .aw-brand__copy small {
    display: block;
  }

  .aw-header__actions .aw-icon-btn[href="tienda.html"],
  .aw-header__actions .aw-icon-btn[href="login.html"] {
    display: none !important;
  }

  .aw-header__actions .aw-primary-btn {
    display: none !important;
  }

  .aw-hero {
    padding-top: 26px;
    padding-bottom: 54px;
  }

  .aw-hero h1,
  .aw-page-hero h1 {
    font-size: clamp(3rem, 12vw, 5.2rem);
  }

  .aw-hero__media img {
    height: 380px;
    border-radius: 30px;
  }

  .aw-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aw-grid--3,
  .aw-grid--2,
  .aw-feature-band,
  .aw-simple__grid {
    grid-template-columns: 1fr;
  }

  .aw-feature-band {
    padding: 34px;
    border-radius: 34px;
  }

  .aw-qr-demo {
    justify-self: stretch;
    margin-inline: auto;
  }

  .aw-filterbar {
    grid-template-columns: 1fr 1fr;
  }

  .aw-result-card {
    grid-template-columns: 1fr;
  }

  .aw-result-card__actions {
    justify-content: flex-start;
  }

  .aw-footer {
    padding-bottom: calc(96px + var(--aw-safe-bottom));
  }

  .aw-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .aw-footer__local {
    grid-template-columns: 1fr;
  }

  .aw-local-data {
    justify-content: flex-start;
  }

  .aw-account {
    top: 82px;
    right: 12px;
    width: calc(100vw - 24px);
    max-width: 420px;
  }

  .aw-settings {
    bottom: calc(88px + var(--aw-safe-bottom));
    left: 12px;
  }

  .aw-floating {
    right: 12px;
    bottom: calc(88px + var(--aw-safe-bottom));
  }

  .aw-agent {
    right: 12px;
    bottom: calc(150px + var(--aw-safe-bottom));
    width: calc(100vw - 24px);
    max-height: calc(100svh - 168px);
  }

  .aw-settings-panel {
    left: 12px;
    bottom: calc(150px + var(--aw-safe-bottom));
    width: min(390px, calc(100vw - 24px));
    max-height: calc(100svh - 168px);
  }

  .aw-search__panel {
    margin-top: 12px;
    max-height: calc(100svh - 24px);
    padding: 22px;
    border-radius: 26px;
  }

  .aw-login-card {
    justify-self: stretch;
    max-width: none;
  }

  .aw-simple {
    padding: 24px 0;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: calc(15.5px * var(--aw-font-scale));
  }

  .aw-shell,
  .aw-shell--wide {
    width: calc(100% - 22px);
  }

  .aw-section {
    padding-block: 50px;
  }

  .aw-section__head {
    margin-bottom: 22px;
    text-align: left;
  }

  .aw-section__head h2 {
    font-size: clamp(2.2rem, 11vw, 3.8rem);
  }

  .aw-brand img {
    width: 42px;
    height: 42px;
  }

  .aw-brand__copy strong {
    font-size: 0.96rem;
  }

  .aw-brand__copy small {
    font-size: 0.7rem;
  }

  .aw-header__actions {
    gap: 6px;
  }

  .aw-icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 16px;
  }

  .aw-header__inner {
    padding: 7px;
    border-radius: 20px;
  }

  .aw-hero__media img {
    height: 330px;
    object-position: center;
    border-radius: 28px;
  }

  .aw-float-ticket {
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-width: 0;
    padding: 16px;
    border-radius: 22px;
  }

  .aw-float-ticket b {
    font-size: 2rem;
  }

  .aw-hero h1 {
    margin-top: 10px;
  }

  .aw-hero p {
    font-size: 1rem;
  }

  .aw-hero__actions .aw-btn,
  .aw-hero__actions .aw-primary-btn {
    width: 100%;
  }

  .aw-stat-strip {
    gap: 10px;
    margin-top: 22px;
  }

  .aw-stat {
    padding: 14px;
    border-radius: 18px;
  }

  .aw-stat strong {
    font-size: 1.28rem;
  }

  .aw-card {
    padding: 22px;
    border-radius: 24px;
  }

  .aw-feature-band {
    padding: 28px;
    border-radius: 30px;
  }

  .aw-feature-band h2 {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .aw-qr-box {
    width: 136px;
    height: 136px;
    font-size: 3.2rem;
  }

  .aw-form-grid {
    grid-template-columns: 1fr;
  }

  .aw-filterbar {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 22px;
  }

  .aw-result-card {
    padding: 20px;
    border-radius: 22px;
  }

  .aw-result-card__actions .aw-btn,
  .aw-result-card__actions .aw-primary-btn {
    width: 100%;
  }

  .aw-footer {
    padding-top: 54px;
  }

  .aw-footer__cta {
    padding: 24px;
    border-radius: 28px;
  }

  .aw-footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .aw-footer__bottom {
    display: grid;
    justify-content: start;
  }

  .aw-local-data {
    display: grid;
    justify-content: stretch;
  }

  .aw-local-data span {
    justify-content: flex-start;
  }

  .aw-footer__newsletter {
    display: grid;
    grid-template-columns: 1fr auto;
    max-width: none;
  }

  .aw-pill-btn {
    min-height: 48px;
    padding: 0 13px;
  }

  .aw-pill-btn span {
    display: none;
  }

  .aw-agent {
    bottom: calc(148px + var(--aw-safe-bottom));
    max-height: calc(100svh - 164px);
    border-radius: 24px;
  }

  .aw-settings-panel {
    bottom: calc(148px + var(--aw-safe-bottom));
    max-height: calc(100svh - 164px);
    border-radius: 24px;
  }

  .aw-settings-action {
    padding: 13px;
  }

  .aw-range {
    width: 110px;
  }

  .aw-search__panel {
    border-radius: 24px;
    padding: 20px;
  }

  .aw-field--search {
    height: 54px;
  }

  .aw-drawer {
    width: min(92vw, 420px) !important;
  }

  .aw-simple__card {
    padding: 22px;
    border-radius: 26px;
  }

  .aw-simple__brand img {
    width: 48px;
    height: 48px;
  }

  .aw-map-demo {
    min-height: 300px;
    border-radius: 28px;
  }

  .aw-table th,
  .aw-table td {
    padding: 13px;
  }
}

@media (max-width: 560px) {
  .aw-brand__copy small {
    display: none;
  }

  .aw-mobile-bar {
    left: 10px;
    right: 10px;
    border-radius: 22px;
  }

  .aw-mobile-bar a,
  .aw-mobile-bar button {
    height: 50px;
    min-width: 48px;
    font-size: 0.66rem;
    border-radius: 16px;
  }

  .aw-mobile-bar i {
    font-size: 1rem;
  }

  .aw-settings {
    left: 10px;
  }

  .aw-floating {
    right: 10px;
  }

  .aw-settings-panel {
    left: 10px;
    width: calc(100vw - 20px);
  }

  .aw-agent {
    right: 10px;
    width: calc(100vw - 20px);
  }

  .aw-search__panel {
    width: calc(100vw - 20px);
  }
}

@media (max-width: 420px) {
  .aw-brand__copy {
    display: none;
  }

  .aw-header__inner {
    justify-content: space-between;
  }

  .aw-header__actions {
    margin-left: auto;
  }

  .aw-hero__media img {
    height: 280px;
  }

  .aw-stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .aw-stat span {
    font-size: 0.78rem;
  }

  .aw-mobile-bar {
    left: 8px;
    right: 8px;
    gap: 4px;
    padding: 6px;
  }

  .aw-mobile-bar a,
  .aw-mobile-bar button {
    font-size: 0.62rem;
  }

  .aw-pill-btn {
    padding: 0 11px;
  }

  .aw-settings {
    left: 8px;
  }

  .aw-floating {
    right: 8px;
  }

  .aw-simple h1 {
    font-size: 3rem;
  }

  .aw-simple-links .aw-primary-btn,
  .aw-simple-links .aw-btn {
    width: 100%;
  }

  .aw-footer__cta-actions .aw-primary-btn,
  .aw-footer__cta-actions .aw-btn {
    width: 100%;
  }

  .aw-agent__bubble {
    max-width: 94%;
  }
}

@media (min-width: 1400px) {
  .aw-shell {
    width: min(1320px, calc(100% - 64px));
  }

  .aw-shell--wide {
    width: min(1480px, calc(100% - 64px));
  }

  .aw-hero__media img {
    height: 560px;
  }

  .aw-card {
    padding: 32px;
  }

  .aw-nav__link {
    padding-inline: 14px;
  }
}

@media (hover: none) {
  .aw-primary-btn:hover,
  .aw-btn:hover,
  .aw-icon-btn:hover,
  .aw-pill-btn:hover,
  .aw-menu-link:hover,
  .aw-result:hover,
  .aw-footer a:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .aw-loader,
  .aw-header,
  .aw-mobile-bar,
  .aw-settings,
  .aw-settings-panel,
  .aw-floating,
  .aw-floating-stack,
  .aw-agent,
  .aw-search,
  .aw-account,
  .toast-container {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding: 0;
  }

  .aw-card,
  .aw-footer,
  .aw-feature-band {
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ddd !important;
  }

  a {
    text-decoration: underline;
  }

  .aw-footer,
  .aw-footer * {
    color: #000 !important;
    text-shadow: none !important;
  }

  .aw-table-wrap {
    overflow: visible;
  }
}

/* v20 · Corrección responsive de submenús: nunca quedan abiertos por cascada */
@media (min-width: 992px) {
  .aw-nav {
    overflow: visible;
  }

  .aw-nav > ul {
    min-width: 0;
  }

  .aw-nav .dropdown-menu {
    max-width: min(324px, calc(100vw - 40px));
  }
}

@media (max-width: 991.98px) {
  .aw-nav {
    display: none !important;
  }

  .aw-header__inner {
    min-height: 64px;
  }

  .aw-header__actions {
    margin-left: auto;
  }

  .aw-header__actions .aw-primary-btn {
    min-width: 48px;
    padding-inline: 14px;
  }

  .aw-header__actions .aw-primary-btn span {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .aw-brand {
    min-width: 0;
    gap: 9px;
  }

  .aw-brand img {
    width: 40px;
    height: 40px;
  }

  .aw-brand__copy strong {
    font-size: 0.88rem;
  }

  .aw-brand__copy small {
    font-size: 0.64rem;
  }

  .aw-header__inner {
    padding: 8px;
    border-radius: 22px;
  }

  .aw-icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

/* v22 responsive hardening */
@media (min-width: 992px) {
  .aw-header__actions .aw-icon-btn[data-bs-toggle="offcanvas"] {
    display: none !important;
  }

  .aw-nav {
    display: flex !important;
  }

  .aw-mobile-bar {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .aw-nav,
  .aw-nav > ul,
  .aw-nav .dropdown-menu {
    display: none !important;
  }

  .aw-header__actions .aw-icon-btn[href="login.html"],
  .aw-header__actions .aw-icon-btn[href="tienda.html"],
  .aw-header__actions .aw-primary-btn {
    display: none !important;
  }

  .aw-header__actions .aw-icon-btn[data-bs-toggle="offcanvas"] {
    display: inline-flex !important;
  }
}

@media (max-width: 360px) {
  .aw-brand__copy small {
    display: none;
  }

  .aw-header__inner {
    gap: 6px;
  }

  .aw-header__actions {
    gap: 4px;
  }
}

/* AT WATER Patch · responsive refinado */
@media (max-width: 991.98px) {
  .aw-search {
    padding: calc(var(--aw-header-h) + 12px) 12px
      calc(104px + var(--aw-safe-bottom));
  }

  .aw-search__panel {
    max-height: calc(100svh - var(--aw-header-h) - 122px);
    border-radius: 28px;
    padding: 22px;
  }

  .aw-settings,
  .aw-floating {
    right: 12px;
    left: auto;
  }

  .aw-floating {
    bottom: calc(88px + var(--aw-safe-bottom));
  }

  .aw-settings {
    bottom: calc(146px + var(--aw-safe-bottom));
  }

  .aw-agent,
  .aw-settings-panel {
    right: 12px;
    left: auto !important;
    bottom: calc(206px + var(--aw-safe-bottom));
    width: min(390px, calc(100vw - 24px));
    max-height: calc(100svh - 224px);
  }
}

@media (max-width: 767.98px) {
  .aw-search__panel h2 {
    font-size: 1.45rem;
    margin-right: 50px;
  }

  .aw-search__panel p {
    font-size: 0.94rem;
  }

  .aw-field--search {
    height: 56px;
    border-radius: 19px;
  }

  .aw-search__item {
    padding: 14px;
    border-radius: 18px;
  }

  .aw-pill-btn span {
    display: inline !important;
  }

  .aw-settings .aw-pill-btn,
  .aw-floating .aw-pill-btn {
    min-width: 118px;
    min-height: 46px;
    font-size: 0.88rem;
  }

  .aw-footer__brand h3 {
    font-size: 1.18rem;
  }

  .aw-footer__rotator {
    min-width: 4.4em;
  }
}

@media (max-width: 560px) {
  .aw-search {
    padding-left: 10px;
    padding-right: 10px;
  }

  .aw-search__panel {
    width: 100%;
    padding: 18px;
    border-radius: 24px;
  }

  .aw-search__item {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "desc";
    gap: 5px;
  }

  .aw-search__item i {
    display: none;
  }

  .aw-settings,
  .aw-floating {
    right: 10px;
    left: auto;
  }

  .aw-floating {
    bottom: calc(88px + var(--aw-safe-bottom));
  }

  .aw-settings {
    bottom: calc(142px + var(--aw-safe-bottom));
  }

  .aw-settings .aw-pill-btn,
  .aw-floating .aw-pill-btn {
    min-width: 110px;
    min-height: 44px;
    padding-inline: 13px;
    font-size: 0.82rem;
  }

  .aw-agent,
  .aw-settings-panel {
    right: 10px;
    left: auto !important;
    width: calc(100vw - 20px);
    bottom: calc(196px + var(--aw-safe-bottom));
    max-height: calc(100svh - 214px);
  }
}

@media (max-width: 420px) {
  .aw-settings .aw-pill-btn,
  .aw-floating .aw-pill-btn {
    min-width: 48px;
    width: 48px;
    padding: 0;
    justify-content: center;
  }

  .aw-settings .aw-pill-btn span,
  .aw-floating .aw-pill-btn span {
    display: none !important;
  }

  .aw-settings {
    bottom: calc(144px + var(--aw-safe-bottom));
  }

  .aw-floating {
    bottom: calc(90px + var(--aw-safe-bottom));
  }
}

/* v30 responsive hardening: flotantes en columna, paneles seguros y búsqueda usable */
@media (max-width: 991.98px) {
  .aw-floating-stack {
    right: 12px !important;
    bottom: calc(88px + var(--aw-safe-bottom)) !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 9px !important;
  }

  .aw-settings-panel,
  .aw-agent {
    right: 12px !important;
    left: auto !important;
    bottom: calc(194px + var(--aw-safe-bottom)) !important;
    width: min(410px, calc(100vw - 24px)) !important;
    max-height: calc(100svh - var(--aw-header-h) - 214px) !important;
  }

  .aw-settings,
  .aw-floating {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .aw-floating-stack {
    right: 10px !important;
    bottom: calc(86px + var(--aw-safe-bottom)) !important;
  }

  .aw-settings-panel,
  .aw-agent {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    bottom: calc(188px + var(--aw-safe-bottom)) !important;
    max-height: calc(100svh - var(--aw-header-h) - 206px) !important;
  }
}

@media (max-width: 420px) {
  .aw-floating-stack .aw-pill-btn {
    width: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .aw-floating-stack .aw-pill-btn span {
    display: none !important;
  }
}

/* v31 · Núcleo adaptativo: móvil, tablet, escritorio y full desktop */
@supports (height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

@supports (container-type: inline-size) {
  .aw-adaptive {
    container-type: inline-size;
  }

  @container (max-width: 560px) {
    .aw-adaptive .aw-grid--2,
    .aw-adaptive .aw-grid--3,
    .aw-adaptive .aw-grid--4,
    .aw-adaptive .aw-form-grid,
    .aw-adaptive .aw-feature-band,
    .aw-adaptive .aw-result-card {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}

@supports (content-visibility: auto) {
  .aw-defer {
    content-visibility: auto;
    contain-intrinsic-size: auto 640px;
  }
}

@media (min-width: 1800px) {
  :root {
    --aw-shell: min(1440px, calc(100% - 80px));
    --aw-shell-wide: min(1640px, calc(100% - 80px));
    --aw-section-space: clamp(72px, 6vw, 120px);
  }

  .aw-hero__grid {
    gap: clamp(44px, 4vw, 76px);
  }

  .aw-grid--3,
  .aw-grid--4 {
    gap: 24px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --aw-shell-gutter: 11px;
    --aw-section-space: clamp(44px, 12vw, 64px);
  }

  .aw-hero__media img {
    height: clamp(240px, 70vw, 360px);
  }

  .aw-table {
    min-width: 640px;
  }

  .aw-table th,
  .aw-table td {
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .aw-shell,
  .aw-shell--wide {
    width: calc(100% - 16px);
  }

  .aw-hero h1,
  .aw-page-hero h1 {
    font-size: clamp(2.55rem, 13vw, 3rem);
  }

  .aw-card,
  .aw-feature-band,
  .aw-result-card {
    padding: 18px;
  }
}

@media (max-width: 991.98px) and (max-height: 560px) and (orientation: landscape) {
  .aw-floating-stack {
    bottom: calc(72px + var(--aw-safe-bottom)) !important;
    flex-direction: row !important;
    grid-auto-flow: column !important;
  }

  .aw-settings-panel,
  .aw-agent {
    top: calc(10px + var(--aw-safe-top)) !important;
    bottom: calc(132px + var(--aw-safe-bottom)) !important;
    max-height: none !important;
  }

  .aw-search {
    padding: calc(10px + var(--aw-safe-top)) 10px
      calc(72px + var(--aw-safe-bottom)) !important;
  }

  .aw-search__panel {
    max-height: calc(100dvh - 92px) !important;
  }
}

@media (hover: none) {
  .aw-card:hover,
  .aw-stat:hover,
  .aw-signal-card:hover,
  .aw-footer__metrics article:hover,
  .aw-footer__column a:hover,
  .aw-social--preview a:hover {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --aw-line: rgba(7, 29, 45, 0.24);
    --aw-line-strong: rgba(7, 29, 45, 0.4);
  }

  :focus-visible {
    outline-width: 4px;
    outline-color: var(--aw-blue);
  }
}

@media (forced-colors: active) {
  .aw-primary-btn,
  .aw-btn,
  .aw-icon-btn,
  .aw-pill-btn,
  .aw-card,
  .aw-field input,
  .aw-field select,
  .aw-field textarea {
    border: 1px solid ButtonText;
  }

  .aw-text-gradient {
    background: none;
    color: CanvasText;
  }
}
