/*! RGrlk · correcciones transversales QA 2026-08 — capa aditiva, no reemplaza estilos aprobados */

/* ---------- 1. Menús móviles: nunca visibles en escritorio ---------- */
@media (min-width: 821px){
  html body .rgrlk-mobile-home-toggle,
  html body .rgrlk-mobile-home-menu,
  html body .rgrlk-mobile-lab-toggle,
  html body .rgrlk-mobile-lab-menu,
  html body .rgrlk-mobile-menu-button,
  html body .rgrlk-mobile-menu,
  html body .menu-toggle,
  html body header .rgrlk-mobile-menu,
  html body .rgrlk-product-header .rgrlk-mobile-menu,
  html body #dc-root .rgrlk-mobile-menu{ display: none !important; }
}
/* Hamburguesa limpia de 3 líneas, centrada */
@media (max-width: 820px){
  .rgrlk-mobile-home-toggle,
  .rgrlk-mobile-lab-toggle,
  .rgrlk-mobile-menu-button{
    display: flex !important; flex-direction: column; justify-content: space-between;
    align-items: stretch; width: 42px; height: 36px; padding: 9px 8px;
    border: 1px solid rgba(120,210,255,.42); border-radius: 11px;
    background: rgba(7,28,62,.82); cursor: pointer;
  }
  .rgrlk-mobile-home-toggle span,
  .rgrlk-mobile-lab-toggle span,
  .rgrlk-mobile-menu-button span{ height: 2px; border-radius: 3px; background: #eaf7ff; display: block; }
  /* Menú móvil: solo texto, sin logos ni iconos decorativos */
  .rgrlk-mobile-menu img, .rgrlk-mobile-home-menu img, .rgrlk-mobile-lab-menu img,
  .rgrlk-mobile-menu svg, .rgrlk-mobile-home-menu svg, .rgrlk-mobile-lab-menu svg{ display: none !important; }
}

/* ---------- 2. Header de producto ~12% más compacto (patrón Faro Digital) ---------- */
@media (min-width: 821px){
  html body .rgrlk-product-header{
    min-height: 74px !important;
    grid-template-columns: 53px minmax(0,1fr) auto !important;
    gap: 14px !important;
    padding: 5px clamp(10px, 2.35vw, 34px) !important;
  }
  .rgrlk-product-uen{
    width: 50px !important; height: 50px !important; border-radius: 12px !important;
    overflow: visible !important; background: transparent !important; box-shadow: none !important;
  }
  .rgrlk-product-uen img{ object-fit: contain !important; }
  .rgrlk-product-nav a img{ width: 23px !important; height: 23px !important; }
  .rgrlk-product-nav a{ padding: 4px 3px !important; }
  html body .rgrlk-header-actions{ gap: 5px !important; }
  html body .rgrlk-header-actions a{ min-height: 29px !important; padding: 2px 9px !important; font-size: .62rem !important; }
  .rgrlk-header-actions img{ width: 21px !important; height: 21px !important; }
  html{ scroll-padding-top: 88px; }
  /* headers propios de páginas prerenderizadas alineados al mismo patrón */
  html body .faro-site-header{ min-height: 74px !important; padding: 5px clamp(10px,2.35vw,34px) !important; }
}
.rgrlk-product-uen img{ object-fit: contain !important; }

/* ---------- 3. Carrusel infinito: sin desborde y algo más rápido ---------- */
.carousel-window{ overflow: hidden !important; max-width: 100% !important; }
.carousel-track{ animation-duration: 22s !important; will-change: transform; }
@media (max-width: 820px){ .carousel-track{ animation-duration: 17s !important; } }
@media (max-width: 430px){ .carousel-track{ animation-duration: 13s !important; } }
@media (prefers-reduced-motion: reduce){ .carousel-track{ animation: none !important; } }

/* ---------- 4. Reveal de scroll transversal ---------- */
[data-rgqa-reveal]{
  opacity: 0; transform: translateY(18px);
  transition: opacity .62s cubic-bezier(.22,.61,.36,1), transform .62s cubic-bezier(.22,.61,.36,1);
}
[data-rgqa-reveal].rgqa-in{ opacity: 1; transform: none; }
[data-rgqa-stagger] > *{ opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-rgqa-stagger].rgqa-in > *{ opacity: 1; transform: none; }
[data-rgqa-stagger].rgqa-in > *:nth-child(2){ transition-delay: .07s }
[data-rgqa-stagger].rgqa-in > *:nth-child(3){ transition-delay: .14s }
[data-rgqa-stagger].rgqa-in > *:nth-child(4){ transition-delay: .21s }
[data-rgqa-stagger].rgqa-in > *:nth-child(5){ transition-delay: .28s }
[data-rgqa-stagger].rgqa-in > *:nth-child(n+6){ transition-delay: .34s }
@media (max-width: 820px){
  [data-rgqa-reveal]{ transform: translateY(10px); transition-duration: .42s; }
  [data-rgqa-stagger] > *{ transform: translateY(8px); transition-duration: .36s; }
  [data-rgqa-stagger].rgqa-in > *{ transition-delay: 0s !important; }
}
@media (prefers-reduced-motion: reduce){
  [data-rgqa-reveal], [data-rgqa-stagger] > *{ opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- 5. Higiene responsive ---------- */
img, video, canvas, svg{ max-width: 100%; }
@media (max-width: 430px){
  .rgrlk-product-chat-launch{ width: 96px !important; }
}

/* ---------- 6. Planes y precios: el recomendado domina ---------- */
@media (min-width: 901px){
  .plans-grid{ align-items: center !important; }
  .plan-card.featured, .rgrlk-featured{
    transform: scale(1.12) translateY(-10px) !important;
    z-index: 5 !important; position: relative;
    border-color: rgba(54,233,255,.85) !important;
    box-shadow: 0 34px 96px rgba(19,111,255,.36), 0 0 38px rgba(36,221,255,.20) !important;
  }
  .plans-grid > .plan-card:not(.featured):not(.rgrlk-featured){
    transform: scale(.94); transform-origin: center;
  }
}
/* ---------- 7. Tarjetas de contenido: icono y título centrados ---------- */
.three-grid > *, .use-grid > *, .benefits > *{ display: flex; flex-direction: column; height: 100%; }
.three-grid > * > img:first-child, .use-grid > * > img:first-child,
.three-grid > * .icon, .use-grid > * .icon{ margin-left: auto; margin-right: auto; display: block; }

/* ---------- 8. Decoraciones 3D contenidas en su sección (cero recorte del body) ---------- */
#ecosistema, #masivos, #masivos .orbit{ overflow: clip; }
@supports not (overflow: clip){ #ecosistema, #masivos, #masivos .orbit{ overflow: hidden; } }
@media (max-width: 820px){
  #masivos .laptop{ max-width: 100%; }
  #masivos .orbit{ max-width: 100%; }
}

/* ---------- 9. Hero de productos prerenderizados: texto e imagen equilibrados ---------- */
@media (min-width: 901px){
  html body #dc-root main > section:first-of-type h1,
  html body[data-rgrlk-product="faro-digital"] main > section:first-of-type h1,
  html body[data-rgrlk-product="pulso"] main > section:first-of-type h1,
  html body[data-rgrlk-product="precio-vivo"] main > section:first-of-type h1{
    font-size: clamp(2.4rem, 4.35vw, 4.05rem) !important;
    line-height: 1.02 !important;
    max-width: 15ch !important;
  }
  html body #dc-root main > section:first-of-type h1{ max-width: 17ch !important; }
}
@media (max-width: 900px){
  html body #dc-root main > section:first-of-type h1{
    font-size: clamp(1.95rem, 8.4vw, 2.9rem) !important; line-height: 1.05 !important;
  }
}
