/* Phone and tablet refinements. Desktop styles remain in styles.css. */
@media (max-width:900px) {
  .nav{height:76px;gap:16px}
  #menu{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:46px;min-width:100px;padding:10px 15px;background:transparent;border:1px solid #acb8bd;border-radius:6px;font-size:14px;color:var(--ink)}
  .nav #links{display:none;position:absolute;top:76px;left:0;right:0;max-height:calc(100dvh - 150px);overflow-y:auto;background:var(--paper);padding:16px 24px 24px;align-items:stretch;flex-direction:column;gap:4px;border-bottom:1px solid var(--line);box-shadow:0 12px 22px #12263b12}
  .nav #links.open{display:flex}
  .nav #links a{display:flex;align-items:center;min-height:48px;padding:10px 8px;font-size:15px}
  .nav #links .nav-contact{border-left:0;border-top:1px solid var(--line);margin-top:8px;padding-top:16px}
  .hero-gallery{gap:26px;padding-left:24px;padding-right:24px}
  .hero-gallery h1{font-size:clamp(46px,6.2vw,58px)}
  .hero-gallery .hero-photo figcaption{grid-template-columns:1fr}
  .payment-contact-grid{gap:28px}
  .payment-brands{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .payment-brand{width:100%;min-width:0}
  .payment-brand .nequi-logo{width:min(112px,100%)}
  .payment-brand .breb-logo{width:min(145px,100%)}
  .hero-copy,.contact>div,.payment-contact-grid>div,.workshop-grid>div,.tile-catalog .item-title{min-width:0}
}

.mobile-dock{display:none}
@media (max-width:720px) {
  html{scroll-padding-top:95px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
  .wrap{width:calc(100% - 36px)}
  .nav{height:72px}
  .nav #links{top:72px}
  .brand{font-size:30px}
  .brand span{font-size:8px;letter-spacing:1.8px}
  .hero-gallery{width:100%;padding:30px 20px 34px;gap:28px;grid-template-columns:minmax(0,1fr);min-height:0}
  .hero-copy>img{width:min(270px,85%)!important;height:auto!important;margin-bottom:22px!important}
  .hero-gallery .eyebrow{font-size:9px;line-height:1.7;letter-spacing:1.5px;margin-bottom:20px}
  .hero-gallery h1{font-size:clamp(39px,10.5vw,58px);line-height:1.04;letter-spacing:-.055em}
  .hero-gallery .intro{font-size:15px;line-height:1.75;margin:22px 0;max-width:480px}
  .hero-gallery .actions{display:grid;grid-template-columns:1fr;gap:10px;max-width:430px}
  .hero-gallery .actions .button{justify-content:space-between;min-height:52px;font-size:14px;padding:14px 18px;border-radius:6px}
  .hero-gallery .actions .text-link{min-height:48px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;border:1px solid #ffffff45;border-radius:6px;padding:10px;text-decoration:none}
  .hero-gallery .actions .text-link .wa-icon{margin:0}
  .slideshow-controls{margin-top:20px;gap:10px;justify-content:space-between;max-width:430px}
  .slideshow-controls button{min-height:44px;padding:9px 12px;font-size:11px}
  .slideshow-controls span{font-size:10px;white-space:nowrap}
  .hero-gallery .small{font-size:12px;line-height:1.8;margin-top:17px;max-width:430px}
  .hero-gallery .small a{display:inline-block;padding:3px 0}
  .hero-gallery .hero-photo{max-width:100%;padding:9px 9px 0;min-height:0}
  .hero-gallery .hero-photo>img{height:clamp(210px,62vw,330px);flex:none;object-position:center 43%}
  .hero-gallery .hero-photo figcaption{padding:16px 8px;grid-template-columns:1fr auto;gap:8px}
  .hero-gallery .hero-photo figcaption span{font-size:8px;letter-spacing:1.5px}
  .hero-gallery .hero-photo strong{font-size:20px}
  .hero-gallery .hero-photo figcaption a{font-size:11px;min-height:44px;display:flex;align-items:center}
  .section{padding-top:44px;padding-bottom:44px}
  .section-heading{margin-bottom:24px}
  .section-heading h2{font-size:clamp(31px,8.7vw,44px);line-height:1.1;letter-spacing:-1.6px}
  .section-heading>p{font-size:14px;line-height:1.75;margin-top:20px}
  .filters{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;gap:8px;padding:16px 1px 20px;scrollbar-width:thin;-webkit-overflow-scrolling:touch;scroll-padding-inline:10px}
  .filters button{flex:0 0 auto;white-space:nowrap;min-height:44px;padding:10px 15px;font-size:12px}
  .catalog-guide{font-size:13px;line-height:1.5;margin-bottom:20px}
  .catalog-guide span{font-size:12px;line-height:1.6;max-width:none}
  .tile-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .tile-catalog .tile summary{gap:0;aspect-ratio:1/1.1;min-height:0}
  .tile-catalog .item-title{font-size:clamp(15px,4vw,21px);line-height:1.12;padding:16px 6px 16px 12px;letter-spacing:-.45px;overflow-wrap:break-word;hyphens:auto;gap:7px}
  .tile-catalog .item-title small{font-size:8px;line-height:1.4;letter-spacing:.5px}
  .tile-catalog .item-toggle{width:25px;height:25px;font-size:19px;margin:0 10px 15px 0}
  .tile-catalog .tile[open]{grid-column:1/-1}
  .tile-catalog .tile[open] summary{aspect-ratio:1.6}
  .tile-catalog .tile[open] .item-title{font-size:25px;padding:25px 16px 23px 20px}
  .tile-catalog .tile[open] .item-toggle{width:36px;height:36px;margin:0 20px 23px 0}
  .tile-catalog .tile .item-content{padding:20px}
  .tile-catalog .tile .item-description>p{font-size:15px;line-height:1.7}
  .tile-catalog .tile .item-help{font-size:12px;line-height:1.7;margin:13px 0 20px}
  .tile-catalog .tile .button{min-height:48px;font-size:13px;padding:12px 15px;border-radius:5px}
  .view-product{display:flex;align-items:center;min-height:44px;margin-top:9px;font-size:13px}
  .catalog-note{font-size:12px;line-height:1.8}
  .payment-contact{padding:36px 0}
  .payment-contact-grid{grid-template-columns:minmax(0,1fr);gap:28px}
  .payment-intro h2{font-size:30px;line-height:1.13}
  .payment-brands{gap:12px;margin-top:20px;max-width:370px}
  .payment-brand{height:82px;padding:12px}
  .payment-help{font-size:12px;line-height:1.7}
  .whatsapp-lines{padding:27px 0 0}
  .whatsapp-lines>p:not(.eyebrow){font-size:14px;line-height:1.7}
  .wa-numbers{display:grid;grid-template-columns:1fr;gap:10px;max-width:430px}
  .wa-number{min-height:54px;gap:12px;font-size:17px;padding:12px 15px;white-space:normal}
  .wa-number>span:last-child{margin-left:auto}
  .workshop{padding:44px 0}
  .workshop-grid{gap:32px;grid-template-columns:minmax(0,1fr)}
  .workshop h2{font-size:clamp(35px,10vw,48px);line-height:1.08}
  .workshop p:not(.eyebrow){font-size:15px;line-height:1.8;margin-top:20px}
  .workshop .button{min-height:50px;justify-content:space-between;font-size:14px;margin-top:24px}
  .poster{width:min(320px,calc(100% - 12px));transform:none;padding:9px}
  .poster span{font-size:12px;min-height:40px;display:grid;place-items:center}
  .contact{grid-template-columns:minmax(0,1fr);gap:30px}
  .contact h2{font-size:clamp(31px,8.7vw,43px);line-height:1.12}
  .contact-wa-numbers{margin:24px 0 16px}
  .contact-wa-numbers .wa-number{font-size:17px;min-height:56px}
  .contact .actions{display:grid;grid-template-columns:1fr;gap:10px}
  .contact .actions .button{min-height:48px;font-size:13px;justify-content:center}
  .address{padding-top:28px}
  .address address{font-size:16px;line-height:1.8;margin:20px 0}
  .address .text-link{display:inline-flex;align-items:center;min-height:48px;font-size:14px}
  .address p{font-size:13px;margin-top:20px;max-width:none}
  footer{padding:30px 0}
  footer .wrap{display:grid;grid-template-columns:1fr;gap:15px}
  footer p,footer span:not(.brand span){font-size:12px;line-height:1.7}
  footer .brand{margin-bottom:7px}
  .footer-poster{font-size:12px;min-height:44px;display:flex;align-items:center}
  .cmyk{margin:5px 0 0}
  .mobile-dock{position:fixed;bottom:0;left:0;right:0;z-index:25;display:grid;grid-template-columns:1fr 1fr 1.1fr;gap:8px;padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px));background:var(--paper);border-top:1px solid #ccd8da;box-shadow:0 -6px 25px #12263b0d}
  .mobile-dock a,.mobile-dock button{border:1px solid #c9d4d7;min-height:48px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:7px;background:transparent;color:var(--ink);font-size:12px;font-weight:700;padding:9px 6px;text-decoration:none}
  .mobile-dock .dock-whatsapp{background:#fff;border-color:#afd2bc}
  .mobile-dock .wa-icon{width:23px!important;height:23px!important}
  .wa-floating{bottom:calc(81px + env(safe-area-inset-bottom,0px));right:12px;z-index:26;width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - 170px);overflow-y:auto}
  .wa-floating:not([open]){display:none}
  .wa-floating summary{min-height:52px;font-size:14px}
  .floating-lines .wa-number{min-height:52px;font-size:16px}
  .floating-lines p{font-size:12px}
  dialog{width:calc(100vw - 20px);max-width:620px;max-height:calc(100dvh - 24px);padding:12px;border-radius:10px;overflow:auto}
  dialog img{max-width:100%;max-height:calc(100dvh - 140px);width:auto;height:auto}
  dialog button{min-height:46px;font-size:14px;margin-bottom:10px}
  dialog p{font-size:12px;line-height:1.5}
  button,a,summary{-webkit-tap-highlight-color:#009fc225;touch-action:manipulation}
}
@media(max-width:359px){
  .tile-catalog{grid-template-columns:minmax(0,1fr)}
  .tile-catalog .tile summary{aspect-ratio:1.3}
  .tile-catalog .item-title{font-size:25px;padding:20px}
  .tile-catalog .item-toggle{width:32px;height:32px;margin:0 16px 19px 0}
  .hero-gallery{padding-left:16px;padding-right:16px}
  .hero-gallery h1{font-size:39px}
  .hero-gallery .hero-photo figcaption{grid-template-columns:1fr}
  .slideshow-controls{gap:5px}
  .slideshow-controls button{font-size:10px;padding:8px}
  .mobile-dock{gap:6px;padding-left:9px;padding-right:9px}
  .mobile-dock a,.mobile-dock button{font-size:11px}
}
@media(max-width:720px) and (hover:none){
  .tile-catalog .tile:hover{transform:none;box-shadow:0 5px 18px #18344807}
  .tile:hover .tile-photo{transform:none}
}
