/*
Theme Name: DS Política
Theme URI: https://dspolitica.es/
Author: DS Política
Description: Tema visual de tres columnas para comunidad política; requiere módulos sociales independientes.
Version: 0.2.4
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: dspolitica
*/
:root{--navy:#0b2541;--navy2:#15385d;--blue:#1256bd;--red:#dc3541;--bg:#edf3fa;--line:#e1e7ef;--muted:#667589;--ink:#17243a}*{box-sizing:border-box}body{margin:0;background:linear-gradient(110deg,#e7f0f9,#f7f9fc 52%,#edf3fa);font:15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink)}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}.ds-container{width:min(1480px,calc(100% - 32px));margin:auto}.ds-header{background:var(--navy);color:#fff}.ds-head-top{min-height:68px;display:flex;align-items:center;gap:25px;justify-content:space-between}.ds-brand{color:white;font-size:28px;font-weight:850;letter-spacing:-.7px;line-height:1}.ds-brand:hover{color:white}.ds-brand-mark{display:inline-block;font-size:28px;margin-right:8px}.ds-brand small{display:block;font-size:11px;font-weight:500;letter-spacing:0;margin:6px 0 0 43px}.ds-search{flex:1;max-width:500px;display:flex;align-items:center;background:#203d5d;border:1px solid #37506d;border-radius:9px;padding:8px 13px}.ds-search input{border:0;outline:0;background:transparent;color:white;width:100%;font-size:15px}.ds-search input::placeholder{color:#d8e1eb}.ds-account{display:flex;align-items:center;gap:14px}.ds-account a{color:white}.ds-nav-wrap{background:#123356;border-top:1px solid #24415f}.ds-nav{min-height:49px;display:flex;align-items:center;justify-content:space-between;gap:12px}.ds-links{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.ds-links a{color:#edf4fd;padding:11px 13px;border-radius:7px;font-weight:600}.ds-links a:hover,.ds-links a:first-child{background:#20518d;text-decoration:none}.ds-new{background:var(--red);padding:9px 16px;border-radius:8px;color:white!important;font-weight:750}.ds-layout{display:grid;grid-template-columns: minmax(205px, 23%) minmax(0,1fr) minmax(225px,23%);gap:14px;padding-top:16px;padding-bottom:38px;align-items:start}.ds-side,.ds-main{min-width:0}.ds-card{background:white;border:1px solid var(--line);border-radius:13px;box-shadow:0 2px 8px #1834560b;margin-bottom:12px;padding:15px}.ds-card h2{font-size:18px;margin:0 0 12px;color:#0f1b2b;line-height:1.3}.ds-card h3{font-size:16px;margin:0 0 8px}.ds-menu-item{display:flex;align-items:center;gap:11px;color:#1b2736;padding:8px 4px;font-weight:520}.ds-menu-item:hover{background:#f2f6fb;border-radius:7px;text-decoration:none}.ds-ico{width:24px;text-align:center;color:#cf3041;font-size:17px}.ds-party{display:flex;align-items:center;gap:10px;padding:7px 0;color:#253044}.ds-party b{font-size:10px;color:#fff;min-width:49px;text-align:center;border-radius:4px;padding:5px 3px}.ds-muted{color:var(--muted);font-size:13px}.ds-hero{position:relative;min-height:215px;display:flex;align-items:center;background:linear-gradient(90deg,rgba(11,37,65,.96),rgba(17,54,94,.85) 47%,rgba(17,54,94,.20)),url('congreso-hero.jpg') right center/cover;border-radius:13px;color:white;padding:25px;overflow:hidden}.ds-hero h1{font-size:clamp(22px,2.2vw,31px);line-height:1.16;margin:0 0 12px;max-width:580px}.ds-hero p{max-width:500px;margin:0 0 17px}.ds-button{background:#145bc4;color:#fff!important;padding:9px 15px;border-radius:7px;display:inline-block;font-weight:700}.ds-button.red{background:var(--red)}.ds-button:hover{text-decoration:none;filter:brightness(.95)}.ds-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;text-align:center;margin-top:12px}.ds-stats strong{display:block;font-size:17px;color:#162338}.ds-stats span{font-size:11px;color:#667589}.ds-section-title{display:flex;align-items:center;justify-content:space-between;font-size:20px;margin:16px 3px 10px}.ds-section-title small{font-size:12px;font-weight:500}.ds-thread{display:flex;align-items:center;gap:12px;border-top:1px solid #edf0f5;padding:12px 0}.ds-thread:first-of-type{border-top:0}.ds-thread-image{width:83px;height:63px;flex-shrink:0;border-radius:8px;background:linear-gradient(135deg,#16427a,#a7c3df);display:flex;align-items:center;justify-content:center;color:white;font-size:27px}.ds-thread-main{flex:1;min-width:0}.ds-thread h3{margin:0 0 5px;font-size:16px}.ds-thread h3 a{color:#121e2d}.ds-tag{display:inline-block;background:#e6efff;color:#184f9b;font-size:11px;border-radius:14px;padding:2px 8px;margin-right:6px}.ds-composer{display:flex;gap:12px;align-items:center}.ds-composer .ds-composer-input{flex:1;border:1px solid #d5deeb;border-radius:8px;padding:12px;color:#68768a}.ds-avatar{display:inline-flex;width:38px;height:38px;border-radius:50%;background:#e5ecf7;color:#1c4f89;align-items:center;justify-content:center;font-weight:800;flex-shrink:0}.ds-feed-item{padding:14px 0;border-top:1px solid #edf0f5}.ds-feed-item:first-of-type{border-top:0}.ds-feed-top{display:flex;gap:10px;align-items:center}.ds-feed-item h3{margin:0;font-size:15px}.ds-feed-item p{margin:10px 0}.ds-feed-actions{display:flex;gap:18px;color:#627187;border-top:1px solid #edf0f5;padding-top:9px;font-size:13px}.ds-notice{border-radius:8px;padding:12px;background:#eef5ff;color:#425b79;font-size:13px}.ds-user{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:13px}.ds-dot{width:8px;height:8px;border-radius:50%;background:#13a650}.ds-progress{height:8px;background:#e5e9f1;border-radius:20px;overflow:hidden}.ds-progress span{display:block;height:100%;width:45%;background:linear-gradient(90deg,#3458d7,#9e32c9)}.ds-verified{color:#1470d6}.ds-footer{background:var(--navy);color:#dce7f3;padding:25px 0}.ds-footer a{color:#fff}.ds-post{background:white;padding:24px;border:1px solid var(--line);border-radius:12px;margin:20px 0}.ds-content{max-width:1000px;margin:28px auto;min-height:45vh}.ds-content h1{font-size:clamp(26px,3vw,38px)}.ds-rank{font-size:12px;color:#5a478f;background:#f0eafa;border-radius:30px;padding:2px 8px}.ds-mobile-label{display:none}@media(max-width:1100px){.ds-layout{grid-template-columns:190px minmax(0,1fr)}.ds-side-right{grid-column:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ds-side-right .ds-card{margin-bottom:0}.ds-search{max-width:360px}}@media(max-width:740px){.ds-head-top{flex-wrap:wrap;padding:13px 0}.ds-brand{font-size:23px}.ds-search{order:3;max-width:none;flex-basis:100%}.ds-account{gap:9px}.ds-nav{align-items:flex-start;padding:8px 0}.ds-links{gap:2px}.ds-links a{font-size:12px;padding:7px}.ds-new{font-size:12px;padding:8px}.ds-layout{display:flex;flex-direction:column}.ds-side,.ds-main{width:100%}.ds-main{order:1}.ds-side-left{order:2}.ds-side-right{order:3;display:block}.ds-side-right .ds-card{margin-bottom:12px}.ds-hero{min-height:220px;padding:18px}.ds-stats{grid-template-columns:repeat(2,1fr)}.ds-thread-image{width:58px;height:55px}.ds-thread h3{font-size:14px}}

/* Identidad visual DS Política v0.2.2 */
.ds-brand{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap;text-decoration:none!important}
.ds-brand-logo{width:46px;height:46px;object-fit:contain;flex:0 0 46px;filter:drop-shadow(0 3px 7px rgba(0,0,0,.2))}
.ds-brand-name{font-size:clamp(20px,2vw,27px);font-weight:850;letter-spacing:-.7px;color:#fff}
.ds-brand small{flex-basis:100%;margin-left:56px;margin-top:-13px}
@media(max-width:600px){.ds-brand-logo{width:37px;height:37px;flex-basis:37px}.ds-brand small{margin-left:47px;font-size:10px}}

/* Identidad institucional 0.2.3: logotipo horizontal sin saltos de línea */
.ds-head-top{min-height:94px;gap:22px}
.ds-brand{display:flex!important;flex:0 1 440px;min-width:0;max-width:440px;align-items:center;flex-wrap:nowrap!important;line-height:normal}
.ds-brand-wordmark{display:block;width:100%;height:auto;max-height:80px;object-fit:contain;object-position:left center;filter:drop-shadow(0 3px 6px rgba(0,0,0,.14))}
.ds-search{min-width:180px}
@media(max-width:980px){.ds-brand{flex-basis:340px}.ds-head-top{gap:12px}}
@media(max-width:740px){.ds-brand{flex-basis:min(72%,360px)}.ds-brand-wordmark{max-height:65px}.ds-head-top{min-height:70px}.ds-search{flex-basis:100%}}
@media(max-width:390px){.ds-brand{flex-basis:68%}.ds-account{gap:6px}}

/* Cabecera premium 0.2.4 */
.ds-header{background:linear-gradient(115deg,#071d36,#0c2e51 65%,#08203b);box-shadow:0 3px 14px rgba(6,23,43,.16)}
.ds-head-top{min-height:105px;gap:clamp(12px,2.4vw,36px)}
.ds-brand{flex:0 1 390px;max-width:390px}.ds-brand-wordmark{max-height:76px}
.ds-icon{display:inline-block;flex:none;vertical-align:middle}
.ds-search{flex:1;max-width:570px;min-height:51px;gap:12px;padding:5px 6px 5px 17px;border-radius:13px;border:1px solid #496481;background:linear-gradient(110deg,#1c3e61,#234c74);box-shadow:inset 0 1px 2px #fff1,0 6px 18px #0002;transition:border-color .2s,box-shadow .2s}
.ds-search:focus-within{border-color:#a9c7ec;box-shadow:0 0 0 3px #8ab7ff35}.ds-search input{min-width:0;flex:1;font-size:14px}.ds-search button{border:0;border-radius:9px;background:#1b65c7;color:white;padding:10px 15px;font-weight:750;cursor:pointer}.ds-search button:hover{background:#297be3}
.ds-account{gap:6px;flex-shrink:0}.ds-account a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:10px;padding:8px 10px;font-weight:650}.ds-account a:hover{background:#ffffff17;text-decoration:none}.ds-account-icon{width:42px}.ds-profile-link{border:1px solid #ffffff25}
.ds-nav-wrap{background:#102f50;border-top:1px solid #ffffff1a;box-shadow:inset 0 1px #ffffff08}.ds-nav{min-height:59px}.ds-links{gap:5px;flex-wrap:nowrap;min-width:0}.ds-links a{display:inline-flex;align-items:center;gap:8px;padding:11px 14px;border:1px solid transparent;border-radius:9px;font-size:14px;white-space:nowrap;transition:background .18s,transform .18s,border-color .18s}.ds-links a:first-child{background:transparent}.ds-links a:hover{background:#25527f;border-color:#ffffff20;transform:translateY(-1px)}.ds-links a.is-active,.ds-links a.is-active:first-child{background:linear-gradient(135deg,#2376d5,#1151aa);border-color:#ffffff20;box-shadow:0 3px 10px #0002}.ds-new{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;background:linear-gradient(135deg,#f14350,#c91f35);box-shadow:0 5px 12px #0003;padding:11px 15px}.ds-new:hover{background:#e82c42;text-decoration:none;transform:translateY(-1px)}
@media(max-width:1200px){.ds-head-top{gap:13px}.ds-brand{flex-basis:320px}.ds-links a{padding:10px 9px;font-size:13px}.ds-links a .ds-icon{width:16px;height:16px}.ds-profile-link span{display:none}}
@media(max-width:900px){.ds-head-top{flex-wrap:wrap;padding:13px 0}.ds-brand{flex-basis:calc(100% - 155px)}.ds-account{margin-left:auto}.ds-search{order:3;max-width:none;flex-basis:100%}.ds-nav{overflow-x:auto;scrollbar-width:thin;padding:6px 0}.ds-links{flex:0 0 auto}.ds-new{position:sticky;right:0;margin-left:auto}}
@media(max-width:600px){.ds-head-top{min-height:0}.ds-brand{flex-basis:calc(100% - 110px)}.ds-brand-wordmark{max-height:57px}.ds-account-icon{width:34px!important;padding:5px!important}.ds-account .ds-profile-link{padding:5px}.ds-account .ds-profile-link .ds-icon{width:17px}.ds-search{min-height:46px}.ds-search button{padding:9px 11px}.ds-links a{padding:9px 11px}.ds-nav{gap:8px}.ds-new{padding:10px}}
