/* Ajustes exclusivos de la experiencia móvil. El escritorio conserva el diseño base. */
@media (max-width: 800px) {
  :root { color-scheme: light; }
  html { scroll-behavior: smooth; }
  body { min-width: 0; overflow-x: clip; background: #f5f8f2; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .shell { width: 100%; max-width: 100%; }

  .hero {
    background: radial-gradient(circle at 92% 8%, #32a081 0, transparent 32%),
                linear-gradient(145deg, #0b4f43 0%, #0e6b54 62%, #146b57 100%);
    color: #fff;
    border-bottom: 0;
  }
  .hero-content { gap: 30px; padding-top: 36px; padding-bottom: 34px; }
  .hero-copy > p.hero-kicker { color: #d9f777; }
  .hero-copy h1 { color: #fff; letter-spacing: -.065em; }
  .hero-copy h1 span { color: #d9f777; }
  .hero-copy > p:not(.eyebrow):not(.hero-kicker) { color: #f0f8ef; }
  .hero-meta { color: #dceee2; }
  .hero-meta span::before { background: #d9f777; }

  .hero-promos { min-width: 0; background: #f9f8ed; border: 0; box-shadow: 0 14px 38px #083c3240; }
  .hero-promos-heading span { color: #19765c; }
  .hero-promos-heading strong { color: #173d32; }
  .promo-controls button { width: 42px; height: 42px; border-color: #aac8b7; color: #155b49; }
  .promo-rail { gap: 10px; scroll-padding-inline: 0; }
  .promo-card { flex: 0 0 calc(100% - 22px); border-color: #e6ece4; border-radius: 16px; background: #fff; }
  .promo-card-image { height: clamp(210px, 58vw, 295px); }
  .promo-card-info { padding: 16px; }
  .promo-card-info h2 { min-height: 0; margin-bottom: 9px; font-size: 17px; }
  .promo-prices { min-height: 0; }
  .promo-prices strong { font-size: 24px; }
  .promo-card-info button { min-height: 46px; margin-top: 14px; font-size: 12px; }
  .promo-disclaimer { margin-bottom: 0; color: #5d756a; font-size: 11px; }

  .catalog-section { padding-top: 25px; padding-bottom: 48px; background: #f5f8f2; }
  .catalog-toolbar { gap: 12px; border-bottom: 0; margin-bottom: 14px; padding-bottom: 0; }
  .filter-list { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; max-width: 100%; padding: 3px 0 8px; scrollbar-width: none; }
  .filter-list::-webkit-scrollbar { display: none; }
  .filter { min-height: 42px; border-radius: 999px; background: #fff; border-color: #dce9dc; font-size: 12px; }
  .filter.active { background: #0c6e54; border-color: #0c6e54; }
  .search-wrap { flex: 0 0 auto; width: 100%; max-width: none; }
  .search-wrap input { height: 46px; border-radius: 12px; background: #fff; font-size: 14px; }
  .search-wrap > span:not(.sr-only) { top: 7px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { border-radius: 14px; box-shadow: 0 3px 12px #143e2c0c; }
  .product-image { height: clamp(155px, 43vw, 235px); }
  .product-info { padding: 12px; }
  .product-info h3 { min-height: 38px; font-size: 15px; }
  .product-info p { min-height: 38px; }
  .product-bottom { align-items: end; }
  .price-block strong { font-size: 18px; }
  .add-product { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; font-size: 23px; }
  .catalog-disclaimer { font-size: 11px; line-height: 1.5; }

  .app-nav {
    min-height: 72px;
    padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #dce9dc;
    box-shadow: 0 -8px 26px #143c2f1c;
  }
  .app-nav a, .app-nav button { min-height: 56px; gap: 4px; border-radius: 13px; font-size: 10px; }
  .app-nav svg { width: 22px; height: 22px; }
  .app-nav a[aria-current="page"], .app-nav button[aria-pressed="true"] { background: #e2f7ac; color: #134f3c; }
  .app-nav b { top: 0; right: calc(50% - 23px); min-width: 18px; height: 18px; font-size: 10px; }

  .quote-drawer { width: 100vw; max-width: none; height: 100dvh; min-height: 0; padding: max(18px, env(safe-area-inset-top)) 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: none; }
  .drawer-header { align-items: center; padding-bottom: 14px; }
  .drawer-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #eef4ed; }
  .drawer-help { padding: 12px 0; margin-bottom: 0; }
  .drawer-price-notice { margin: 0 0 9px; border-radius: 8px; }
  .quote-items { min-height: 0; overscroll-behavior: contain; }
  .cart-stepper { height: 42px; }
  .cart-stepper button { width: 42px; height: 40px; }
  .cart-stepper span { min-width: 32px; }
  .drawer-footer { gap: 10px; padding-top: 14px; background: #fff; }
  .drawer-footer .button { min-height: 52px; }
  .projects-page-feature .project-image-wrap { min-height: 310px; }
  .projects-page-feature .project-copy-inner { padding: 34px 24px 42px; }
  .projects-cta .button { min-height: 50px; }
}

@media (max-width: 360px) {
  .shell { padding-left: 15px; padding-right: 15px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-promos { padding: 13px; }
  .hero-promos-heading strong { font-size: 20px; }
  .promo-card-image { height: 210px; }
  .product-grid { gap: 8px; }
  .product-info { padding: 10px; }
  .product-info h3 { font-size: 14px; }
  .price-block strong { font-size: 16px; }
  .app-nav a, .app-nav button { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 800px) {
  .hero { background: #10251f; }
  .hero::before { background-image: url('assets/optimized/c372f18c16aa8900503d-900.webp'); background-position: center 48%; }
  .hero::after { background: linear-gradient(180deg, rgba(7, 24, 18, .72) 0%, rgba(7, 24, 18, .58) 34%, rgba(7, 24, 18, .28) 72%, rgba(7, 24, 18, .34) 100%); }
  .hero-copy > p.hero-kicker { color: #f1dfa8; }
  .hero-copy h1 { color: #fff; }
  .hero-copy h1 span { color: #f0d895; }
  .hero-copy > p:not(.eyebrow):not(.hero-kicker) { color: #f6f3e8; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 24px; }
  .hero-actions .button-light, .hero-project-link { min-width: 0; min-height: 50px; padding: 0 14px; font-size: 11px; }
}

@media (max-width: 560px) {
  .hero::before { background-size: cover; background-position: 54% center; }
  .hero-copy h1 { font-size: clamp(40px, 11vw, 56px); line-height: 1.02; }
}
