/* ola 4 · cierre 28-nov-2026 · PASE DE TABLETA (761 a 1024 px), autorizado por Dirección (X5).
   Misma lógica que el teléfono, con composición de tableta: las rejillas largas (data-carr) pasan a una fila que se desliza,
   con contador y flechas visibles debajo; los bloques de apoyo (data-plg) se pliegan con su título. Lo escribe
   scratchpad/ola4/s2_tableta.py; lo propio de cada sitio va al final. */
@media (min-width:761px) and (max-width:1024px){
  html body .carr{display:flex;grid-template-columns:none;grid-template-rows:none;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;gap:16px;align-items:stretch}
  html body .carr::-webkit-scrollbar{display:none}
  html body .carr>*{flex:0 0 calc(50% - 8px);width:auto;max-width:none;min-width:0;scroll-snap-align:start;grid-column:auto;grid-row:auto}
  /* una fila de botones (pasos, pestañas) es un tablero, no un carrusel: en tableta se ve completa */
  html body .carr:has(> button){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:8px}
  html body .carr:has(> button)>*{width:auto}
  /* dos piezas no son carrusel: son un par, lado a lado */
  html body .carr:not(:has(> :nth-child(3))){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);overflow:visible}
  html body .carr>[hidden]{display:none}
  /* una fila deslizable no debe ensanchar la columna que la contiene (min-width:auto de grid/flex) */
  html body .carr-w{min-width:0;max-width:100%}
  html body :is(div,section,article,li,aside,details):has(> .carr-w,> * > .carr-w,> * > * > .carr-w){min-width:0}
  .js .carr>[data-rv]{opacity:1;transform:none}
  html body .carr-b{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}
  html body .carr-b[hidden]{display:none}
  html body .carr-b .carr-c{display:block;margin:0;text-align:left;font:500 12px/1 var(--mono,ui-monospace,SFMono-Regular,Menlo,monospace);letter-spacing:.16em;color:inherit;opacity:.72;min-height:12px}
  html body .carr-fl{display:flex;gap:10px}
  html body .carr-b .carr-f{display:grid;place-items:center;position:static;margin:0;width:48px;height:48px;padding:0;border-radius:50%;background:transparent;color:inherit;border:1px solid currentColor;box-shadow:none;cursor:pointer;transition:transform .16s cubic-bezier(.23,1,.32,1),opacity .16s}
  html body .carr-b .carr-f.der{border-width:2px}
  html body .carr-b .carr-f svg{width:18px;height:18px}
  html body .carr-b .carr-f:active{transform:scale(.94)}
  html body .carr-b .carr-f:disabled{opacity:.28;animation:none}
  html body .carr-b .carr-f.pista{animation:o4pista 1.5s cubic-bezier(.77,0,.175,1) infinite}
  /* desplegables */
  html body details[data-plg]>summary{pointer-events:auto;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px}
  html body details[data-plg]>summary::-webkit-details-marker{display:none}
  html body details[data-plg].solo-m>summary,html body details[data-plg].plg-m>summary{display:flex!important;padding:15px 18px;border:1px solid currentColor;border-radius:4px;font-weight:600;font-size:14px;letter-spacing:.04em;text-transform:uppercase}
  html body details[data-plg] .plg-i{display:block;flex:none;width:18px;height:18px;transition:transform .22s cubic-bezier(.23,1,.32,1)}
  html body details[data-plg][open] .plg-i{transform:rotate(180deg)}
  html body details[data-plg][open]>summary{margin-bottom:14px}
  details[data-plg] [data-rv],details[data-plg][data-rv]{opacity:1!important;transform:none!important;visibility:visible!important}
  /* aire: dos rellenos de escritorio sumaban media pantalla entre secciones */
  main>section:not(#inicio):not(.hero),body>section:not(#inicio):not(.hero),main>div>section:not(#inicio){padding-top:clamp(48px,6.2vw,64px)!important;padding-bottom:clamp(48px,6.2vw,64px)!important}
  /* objetivos táctiles: el dedo manda, no el cursor */
  html body .mov-btn{min-width:44px;min-height:44px}
  html body :is(.btn,.pill,.chip,.tab,[role=tab],.pr-b,.lk,.redondo,nav a,header a,footer a,.pie a,.foot a){min-height:44px}
  html body :is(.pill,.chip,.pr-b,.lk,[role=tab]){display:inline-flex;align-items:center;justify-content:center}
  html body :is(nav,header,footer,.pie,.foot) a:not(.btn){display:inline-flex;align-items:center}
  html body button:not(.carr-f):not(.mov-btn){min-height:44px}
  html body button[aria-label]:not(.carr-f):not(.mov-btn){min-width:44px}
  html body a:is(.tlink,[class*=link],[class*=-lk]):not(.btn){min-height:44px;display:inline-flex;align-items:center}
  html body :is(select,textarea,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden])){min-height:44px}
}
@media (min-width:900px) and (max-width:1024px){
  html body .carr:has(> :nth-child(4))>*{flex-basis:calc(33.333% - 11px)}
}
/* una fila deslizable en una columna angosta (menos de 560 px) muestra una pieza y asoma la siguiente: nada de textos en tiras */
@media (min-width:761px) and (max-width:1024px){
  html body .carr-w:not(.chico){container-type:inline-size;width:100%}
  @container (max-width:560px){
    html body .carr>*,html body .carr:has(> :nth-child(4))>*{flex-basis:82%}
    html body .carr:not(:has(> :nth-child(3))):not(:has(> button)){grid-template-columns:minmax(0,1fr)}
  }
}
@keyframes o4pista{0%,100%{transform:translateX(0)}50%{transform:translateX(5px)}}
@media (prefers-reduced-motion:reduce){html body .carr-b .carr-f.pista{animation:none}}

/* --- GRUPO ARVIA · composición propia de tableta (28-nov) ---
   Los accesos no son carrusel en tableta: son una lista de entradas, cada una en su renglón (el botón nunca pisa el texto).
   En horizontal (1024) holding, gobierno, marco y contacto vuelven a dos columnas sobrias. */
@media (min-width:761px) and (max-width:1024px){
  html body .acc-l.carr{display:block;overflow:visible}
  html body .acc-l.carr>.acceso{width:auto}
  html body .acceso{grid-template-columns:54px minmax(0,1fr) auto;gap:18px;padding:20px 0}
}
@media (min-width:900px) and (max-width:1024px){
  html body .hold-g{grid-template-columns:1.1fr .9fr;gap:40px}
  html body .gob-g{grid-template-columns:1.15fr .85fr;gap:36px}
  html body .marco-g{grid-template-columns:.9fr 1.1fr;gap:36px}
  html body .ct-g{grid-template-columns:1.3fr .9fr;gap:40px}
  html body .divs-g{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:36px}
}
@media (min-width:900px) and (max-width:1024px){
  html body .ct-g.ct-g2{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:32px}
  html body .ct-g2 .form3{order:0}
}
