﻿/* Limonada Web · modo claro/oscuro y barra lateral (portada, reseñas…). Lo carga /js/lw-theme.js */
/* ── Modo oscuro (se activa con el selector lateral; se recuerda en el navegador) ── */
html[data-theme="dark"]{--bg:#0e131b;--soft:#121924;--soft2:#161e2a;--ink:#f2f4f7;--text:#b4bdca;--line:#253042;color-scheme:dark}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .brand img{content:url(/images/logo-limonadaweb-oficial-blanco.png)}
html[data-theme="dark"] .topbar{background:#0b1017;border-color:var(--line)}
html[data-theme="dark"] .topbar .wrap{color:#98a2b3}
html[data-theme="dark"] header{background:rgba(14,19,27,.94);border-color:var(--line)}
html[data-theme="dark"] .navlinks a{color:#d0d5dd}
html[data-theme="dark"] .navlinks a:hover{color:#fff}
html[data-theme="dark"] .menu-btn{background:#1b2431;color:#f2f4f7}
html[data-theme="dark"] #mobile{background:var(--bg)!important;border-color:var(--line)!important}
html[data-theme="dark"] .kicker{color:#e6c64a}
html[data-theme="dark"] .btn-dark{background:#f2f4f7;color:#0e131b}
html[data-theme="dark"] .btn-dark:hover{background:#fff}
html[data-theme="dark"] .btn-light{background:#161e2a;border-color:#344054;color:#f2f4f7}
html[data-theme="dark"] .hero{background:linear-gradient(180deg,#0e131b 0%,#111824 100%)}
html[data-theme="dark"] .hero h1 .mark:after{opacity:.55}
html[data-theme="dark"] .proof{color:#98a2b3}
html[data-theme="dark"] .proof span:before{color:#8cc46d}
html[data-theme="dark"] .hero-panel,html[data-theme="dark"] .service,html[data-theme="dark"] .project,html[data-theme="dark"] .rh-card,
html[data-theme="dark"] .sectorcard,html[data-theme="dark"] .pricecard,html[data-theme="dark"] .contactbox,html[data-theme="dark"] .showcase,
html[data-theme="dark"] .rgpd-point,html[data-theme="dark"] .rgpd-client{background:#151c27;border-color:var(--line);box-shadow:none}
html[data-theme="dark"] .trustbar,html[data-theme="dark"] .projects,html[data-theme="dark"] .resenas-home,html[data-theme="dark"] .process,
html[data-theme="dark"] .faq,html[data-theme="dark"] .rgpd{background:var(--bg)}
html[data-theme="dark"] .sector{background:var(--soft)}
html[data-theme="dark"] .rgpd-intro{background:#121924;border-color:var(--line)}
html[data-theme="dark"] .visual,html[data-theme="dark"] .showcase-preview,html[data-theme="dark"] .rgpd-client-preview,html[data-theme="dark"] .web-preview{background:#1b2431}
html[data-theme="dark"] .showcase-preview.phone-stage{background:linear-gradient(145deg,#1b2431,#151c27)}
html[data-theme="dark"] .project-preview-img,html[data-theme="dark"] .browser-static-img{background:#1b2431!important}
html[data-theme="dark"] .service li,html[data-theme="dark"] .pricecard li{border-color:var(--line);color:#b4bdca}
html[data-theme="dark"] .service .index,html[data-theme="dark"] .step .n,html[data-theme="dark"] .projectmeta,html[data-theme="dark"] .panel-item small,
html[data-theme="dark"] .hero-panel .label{color:#8a95a7}
html[data-theme="dark"] .trustitem span,html[data-theme="dark"] .tag,html[data-theme="dark"] .price small,html[data-theme="dark"] .projects-more span,
html[data-theme="dark"] .rh-card .who span,html[data-theme="dark"] .rgpd-point span,html[data-theme="dark"] summary:after{color:#98a2b3}
html[data-theme="dark"] .rh-card p,html[data-theme="dark"] .solidario-band p{color:#c9d0da}
html[data-theme="dark"] .rh-card .av{background:#f4c430;color:#1d1d1d}
html[data-theme="dark"] .solidario-band{background:#211d0f;border-color:#4a3f17}
html[data-theme="dark"] .solidario-band .projectmeta,html[data-theme="dark"] .rgpd-client-copy .small{color:#e6c64a}
html[data-theme="dark"] .contact,html[data-theme="dark"] .contact h2,html[data-theme="dark"] .contact h3{color:#101828}
html[data-theme="dark"] .contactbox h3{color:#f2f4f7}
html[data-theme="dark"] .contactbox p{color:#b4bdca}
html[data-theme="dark"] .contact .btn-dark{background:#101828;color:#fff}
html[data-theme="dark"] .contact .btn-light{background:#fff;color:#101828;border-color:#d8dce3}
html[data-theme="dark"] .contactbox .btn-dark{background:#f2f4f7;color:#0e131b}
html[data-theme="dark"] .contactbox .btn-light{background:#161e2a;color:#f2f4f7;border-color:#344054}

/* Página de proyectos */
html[data-theme="dark"] .phero{background:linear-gradient(180deg,#0e131b 0%,#111824 100%);border-color:var(--line)}
html[data-theme="dark"] .pstats div span,html[data-theme="dark"] .pempty{color:#98a2b3}
html[data-theme="dark"] .pfilters{background:rgba(14,19,27,.94);border-color:var(--line)}
html[data-theme="dark"] .pfilter{background:#151c27;border-color:#344054;color:#d0d5dd}
html[data-theme="dark"] .pfilter:hover{border-color:#667085}
html[data-theme="dark"] .pfilter.active{background:#f2f4f7;color:#0e131b;border-color:#f2f4f7}
html[data-theme="dark"] .plist{background:var(--bg)}
html[data-theme="dark"] .ptags span{background:#1b2431;color:#b4bdca}
html[data-theme="dark"] .pstate.live{background:#173404;color:#b8e39d}
html[data-theme="dark"] .pstate.dev{background:#3d2e05;color:#f4d27a}
html[data-theme="dark"] .projectlink.muted{color:#8a95a7}
html[data-theme="dark"] .pframe{background:#1b2431}
html[data-theme="dark"] .pcta{background:var(--soft);border-color:var(--line)}
html[data-theme="dark"] .browserbar-static,html[data-theme="dark"] [style*="background:#f2f4f7;height:28px"]{background:#1b2431!important;border-color:var(--line)!important}
html[data-theme="dark"] .rcg{background:#111824;border-color:var(--line)}
html[data-theme="dark"] .rcg-hero-copy>p{color:#b4bdca}
html[data-theme="dark"] .rcg-summary-item,html[data-theme="dark"] .rcg-modulo,html[data-theme="dark"] .rcg-integra,html[data-theme="dark"] .rcg-plan{background:#151c27;border-color:var(--line)}
html[data-theme="dark"] .rcg-summary-item h4,html[data-theme="dark"] .rcg-modulo h3,html[data-theme="dark"] .rcg-integra h3,html[data-theme="dark"] .rcg-plan h4{color:#f2f4f7}
html[data-theme="dark"] .rcg-summary-item p,html[data-theme="dark"] .rcg-modulo p,html[data-theme="dark"] .rcg-modulo ul li,html[data-theme="dark"] .rcg-integra p,html[data-theme="dark"] .rcg-plan>p,html[data-theme="dark"] .rcg-plan ul li{color:#b4bdca}
html[data-theme="dark"] .rcg-prox,html[data-theme="dark"] .rcg-plan-dest{background:#10241a;border-color:#2c6b45}
html[data-theme="dark"] .rcg-prox h4{color:#86efac}
html[data-theme="dark"] .rcg-prox p{color:#a7d7b7}
html[data-theme="dark"] .rcg-plan:not(.rcg-plan-dest) .rcg-plan-badge{background:#1b2431;color:#b4bdca}
html[data-theme="dark"] .rcg-btn-expand{border-color:#344054;color:#d0d5dd}
html[data-theme="dark"] .sb-propose{background:#151c27;border-color:var(--line)}
html[data-theme="dark"] .sb-propose p{color:#c9d0da}
html[data-theme="dark"] .step-img{background:#fdfdfd}
html[data-theme="dark"] .service-img{border-color:var(--line)}
html[data-theme="dark"] .pricecard .ico-list svg{color:#d0d5dd}
html[data-theme="dark"] .price-img{border-color:var(--line)}
/* ── Barra lateral (izquierda): tema claro/oscuro y volver arriba ──
   Se adapta al fondo que tiene detrás: .on-dark lo pone /js/lw-theme.js */
.side-rail{position:fixed;left:14px;top:50%;transform:translateY(-58%);z-index:40;display:flex;flex-direction:column;align-items:center;gap:16px;pointer-events:none}
.side-rail>*{pointer-events:auto}
.theme-switch{display:flex;flex-direction:column;gap:4px;padding:4px;border-radius:999px;background:rgba(255,255,255,.78);border:1px solid rgba(16,24,40,.12);box-shadow:0 8px 24px rgba(16,24,40,.12);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:background .3s,border-color .3s,box-shadow .3s}
.theme-switch button{writing-mode:vertical-rl;transform:rotate(180deg);display:flex;align-items:center;gap:7px;min-width:34px;padding:12px 7px;border:0;border-radius:999px;background:transparent;color:#475467;font:600 12.5px/1 "Inter",sans-serif;letter-spacing:.02em;cursor:pointer;transition:background .3s,color .3s}
.theme-switch button svg{width:15px;height:15px;transform:rotate(90deg);flex:0 0 auto}
.theme-switch button:hover{color:#101828}
.theme-switch button[aria-pressed="true"],.theme-switch button[aria-pressed="true"]:hover{background:#101828;color:#fff}
.to-top{writing-mode:vertical-rl;transform:rotate(180deg);display:flex;align-items:center;gap:12px;padding:6px 4px;border:0;background:none;color:#344054;font:600 12.5px/1 "Inter",sans-serif;letter-spacing:.06em;cursor:pointer;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,color .3s,background .3s}
.to-top.show{opacity:1;visibility:visible}
.to-top i{display:block;width:1.5px;height:36px;background:currentColor;opacity:.6;transition:height .2s}
.to-top:hover{color:#101828}
.to-top:hover i{height:48px}
.theme-switch button:focus-visible,.to-top:focus-visible{outline:3px solid #f4c430;outline-offset:2px}
/* Sobre fondo oscuro (foto, vídeo, secciones oscuras o tema oscuro) */
.theme-switch.on-dark{background:rgba(10,14,20,.35);border-color:rgba(255,255,255,.28);box-shadow:0 8px 24px rgba(0,0,0,.3)}
.theme-switch.on-dark button{color:rgba(255,255,255,.78)}
.theme-switch.on-dark button:hover{color:#fff}
.theme-switch.on-dark button[aria-pressed="true"],.theme-switch.on-dark button[aria-pressed="true"]:hover{background:rgba(255,255,255,.92);color:#101828}
.to-top.on-dark{color:rgba(255,255,255,.85)}
.to-top.on-dark:hover{color:#fff}
@media(max-width:760px){
  /* En móvil: la misma píldora vertical del ordenador (Claro arriba, Oscuro abajo), fina y pegada
     al borde izquierdo para no tapar el texto. Al bajar aparece debajo la línea «Volver arriba». */
  .side-rail{left:2px;right:auto;top:auto;bottom:96px;transform:none;flex-direction:column;gap:12px}
  .theme-switch{padding:2px;gap:2px}
  .theme-switch button{min-width:24px;padding:9px 4px;gap:5px;font-size:10.5px}
  .theme-switch button svg{width:12px;height:12px}
  .to-top{gap:8px;padding:2px;font-size:10.5px}
  .to-top i{height:26px}
  .to-top:hover i{height:26px}
  /* El contenido se aparta lo justo para que la píldora no tape el texto (igual que en tablet) */
  main .wrap,section .wrap,footer .wrap,.footer-wrap,.full-footer .wrap{padding-left:22px!important}
  /* Mientras se ve el aviso de cookies no se ponen encima de sus botones */
  #cookie-banner:not(.hidden) ~ .side-rail{display:none}
}
/* Desde tablet hasta las pantallas en las que el margen lateral ya es más ancho que la barra vertical
   (portátiles de 13 a 16" incluidos): el contenido se aparta lo justo para que la barra no tape el texto.
   En pantallas anchas la fórmula da 0 y no cambia nada. */
@media(min-width:761px){
  section .wrap{padding-left:max(0px,calc(78px - max(20px,(100vw - var(--max,1180px)) / 2)))}
  .footer-wrap{padding-left:max(0px,calc(78px - max(40px,(100vw - 1440px) / 2)))}
}
@media print{.side-rail{display:none}}

/* Página de reseñas */
html[data-theme="dark"] .rhero{background:linear-gradient(180deg,#0e131b 0%,#111824 100%);border-color:var(--line)}
html[data-theme="dark"] .rgrid-wrap{background:var(--bg)}
html[data-theme="dark"] .rform{background:var(--soft);border-color:var(--line)}
html[data-theme="dark"] .rcard,html[data-theme="dark"] .fcard,html[data-theme="dark"] .rlink{background:#151c27;border-color:var(--line)}
html[data-theme="dark"] .rcard.dest{border-color:#f4c430;box-shadow:none}
html[data-theme="dark"] .rcard p,html[data-theme="dark"] .rform .lead,html[data-theme="dark"] .rlink{color:#c9d0da}
html[data-theme="dark"] .rcard .av{background:#f4c430;color:#1d1d1d}
html[data-theme="dark"] .rcard .who span,html[data-theme="dark"] .rcard time,html[data-theme="dark"] .rsum small,html[data-theme="dark"] .rempty,html[data-theme="dark"] .fld small{color:#98a2b3}
html[data-theme="dark"] .fld label{color:#d0d5dd}
html[data-theme="dark"] .fld input,html[data-theme="dark"] .fld textarea,html[data-theme="dark"] .fld select{background:#0e131b;border-color:#344054;color:#f2f4f7}
html[data-theme="dark"] .starpick label{color:#3a4556}
html[data-theme="dark"] .starpick input:checked ~ label,html[data-theme="dark"] .starpick label:hover,html[data-theme="dark"] .starpick label:hover ~ label{color:#f4c430}
html[data-theme="dark"] .rlink code{background:#1b2431}
html[data-theme="dark"] .fmsg.ok{background:#173404;color:#e7f3df}
html[data-theme="dark"] .fmsg.err{background:#55160c;color:#fde7e7}
html[data-theme="dark"] [style*="color:#475467"]{color:#b4bdca!important}
html[data-theme="dark"] #mobile a[style*="color:#000"],html[data-theme="dark"] .navlinks a[style*="color:#000"]{color:#fff!important}

/* ── Contraste suficiente en modo claro (WCAG AA) ── */
html:not([data-theme="dark"]) .service .index,html:not([data-theme="dark"]) .steps .step .n,
html:not([data-theme="dark"]) .project .projectmeta,html:not([data-theme="dark"]) .projectlink.muted,
html:not([data-theme="dark"]) #rform .fld small,html:not([data-theme="dark"]) .rcard time{color:#667085}
html:not([data-theme="dark"]) .browserbar-static span{color:#5f6b7a}
html:not([data-theme="dark"]) .acred-txt em,html:not([data-theme="dark"]) .rh-more{color:#8a6a00}
.pfilter small{opacity:.85}
.footer-copy span[style*="opacity"]{opacity:.8!important}
.to-top{min-width:24px;min-height:24px}

/* Menú con Blog: cabe sin pegarse al botón en pantallas medianas */
@media(min-width:921px) and (max-width:1120px){.navlinks{gap:14px!important}.navlinks a{font-size:13.5px}header .btn-dark{padding:0 14px;font-size:14px}}
@media(min-width:921px) and (max-width:1010px){.navlinks{gap:10px!important}.navlinks a{font-size:13px}.brand img{height:40px!important}}

/* Pie: eBay Developers y Meta for Developers centrados en móvil, como el resto del bloque de marca */
@media(max-width:900px){.footer-devs{justify-content:center}}
