/* ==========================================================================
   Dark agency theme for /es/woocommerce-developer-barcelona/ only
   (html.wdark is added by the router on that page).
   Black base, deep-teal gradients, lime accents, Urbanist.
   ========================================================================== */
html.wdark{
  --paper:#05090a; --card:#0c1415; --ink:#f3f6f5; --ink-2:#b8c4c2; --muted:#7f8f8d;
  --line:rgba(255,255,255,.10); --line-2:rgba(255,255,255,.06);
  --lime:#B6F03C; --lime-ink:#B6F03C;
  --teal:#0d2c2e; --teal-2:#14484b;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4),0 .5rem 1.5rem -.75rem rgba(0,0,0,.6);
  --shadow-md:0 2px 4px rgba(0,0,0,.4),0 1.5rem 3rem -1.5rem rgba(0,0,0,.8);
  background:#05090a; color-scheme:dark;
}
html.wdark body{background:#05090a !important;color:var(--ink)}
html.wdark #cloud{opacity:.18 !important;filter:hue-rotate(40deg)}
html.wdark ::selection{background:var(--lime);color:#05090a}

/* type */
html.wdark :is(h1,h2,h3,h4,.display){color:#fff !important}
html.wdark :is(p,li,.lead,.lede,td,dd){color:var(--ink-2)}
html.wdark .mono{color:var(--muted) !important}
html.wdark a{color:inherit}
html.wdark hr.rule{border:0;border-top:1px solid var(--line);opacity:1;margin:0}

/* sections: black → teal gradients, alternating */
html.wdark .sec{background:transparent;position:relative}
html.wdark main > .sec:nth-of-type(odd),html.wdark body > .sec:nth-of-type(odd){background:transparent}
html.wdark .sec#services,html.wdark .sec:has(.ag-cases),html.wdark .sec:has(.tiers),html.wdark .sec:has(.faq){
  background:linear-gradient(180deg,#05090a 0%,#0a1c1d 55%,#0d2c2e 100%)}
html.wdark .sec:has(.ag-compare),html.wdark .sec:has(.flow){
  background:radial-gradient(90% 120% at 100% 0%,#14484b 0%,#0d2c2e 40%,#05090a 100%)}
html.wdark .sec:has(.cta-band),html.wdark .sec:has(.ag-contact){
  background:radial-gradient(70% 100% at 50% 0%,#123b3d 0%,#05090a 70%)}

/* hero */
html.wdark .ag-hero{background:radial-gradient(60% 80% at 15% 10%,rgba(182,240,60,.10),transparent 60%),radial-gradient(80% 90% at 85% 100%,#0d2c2e 0%,#05090a 70%) !important;border-bottom:1px solid var(--line)}
html.wdark .ag-hero h1 em{color:var(--lime) !important;-webkit-text-fill-color:var(--lime)}
html.wdark .ag-visual{background:#0c1415 !important;border-color:var(--line) !important}
html.wdark .ag-visual::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(5,9,10,.55) 0%,transparent 35%),linear-gradient(0deg,rgba(5,9,10,.65) 0%,transparent 45%);z-index:1}
html.wdark .ag-panel{background:rgba(12,20,21,.78) !important;border:1px solid rgba(255,255,255,.14) !important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:#fff;z-index:2}
html.wdark .ag-panel *{color:#e6eceb}
html.wdark .ag-row{background:rgba(255,255,255,.04) !important;border-color:rgba(255,255,255,.08) !important}
html.wdark .ag-pill,html.wdark .ag-st{background:rgba(182,240,60,.14) !important;color:var(--lime) !important;border-color:rgba(182,240,60,.35) !important}
html.wdark .ag-st.prog{background:rgba(246,180,14,.14) !important;color:#f6c55a !important;border-color:rgba(246,180,14,.35) !important}
html.wdark .hero-meta strong{color:#fff}
html.wdark .hero-meta span,html.wdark .ag-micro span{color:var(--muted)}
html.wdark .hero-meta{border-color:var(--line) !important}

/* buttons */
html.wdark .btn{border-radius:999px}
html.wdark .btn.lime{background:var(--lime) !important;color:#05090a !important;border-color:var(--lime) !important}
html.wdark .btn.lime:hover{background:#c9ff67 !important}
html.wdark .btn.ghost,html.wdark .btn:not(.lime){background:transparent !important;color:#fff !important;border:1px solid rgba(255,255,255,.28) !important}
html.wdark .btn.ghost:hover,html.wdark .btn:not(.lime):hover{background:#fff !important;color:#05090a !important}

/* moving gallery */
html.wdark .woo-gal{background:#05090a;border-bottom:1px solid var(--line) !important}
html.wdark .woo-gal img{border:1px solid rgba(255,255,255,.08)}

/* generic cards on dark */
html.wdark :is(.ag-pain,.svc,.ag-ai-card,.ag-case,.ag-reason,.ag-compare-col,.tier,.fstep,.qa,.local-card,.es-guide,.ag-cap,.ag-wl,.cta-band,.seo-cluster-grid > a,.vf-related a){
  background:linear-gradient(180deg,#0e191a 0%,#091112 100%) !important;border:1px solid var(--line) !important;color:var(--ink-2) !important;box-shadow:none !important}
html.wdark :is(.svc,.ag-ai-card,.ag-case,.tier,.local-card,.es-guide,.ag-reason){transition:border-color .3s,transform .3s}
html.wdark :is(.svc,.ag-ai-card,.ag-case,.tier,.local-card,.es-guide,.ag-reason):hover{border-color:rgba(182,240,60,.4) !important;transform:translateY(-3px)}
html.wdark .grid-svc{background:transparent !important;border-color:var(--line) !important;gap:1rem}
html.wdark .grid-svc .svc{border-radius:1.25rem}
html.wdark :is(.svc,.tier,.ag-ai-card) li{color:var(--ink-2)}
html.wdark :is(.svc,.tier,.ag-ai-card) li::before,html.wdark .svc li::marker{color:var(--lime);background:var(--lime)}
html.wdark .idx,html.wdark .ag-case .meta,html.wdark .bestfor,html.wdark .ag-cap-meta *{color:var(--muted) !important}
html.wdark .ag-case .stats strong,html.wdark .tier .price,html.wdark .ag-ai-card .price{color:#fff !important}
html.wdark .ag-case .stats{border-color:var(--line) !important}
html.wdark :is(.tier,.ag-ai-card).feat{background:linear-gradient(160deg,#14484b 0%,#0d2c2e 45%,#091112 100%) !important;border-color:rgba(182,240,60,.45) !important}
html.wdark .ag-compare-col.good{background:linear-gradient(160deg,#14484b 0%,#0b2224 60%,#091112 100%) !important;border-color:rgba(182,240,60,.35) !important}
html.wdark .ag-cases-visual{border-color:var(--line) !important;box-shadow:0 2rem 4rem -2rem rgba(0,0,0,.9) !important}
html.wdark .ag-quote{background:linear-gradient(120deg,#0d2c2e,#05090a) !important;border:1px solid var(--line) !important}
html.wdark .ag-quote p{color:#fff}
html.wdark .f-ico{background:rgba(182,240,60,.12) !important;color:var(--lime) !important;border-color:rgba(182,240,60,.3) !important}
html.wdark .f-arrow{color:var(--muted) !important}
html.wdark .qa{border-radius:1rem}
html.wdark .qa button,html.wdark .qa summary{color:#fff !important;background:transparent !important}
html.wdark .ans,html.wdark .ans p{color:var(--ink-2) !important}

/* forms */
html.wdark :is(input,select,textarea){background:#0c1415 !important;color:#fff !important;border:1px solid rgba(255,255,255,.16) !important}
html.wdark :is(input,textarea)::placeholder{color:#6f807e !important}
html.wdark label{color:var(--ink-2)}
html.wdark .ag-assure li{color:var(--ink-2)}

/* SEO cluster + es-guides injected blocks */
html.wdark .seo-cluster-nav,html.wdark .es-guides,html.wdark .local-intent{background:#05090a !important;color:var(--ink-2) !important;border-color:var(--line) !important}
html.wdark .seo-cluster-nav *{color:inherit}
html.wdark .seo-cluster-nav h2,html.wdark .es-guides h2,html.wdark .es-guide b,html.wdark .local-card strong,html.wdark .local-card h3{color:#fff !important}
html.wdark .es-guide small,html.wdark .seo-cluster-k{color:var(--lime) !important}
html.wdark .es-guide span,html.wdark .local-card p,html.wdark .local-card span{color:var(--ink-2) !important}

/* nav pill on dark */
html.wdark .nav-inner{background:rgba(12,20,21,.72) !important;border:1px solid rgba(255,255,255,.12) !important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 1rem 2.5rem -1rem rgba(0,0,0,.8) !important}
html.wdark .nav-links a,html.wdark .lang-btn,html.wdark .lang-cur{color:#dfe7e6 !important}
html.wdark .nav-links a:hover{color:#fff !important}
html.wdark .nav .btn{background:var(--lime) !important;color:#05090a !important;border-color:var(--lime) !important}
html.wdark .brand-logo{filter:invert(1) brightness(1.2)}
html.wdark .lang-btn{border-color:rgba(255,255,255,.2) !important}
html.wdark .lang-menu{background:#0c1415 !important;border-color:var(--line) !important}
html.wdark .lang-menu a{color:#dfe7e6 !important}
html.wdark .burger span,html.wdark .burger span::before,html.wdark .burger span::after{background:#fff !important}
html.wdark .ag-quote-by,html.wdark .ag-quote-by b{color:#cfd8d6 !important}
html.wdark .ag-quote-by b{color:#fff !important}

/* ---- polish pass: cards that had no box of their own get real padding ---- */
html.wdark .ag-pains{gap:1rem !important}
html.wdark .ag-pain{padding:1.5rem 1.6rem 1.6rem !important;border-radius:1.15rem !important;column-gap:1rem !important;grid-template-columns:auto minmax(0,1fr) !important;align-items:start}
html.wdark .ag-pain > :first-child{padding-top:.3rem}
html.wdark .ag-pain h3{margin:0 0 .55rem !important}
html.wdark .ag-pain p{margin:0 !important}
html.wdark .ag-reasons{display:grid;gap:.85rem !important}
html.wdark .ag-reason{padding:1.3rem 1.5rem !important;border-radius:1.15rem !important;column-gap:1.1rem !important;grid-template-columns:auto minmax(0,1fr) !important;align-items:start}
html.wdark .ag-reason h3,html.wdark .ag-reason b{margin:0 0 .4rem !important}
html.wdark .ag-reason p{margin:0 !important}
html.wdark .ag-reason > :first-child{width:2.4rem;height:2.4rem;display:grid;place-items:center;border-radius:.7rem;background:rgba(182,240,60,.1);border:1px solid rgba(182,240,60,.28);color:var(--lime)}
html.wdark .ag-reason > :first-child svg{width:1.05rem;height:1.05rem}
html.wdark .qa{padding:0 1.4rem !important}
html.wdark .qa > :first-child{padding:1.15rem 0 !important}
html.wdark .qa .ans{padding:0 0 1.2rem !important}
html.wdark .faq{display:grid;gap:.7rem}
html.wdark .grid-svc{border:0 !important;background:none !important;border-radius:0 !important;box-shadow:none !important;overflow:visible !important;padding:0 !important}
html.wdark .grid-svc .svc{border:1px solid var(--line) !important}
html.wdark :is(.svc,.tier,.ag-ai-card,.ag-compare-col) li::before{border-radius:50% !important;width:.38rem !important;height:.38rem !important}
/* soft transitions: every gradient section fades back to black at both edges */
html.wdark .sec#services,html.wdark .sec:has(.ag-cases),html.wdark .sec:has(.tiers),html.wdark .sec:has(.faq){
  background:linear-gradient(180deg,#05090a 0%,#0b2022 45%,#0d2c2e 70%,#05090a 100%) !important}
html.wdark .sec:has(.ag-cap){padding-top:clamp(3rem,6vw,4.5rem) !important;padding-bottom:clamp(3rem,6vw,4.5rem) !important}
html.wdark .ag-cap{align-items:center;column-gap:1.25rem !important;padding:1.4rem 1.6rem !important}
html.wdark :is(.ag-ai-card,.tier,.ag-compare-col){padding:1.75rem 1.75rem 1.85rem !important}
html.wdark :is(.ag-ai-card,.tier).feat .btn{background:var(--lime) !important;color:#05090a !important;border-color:var(--lime) !important}
html.wdark .sec-head{margin-bottom:clamp(2.25rem,3.5vw,3.25rem) !important}
html.wdark .ag-cases{align-items:stretch !important;gap:1.25rem !important;margin-bottom:1.25rem}
html.wdark .ag-case-list{gap:1rem !important;display:grid}
html.wdark .ag-case{padding:1.6rem 1.75rem !important;border-radius:1.15rem !important}
html.wdark .ag-case h3{margin:.55rem 0 .5rem !important}
html.wdark .ag-case .stats{padding-top:1rem !important;margin-top:1.1rem !important}
html.wdark .ag-cases-visual{aspect-ratio:auto !important;height:100%;min-height:22rem}
html.wdark .ag-cases-visual picture,html.wdark .ag-cases-visual img{height:100%}
html.wdark .ag-quote{margin:1.75rem 0 0 !important;padding:1.75rem 2rem !important;max-width:none !important}
html.wdark .mono + :is(h1,h2){margin-top:1rem !important}
html.wdark :is(h1,h2) + .lead{margin-top:1.1rem !important}
html.wdark .ag-why-head{position:sticky;top:7rem;align-self:start}
html.wdark .ag-why-head .hero-cta{margin-top:1.75rem !important}
html.wdark .ag-wl{margin-top:1.75rem !important;padding:1.4rem 1.6rem !important;gap:1.5rem !important;align-items:center}
html.wdark .tier .badge,html.wdark .ag-ai-card .badge{color:#05090a !important;font-weight:600}
html.wdark .tiers{align-items:stretch !important}
html.wdark .tier{display:flex !important;flex-direction:column}
html.wdark .tier > .btn,html.wdark .tier > a:last-child,html.wdark .ag-ai-card > .btn,html.wdark .ag-ai-card > a:last-child{margin-top:auto !important}
html.wdark .tier .bestfor{margin-bottom:1.4rem !important}
html.wdark .ag-ai-grid{align-items:stretch !important}
html.wdark .ag-ai-card ul{margin-bottom:1.5rem !important}
html.wdark .f-arrow{width:1.9rem;height:1.9rem;border-radius:50%;display:grid !important;place-items:center;background:#05090a;border:1px solid rgba(182,240,60,.35);color:var(--lime) !important}
html.wdark .f-arrow svg{width:.85rem;height:.85rem}
@media (max-width:1100px){html.wdark .f-arrow{display:none !important}}
html.wdark .fstep{padding:1.75rem 1.6rem !important}
html.wdark .fstep .f-ico{margin-bottom:1.1rem}
html.wdark .f-arrow{display:none !important}
html.wdark .qa .ans{padding:0 !important}
html.wdark .faq{border-top:0 !important;margin-top:0 !important}
html.wdark .qa > button{padding:1.3rem 0 !important;font-size:1.15rem !important;color:#fff !important;align-items:center}
html.wdark .qa .ico::before,html.wdark .qa .ico::after{background:var(--lime) !important}
html.wdark .qa.open{border-color:rgba(182,240,60,.35) !important}
html.wdark .ans p{padding:0 2.5rem 1.4rem 0 !important;color:var(--ink-2) !important}
html.wdark .cta-band{flex-direction:row !important;flex-wrap:wrap;justify-content:space-between !important;align-items:center !important;gap:1.5rem 2rem !important;padding:2rem 2.25rem !important;
  background:linear-gradient(120deg,#14484b 0%,#0d2c2e 45%,#091112 100%) !important;border-color:rgba(182,240,60,.25) !important}
html.wdark .cta-band > p{margin:0 !important;max-width:34rem;color:#dfe7e6 !important;font-size:1.05rem}
html.wdark .cta-band > div{justify-content:flex-end !important}
html.wdark .cta-band .btn:not(.ghost){background:var(--lime) !important;color:#05090a !important;border-color:var(--lime) !important}
@media (max-width:760px){html.wdark .cta-band{padding:1.6rem !important}html.wdark .cta-band > div{justify-content:flex-start !important}}
html.wdark .form-card .small,html.wdark .form-card p:last-child{text-align:left !important}
html.wdark .form-card{padding:2rem !important}
html.wdark .ag-contact{gap:clamp(2rem,5vw,4rem) !important;align-items:start}
html.wdark .ag-assure{gap:.9rem !important}
html.wdark .local-card a{color:var(--lime) !important;text-decoration:underline;text-underline-offset:.22em}
html.wdark .local-card{padding:1.75rem !important}
html.wdark .local-grid{gap:1rem !important}
html.wdark .local-note{background:rgba(182,240,60,.05) !important;border-left:3px solid var(--lime) !important;border-radius:.9rem !important;padding:1.05rem 1.35rem !important;margin-top:1rem !important;color:var(--ink-2) !important}
html.wdark .local-note a{color:#fff;text-decoration:underline;text-underline-offset:.2em}
html.wdark .seo-cluster-head{display:block !important;margin-bottom:2.25rem !important}
html.wdark .seo-cluster-head .seo-cluster-k{display:block;margin-bottom:1rem !important}
html.wdark .seo-cluster-head h2{margin:0 0 1rem !important;max-width:24ch}
html.wdark .seo-cluster-grid{gap:1rem !important}
html.wdark .seo-cluster-grid > a{padding:1.5rem 1.6rem !important;transition:border-color .3s,transform .3s}
html.wdark .seo-cluster-grid > a:hover{border-color:rgba(182,240,60,.4) !important;transform:translateY(-3px)}
html.wdark .seo-cluster-grid > a :is(b,strong,h3){color:#fff !important;margin-top:.6rem !important}
html.wdark .seo-cluster-grid > a :is(small,span:first-child){color:var(--lime) !important}
@media (min-width:761px){html.wdark .ag-hero > .wrap{padding-top:clamp(8rem,10vw,9.5rem) !important;padding-bottom:clamp(3.5rem,5vw,4.5rem) !important}}
html.wdark .ag-hero h1{margin-top:1.1rem !important}
html.wdark .ag-panel{right:1.5rem !important;bottom:1.5rem !important;left:1.5rem !important}
@media (max-width:1000px){html.wdark .ag-why-head{position:static}}
