/* ARETÉ · móvil, retoque editorial final · 24 noviembre 2026
   No modifica medios, montaje del vinilo, intro, temporización ni escritorio.
   El hero se ancla al viewport pequeño real (svh) para evitar que Safari tape
   el descriptor; todas las coordenadas se adaptan al ancho disponible. */
@media screen and (max-width:767px) and (orientation:portrait){
  html body #inicio.hero {
    height:100svh!important;
    min-height:0!important;
    max-height:none!important;
  }
  html body #inicio.hero > .wrap{
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-end!important;
    align-items:stretch!important;
    height:100%!important;
    min-height:0!important;
    width:100%!important;
    box-sizing:border-box!important;
    padding-top:max(64px,env(safe-area-inset-top,0px))!important;
    padding-right:clamp(16px,4.6vw,23px)!important;
    padding-left:clamp(16px,4.6vw,23px)!important;
    /* Earlier 12svh bottom padding left the CTAs and genres floating high.
       The browser chrome is NOT part of the document; stay inside 100svh. */
    padding-bottom:calc(clamp(18px,3.6svh,38px) + env(safe-area-inset-bottom,0px))!important;
  }
  html body #inicio .hero-copy.rt2-hero-minimal{
    width:100%!important;
    max-width:100%!important;
    margin:0 auto!important;
    padding:0!important;
    text-align:center!important;
    transform:none!important;
  }
  html body #inicio .hero-copy.rt2-hero-minimal .hero-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:clamp(8px,1.5svh,11px)!important;
    margin:0!important;
    padding:0!important;
    /* Preserve rt2HeroButtonSweep on the buttons. */
    animation:none!important;
    transform:none!important;
  }
  html body #inicio .hero-copy.rt2-hero-minimal .hero-actions .btn{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    min-height:clamp(44px,6.4svh,53px)!important;
    padding:10px 15px!important;
    line-height:1.15!important;
  }
  html body #inicio .hero-copy.rt2-hero-minimal .genres{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:clamp(11px,1.8svh,17px) auto 0!important;
    padding:0!important;
    text-align:center!important;
    font-size:clamp(9px,2.45vw,11px)!important;
    letter-spacing:.075em!important;
    line-height:1.4!important;
    white-space:normal!important;
  }
  /* Rebalance the authentic hanging camera. It hangs from the top of the
     purple manifesto and finishes beside "SOMOS / LA GENTE", rather than
     looking like a tiny icon in the corner. */
  html body #manifiesto .ar-manifest-objects .ar-hanging-camera{
    position:absolute!important;
    top:-12px!important;
    bottom:auto!important;
    right:-92px!important;
    left:auto!important;
    /* HD cutout contains wide transparent margins: a larger layout box is
       required for the ACTUAL camera to read at editorial scale. */
    width:clamp(310px,88vw,365px)!important;
    max-width:none!important;
    height:auto!important;
    transform:rotate(7deg)!important;
    transform-origin:top right!important;
    opacity:.98!important;
    filter:drop-shadow(3px 10px 7px rgba(4,3,7,.27))!important;
    z-index:4!important;
    pointer-events:none!important;
  }
  html body #manifiesto .ar-manifest-objects .ar-hanging-camera img{
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-width:100%!important;
    object-fit:contain!important;
  }
  /* Text and community CTA remain readable if the hanging camera crosses
     the headline on narrow devices. */
  html body #manifiesto .manifest-wrap{
    position:relative!important;
    z-index:6!important;
  }
  html body #manifiesto .manifest-left{
    position:relative!important;
    z-index:7!important;
  }
  /* The physical Wall of Shame cutout now belongs BETWEEN the community
     CTA and the two original Polaroids, higher and visually stronger. */
  html body #manifiesto .manifest-gallery .rt2-mobile-wall-note{
    display:block!important;
    position:absolute!important;
    top:clamp(-106px,-25vw,-80px)!important;
    right:clamp(0px,1vw,8px)!important;
    left:auto!important;
    bottom:auto!important;
    width:clamp(124px,39vw,173px)!important;
    height:auto!important;
    transform:rotate(-8deg)!important;
    filter:drop-shadow(2px 6px 4px rgba(12,3,17,.25))!important;
    z-index:7!important;
    pointer-events:none!important;
  }
  html body #manifiesto .manifest-gallery .rt2-mobile-wall-note img{
    width:100%!important;
    height:auto!important;
    display:block!important;
    object-fit:contain!important;
  }
}
/* Small iPhones and short browser viewports: keep actions accessible without
   hiding the DJ or pushing the genre line below the Safari toolbar. */
@media screen and (max-width:767px) and (orientation:portrait) and (max-height:660px){
  html body #inicio.hero > .wrap{
    padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;
  }
  html body #inicio .hero-copy.rt2-hero-minimal .hero-actions .btn{
    min-height:43px!important;
    padding-block:9px!important;
  }
  html body #inicio .hero-copy.rt2-hero-minimal .genres{
    margin-top:9px!important;
  }
}
@media screen and (max-width:359px) and (orientation:portrait){
  html body #manifiesto .ar-manifest-objects .ar-hanging-camera{
    width:clamp(280px,90vw,320px)!important;
    right:-76px!important;
  }
  html body #manifiesto .manifest-gallery .rt2-mobile-wall-note{
    width:clamp(115px,37vw,132px)!important;
    top:-82px!important;
    right:0!important;
  }
}
/* iPhone landscape / similar touch screens: do not stack two large buttons
   in an impossibly short viewport. Portrait remains the primary direction. */
@media screen and (max-height:520px) and (orientation:landscape) and (pointer:coarse){
  html body #inicio.hero{height:100svh!important;min-height:0!important;max-height:none!important;}
  html body #inicio.hero > .wrap{
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
    padding-top:58px!important;
    padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
  }
  html body #inicio .hero-copy.rt2-hero-minimal .hero-actions{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  html body #inicio .hero-copy.rt2-hero-minimal .hero-actions .btn{
    min-width:0!important;width:100%!important;min-height:42px!important;
    padding:8px 12px!important;
  }
  html body #inicio .hero-copy.rt2-hero-minimal .genres{
    margin-top:8px!important;
    font-size:10px!important;
  }
}
@media (prefers-reduced-motion:reduce){
  html body #inicio .hero-copy.rt2-hero-minimal .hero-actions .btn,
  html body #inicio .hero-copy.rt2-hero-minimal .genres .rt2-genres-sweep{
    animation:none!important;
    clip-path:none!important;
    opacity:1!important;
    transform:none!important;
  }
}

/* Mobile navigation ONLY · match the primary hero CTA (#92395C); preserve desktop.
   Do not change the blue hero video, its gradient or the open cream menu.
   Identical before/after scroll to prevent a visible color jump. */
@media screen and (max-width:820px){
  html body #header:not(.open),
  html body #header.arete-mobile-scrolled:not(.open){
    background:#92395C!important;
    border-bottom-color:transparent!important;
  }
  html body #header:not(.open) .mobile-toggle{
    background:transparent!important;
    border-color:#63263F!important;
  }
}
