/*
Theme Name: Peloso Taller
Theme URI: https://example.com/
Author: Rafa
Author URI: https://example.com/
Description: Tema oscuro, mobile-first y liviano para el ecosistema Peloso Taller. La lógica del negocio permanece en el plugin Peloso Taller Core.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.2
Text Domain: peloso-taller-theme
Tags: custom-logo, custom-menu, one-column, responsive-layout, accessibility-ready, e-commerce
*/

:root{--pst-bg:#090b0e;--pst-panel:#111419;--pst-line:#292e35;--pst-text:#f5f7fa;--pst-muted:#9da6b2;--pst-red:#e32735;--pst-width:1440px;--pst-radius:20px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 85% 4%,rgba(227,39,53,.10),transparent 25%),var(--pst-bg);color:var(--pst-text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}body.admin-bar .site-header{top:32px}a{color:inherit}img{max-width:100%;height:auto}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.screen-reader-text:focus{clip:auto!important;width:auto;height:auto;top:8px;left:8px;padding:12px;background:#fff;color:#111;z-index:100000}.site-shell{min-height:100vh;display:flex;flex-direction:column}.site-header{position:sticky;top:0;z-index:80;background:rgba(9,11,14,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.07)}.site-header__inner{max-width:var(--pst-width);height:76px;margin:0 auto;padding:0 22px;display:flex;align-items:center;justify-content:space-between;gap:24px}.site-branding{display:flex;align-items:center;gap:12px;min-width:0;text-decoration:none}.custom-logo-link{display:flex}.custom-logo{width:auto;max-width:180px;max-height:48px}.site-branding__fallback{width:43px;height:43px;display:grid;place-items:center;background:linear-gradient(135deg,var(--pst-red),#ac111d);border-radius:13px;font-weight:900}.site-branding__text{min-width:0}.site-title{display:block;font-weight:900;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.site-description{display:block;color:var(--pst-muted);font-size:11px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.site-navigation{display:flex;align-items:center;gap:8px}.site-navigation ul{display:flex;align-items:center;gap:4px;padding:0;margin:0;list-style:none}.site-navigation a{display:block;padding:10px 12px;border-radius:10px;text-decoration:none;color:#d7dce2;font-size:13px;font-weight:700}.site-navigation a:hover,.site-navigation .current-menu-item>a{background:#171b21;color:#fff}.menu-toggle{display:none;width:44px;height:44px;border:1px solid var(--pst-line);border-radius:12px;background:#14171c;color:#fff;cursor:pointer;font-size:20px}.site-main{width:100%;max-width:var(--pst-width);margin:0 auto;padding:34px 22px 60px;flex:1}.site-main--app{max-width:none;padding:18px}.entry-card{max-width:980px;margin:0 auto;padding:clamp(22px,5vw,58px);border:1px solid var(--pst-line);border-radius:var(--pst-radius);background:#111419}.entry-header{margin-bottom:24px}.entry-title{font-size:clamp(34px,6vw,68px);line-height:1.02;letter-spacing:-2px;margin:0}.entry-meta{color:var(--pst-muted);font-size:13px;margin-top:8px}.entry-content>*:first-child{margin-top:0}.entry-content>*:last-child{margin-bottom:0}.entry-content a:not(.wp-block-button__link){color:#ff6671;text-decoration-thickness:1px;text-underline-offset:3px}.entry-content input,.entry-content select,.entry-content textarea,.entry-content button{font:inherit}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.post-card{padding:22px;border:1px solid var(--pst-line);border-radius:var(--pst-radius);background:#111419}.post-card h2{font-size:23px;line-height:1.2;margin:0 0 9px}.post-card h2 a{text-decoration:none}.post-card p{color:var(--pst-muted)}.site-footer{border-top:1px solid rgba(255,255,255,.07);background:#080a0d}.site-footer__inner{max-width:var(--pst-width);margin:0 auto;padding:24px 22px;display:flex;justify-content:space-between;gap:20px;color:var(--pst-muted);font-size:12px}.site-footer a{text-decoration:none}.error-404{text-align:center;max-width:720px;margin:10vh auto}.error-404 strong{display:block;font-size:clamp(80px,18vw,180px);line-height:.8;color:var(--pst-red)}.error-404 h1{font-size:36px}.error-404 a{display:inline-flex;padding:11px 16px;border-radius:12px;background:var(--pst-red);color:#fff;text-decoration:none;font-weight:800}.alignwide{max-width:1200px;margin-left:auto;margin-right:auto}.alignfull{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw)}.wp-block-button__link{border-radius:12px}.woocommerce .site-main{max-width:var(--pst-width)}
body.peloso-app-page{overflow-x:hidden}body.peloso-app-page .site-header,body.peloso-app-page .site-footer{display:none}body.peloso-app-page .site-main{padding:0;max-width:none}body.peloso-app-page .entry-card{max-width:none;padding:0;border:0;background:transparent;border-radius:0}.site-main--portal{max-width:none;padding:18px}body.peloso-public-page{overflow-x:hidden}body.peloso-public-page .entry-card{max-width:none;padding:0;border:0;background:transparent;border-radius:0}
@media(max-width:980px){.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-navigation{position:absolute;left:12px;right:12px;top:68px;display:none;padding:10px;background:#111419;border:1px solid var(--pst-line);border-radius:15px;box-shadow:0 20px 60px rgba(0,0,0,.38)}.site-navigation.is-open{display:block}.site-navigation ul{display:block}.site-navigation a{padding:12px}.menu-toggle{display:block}.site-header__inner{height:68px}.site-description{display:none}}
@media(max-width:782px){body.admin-bar .site-header{top:46px}}
@media(max-width:680px){.site-main{padding:20px 12px 42px}.site-header__inner{padding:0 13px}.site-branding__text{max-width:180px}.entry-card{padding:20px 16px;border-radius:16px}.entry-title{font-size:39px;letter-spacing:-1.4px}.post-grid{grid-template-columns:1fr}.site-footer__inner{flex-direction:column;padding:20px 14px}.site-main--app,.site-main--portal{padding:0}}

/* 1.0.2: continuidad táctil y shell estable; sin lógica de negocio. */
body.peloso-app-page{overscroll-behavior-y:contain;-webkit-tap-highlight-color:transparent}body.peloso-public-page{-webkit-tap-highlight-color:transparent}.menu-toggle:focus-visible,.site-navigation a:focus-visible{outline:3px solid #7db7ff;outline-offset:2px}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
