/* Gridloop - modo claro/oscuro.
   El sitio es oscuro por defecto. El modo claro es el inverso con los mismos azules:
   se invierte todo el sitio y se devuelven a su aspecto original las imagenes,
   los videos, los iframes (demos) y los verdes de WhatsApp. */

/* Modo claro: todo el sitio pasa a claro (como un tema propio), con los mismos azules.
   Menu oscuro, igual que en modo oscuro. Las secciones que ya eran claras
   (.sec-light y el pie) conservan su aspecto original. */
html[data-theme="light"]{
  filter:invert(1) hue-rotate(180deg);
  background:#ffffff;
}
html[data-theme="light"] img,
html[data-theme="light"] video,
html[data-theme="light"] picture,
html[data-theme="light"] iframe,
html[data-theme="light"] canvas,
html[data-theme="light"] .btn-wa,
html[data-theme="light"] .wa-float,
html[data-theme="light"] .gl-pop-btn,
html[data-theme="light"] .gl-wa-send,
html[data-theme="light"] .gl-wa-send-final,
html[data-theme="light"] .wa-demo-phone,
html[data-theme="light"] .nav,
html[data-theme="light"] .sec-light,
html[data-theme="light"] .site-footer{
  filter:invert(1) hue-rotate(180deg);
}
/* Dentro de lo que ya se devolvio a su aspecto original, no se vuelve a corregir */
html[data-theme="light"] .nav img,
html[data-theme="light"] .nav video,
html[data-theme="light"] .nav picture,
html[data-theme="light"] .nav iframe,
html[data-theme="light"] .nav canvas,
html[data-theme="light"] .nav .btn-wa,
html[data-theme="light"] .sec-light img,
html[data-theme="light"] .sec-light video,
html[data-theme="light"] .sec-light picture,
html[data-theme="light"] .sec-light iframe,
html[data-theme="light"] .sec-light canvas,
html[data-theme="light"] .sec-light .btn-wa,
html[data-theme="light"] .site-footer img,
html[data-theme="light"] .site-footer video,
html[data-theme="light"] .site-footer picture,
html[data-theme="light"] .site-footer iframe,
html[data-theme="light"] .site-footer canvas,
html[data-theme="light"] .site-footer .btn-wa,
html[data-theme="light"] .wa-demo-phone img,
html[data-theme="light"] .wa-demo-phone svg{
  filter:none;
}

/* Boton del menu */
.gl-theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;flex:0 0 auto;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
  color:#ffffff;
  cursor:pointer;
  padding:0;
  margin-left:12px;
  transition:background .2s ease,border-color .2s ease,transform .15s ease;
}
.gl-theme-toggle:hover{background:rgba(255,255,255,.14);border-color:rgba(147,197,253,.7)}
.gl-theme-toggle:active{transform:scale(.92)}
.gl-theme-toggle:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.gl-theme-toggle svg{width:18px;height:18px;display:block}
@media (max-width:860px){
  .gl-theme-toggle{margin-left:auto;margin-right:8px}
}
@media (prefers-reduced-motion:reduce){
  .gl-theme-toggle{transition:none}
}

/* Celular de WhatsApp (inicio): en modo claro muestra el WhatsApp claro real
   (el celular ya se devuelve a su aspecto original arriba; aca solo se cambian
   los colores de la pantalla). El marco del celular y la isla no cambian. */
html[data-theme="light"] .wa-demo-phone .iphone-screen{background:#efeae2}
html[data-theme="light"] .wa-demo-phone .iphone-status{background:#f0f2f5}
html[data-theme="light"] .wa-demo-phone .iphone-time,
html[data-theme="light"] .wa-demo-phone .iphone-status-icons{color:#111b21}
html[data-theme="light"] .wa-demo-phone .iphone-battery-fill::after{background:#111b21}
html[data-theme="light"] .wa-demo-phone .iphone-wa-header{background:#f0f2f5;border-bottom:1px solid rgba(17,27,33,.08)}
html[data-theme="light"] .wa-demo-phone .wamock-name{color:#111b21}
html[data-theme="light"] .wa-demo-phone .wamock-sub{color:#667781}
html[data-theme="light"] .wa-demo-phone .iphone-back,
html[data-theme="light"] .wa-demo-phone .iphone-wa-actions{color:#00a884}
html[data-theme="light"] .wa-demo-phone .wamock-body{background:#efeae2}
html[data-theme="light"] .wa-demo-phone .wamsg--in,
html[data-theme="light"] .wa-demo-phone .wamsg-typing{background:#ffffff;color:#111b21}
html[data-theme="light"] .wa-demo-phone .wamsg--out{background:#d9fdd3;color:#111b21}
html[data-theme="light"] .wa-demo-phone .wamsg-time{color:#667781}
html[data-theme="light"] .wa-demo-phone .wamsg--out .wamsg-time{color:rgba(17,27,33,.5)}
html[data-theme="light"] .wa-demo-phone .iphone-input,
html[data-theme="light"] .wa-demo-phone .iphone-home-bar{background:#f0f2f5;border-top-color:rgba(17,27,33,.08)}
html[data-theme="light"] .wa-demo-phone .iphone-input-box{background:#ffffff;color:#667781}
html[data-theme="light"] .wa-demo-phone .iphone-input-box span::after{color:#667781}
html[data-theme="light"] .wa-demo-phone .wamsg-typing span{background:#8696a0}
