:root{
  --ek-ink:#10263d;
  --ek-muted:#5f7182;
  --ek-line:#dce8ee;
  --ek-bg:#f5fafc;
  --ek-white:#fff;
  --ek-blue:#0d75a5;
  --ek-blue-dark:#075b83;
  --ek-turq:#20b8b0;
  --ek-green:#16845b;
  --ek-green-bg:#e7f7f0;
  --ek-orange:#a85d00;
  --ek-orange-bg:#fff2df;
  --ek-red:#a33434;
  --ek-red-bg:#fdeaea;
  --ek-radius:22px;
  --ek-shadow:0 16px 42px rgba(17,49,70,.10);
}
.ek-wrap{width:min(1160px,calc(100% - 40px));margin-inline:auto}
.ek-subvencion-page{background:#fff;color:var(--ek-ink)}
.ek-subvencion-page h1,.ek-subvencion-page h2,.ek-subvencion-page h3{color:var(--ek-ink);letter-spacing:-.025em}
.ek-subvencion-hero{position:relative;overflow:hidden;padding:34px 0 50px;background:linear-gradient(135deg,#eefbfa 0%,#eef7fc 47%,#f8fbfd 100%)}
.ek-subvencion-hero:after{content:"";position:absolute;right:-90px;top:-160px;width:520px;height:520px;border-radius:50%;background:rgba(32,184,176,.09);pointer-events:none}
.ek-breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--ek-muted);margin-bottom:28px}
.ek-breadcrumbs a{color:var(--ek-blue);text-decoration:none}
.ek-hero-badges{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.ek-scope-badge,.ek-sc-region{font-size:12px;font-weight:800;letter-spacing:.08em;color:var(--ek-blue-dark)}
.ek-scope-badge{background:#fff;border:1px solid rgba(13,117,165,.18);padding:8px 11px;border-radius:999px}
.ek-sc-status{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.ek-sc-status:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.ek-sc-status-abierta{color:var(--ek-green)!important;background:var(--ek-green-bg)!important}
.ek-sc-status-proxima{color:var(--ek-orange)!important;background:var(--ek-orange-bg)!important}
.ek-sc-status-cerrada,.ek-sc-status-agotada{color:var(--ek-red)!important;background:var(--ek-red-bg)!important}
.ek-subvencion-hero h1{font-size:clamp(38px,5vw,65px);line-height:1.02;max-width:900px;margin:0 0 18px;font-weight:800}
.ek-hero-intro{font-size:19px;line-height:1.65;color:#40566a;max-width:800px;margin:0 0 24px}
.ek-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0 30px}
.ek-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 19px;border-radius:13px;font-weight:800;text-decoration:none!important;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.ek-btn:hover{transform:translateY(-1px)}
.ek-btn-primary{background:linear-gradient(135deg,var(--ek-blue),var(--ek-turq));color:#fff!important;box-shadow:0 10px 24px rgba(13,117,165,.22)}
.ek-btn-secondary{background:#fff;color:var(--ek-blue-dark)!important;border:1px solid #cfe1e9}
.ek-btn-block{width:100%;box-sizing:border-box}
.ek-hero-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:970px}
.ek-hero-metric{background:rgba(255,255,255,.84);border:1px solid rgba(13,117,165,.11);border-radius:16px;padding:15px 16px;backdrop-filter:blur(5px)}
.ek-hero-metric strong{display:block;font-size:20px;line-height:1.2;margin-bottom:5px}
.ek-hero-metric span{font-size:13px;color:var(--ek-muted)}
.ek-quick-section{padding:48px 0;border-bottom:1px solid var(--ek-line)}
.ek-section-kicker{font-size:12px;font-weight:900;letter-spacing:.11em;text-transform:uppercase;color:var(--ek-turq);margin-bottom:7px}
.ek-quick-section h2,.ek-related-section h2,.ek-bases-reviewed h2,.ek-faq-section h2{font-size:clamp(28px,3vw,38px);margin:0 0 22px}
.ek-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ek-quick-grid>div{border:1px solid var(--ek-line);border-radius:16px;padding:17px;background:#fff}
.ek-quick-grid span{display:block;color:var(--ek-muted);font-size:12px;text-transform:uppercase;font-weight:800;letter-spacing:.05em;margin-bottom:6px}
.ek-quick-grid strong{font-size:17px;line-height:1.35}
.ek-main-section{padding:54px 0 64px}
.ek-content-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:44px;align-items:start}
.ek-article-content{min-width:0;font-size:17px;line-height:1.75}
.ek-article-content>h2,.ek-article-content .entry-content h2{font-size:32px;margin-top:44px}
.ek-article-content h3{font-size:23px;margin-top:30px}
.ek-article-content p{margin:0 0 19px}
.ek-article-content ul,.ek-article-content ol{margin:0 0 22px;padding-left:24px}
.ek-article-content a{color:var(--ek-blue-dark)}
.ek-summary-sticky{position:sticky;top:28px;border:1px solid var(--ek-line);border-radius:var(--ek-radius);padding:22px;background:#fff;box-shadow:var(--ek-shadow)}
.ek-summary-sticky h2{font-size:30px;margin:16px 0}
.ek-summary-sticky dl{margin:0 0 20px}
.ek-summary-sticky dl>div{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #edf3f6}
.ek-summary-sticky dt{font-size:13px;color:var(--ek-muted)}
.ek-summary-sticky dd{margin:0;font-size:13px;font-weight:800;text-align:right}
.ek-summary-contact{display:block;text-align:center;margin-top:14px;font-size:14px;font-weight:800;color:var(--ek-blue-dark)}
.ek-summary-note{font-size:12px;line-height:1.5;color:var(--ek-muted);margin:14px 0 0!important;text-align:center}
.ek-closed-notice{border:1px solid #f0cccc;background:#fff7f7;border-radius:16px;padding:16px 18px;margin-bottom:28px}
.ek-closed-notice p{margin:4px 0 0;font-size:14px}
.ek-bases-reviewed,.ek-faq-section{margin-top:52px;padding-top:42px;border-top:1px solid var(--ek-line)}
.ek-bases-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ek-bases-grid>div{padding:15px;border-radius:14px;background:var(--ek-bg)}
.ek-bases-grid span{display:block;font-size:12px;color:var(--ek-muted);margin-bottom:4px}
.ek-bases-grid strong{font-size:15px}
.ek-source-line{font-size:14px;margin-top:16px!important}
.ek-faq-item{border:1px solid var(--ek-line);border-radius:14px;background:#fff;margin-bottom:10px;overflow:hidden}
.ek-faq-item summary{cursor:pointer;list-style:none;padding:16px 18px;font-weight:800}
.ek-faq-item summary::-webkit-details-marker{display:none}
.ek-faq-item summary:after{content:"+";float:right;color:var(--ek-blue);font-size:20px}
.ek-faq-item[open] summary:after{content:"−"}
.ek-faq-item>div{padding:0 18px 16px;color:#40566a}
.ek-related-section{padding:54px 0 72px;background:var(--ek-bg);border-top:1px solid var(--ek-line)}
.ek-sc-cards{display:grid;gap:18px}
.ek-sc-cols-1{grid-template-columns:1fr}.ek-sc-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ek-sc-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ek-sc-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ek-sc-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--ek-line);border-radius:20px;padding:20px;background:#fff;box-shadow:0 8px 28px rgba(16,38,61,.055);transition:transform .18s ease,box-shadow .18s ease}
.ek-sc-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(16,38,61,.09)}
.ek-sc-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.ek-sc-region{font-size:11px}
.ek-sc-card h3{font-size:21px;line-height:1.18;margin:0 0 12px}
.ek-sc-card h3 a{text-decoration:none;color:var(--ek-ink)}
.ek-sc-amount{font-size:24px;font-weight:900;letter-spacing:-.02em;color:var(--ek-blue-dark);margin:0 0 9px;white-space:normal}
.ek-sc-card p{font-size:14px;line-height:1.55;color:var(--ek-muted);margin:0 0 15px;flex-grow:1}
.ek-sc-card-deadline{font-size:12px;font-weight:800;color:#50677a;margin-bottom:14px}
.ek-sc-card-link{font-size:14px;font-weight:900;color:var(--ek-blue-dark);text-decoration:none}
.ek-sc-empty{padding:18px;border:1px dashed #cbdbe3;border-radius:14px;background:#f8fbfc;color:var(--ek-muted)}
.ek-sc-community-section{margin:0 0 48px}.ek-sc-community-section>h2{margin-bottom:20px}.ek-sc-national-secondary{padding-top:34px;border-top:1px solid var(--ek-line)}.ek-sc-national-secondary>p{color:var(--ek-muted);margin-top:-10px;margin-bottom:24px}
@media(max-width:900px){
  .ek-hero-metrics,.ek-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ek-content-layout{grid-template-columns:1fr;gap:30px}
  .ek-summary-card{order:-1}.ek-summary-sticky{position:static}
  .ek-sc-cols-3,.ek-sc-cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .ek-wrap{width:min(100% - 28px,1160px)}
  .ek-subvencion-hero{padding:24px 0 38px}
  .ek-subvencion-hero h1{font-size:38px}
  .ek-hero-intro{font-size:16px}
  .ek-hero-actions{display:grid;grid-template-columns:1fr}
  .ek-hero-metrics,.ek-quick-grid,.ek-bases-grid,.ek-sc-cols-2,.ek-sc-cols-3,.ek-sc-cols-4{grid-template-columns:1fr}
  .ek-hero-metrics{gap:9px}
  .ek-hero-metric{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 14px}
  .ek-hero-metric strong{font-size:17px;margin:0}.ek-hero-metric span{text-align:right}
  .ek-main-section{padding-top:38px}.ek-content-layout{gap:24px}
  .ek-article-content{font-size:16px}.ek-article-content>h2{font-size:27px}
  .ek-sc-card{padding:18px}.ek-sc-card h3{font-size:20px}
}

/* Avisos informativos dentro del contenido largo de una subvención. */
.ek-info-notice{border:1px solid #f0d5ad;background:#fff8ec;border-radius:16px;padding:16px 18px;margin:24px 0 30px}
.ek-info-notice p{margin:0!important;font-size:14px;line-height:1.65}

/* =========================================================
   DIRECTORIO DE AYUDAS · v1.2.1
   Cabecera única + filtros visibles en el primer pantallazo.
========================================================= */
.ek-ayudas-primary{width:100%;margin:0;padding:0}
.ek-directory{background:#fff;color:var(--ek-ink);width:100%}
.ek-directory-hero{padding:42px 0 30px;background:linear-gradient(135deg,#eefbfa 0%,#eef7fc 52%,#f8fbfd 100%);border-bottom:1px solid var(--ek-line)}
.ek-directory-intro{max-width:930px;margin-bottom:24px}
.ek-directory-hero h1{font-size:clamp(40px,4.6vw,58px);line-height:1.04;letter-spacing:-.04em;margin:0 0 13px;color:var(--ek-ink)}
.ek-directory-hero p{max-width:850px;margin:0;color:#40566a;font-size:17px;line-height:1.6}
.ek-directory-panel-hero{position:relative;margin:0}
.ek-directory-main{padding:24px 0 72px}
.ek-directory-controls{display:grid;grid-template-columns:1.35fr repeat(3,minmax(0,1fr));gap:12px;padding:16px;border:1px solid rgba(13,117,165,.15);background:rgba(255,255,255,.93);border-radius:18px;box-shadow:0 12px 32px rgba(16,38,61,.07)}
.ek-directory-controls label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:900;color:#40566a;text-transform:uppercase;letter-spacing:.05em;margin:0}
.ek-directory-controls input,.ek-directory-controls select{width:100%;min-height:48px;border:1px solid #cbdde6;border-radius:11px;background:#fff;padding:10px 12px;color:var(--ek-ink);font-size:14px;text-transform:none;letter-spacing:0;outline:none;box-sizing:border-box}
.ek-directory-controls input:focus,.ek-directory-controls select:focus{border-color:var(--ek-blue);box-shadow:0 0 0 3px rgba(13,117,165,.10)}
.ek-directory-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 2px 16px;color:#40566a}
.ek-directory-bar strong{font-size:15px}
.ek-directory-bar button{border:0;background:transparent;color:var(--ek-blue-dark);font-weight:900;cursor:pointer;padding:7px 2px}
.ek-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.ek-dir-card{display:flex;flex-direction:column;border:1px solid var(--ek-line);border-radius:20px;background:#fff;padding:20px;box-shadow:0 8px 28px rgba(16,38,61,.055);min-width:0}
.ek-dir-card[hidden]{display:none!important}
.ek-dir-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.ek-dir-card-head>div{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.ek-dir-region,.ek-dir-category{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.055em}
.ek-dir-region{color:var(--ek-blue-dark)}
.ek-dir-category{color:var(--ek-muted);padding-left:7px;border-left:1px solid var(--ek-line)}
.ek-dir-card h3{font-size:21px;line-height:1.2;margin:0 0 12px;letter-spacing:-.02em}
.ek-dir-card h3 a{text-decoration:none;color:var(--ek-ink)}
.ek-dir-amount{font-size:23px;line-height:1.2;font-weight:900;color:var(--ek-blue-dark);margin-bottom:14px}
.ek-dir-meta{display:grid;gap:5px;color:var(--ek-muted);font-size:13px;line-height:1.45;margin-bottom:17px;flex-grow:1}
.ek-dir-link{font-size:14px;font-weight:900;text-decoration:none;color:var(--ek-blue-dark)}
.ek-dir-no-results{margin-top:18px}
.ek-home-injected-card{height:auto}

/* Respaldo por si un hook externo intenta inyectar la cabecera nativa. */
body.ek-ayudas-directory-page .entry-header,
body.ek-ayudas-directory-page .entry-title,
body.ek-ayudas-directory-page .page-header,
body.ek-ayudas-directory-page .breadcrumbs,
body.ek-ayudas-directory-page .breadcrumb,
body.ek-ayudas-directory-page .rank-math-breadcrumb,
body.ek-ayudas-directory-page .yoast-breadcrumb{display:none!important}
body.ek-ayudas-directory-page .site.grid-container{max-width:none!important}
body.ek-ayudas-directory-page .site-content{display:block!important;padding:0!important;margin:0!important}
body.ek-ayudas-directory-page .content-area,
body.ek-ayudas-directory-page .site-main,
body.ek-ayudas-directory-page .inside-article{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body.ek-ayudas-directory-page .entry-content{margin:0!important}

@media(max-width:980px){
  .ek-directory-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ek-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .ek-directory-hero{padding:30px 0 22px}
  .ek-directory-intro{margin-bottom:18px}
  .ek-directory-hero h1{font-size:36px;margin-bottom:10px}
  .ek-directory-hero p{font-size:15.5px;line-height:1.55}
  .ek-directory-main{padding:20px 0 58px}
  .ek-directory-controls,.ek-directory-grid{grid-template-columns:1fr}
  .ek-directory-controls{padding:13px;gap:10px;border-radius:15px}
  .ek-directory-controls input,.ek-directory-controls select{min-height:46px}
  .ek-directory-bar{align-items:center;padding-bottom:13px}
  .ek-dir-card{padding:18px}
}


/* =========================================================
   v1.2.5 · Coherencia de tarjetas, clic completo y estados
========================================================= */
.ek-card-hit{position:absolute!important;inset:0!important;z-index:1!important;display:block!important;border:0!important;box-shadow:none!important;text-decoration:none!important}
.ek-sc-card,.ek-dir-card,.ek-home-core-card{position:relative;cursor:pointer}
.ek-sc-card>*:not(.ek-card-hit),.ek-dir-card>*:not(.ek-card-hit),.ek-home-core-card>*:not(.ek-card-hit){position:relative;z-index:2;pointer-events:none}
.ek-sc-card:hover,.ek-dir-card:hover,.ek-home-core-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(16,38,61,.09)}

/* Tarjeta de ayudas nuevas en Home: misma jerarquía que las históricas. */
.ek-home-core-card{display:flex;flex-direction:column;min-width:0;min-height:310px;border:1px solid var(--ek-line);border-radius:26px;padding:26px 28px;background:linear-gradient(145deg,#edfafa 0%,#f4fbfd 100%);box-shadow:0 8px 28px rgba(16,38,61,.045);transition:transform .18s ease,box-shadow .18s ease;overflow:hidden}
.ek-home-core-card:after{content:"";position:absolute;right:-58px;bottom:-58px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.48);z-index:0}
.ek-home-core-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.ek-home-core-region{font-size:12px;line-height:1.2;font-weight:900;letter-spacing:.055em;text-transform:uppercase;color:var(--ek-blue-dark)}
.ek-home-core-card h3{font-size:25px;line-height:1.16;letter-spacing:-.025em;color:var(--ek-ink);margin:0 0 16px}
.ek-home-core-amount{font-size:25px;line-height:1.15;font-weight:900;color:var(--ek-blue-dark);margin:0 0 17px}
.ek-home-core-meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px;line-height:1.45;color:var(--ek-muted);margin-bottom:22px;flex-grow:1}
.ek-home-core-link{font-size:15px;font-weight:900;color:#0870d8;margin-top:auto}
.ek-home-injected-card{height:auto}

/* Flag/territorio en la landing manual de Hostelería. */
.ek-v125-territory{display:block!important;margin-top:12px!important;font-size:16px!important;line-height:1.25!important;font-weight:800!important;color:#0b2f5b!important;white-space:nowrap!important}
.ek-v125-legacy-status{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:7px 12px!important;border-radius:999px!important;font-size:12px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.04em!important}

/* v1.2.6: parche robusto para la landing manual heredada. */
.ek-v126-territory{display:block!important;margin-top:12px!important;font-size:16px!important;line-height:1.25!important;font-weight:800!important;color:#0b2f5b!important;white-space:nowrap!important;background:none!important;border:0!important;width:auto!important;height:auto!important;box-shadow:none!important}
.ek-v126-legacy-status.ek-sc-status-abierta{color:#16845b!important;background:#e7f7f0!important}
.ek-v126-legacy-status.ek-sc-status-proxima{color:#a85d00!important;background:#fff2df!important}
.ek-v126-legacy-status.ek-sc-status-cerrada,.ek-v126-legacy-status.ek-sc-status-agotada{color:#a33434!important;background:#fdeaea!important}

@media(max-width:620px){
  .ek-home-core-card{min-height:0;padding:22px}
  .ek-home-core-card h3{font-size:22px}
}
