/* Pastor Hub 1.0.6 · diseño común a todo el ecosistema */
:root{--ph-navy:#101939;--ph-midnight:#0d1432;--ph-indigo:#2b2465;--ph-purple:#6734e0;--ph-violet:#8f3fee;--ph-lilac:#f0eaff;--ph-ink:#141b3b;--ph-muted:#5d6681;--ph-border:#dce0f2;--ph-white:#fff;--ph-shadow:0 12px 28px rgba(25,20,76,.09)}
body.ph-standalone{margin:0!important;background:#f4f5fc!important;color:var(--ph-ink);font:14px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
body.ph-standalone *{box-sizing:border-box}
body.ph-standalone #wpadminbar{display:none!important}body.ph-standalone a{text-decoration:none}
.ph-root{min-height:100vh;min-height:100dvh}.ph-svg{display:inline-block;flex:none;width:22px;height:22px;vertical-align:middle;stroke:currentColor}
.ph-button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:45px;padding:11px 18px;border:1px solid transparent;border-radius:9px;font-size:13px;font-weight:750;line-height:1.3;cursor:pointer;transition:transform .16s,filter .16s,box-shadow .16s}
.ph-button:hover{filter:brightness(1.07);transform:translateY(-1px)}.ph-button:focus-visible,.ph-app a:focus-visible,.ph-auth-panel a:focus-visible{outline:3px solid #bca4ff;outline-offset:3px}
.ph-primary{color:#fff!important;background:linear-gradient(115deg,#9748fa,#4c1bc5);box-shadow:0 5px 13px #5021b62c}.ph-primary .ph-svg{width:16px;height:16px}
.ph-alert{border-radius:12px;padding:13px 17px;margin:18px 0;border:1px solid #d8c8f4;background:#f4eeff;color:#513493}.ph-alert-error{border-color:#f0b9c0;background:#fff1f3;color:#9e213c}
/* Acceso: ilustración decorativa a la izquierda y formulario nítido a la derecha. */
.ph-auth-outer{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:34px 22px;background:radial-gradient(ellipse at 12% 0%,#e4e0ff 0%,#e2e1fc 26%,transparent 55%),linear-gradient(140deg,#e9eaff 0%,#b5a9ef 53%,#262265 100%);position:relative;overflow:hidden}
.ph-auth-outer:before,.ph-auth-outer:after{content:"";position:absolute;width:100%;height:250px;bottom:-120px;left:-18%;border-radius:50%;transform:rotate(-8deg);background:linear-gradient(90deg,#4c2dc7,#a258ff);opacity:.6;pointer-events:none}
.ph-auth-outer:after{bottom:-178px;left:20%;background:#191b58;opacity:.72}
.ph-auth-layout{display:grid;grid-template-columns:minmax(250px,1fr) minmax(330px,440px);align-items:center;gap:clamp(28px,6vw,95px);width:min(1100px,100%);position:relative;z-index:1}
.ph-auth-story{padding:28px 0 30px}.ph-auth-story-logo{display:block;width:min(345px,100%);height:auto;margin:0 0 14px}.ph-auth-story-kicker{font-size:11px;color:#444284;font-weight:800;letter-spacing:.16em;margin:0 0 37px}.ph-auth-story h2{color:#13163e;font-size:clamp(29px,3.5vw,52px);line-height:1.12;letter-spacing:-1.8px;margin:0 0 18px}.ph-auth-story h2 span{color:#5130ba}.ph-auth-story>p:not(.ph-auth-story-kicker){color:#414368;font-size:16px;max-width:470px;line-height:1.65;margin:0 0 30px}
.ph-story-feature{display:flex;align-items:center;gap:13px;color:#252653;font-size:14px;font-weight:650;margin:15px 0}.ph-story-feature .ph-svg{width:37px;height:37px;padding:8px;border-radius:10px;background:#6a30d8;color:#fff;box-shadow:0 6px 14px #5438a833}.ph-wp-label{display:inline-flex;margin-top:26px;padding:9px 17px;border:1px solid #ffffff8c;border-radius:30px;background:#ffffff92;color:#35325f;font-weight:750;font-size:12px}
.ph-auth-panel{width:100%;padding:35px 38px 28px;border-radius:23px;border:1px solid #ffffffa3;background:#ffffffee;box-shadow:0 24px 64px #14104144;backdrop-filter:blur(10px)}.ph-auth-logo{display:block;width:150px;height:auto;margin:0 auto 5px}.ph-kicker{text-align:center;color:#7967b2;font-size:10px;font-weight:800;letter-spacing:.14em;margin:0 0 22px}.ph-auth-panel h1{text-align:center;font-size:24px;letter-spacing:-.65px;margin:0 0 8px;color:var(--ph-ink);line-height:1.22}.ph-auth-panel>p:not(.ph-kicker){text-align:center;color:#636a85;margin:0 0 19px;font-size:12.5px;line-height:1.45}
.ph-form{display:grid;gap:4px;margin:18px 0 0}.ph-form>label{font-size:12px;color:#293151;font-weight:760;margin-top:8px}.ph-input{position:relative;display:flex;align-items:center;min-height:45px;border:1px solid #cdd2ed;border-radius:9px;background:#f8f9ff;transition:border-color .15s,box-shadow .15s}.ph-input:focus-within{border-color:#8552e5;box-shadow:0 0 0 3px #8b5be92b}.ph-input>.ph-svg{position:absolute;left:11px;width:18px;height:18px;color:#545b85}.ph-input input{display:block;width:100%;min-height:43px;padding:10px 12px 10px 40px;font:inherit;font-size:13px;color:#1d2448;border:0;border-radius:9px;background:transparent;outline:none}.ph-input input::placeholder{color:#848ba7}.ph-input input:focus{box-shadow:none;outline:none}.ph-show-password{flex:none;background:transparent;color:#593bb0;border:0;border-left:1px solid #daddf1;padding:8px 12px;font-size:12px;font-weight:800;cursor:pointer}.ph-form-meta{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:10px 0 0}.ph-form-meta a,.ph-auth-switch a,.ph-support a{color:#6730d7;font-weight:780}.ph-form-meta a{font-size:11px}.ph-remember{display:flex;align-items:center;gap:7px;font-size:12px!important;color:#424b71;font-weight:550!important;white-space:nowrap;margin:0!important}.ph-remember input{width:16px;height:16px;accent-color:var(--ph-purple)}.ph-form>.ph-button{width:100%;margin-top:17px;font-size:14px;min-height:46px;border-radius:10px}.ph-auth-switch{margin:19px 0 10px!important}.ph-support{border-top:1px solid #eae6f6;padding-top:14px;margin:14px 0 0!important;font-size:12px}.ph-honey{position:absolute;left:-99999px;width:1px;height:1px;overflow:hidden}
/* Portal y menú */
.ph-app{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh;min-height:100dvh}.ph-sidebar{display:flex;flex-direction:column;gap:17px;padding:24px 14px 18px;background:linear-gradient(165deg,#101936 0%,#17194c 58%,#20205c 100%);color:#fff;min-width:0}.ph-sidebar-brand{display:block;padding:4px 8px 9px;max-width:207px}.ph-sidebar-brand img{width:100%;height:auto;max-height:62px;object-fit:contain;object-position:left}.ph-side-nav{display:grid;align-content:start;gap:7px}.ph-side-nav a{display:flex;align-items:center;gap:13px;min-height:46px;padding:10px 12px;border-radius:10px;color:#f0edff;font-size:13px;font-weight:680;line-height:1.2;transition:background .15s}.ph-side-nav .ph-svg{width:22px;height:22px;color:#f3edff}.ph-side-nav a:hover{background:#ffffff1c;color:#fff}.ph-side-nav a.ph-side-active{background:linear-gradient(95deg,#096d93,#5d2abe);box-shadow:0 6px 15px #0003}.ph-side-nav a.ph-side-app{background:linear-gradient(110deg,#9d39f2,#5620c6);color:#fff;font-weight:800;min-height:52px;margin-top:2px}.ph-side-nav a.ph-side-app:hover{filter:brightness(1.14)}.ph-side-nav a.ph-side-app .ph-svg:last-child:not(:first-child){width:15px;height:15px;margin-left:auto}.ph-side-label{color:#bbc0de;font-size:10px;font-weight:800;letter-spacing:.08em;margin:15px 8px 0}.ph-side-divider{height:1px;background:#ffffff27;margin:13px 9px}.ph-sidebar-foot{margin-top:auto;padding:16px 7px 2px;border-top:1px solid #ffffff32;display:grid;grid-template-columns:33px 1fr;column-gap:10px;align-items:center;overflow-wrap:anywhere}.ph-sidebar-avatar{grid-row:1/3;display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#ffffff21;color:#fff}.ph-sidebar-foot strong{font-size:12px}.ph-sidebar-foot small{font-size:10px;color:#c2c5e6}.ph-sidebar-foot a{display:flex;align-items:center;gap:9px;grid-column:1/-1;color:#e9e0ff;font-size:12px;font-weight:740;margin-top:15px;padding:8px}.ph-sidebar-foot a .ph-svg{width:19px;height:19px}
.ph-main{min-width:0;padding:0 28px 22px;background:#f6f7fe}.ph-header{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:76px;margin:0 -28px;padding:11px 25px;background:linear-gradient(90deg,#202957,#22204f);color:white}.ph-header-brand{display:none}.ph-header-brand img{width:182px;height:44px;object-fit:contain;object-position:left}.ph-header-account{display:flex;align-items:center;gap:10px;margin-left:auto}.ph-header-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#fff;color:#3f3487}.ph-header-avatar .ph-svg{width:21px;height:21px}.ph-header-user{font-weight:730;font-size:13px}.ph-header-account a{display:inline-flex;align-items:center;gap:7px;color:#e6deff;font-size:12px;font-weight:650;margin-left:12px}.ph-header-account a .ph-svg{width:17px;height:17px}
.ph-hero{position:relative;isolation:isolate;overflow:hidden;background:#243466 url('hero-sunrise.svg') center center/cover no-repeat;border-radius:15px;min-height:194px;padding:31px 32px;margin:22px 0 28px;color:#fff;box-shadow:0 8px 20px #24255714}.ph-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#14244be8 0%,#1c255ba3 49%,transparent 95%);z-index:-1}.ph-eyebrow{font-size:10px;font-weight:800;letter-spacing:.14em;color:#e8d9ff;margin:0 0 10px}.ph-hero h1{font-size:clamp(24px,3.15vw,35px);margin:0 0 10px;color:white;line-height:1.19;letter-spacing:-.9px}.ph-hero p{max-width:470px;font-size:14px;line-height:1.65;color:#f5efff;margin:0}.ph-section{margin-bottom:28px;scroll-margin-top:20px}.ph-heading{display:flex;justify-content:space-between;gap:16px;margin-bottom:16px}.ph-heading h2{font-size:22px;color:#141a37;letter-spacing:-.5px;margin:0 0 5px}.ph-heading p{font-size:13px;color:#646d87;margin:0}.ph-app-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:17px}.ph-app-card,.ph-license-card{background:#fff;border:1px solid var(--ph-border);border-radius:15px;box-shadow:var(--ph-shadow)}.ph-app-card{display:flex;flex-direction:column;gap:9px;min-height:245px;padding:21px}.ph-card-top{display:flex;justify-content:space-between;align-items:flex-start}.ph-card-top img{width:62px;height:62px;border-radius:15px}.ph-app-card h3{margin:7px 0 0;font-size:19px;letter-spacing:-.35px;color:#11173a}.ph-app-card p{font-size:13px;color:#5b647d;line-height:1.6;margin:0;flex:1}.ph-status{display:inline-flex;align-items:center;align-self:flex-start;font-size:11px;font-weight:760;background:#f2ecff;color:#6134b4;border-radius:24px;padding:5px 11px}.ph-status-active{background:#dcf7e9;color:#14603d}.ph-app-card .ph-button{width:100%;margin-top:6px}.ph-app-card--active{border-color:#d5c9ee}.ph-app-card--locked{background:#fcfbff}.ph-app-card--locked .ph-card-top img{filter:grayscale(.45);opacity:.75}.ph-access-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center}.ph-access-icon--open{color:#17744c;background:#e1f6e9}.ph-access-icon--closed{color:#7456a3;background:#f0eaff}.ph-access-icon svg{width:21px;height:21px}.ph-button-locked,.ph-button-locked:hover{background:#e9e8f2;color:#777a91!important;cursor:not-allowed;filter:none;transform:none;box-shadow:none}.ph-request-link{display:block;text-align:center;color:#6b31c5!important;font-size:12px;font-weight:770;padding:5px 0;text-decoration:underline!important;text-underline-offset:3px}
.ph-license-card{padding:6px 18px}.ph-license-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 0;border-bottom:1px solid #eef0f7}.ph-license-row:last-child{border:0}.ph-license-row div{display:grid;gap:5px}.ph-license-row strong{font-size:14px}.ph-license-row small{color:#656e89;font-size:12px}.ph-license-row a{color:#6130be;font-weight:760;font-size:12px;white-space:nowrap}.ph-footer{color:#8189a4;text-align:center;font-size:12px;margin:35px 0 10px}
.ph-admin .ph-admin-brand{padding:12px 0 4px}.ph-admin .ph-admin-brand img{width:195px;height:auto}.ph-admin .ph-admin-search{margin:20px 0}
@media(max-width:960px){.ph-app{grid-template-columns:208px minmax(0,1fr)}.ph-sidebar{padding:21px 11px}.ph-main{padding:0 20px 20px}.ph-header{margin:0 -20px}.ph-hero{padding:29px 25px}}
@media(max-width:760px){.ph-auth-layout{grid-template-columns:1fr;max-width:510px;gap:15px}.ph-auth-story{text-align:center;padding:0}.ph-auth-story-logo{max-width:175px;margin:0 auto}.ph-auth-story-kicker,.ph-auth-story>h2,.ph-auth-story>p:not(.ph-auth-story-kicker),.ph-story-feature,.ph-wp-label{display:none}.ph-auth-outer{padding:20px 12px}.ph-auth-panel{padding:25px 24px;border-radius:18px}.ph-app{display:flex;flex-direction:column;padding-bottom:72px}.ph-sidebar{position:fixed;bottom:0;left:0;right:0;z-index:15;padding:6px 8px calc(7px + env(safe-area-inset-bottom));background:#131b43;box-shadow:0 -6px 22px #090d3430}.ph-sidebar-brand,.ph-sidebar-foot,.ph-side-label,.ph-side-divider{display:none!important}.ph-side-nav{display:flex;align-items:stretch;justify-content:space-around;gap:4px;overflow-x:auto;scrollbar-width:none}.ph-side-nav::-webkit-scrollbar{display:none}.ph-side-nav a{flex:1 1 0;min-width:58px;min-height:54px;max-width:96px;padding:6px 3px;gap:4px;flex-direction:column;justify-content:center;text-align:center;font-size:10px;line-height:1.1}.ph-side-nav a .ph-svg{width:20px;height:20px}.ph-side-nav a.ph-side-app{min-height:54px;margin:0}.ph-side-nav a.ph-side-app .ph-svg:last-child:not(:first-child){display:none}.ph-side-nav a span{max-width:100%;white-space:normal;overflow-wrap:break-word}.ph-main{padding:0 14px 18px}.ph-header{margin:0 -14px;padding:11px 15px;min-height:67px}.ph-header-brand{display:block}.ph-header-brand img{width:142px;height:43px}.ph-header-user{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ph-header-account a{font-size:0;margin-left:0}.ph-header-account a .ph-svg{width:20px;height:20px}.ph-hero{min-height:160px;margin:15px 0 23px;padding:24px 21px}.ph-hero h1{font-size:25px}.ph-hero p{max-width:85%;font-size:12.5px}.ph-heading h2{font-size:21px}.ph-app-grid{grid-template-columns:1fr}.ph-app-card{min-height:0}.ph-license-row{flex-direction:column;align-items:flex-start}.ph-license-row a{white-space:normal}}
@media(max-width:375px){.ph-auth-panel{padding:23px 17px}.ph-auth-panel h1{font-size:22px}.ph-header-brand img{width:118px}.ph-side-nav a{font-size:9px;min-width:51px}}
@media(prefers-reduced-motion:reduce){.ph-button,.ph-side-nav a,.ph-input{transition:none}}

@media(max-width:760px){.ph-side-nav a.ph-side-support,.ph-side-nav a.ph-side-admin{display:none!important}}

/* v1.0.7: logos oficiales. El logo Pastor Hub se reserva para el ecosistema. */
.ph-auth-story-logo{width:min(440px,100%);max-height:135px;object-fit:contain;object-position:left}
.ph-auth-logo{width:min(245px,92%);max-height:75px;object-fit:contain}
.ph-sidebar-brand{max-width:215px}.ph-sidebar-brand img{max-height:60px;object-fit:contain}
.ph-header-brand img{max-height:46px;object-fit:contain}
.ph-side-nav a.ph-side-app .ph-side-app-icon{display:block;flex:none;width:33px;height:33px;max-width:33px;object-fit:contain;border-radius:9px;box-shadow:0 2px 7px #0004}
.ph-app-card .ph-card-top img{object-fit:cover;background:#11143d;box-shadow:0 3px 10px #1b17401c}
@media(max-width:760px){.ph-auth-story-logo{max-width:200px;max-height:64px;margin-inline:auto}.ph-header-brand img{width:150px;max-height:43px}.ph-side-nav a.ph-side-app .ph-side-app-icon{width:23px;height:23px;max-width:23px;border-radius:6px}}
