/* =========================================================
   POLITICFY — UI "APP" para móvil y tablet
   Se activa con html.is-app (ver script en <head>):
   ancho <= 1024px, o pantallas táctiles de hasta 1400px (iPad Pro).
   Portrait  -> barra superior compacta + barra de pestañas inferior
   Landscape -> barra superior compacta + riel lateral de pestañas
   ========================================================= */

/* ---- por defecto (escritorio) el shell de app no existe ---- */
.pf-tabbar,.pf-sheet{display:none;}

html.is-app{
  --g-offset:1rem;
  --app-bar:52px;
  --tab-h:62px;
  --rail-w:76px;
  --sa-t:env(safe-area-inset-top,0px);
  --sa-b:env(safe-area-inset-bottom,0px);
  --sa-l:env(safe-area-inset-left,0px);
  --sa-r:env(safe-area-inset-right,0px);
  --app-radius:1.5rem;
  --fs-hero:clamp(2.35rem,9.4vw,3.6rem);
  --fs-h1:clamp(1.9rem,7.6vw,3rem);
  --fs-h2:clamp(1.5rem,6vw,2.2rem);
  --fs-lead:clamp(1rem,4.2vw,1.2rem);
  -webkit-tap-highlight-color:transparent;
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
  overscroll-behavior-y:none;
}
html.is-app body{
  min-height:100dvh;
  padding-top:calc(var(--app-bar) + var(--sa-t));
  padding-bottom:calc(var(--tab-h) + var(--sa-b));
  padding-left:var(--sa-l);padding-right:var(--sa-r);
  touch-action:manipulation;
}
html.is-app .pf-cursor,html.is-app .pf-cursor__blob,html.is-app .pf-scrollbar{display:none!important;}
html.is-app a,html.is-app button{touch-action:manipulation;}
html.is-app img{-webkit-user-drag:none;}

/* ============ BARRA SUPERIOR (app bar) ============ */
html.is-app .pf-header{
  top:0;left:0;width:100%;padding-top:var(--sa-t);
  background:rgba(250,250,250,.86);
  backdrop-filter:blur(18px) saturate(170%);-webkit-backdrop-filter:blur(18px) saturate(170%);
  border-bottom:1px solid rgba(61,61,61,.08);pointer-events:auto;
  transition:transform .45s cubic-bezier(.19,1,.22,1);
}
html.is-app .pf-header.is-hidden{transform:translateY(-100%);}
html.is-app .pf-header.is-hidden .pf-header__bar{transform:none;}
html.is-app .pf-header__bar{
  margin:0;height:var(--app-bar);padding:0 calc(var(--g-offset) + var(--sa-r)) 0 calc(var(--g-offset) + var(--sa-l));
  background:none;border:0;border-radius:0;box-shadow:none;
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
html.is-app .pf-header__nav,
html.is-app .pf-header__login,
html.is-app .pf-header__burger,
html.is-app .pf-drawer{display:none!important;}
html.is-app .pf-header__logo img{height:26px;width:auto;}
html.is-app .pf-header__cta .btn-main{min-height:38px;padding:.5rem 1.05rem;font-size:.72rem;}

/* ============ BARRA DE PESTAÑAS ============ */
html.is-app .pf-tabbar{
  display:flex;position:fixed;z-index:60;left:0;right:0;bottom:0;
  justify-content:space-around;gap:2px;
  padding:6px calc(8px + var(--sa-r)) calc(6px + var(--sa-b)) calc(8px + var(--sa-l));
  background:rgba(250,250,250,.9);
  backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);
  border-top:1px solid rgba(61,61,61,.1);
}
.pf-tab{
  position:relative;flex:1 1 0;min-width:0;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  border-radius:16px;color:var(--pf-ink-soft);font-family:var(--f-text);font-size:.6875rem;line-height:1.1;letter-spacing:.01em;
  transition:color .2s ease,transform .18s cubic-bezier(.23,1,.32,1);
}
.pf-tab svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s cubic-bezier(.34,1.56,.64,1);}
.pf-tab span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pf-tab::before{content:"";position:absolute;inset:2px 6px;border-radius:14px;background:rgba(214,18,159,.1);opacity:0;transform:scale(.85);
  transition:opacity .25s ease,transform .3s cubic-bezier(.34,1.56,.64,1);}
.pf-tab>*{position:relative;}
.pf-tab:active{transform:scale(.92);}
.pf-tab.is-active{color:var(--pf-primary);}
.pf-tab.is-active::before{opacity:1;transform:none;}
.pf-tab.is-active svg{transform:translateY(-1px);}
.pf-tab:focus-visible{outline:2px solid var(--pf-primary);outline-offset:-2px;}

/* ============ HOJA INFERIOR "Soluciones" ============ */
html.is-app .pf-sheet{display:block;position:fixed;inset:0;z-index:80;visibility:hidden;pointer-events:none;transition:visibility 0s .4s;}
html.is-app .pf-sheet.is-open{visibility:visible;pointer-events:auto;transition-delay:0s;}
.pf-sheet__scrim{position:absolute;inset:0;background:rgba(20,20,26,.5);opacity:0;transition:opacity .35s ease;}
.pf-sheet.is-open .pf-sheet__scrim{opacity:1;}
.pf-sheet__panel{
  position:absolute;left:50%;bottom:0;width:min(100%,680px);max-height:90dvh;overflow-y:auto;overscroll-behavior:contain;
  background:var(--pf-bg-soft);border-radius:26px 26px 0 0;
  padding:0 calc(var(--g-offset) + var(--sa-r)) calc(20px + var(--sa-b)) calc(var(--g-offset) + var(--sa-l));
  transform:translate(-50%,100%);transition:transform .45s cubic-bezier(.19,1,.22,1);
  box-shadow:0 -20px 60px -24px rgba(20,20,26,.5);
}
.pf-sheet.is-open .pf-sheet__panel{transform:translate(-50%,0);}
.pf-sheet__panel.is-dragging{transition:none;}
.pf-sheet__grab{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;
  padding:14px 0 8px;background:var(--pf-bg-soft);touch-action:none;cursor:grab;}
.pf-sheet__grab::before{content:"";position:absolute;top:6px;left:50%;width:40px;height:5px;margin-left:-20px;border-radius:99px;background:var(--pf-gray-light);}
.pf-sheet__title{font-family:var(--f-heading);font-size:1.5rem;line-height:1.1;margin-top:8px;}
.pf-sheet__close{width:44px;height:44px;margin-top:8px;border-radius:50%;background:var(--pf-bg-softer);display:flex;align-items:center;justify-content:center;}
.pf-sheet__close svg{width:20px;height:20px;fill:none;stroke:var(--pf-ink);stroke-width:2;stroke-linecap:round;}
.pf-sheet__group{margin:10px 0 0;font-family:var(--f-mono);font-size:.6875rem;letter-spacing:.04em;text-transform:uppercase;color:var(--pf-ink-soft);}
.pf-sheet__list{display:grid;grid-template-columns:1fr;gap:8px;margin-top:8px;}
.pf-row{display:flex;align-items:center;gap:14px;min-height:60px;padding:8px 12px 8px 10px;border-radius:18px;background:#fff;
  box-shadow:0 1px 0 rgba(61,61,61,.06);transition:transform .18s cubic-bezier(.23,1,.32,1),background .2s ease;}
.pf-row:active{transform:scale(.975);background:var(--pf-bg-softer);}
.pf-row.is-current{box-shadow:inset 0 0 0 1.5px var(--pf-primary);}
.pf-row__chip{flex:none;width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;
  font-family:var(--f-heading);font-size:1.15rem;color:#fff;background:linear-gradient(135deg,var(--c),color-mix(in srgb,var(--c) 55%,#000));}
.pf-row__name{flex:1;min-width:0;font-family:var(--f-heading);font-size:1.02rem;line-height:1.15;}
.pf-row__tag{flex:none;font-family:var(--f-mono);font-size:.6rem;letter-spacing:.03em;text-transform:uppercase;color:var(--pf-primary);border:1px solid var(--pf-primary);border-radius:99px;padding:.08rem .45rem;}
.pf-row__go{flex:none;width:18px;height:18px;fill:none;stroke:var(--pf-gray);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.pf-sheet__cta{margin-top:16px;display:flex;}
.pf-sheet__cta .btn-main{width:100%;min-height:52px;}
html.is-app.pf-sheet-open body{overflow:hidden;}

/* ============ RIEL LATERAL (landscape) ============ */
@media (orientation:landscape){
  html.is-app body{padding-bottom:0;padding-left:calc(var(--rail-w) + var(--sa-l));}
  html.is-app .pf-tabbar{
    top:0;right:auto;bottom:0;left:0;width:calc(var(--rail-w) + var(--sa-l));flex-direction:column;justify-content:center;gap:6px;
    padding:calc(8px + var(--sa-t)) 8px calc(8px + var(--sa-b)) calc(8px + var(--sa-l));
    border-top:0;border-right:1px solid rgba(61,61,61,.1);
  }
  .pf-tab{flex:0 0 auto;min-height:58px;}
  html.is-app .pf-header{left:calc(var(--rail-w) + var(--sa-l));width:auto;right:0;}
  html.is-app .pf-header__bar{padding-left:var(--g-offset);}
  .pf-sheet__panel{left:calc(50% + (var(--rail-w) + var(--sa-l))/2);}
  .pf-sheet__list{grid-template-columns:1fr 1fr;}
}
@media (orientation:landscape) and (max-height:520px){
  html.is-app{--app-bar:44px;--rail-w:76px;}
  html.is-app .pf-header__logo img{height:22px;}
  html.is-app .pf-header__cta .btn-main{min-height:34px;padding:.35rem .9rem;}
  .pf-tab{min-height:50px;font-size:.6rem;}
  .pf-tab span{overflow:visible;text-overflow:clip;}
  .pf-tab svg{width:22px;height:22px;}
  .pf-sheet__panel{max-height:96dvh;}
}
@media (orientation:portrait) and (min-width:640px){
  .pf-sheet__list{grid-template-columns:1fr 1fr;}
}

/* ============ LAYOUT GENERAL ============ */
html.is-app .pf-section{padding:2.6rem 0;}
html.is-app .pf-showcase,html.is-app .pf-band,html.is-app .pf-studio{padding-top:2.6rem;padding-bottom:2.6rem;}
html.is-app .pf-showcase__head{margin-bottom:1.5rem;}
html.is-app .pf-showcase__head h2{font-size:var(--fs-h1);line-height:1.05;}
html.is-app .pf-showcase__head p{font-size:var(--fs-lead);}
html.is-app .pf-eyebrow{font-size:.75rem;}
html.is-app .btn-main{min-height:48px;}
html.is-app .btn-main--lg{padding:1.1rem 1.8rem;}
html.is-app .btn-main:active{transform:scale(.97);}
html.is-app .btn-main{transition:transform .18s cubic-bezier(.23,1,.32,1);}
html.is-app .btn-main:hover .btn-main__hover{clip-path:ellipse(70% 50% at 50% 150%);}
html.is-app .btn-main:active .btn-main__hover{clip-path:ellipse(100% 70% at 50% 50%);}
html.is-app .pf-feature-card:hover,html.is-app .sb-project:hover{transform:none;box-shadow:none;background:var(--pf-bg-soft);}
html.is-app .pf-feature-card:active,html.is-app .sb-project:active,html.is-app .pf-usp-card:active{transform:scale(.985);}
html.is-app .link-ghost{min-height:44px;display:inline-flex;align-items:center;}

/* ---- hero de la home ---- */
html.is-app .pf-hero{margin:.5rem;padding:2.4rem 0 3rem;border-radius:var(--app-radius);}
html.is-app .pf-hero__title{max-width:12em;}
html.is-app .pf-hero__cta{margin-top:1.6rem;width:100%;}
html.is-app .pf-hero__cta .btn-main{width:100%;}
html.is-app .pf-hero__clients{margin-top:2.4rem;}
html.is-app .pf-hero__stats{margin-top:2rem;}

/* ---- hero de producto ---- */
html.is-app .pf-product-hero{margin:.5rem .5rem 0;border-radius:var(--app-radius);}
html.is-app .pf-breadcrumb{display:none;}
html.is-app .pf-hx{height:auto;min-height:min(78dvh,620px);align-items:flex-end;}
html.is-app .pf-hx .pf-product-hero__inner{padding:5rem var(--g-offset) 1.6rem;}
html.is-app .pf-hx .pf-product-hero__title{font-size:clamp(2.1rem,9vw,3.3rem);line-height:1;}
html.is-app .pf-hx .pf-product-hero__title--long{font-size:clamp(1.65rem,7vw,2.6rem);line-height:1.06;}
html.is-app .pf-product-hero__text{font-size:var(--fs-lead);}
html.is-app .pf-product-hero__actions{flex-direction:column;align-items:stretch;gap:.4rem;margin-top:1.3rem;}
html.is-app .pf-product-hero__actions .btn-main{width:100%;}
html.is-app .pf-product-hero__actions .link-ghost{justify-content:center;}
html.is-app .pf-hx__media{left:0;top:-4rem;-webkit-mask-image:linear-gradient(180deg,#000 0,#000 38%,transparent 90%);mask-image:linear-gradient(180deg,#000 0,#000 38%,transparent 90%);}
html.is-app .pf-hx__tint{background:linear-gradient(180deg,rgb(var(--hx-d)/.2) 0%,rgb(var(--hx-d)/.72) 40%,rgb(var(--hx-d)/.97) 100%);}
html.is-app .pf-hx__arc,html.is-app .pf-hx__glow--b{display:none;}

/* ---- frase fija (catchphrase) ---- */
html.is-app .pf-catchphrase__sticky{height:100dvh;padding:0 1.25rem;}
html.is-app .pf-catchphrase__title{font-size:clamp(1.75rem,8vw,3.6rem);}

/* ---- franja de confianza / stats ---- */
html.is-app .pf-trust{padding-top:1.4rem;}
html.is-app .pf-trust__list{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;gap:0;
  padding:.2rem var(--g-offset);margin:0;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
html.is-app .pf-trust__list::-webkit-scrollbar{display:none;}
html.is-app .pf-trust__list li{flex:none;white-space:nowrap;scroll-snap-align:start;}
html.is-app .pf-trust__lead{text-align:left;padding:0 0;font-size:var(--fs-lead);}
html.is-app .pf-stats{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem 1rem;padding:1.6rem 0;}
html.is-app .pf-stat__num{font-size:2rem;}

/* ---- carruseles con snap (tarjetas de características) ---- */
html.is-app .pf-feature-grid{
  display:flex;flex-wrap:nowrap;gap:12px;width:100%;max-width:none;margin:0;
  padding:2px var(--g-offset) 6px;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;scroll-padding:0 var(--g-offset);
  -webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain;
}
html.is-app .pf-feature-grid::-webkit-scrollbar{display:none;}
html.is-app .pf-feature-card{flex:0 0 min(84%,22rem);scroll-snap-align:start;padding:1.3rem;}
html.is-app .pf-feature-card__title{font-size:1.15rem;}
html.is-app .pf-feature-card__text{font-size:.95rem;line-height:1.5;}
.pf-dots{display:none;}
html.is-app .pf-dots{display:flex;justify-content:center;gap:6px;margin-top:10px;min-height:6px;}
.pf-dots i{display:block;width:6px;height:6px;border-radius:99px;background:var(--pf-gray-light);transition:width .3s cubic-bezier(.19,1,.22,1),background .3s ease;}
.pf-dots i.is-on{width:20px;background:var(--pf-primary);}
@media (min-width:640px) and (orientation:portrait){
  html.is-app .pf-feature-grid{display:grid;grid-template-columns:repeat(2,1fr);overflow:visible;padding:0;width:calc(100% - var(--g-offset)*2);margin:0 auto;}
  html.is-app .pf-feature-card{flex:none;}
}
@media (min-width:900px) and (orientation:landscape){
  html.is-app .pf-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);overflow:visible;padding:0;width:calc(100% - var(--g-offset)*2);margin:0 auto;}
  html.is-app .pf-feature-card{flex:none;}
}

/* ---- detalle imagen + texto ---- */
html.is-app .pf-detail,html.is-app .pf-detail--reverse{flex-direction:column;gap:1.4rem;}
html.is-app .pf-detail__media{flex:none;width:100%;}
html.is-app .pf-detail__media img{width:100%;height:auto;border-radius:1.1rem;}
html.is-app .pf-detail__text{flex:none;width:100%;}
html.is-app .pf-detail__text h3{font-size:var(--fs-h2);}
html.is-app .pf-list li{font-size:1rem;}
@media (orientation:landscape) and (min-width:700px){
  html.is-app .pf-detail{flex-direction:row;align-items:center;gap:2rem;}
  html.is-app .pf-detail--reverse{flex-direction:row-reverse;}
  html.is-app .pf-detail__media{flex:1 1 45%;}
  html.is-app .pf-detail__text{flex:1 1 50%;}
}

/* ---- delivery / addons ---- */
html.is-app .pf-work{padding:1rem 0 2.4rem;}
html.is-app .pf-work__execution,html.is-app .pf-work__quote{min-height:0;padding:1.6rem;border-radius:1.3rem;}
html.is-app .pf-work__delivery{padding:1.4rem;gap:1.2rem;border-radius:1.3rem;}
html.is-app .pf-work__delivery-head{max-width:none;}
html.is-app .pf-work__projects{grid-template-columns:1fr;width:100%;}
@media (min-width:640px){html.is-app .pf-work__projects{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));}}

/* ---- planes / wizard / faq ---- */
html.is-app .pf-pricing{padding:2.6rem 0;}
html.is-app .pf-pricing__left{max-width:none;flex-basis:100%;}
html.is-app .pf-pricing__right{flex-basis:100%;}
html.is-app .pf-wizard{padding:1.3rem;}
html.is-app .pf-wizard select{min-height:52px;font-size:16px;}
html.is-app .pf-toggle{display:flex;width:100%;}
html.is-app .pf-toggle button{flex:1;min-height:44px;padding:.65rem .8rem;}
html.is-app .pf-plans{grid-template-columns:1fr;gap:1rem;}
html.is-app .pf-plan{padding:1.5rem;}
html.is-app .pf-faq{padding:2.4rem 0 3rem;}
html.is-app .pf-faq-item__q{min-height:56px;padding:1rem .2rem;font-size:1.05rem;}
@media (min-width:700px){html.is-app .pf-plans{grid-template-columns:1fr 1fr;}}

/* ---- CTA final ---- */
html.is-app .pf-cta-final{margin:.5rem;padding:2.6rem 1.4rem;min-height:0;border-radius:var(--app-radius);}
html.is-app .pf-cta-final__inner{gap:1.4rem;}
html.is-app .pf-cta-final__title{font-size:var(--fs-h1);max-width:14em;}
html.is-app .pf-cta-final__copy{flex:1 1 100%;max-width:none;}
html.is-app .pf-cta-final__actions{flex-direction:column;width:100%;}
html.is-app .pf-cta-final__actions .btn-main{width:100%;}
@media (min-width:700px) and (orientation:portrait){
  html.is-app .pf-cta-final__actions{flex-direction:row;}
  html.is-app .pf-cta-final__actions .btn-main{width:auto;flex:1;}
}

/* ---- footer ---- */
html.is-app .pf-footer{padding:2rem 0 1.4rem;}
html.is-app .pf-footer__top{gap:1.6rem;}
html.is-app .pf-footer__cols{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem 1.2rem;width:100%;}
html.is-app .pf-footer__col:nth-child(2){grid-row:span 2;}
html.is-app .pf-footer__col a{padding:.5rem 0;min-height:36px;}
html.is-app .pf-footer__bottom{flex-direction:column;gap:.5rem;}
@media (min-width:700px){html.is-app .pf-footer__cols{grid-template-columns:repeat(3,1fr);}html.is-app .pf-footer__col:nth-child(2){grid-row:auto;}}

/* ---- imagenes: nunca deformadas ---- */
html.is-app .pf-shot img,html.is-app .pf-usp-card__asset img,html.is-app .pf-hx__media img,html.is-app .sb__thumb{height:100%;object-fit:cover;}
html.is-app .pf-footer__brand img{height:28px;width:auto;max-width:none;}
html.is-app .pf-header__logo img,html.is-app .pf-footer__brand img{flex:none;object-fit:contain;}

/* ---- landscape corto (teléfono apaisado) ---- */
@media (orientation:landscape) and (max-height:520px){
  html.is-app .pf-section{padding:2rem 0;}
  html.is-app .pf-hx{min-height:calc(100dvh - var(--app-bar) - 1rem);}
  html.is-app .pf-hx .pf-product-hero__inner{padding-top:3rem;padding-bottom:1.2rem;max-width:36rem;}
  html.is-app .pf-hx .pf-product-hero__title{font-size:clamp(1.6rem,5.2vw,2.4rem);}
  html.is-app .pf-hx .pf-product-hero__title--long{font-size:clamp(1.4rem,4vw,2rem);}
  html.is-app .pf-product-hero__text{font-size:.95rem;}
  html.is-app .pf-product-hero__actions{flex-direction:row;align-items:center;flex-wrap:wrap;}
  html.is-app .pf-product-hero__actions .btn-main{width:auto;}
  html.is-app .pf-hx__media{left:38%;top:-3rem;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 40%);mask-image:linear-gradient(90deg,transparent 0,#000 40%);}
  html.is-app .pf-hx__tint{background:linear-gradient(90deg,rgb(var(--hx-d)/1) 0%,rgb(var(--hx-d)/.94) 38%,rgb(var(--hx-d)/.3) 70%,rgb(var(--hx-d)/0) 100%);}
  html.is-app .pf-hero{padding:1.6rem 0 2rem;}
  html.is-app .pf-hero__cta{width:auto;}
  html.is-app .pf-hero__cta .btn-main{width:auto;}
  html.is-app .pf-catchphrase__title{font-size:clamp(1.4rem,5vw,2.4rem);}
  html.is-app .pf-cta-final__actions{flex-direction:row;}
  html.is-app .pf-cta-final__actions .btn-main{width:auto;flex:1;}
  html.is-app .pf-feature-card{flex-basis:min(46%,20rem);}
}

/* ---- tablet: más aire y tipografía algo mayor ---- */
@media (min-width:700px){
  html.is-app{--g-offset:1.5rem;--fs-hero:clamp(3rem,7vw,4.6rem);--fs-h1:clamp(2.2rem,5.4vw,3.4rem);--fs-h2:clamp(1.7rem,3.8vw,2.4rem);}
  html.is-app .pf-hx .pf-product-hero__inner{max-width:38rem;}
  html.is-app .pf-hx{min-height:min(64dvh,640px);}
  html.is-app .pf-product-hero__actions{flex-direction:row;align-items:center;flex-wrap:wrap;}
  html.is-app .pf-product-hero__actions .btn-main{width:auto;}
  html.is-app .pf-hero__cta,html.is-app .pf-hero__cta .btn-main{width:auto;}
}
@media (min-width:700px) and (orientation:landscape){
  html.is-app .pf-hx{min-height:calc(100dvh - var(--app-bar) - 1rem);}
  html.is-app .pf-hx__media{left:34%;top:-4rem;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 40%);mask-image:linear-gradient(90deg,transparent 0,#000 40%);}
  html.is-app .pf-hx__tint{background:linear-gradient(90deg,rgb(var(--hx-d)/1) 0%,rgb(var(--hx-d)/.94) 34%,rgb(var(--hx-d)/.5) 55%,rgb(var(--hx-d)/0) 85%);}
}

@media (prefers-reduced-motion:reduce){
  .pf-sheet__panel,.pf-sheet__scrim,.pf-tab,.pf-tab svg,.pf-tab::before,.pf-dots i{transition:none;}
}

/* =========================================================
   GALERIAS -> carruseles con snap (estilo app)
   <900px: móvil (1 tarjeta + asomo) y tablet vertical (2 tarjetas)
   ========================================================= */
@media (max-width:900px){
  html.is-app :is(.pf-mosaic,.pf-triptych,.pf-bento,.pf-lanes,.pf-studio__clips,.pf-tickets,.pf-garden__grid,.pf-cmd__grid,.pf-badges,.pf-poll,.pf-quest__grid){
    display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;gap:12px;
    overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:0;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain;
    grid-template-columns:none;grid-template-rows:none;padding-bottom:6px;
  }
  html.is-app :is(.pf-mosaic,.pf-triptych,.pf-bento,.pf-lanes,.pf-studio__clips,.pf-tickets,.pf-garden__grid,.pf-cmd__grid,.pf-badges,.pf-poll,.pf-quest__grid)::-webkit-scrollbar{display:none;}
  html.is-app :is(.pf-mosaic,.pf-triptych,.pf-bento,.pf-lanes,.pf-studio__clips,.pf-tickets,.pf-garden__grid,.pf-cmd__grid,.pf-badges,.pf-poll,.pf-quest__grid)>*{
    flex:0 0 min(80%,21rem);scroll-snap-align:start;margin:0;grid-column:auto;grid-row:auto;min-width:0;
  }
  html.is-app .pf-mosaic>.pf-tile{align-self:stretch;}
  html.is-app .pf-badges{padding-top:4.2rem;gap:12px;}
  html.is-app .pf-tickets{padding-top:.8rem;}
  html.is-app .pf-ticket:nth-child(n){margin-top:0;}
  html.is-app .pf-lane{padding:.7rem;}
  html.is-app .pf-clip .pf-shot{height:auto;aspect-ratio:4/5;}
  html.is-app .pf-clip:nth-child(1) .pf-shot,html.is-app .pf-clip:nth-child(3) .pf-shot{aspect-ratio:4/3.6;}
  html.is-app .pf-win{display:flex;}
  html.is-app .pf-win .pf-shot{aspect-ratio:4/3.4;}
  html.is-app .pf-bento .pf-shot,html.is-app .pf-mosaic .pf-shot{aspect-ratio:4/4.4;}
  html.is-app .pf-band,html.is-app .pf-studio,html.is-app .pf-garden,html.is-app .pf-cmd,html.is-app .pf-quest{margin-left:.5rem;margin-right:.5rem;}
  html.is-app .pf-band{padding:2.4rem 1.1rem;border-radius:var(--app-radius);}
  html.is-app .pf-studio{padding:2.4rem 1.1rem;border-radius:var(--app-radius);}
  html.is-app .pf-garden,html.is-app .pf-cmd,html.is-app .pf-quest{padding:1.6rem 1rem;border-radius:var(--app-radius);}
}
@media (min-width:640px) and (max-width:900px){
  html.is-app :is(.pf-mosaic,.pf-triptych,.pf-bento,.pf-lanes,.pf-studio__clips,.pf-tickets,.pf-garden__grid,.pf-cmd__grid,.pf-badges,.pf-poll,.pf-quest__grid)>*{flex-basis:calc(50% - 6px);}
}
/* landscape de teléfono: dos tarjetas visibles, mas bajas */
@media (orientation:landscape) and (max-height:520px){
  html.is-app :is(.pf-mosaic,.pf-triptych,.pf-bento,.pf-lanes,.pf-studio__clips,.pf-tickets,.pf-garden__grid,.pf-cmd__grid,.pf-badges,.pf-poll,.pf-quest__grid)>*{flex-basis:calc(42% - 6px);}
  html.is-app .pf-bento .pf-shot,html.is-app .pf-mosaic .pf-shot{aspect-ratio:4/3.2;}
  html.is-app .pf-clip .pf-shot,html.is-app .pf-clip:nth-child(n) .pf-shot{aspect-ratio:4/3;}
}

/* ---- ajustes de hero (foto en la parte alta, texto sobre la zona oscura) y frase fija ---- */
@media (max-width:640px) and (orientation:portrait){
  html.is-app .pf-hx__media{top:0;bottom:auto;height:62%;}
  html.is-app .pf-catchphrase__title{font-size:clamp(1.5rem,6.6vw,3rem);}
}
.pf-dots i{cursor:pointer;}

/* ---- home: stats y tarjetas de productos como carruseles en teléfono ---- */
@media (max-width:639px), (orientation:landscape) and (max-height:520px){
  html.is-app :is(.pf-hero__stats,.pf-work__projects){
    display:flex;flex-wrap:nowrap;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain;grid-template-columns:none;padding-bottom:6px;
  }
  html.is-app :is(.pf-hero__stats,.pf-work__projects)::-webkit-scrollbar{display:none;}
  html.is-app :is(.pf-hero__stats,.pf-work__projects)>*{flex:0 0 min(76%,17rem);scroll-snap-align:start;min-width:0;}
  html.is-app .pf-hero__stats{width:calc(100% - 2rem);}
  html.is-app .pf-stat-card{min-height:9rem;}
  html.is-app .sb-project{min-height:12rem;}
}
/* retrato enmarcado: no más alto que la pantalla */
html.is-app .pf-detail__media--frame{padding:1.4rem;}
html.is-app .pf-detail__media--frame img{width:auto;max-width:100%;max-height:min(22rem,52dvh);}

/* ---- pantalla Acceder ---- */
html.is-app .pf-access{min-height:calc(100dvh - var(--app-bar) - var(--tab-h) - var(--sa-t) - var(--sa-b));padding:1.5rem 0;align-items:flex-start;}
html.is-app .pf-access__card{padding:1.6rem 1.3rem;border-radius:var(--app-radius);max-width:none;}
@media (orientation:landscape){html.is-app .pf-access{min-height:calc(100dvh - var(--app-bar));}html.is-app .pf-access__card{max-width:34rem;}}

/* ---- WhatsApp flotante y footer en modo app ---- */
html.is-app .pf-wa-fab{right:calc(14px + var(--sa-r));bottom:calc(var(--tab-h) + var(--sa-b) + 14px);width:3.3rem;height:3.3rem;}
@media (orientation:landscape){html.is-app .pf-wa-fab{bottom:calc(14px + var(--sa-b));}}
html.is-app.pf-sheet-open .pf-wa-fab{visibility:hidden;}
html.is-app .pf-footer__agoras{flex-direction:column;align-items:flex-start;}
html.is-app .pf-footer__wa{min-height:44px;}
html.is-app .pf-agoras__card{margin:0;}
html.is-app .pf-agoras__actions{flex-direction:column;}
html.is-app .pf-agoras__actions .btn-main{width:100%;}
@media (min-width:700px) and (orientation:portrait){html.is-app .pf-agoras__actions{flex-direction:row;}html.is-app .pf-agoras__actions .btn-main{width:auto;}}
html.is-app .sb__thumb--logo{height:7rem;object-fit:contain;}
html.is-app .pf-form input,html.is-app .pf-form select,html.is-app .pf-form textarea{font-size:16px;min-height:52px;}
html.is-app .pf-form textarea{min-height:9rem;}
html.is-app .pf-contact__list a{min-height:44px;}
@media (orientation:landscape) and (min-width:700px){html.is-app .pf-contact{grid-template-columns:1fr 1.1fr;gap:2rem;}}

html.is-app .pf-wizard input[type=text],html.is-app .pf-wizard input[type=email],html.is-app .pf-wizard input[type=tel]{font-size:16px;min-height:52px;}
html.is-app .pf-wizard__result .btn-main{align-self:stretch;width:100%;}
