/*
Theme Name: ADEC Global
Theme URI: https://adecglobal.com/
Author: Upcofly
Author URI: https://upcofly.com/
Description: Tema a medida para ADEC Global. Contenido en bloques nativos de Gutenberg con clases adec-*. Preparado para TranslatePress (ES/CA).
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: adec
*/

/* ---------- Fuentes (alojadas en local) ---------- */
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/barlow-v13-latin_latin-ext-regular.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/barlow-v13-latin_latin-ext-500.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/barlow-v13-latin_latin-ext-600.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/barlow-v13-latin_latin-ext-700.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/barlow-condensed-v13-latin_latin-ext-600.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/barlow-condensed-v13-latin_latin-ext-700.woff2) format("woff2")}

/* ---------- Tokens ---------- */
:root{
	--green:#00954b;
	--green-dark:#007a3d;
	--green-soft:#e6f4ec;
	--lime:#8cc63f;
	--ink:#1d1d1b;
	--ink-2:#262624;
	--ink-3:#33332f;
	--text:#3b3b37;
	--muted:#6b6b65;
	--line:#e2e2dc;
	--bg:#ffffff;
	--bg-alt:#f4f4ef;
	--wrap:1240px;
	--narrow:800px;
	--radius:4px;
	--shadow:0 10px 30px -12px rgba(20,20,18,.25);
	--font:"Barlow",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
	--font-display:"Barlow Condensed","Barlow",system-ui,sans-serif;
	--header-h:76px;
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 16px)}
body{margin:0;font-family:var(--font);font-size:18px;line-height:1.65;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:var(--green-dark);text-underline-offset:3px}
a:hover{color:var(--green)}
h1,h2,h3,h4{font-family:var(--font-display);color:var(--ink);line-height:1.08;font-weight:700;letter-spacing:-.005em;margin:0 0 .5em}
h1{font-size:clamp(2.5rem,5.4vw,4.4rem)}
h2{font-size:clamp(2rem,3.6vw,3rem)}
h3{font-size:clamp(1.35rem,1.8vw,1.6rem);font-weight:600;line-height:1.2}
h4{font-size:1.2rem;font-weight:600}
p{margin:0 0 1.1em}
strong{color:var(--ink);font-weight:600}
ul,ol{padding-left:1.25em}
::selection{background:var(--green);color:#fff}
:focus-visible{outline:3px solid var(--lime);outline-offset:2px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.adec-skip{position:absolute;left:-999px;top:8px;z-index:200;background:var(--green);color:#fff;padding:10px 16px}
.adec-skip:focus{left:8px}

.adec-wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:24px}
.adec-wrap--narrow{max-width:calc(var(--narrow) + 48px)}

/* ---------- Botones ---------- */
.adec-btn,
.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;gap:.5em;font-family:var(--font);font-weight:600;font-size:1rem;letter-spacing:.01em;line-height:1.2;padding:16px 28px;border-radius:var(--radius);border:2px solid var(--green);background:var(--green);color:#fff;text-decoration:none;transition:background .2s,border-color .2s,color .2s,transform .2s}
.adec-btn:hover,
.wp-block-button__link:hover{background:var(--green-dark);border-color:var(--green-dark);color:#fff}
.adec-btn--sm{padding:10px 18px;font-size:.92rem}
.adec-btn--ghost,
.is-style-outline .wp-block-button__link{background:transparent;color:var(--ink);border-color:var(--ink)}
.adec-btn--ghost:hover,
.is-style-outline .wp-block-button__link:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.adec-btn--light{background:#fff;border-color:#fff;color:var(--ink)}
.adec-btn--light:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.adec-btn--ghost-light{background:transparent;border-color:rgba(255,255,255,.7);color:#fff}
.adec-btn--ghost-light:hover{background:#fff;color:var(--ink);border-color:#fff}
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 0}
.wp-block-button{margin:0}
.adec-on-dark .is-style-outline .wp-block-button__link,
.adec-hero .is-style-outline .wp-block-button__link{color:#fff;border-color:rgba(255,255,255,.75)}
.adec-on-dark .is-style-outline .wp-block-button__link:hover,
.adec-hero .is-style-outline .wp-block-button__link:hover{background:#fff;color:var(--ink);border-color:#fff}
.adec-btns{display:flex;flex-wrap:wrap;gap:12px}

/* ---------- Topbar + cabecera ---------- */
.adec-topbar{background:var(--ink);color:#bdbdb6;font-size:.85rem;border-bottom:1px solid #2f2f2c}
.adec-topbar__inner{display:flex;justify-content:space-between;gap:24px;padding-block:8px}
.adec-topbar p{margin:0}
.adec-topbar a{color:#e9e9e4;text-decoration:none;margin-left:20px}
.adec-topbar a:hover{color:var(--lime)}
.adec-header{position:sticky;top:0;z-index:100;background:var(--ink-2);color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.06);transition:box-shadow .2s}
.adec-header.is-scrolled{box-shadow:0 8px 24px -10px rgba(0,0,0,.55)}
.admin-bar .adec-header{top:32px}
.adec-header__inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:var(--header-h)}
.adec-logo img{width:210px;height:auto}
.adec-nav{display:flex;align-items:center;gap:28px}
.adec-menu{display:flex;list-style:none;margin:0;padding:0;gap:4px}
.adec-menu > li{position:relative}
.adec-menu a{display:block;color:#f1f1ec;text-decoration:none;font-weight:500;font-size:1rem;padding:10px 12px;border-radius:var(--radius)}
.adec-menu > li > a:hover,
.adec-menu > li.current-menu-item > a,
.adec-menu > li.current-menu-ancestor > a,
.adec-menu > li.current-page-ancestor > a{color:var(--lime)}
.adec-menu .has-sub > a::after{content:"";display:inline-block;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-3px);margin-left:8px;opacity:.7}
.adec-menu .sub-menu{position:absolute;left:0;top:100%;min-width:300px;list-style:none;margin:0;padding:10px;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(6px);transition:.18s}
.adec-menu li:hover > .sub-menu,
.adec-menu li:focus-within > .sub-menu{opacity:1;visibility:visible;transform:none}
.adec-menu .sub-menu a{color:var(--ink);padding:9px 12px;font-size:.97rem}
.adec-menu .sub-menu a:hover,
.adec-menu .sub-menu .current-menu-item > a{background:var(--green-soft);color:var(--green-dark)}
.adec-nav__extra{display:flex;align-items:center;gap:16px}
.adec-lang{display:flex;list-style:none;margin:0;padding:0;gap:2px;font-size:.88rem;font-weight:600}
.adec-lang a{display:block;color:#bdbdb6;text-decoration:none;padding:6px 8px;border-radius:var(--radius)}
.adec-lang a[aria-current]{color:#fff;background:rgba(255,255,255,.1)}
.adec-lang a:hover{color:var(--lime)}
.adec-burger{display:none;background:none;border:0;padding:10px;cursor:pointer}
.adec-burger span:not(.screen-reader-text){display:block;width:26px;height:2px;background:#fff;margin:6px 0;transition:.2s}
.adec-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.adec-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.adec-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

@media (max-width:1100px){
	.adec-topbar__claim{display:none}
	.adec-topbar__inner{justify-content:flex-end}
	.adec-burger{display:block}
	.adec-nav{position:fixed;inset:calc(var(--header-h) + 37px) 0 0 0;background:var(--ink-2);flex-direction:column;align-items:stretch;gap:0;padding:12px 24px 40px;overflow-y:auto;transform:translateX(100%);transition:transform .25s}
	.admin-bar .adec-nav{top:calc(var(--header-h) + 37px + 46px)}
	.adec-nav.is-open{transform:none}
	.adec-menu{flex-direction:column}
	.adec-menu a{font-size:1.15rem;padding:14px 4px;border-bottom:1px solid rgba(255,255,255,.08);border-radius:0}
	.adec-menu .sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;background:transparent;padding:0 0 0 14px;display:none;min-width:0}
	.adec-menu .is-open > .sub-menu{display:block}
	.adec-menu .sub-menu a{color:#d8d8d2;font-size:1.02rem}
	.adec-nav__extra{justify-content:space-between;padding-top:20px}
}
@media (max-width:600px){
	.adec-topbar a:last-child{display:none}
	.adec-logo img{width:170px}
}

/* ---------- Secciones de contenido ---------- */
.adec-content > *:first-child{margin-top:0}
.adec-section{padding-block:clamp(64px,8vw,112px);margin:0}
.adec-section--alt{background:var(--bg-alt)}
.adec-section--dark{background:var(--ink);color:#d6d6cf}
.adec-section--dark h2,.adec-section--dark h3,.adec-section--dark strong{color:#fff}
.adec-section--dark a{color:var(--lime)}
.adec-section--green{background:var(--green);color:#eafaf1}
.adec-section--green h2,.adec-section--green h3,.adec-section--green strong{color:#fff}
.adec-section--tight{padding-block:clamp(40px,5vw,64px)}
.adec-section > .adec-wrap > *:last-child,
.adec-section > .wp-block-group__inner-container > .adec-wrap > *:last-child{margin-bottom:0}

.adec-eyebrow{display:inline-flex;align-items:center;gap:10px;font-family:var(--font);font-weight:700;font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;color:var(--green);margin:0 0 14px}
.adec-eyebrow::before{content:"";width:28px;height:3px;background:currentColor}
.adec-section--dark .adec-eyebrow,.adec-hero .adec-eyebrow{color:var(--lime)}
.adec-section--green .adec-eyebrow{color:#fff}
.adec-lead{font-size:clamp(1.12rem,1.5vw,1.3rem);line-height:1.55;color:var(--ink-3)}
.adec-section--dark .adec-lead{color:#e6e6e0}
.adec-intro{max-width:820px;margin-bottom:clamp(32px,4vw,56px)}
.adec-intro--center{margin-inline:auto;text-align:center}
.adec-intro--center .adec-eyebrow{justify-content:center}
.adec-intro > *:last-child{margin-bottom:0}
.adec-h2{margin-bottom:32px}

/* ---------- Hero (bloque Portada) ---------- */
.wp-block-cover.adec-hero{position:relative;display:flex;align-items:flex-end;min-height:clamp(520px,72vh,760px);padding:0;margin:0;overflow:hidden;color:#fff}
.adec-hero .wp-block-cover__image-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.adec-hero .wp-block-cover__background{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(18,18,16,.92) 0%,rgba(18,18,16,.72) 45%,rgba(18,18,16,.25) 100%)!important;opacity:1!important}
.adec-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:6px;background:linear-gradient(90deg,var(--green),var(--lime));z-index:2}
.adec-hero .wp-block-cover__inner-container{position:relative;z-index:2;width:100%;max-width:var(--wrap);margin-inline:auto;padding:clamp(56px,8vw,104px) 24px}
.adec-hero .wp-block-cover__inner-container > *{max-width:780px}
.adec-hero h1{color:#fff;margin-bottom:.35em}
.adec-hero p{color:#e8e8e2}
.adec-hero .adec-lead{color:#ededE8;font-size:clamp(1.12rem,1.6vw,1.35rem)}
.adec-hero--inner{min-height:clamp(420px,58vh,600px)!important}
.adec-hero--home h1{font-size:clamp(2.8rem,6.4vw,5.4rem)}
.adec-hero .adec-badges{display:flex;flex-wrap:wrap;gap:10px 22px;list-style:none;padding:0;margin:30px 0 0;font-weight:600;font-size:.95rem;color:#fff}
.adec-hero .adec-badges li{display:flex;align-items:center;gap:8px}
.adec-hero .adec-badges li::before{content:"";width:18px;height:18px;border-radius:50%;background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat;flex:none}

/* Cabecera de página simple */
.adec-pagehead{background:var(--ink);color:#d6d6cf;padding:clamp(48px,6vw,80px) 0 clamp(40px,5vw,64px);border-bottom:6px solid var(--green)}
.adec-pagehead h1{color:#fff;font-size:clamp(2.2rem,4.6vw,3.6rem);margin:0}
.adec-pagehead__lead{max-width:760px;margin:16px 0 0;font-size:1.15rem;color:#d6d6cf}
.adec-pagehead__date{margin:14px 0 0;color:#bdbdb6}
.adec-pagehead .adec-eyebrow{color:var(--lime)}
.adec-pagehead .adec-btns{margin-top:28px}
.adec-breadcrumb{font-size:.88rem;color:#a9a9a2;margin-bottom:18px}
.adec-breadcrumb a{color:#d6d6cf;text-decoration:none}
.adec-breadcrumb a:hover{color:var(--lime)}
.adec-hero .adec-breadcrumb{margin-bottom:22px}

/* ---------- Rejillas y tarjetas ---------- */
.adec-grid{display:grid;gap:24px}
.adec-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.adec-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.adec-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1000px){.adec-grid--3,.adec-grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.adec-grid--2,.adec-grid--3,.adec-grid--4{grid-template-columns:1fr}}
.adec-grid > .wp-block-group__inner-container{display:contents}

.adec-card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s}
.adec-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:transparent}
.adec-card > .wp-block-group__inner-container{display:flex;flex-direction:column;height:100%}
.adec-card figure,.adec-card .wp-block-image{margin:0}
.adec-card img{width:100%;aspect-ratio:16/10;object-fit:cover}
.adec-card__body,.adec-card .adec-card__text{padding:24px 24px 26px;display:flex;flex-direction:column;flex:1}
.adec-card .adec-card__text > .wp-block-group__inner-container{display:flex;flex-direction:column;flex:1}
.adec-card h3{margin:0 0 .45em}
.adec-card h3 a{color:var(--ink);text-decoration:none}
.adec-card h3 a::after{content:"";position:absolute;inset:0}
.adec-card h3 a:hover{color:var(--green-dark)}
.adec-card p{font-size:1rem;color:var(--muted)}
.adec-card .adec-more{margin-top:auto;margin-bottom:0;font-weight:600;color:var(--green-dark);font-size:.97rem}
.adec-card .adec-more::after{content:" →"}
.adec-card__meta{display:flex;gap:12px;font-size:.82rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--green-dark);margin:0 0 8px}
.adec-card__meta time{color:var(--muted)}
.adec-card--post .adec-card__title{font-size:1.3rem}
.adec-card__media{display:block;overflow:hidden;background:var(--bg-alt)}
.adec-card__media img{transition:transform .4s}
.adec-card:hover .adec-card__media img{transform:scale(1.04)}
.adec-card__placeholder{display:block;aspect-ratio:16/10;background:linear-gradient(135deg,var(--ink-3),var(--green-dark))}

/* Tarjeta de característica (icono numérico) */
.adec-feature{padding:30px 28px;background:#fff;border-radius:var(--radius);border-top:4px solid var(--green);box-shadow:0 1px 0 var(--line)}
.adec-section--alt .adec-feature{box-shadow:none}
.adec-section--dark .adec-feature{background:var(--ink-3);color:#d6d6cf}
.adec-feature h3{font-size:1.4rem}
.adec-feature p{font-size:1rem;margin-bottom:0}
.adec-feature > .wp-block-group__inner-container > *:last-child{margin-bottom:0}

/* Pasos numerados */
.adec-steps{counter-reset:step}
.adec-step{position:relative;padding:28px 26px 26px;background:#fff;border-radius:var(--radius);border:1px solid var(--line)}
.adec-section--alt .adec-step{border-color:transparent}
.adec-step::before{counter-increment:step;content:counter(step,decimal-leading-zero);display:block;font-family:var(--font-display);font-weight:700;font-size:2.6rem;line-height:1;color:var(--green);margin-bottom:14px}
.adec-step h3{font-size:1.3rem}
.adec-step p{font-size:1rem;margin-bottom:0;color:var(--muted)}

/* Bloque dividido imagen / texto */
.wp-block-columns.adec-split{gap:clamp(32px,5vw,80px);align-items:center;margin:0}
.adec-split .wp-block-image{margin:0}
.adec-split .wp-block-image img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius)}
.adec-split--reverse{flex-direction:row-reverse}
.adec-split .wp-block-column > *:last-child{margin-bottom:0}
@media (max-width:781px){.adec-split--reverse{flex-direction:column}}

/* Lista con checks */
ul.adec-checks{list-style:none;padding:0;margin:0 0 1.2em}
ul.adec-checks li{position:relative;padding-left:34px;margin:0 0 .7em}
ul.adec-checks li::before{content:"";position:absolute;left:0;top:.3em;width:22px;height:22px;border-radius:50%;background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat}
.adec-section--dark ul.adec-checks li::before{background-color:var(--lime)}

/* Cifras */
.adec-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid rgba(255,255,255,.12)}
.adec-stats > .wp-block-group__inner-container{display:contents}
.adec-stat{padding:28px 24px 8px 0;border-right:1px solid rgba(255,255,255,.12);padding-left:24px}
.adec-stat:first-child{padding-left:0}
.adec-stat:last-child{border-right:0}
.adec-stat__num{font-family:var(--font-display);font-weight:700;font-size:clamp(2.6rem,4.4vw,3.8rem);line-height:1;color:#fff;margin:0 0 8px}
.adec-stat__label{font-size:.98rem;color:#c9c9c2;margin:0}
.adec-section:not(.adec-section--dark):not(.adec-section--green) .adec-stats{border-color:var(--line)}
.adec-section:not(.adec-section--dark):not(.adec-section--green) .adec-stat{border-color:var(--line)}
.adec-section:not(.adec-section--dark):not(.adec-section--green) .adec-stat__num{color:var(--green)}
.adec-section:not(.adec-section--dark):not(.adec-section--green) .adec-stat__label{color:var(--muted)}
@media (max-width:900px){.adec-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.adec-stat{border-right:0;padding-left:0}}

/* Tablas */
.wp-block-table.adec-table{margin:0 0 1.5em;overflow-x:auto}
.adec-table table{width:100%;border-collapse:collapse;font-size:1rem;background:#fff;min-width:560px}
.adec-table th,.adec-table td{padding:14px 18px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.adec-table thead th{background:var(--ink);color:#fff;font-family:var(--font);font-weight:600;border:0}
.adec-table thead th:nth-child(2){background:var(--green)}
.adec-table tbody td:first-child{font-weight:600;color:var(--ink)}
.adec-table tbody tr:nth-child(even) td{background:#fafaf7}
.adec-table figcaption{font-size:.9rem;color:var(--muted);margin-top:8px}

/* FAQ */
.adec-faq .wp-block-details{border-bottom:1px solid var(--line);padding:0;margin:0}
.adec-faq .wp-block-details:first-of-type{border-top:1px solid var(--line)}
.adec-faq summary{cursor:pointer;list-style:none;position:relative;padding:22px 48px 22px 0;font-family:var(--font);font-weight:600;font-size:1.12rem;color:var(--ink)}
.adec-faq summary::-webkit-details-marker{display:none}
.adec-faq summary::after{content:"";position:absolute;right:6px;top:50%;width:14px;height:14px;margin-top:-10px;border-right:2.5px solid var(--green);border-bottom:2.5px solid var(--green);transform:rotate(45deg);transition:transform .2s}
.adec-faq details[open] summary::after{transform:rotate(-135deg);margin-top:-3px}
.adec-faq summary:hover{color:var(--green-dark)}
.adec-faq .wp-block-details > p{margin:0 0 22px;color:var(--text);max-width:900px}

/* Banda CTA */
.adec-cta,.adec-section.adec-cta-band{background:var(--green);background-image:linear-gradient(120deg,var(--green-dark) 0%,var(--green) 55%,#3aa64a 100%);color:#eafaf1;padding-block:clamp(48px,6vw,80px)}
.adec-cta__inner{display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap}
.adec-cta h2,.adec-cta-band h2{color:#fff;margin-bottom:.25em}
.adec-cta p,.adec-cta-band p{color:#e7f7ee;margin:0;max-width:640px;font-size:1.12rem}
.adec-cta__actions{display:flex;flex-wrap:wrap;gap:12px}
.adec-cta-band .wp-block-button__link{background:#fff;border-color:#fff;color:var(--ink)}
.adec-cta-band .wp-block-button__link:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.adec-cta-band .is-style-outline .wp-block-button__link{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}
.adec-cta-band .is-style-outline .wp-block-button__link:hover{background:#fff;color:var(--ink)}

/* Logos de clientes / alianzas */
.adec-logos{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:28px 56px}
.adec-logos > .wp-block-group__inner-container{display:contents}
.adec-logos .wp-block-image{margin:0}
.adec-logos img{max-height:56px;width:auto;filter:grayscale(1);opacity:.75;transition:.2s}
.adec-logos img:hover{filter:none;opacity:1}
.adec-logos--lg img{max-height:84px}

/* Galería simple */
.adec-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.adec-gallery > .wp-block-group__inner-container{display:contents}
.adec-gallery .wp-block-image{margin:0}
.adec-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius)}
@media (max-width:640px){.adec-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Documentos descargables */
ul.adec-docs{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
ul.adec-docs li{margin:0}
ul.adec-docs a{display:flex;align-items:center;gap:14px;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);font-weight:600;text-decoration:none;transition:.2s}
ul.adec-docs a::before{content:"PDF";flex:none;font-size:.72rem;font-weight:700;letter-spacing:.06em;color:#fff;background:var(--green);border-radius:3px;padding:6px 7px}
ul.adec-docs a:hover{border-color:var(--green);color:var(--green-dark)}
@media (max-width:700px){ul.adec-docs{grid-template-columns:1fr}}

/* Cita */
.adec-quote{border:0;margin:0;padding:0}
.adec-quote p{font-family:var(--font-display);font-weight:600;font-size:clamp(1.5rem,2.6vw,2.1rem);line-height:1.25;color:var(--ink)}
.adec-quote cite{font-style:normal;font-weight:600;color:var(--green-dark)}

/* Destacado de texto */
.adec-note{padding:22px 26px;border-left:4px solid var(--green);background:var(--green-soft);border-radius:0 var(--radius) var(--radius) 0;color:var(--ink-3)}
.adec-note > .wp-block-group__inner-container > *:last-child,.adec-note > *:last-child{margin-bottom:0}

/* Tarjetas de dirección */
.adec-place{padding:28px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.adec-place h3{font-size:1.25rem;margin-bottom:.4em}
.adec-place p{margin:0;color:var(--muted)}

/* ---------- Prosa (páginas simples, noticias, legales) ---------- */
.adec-prose{padding-block:clamp(48px,6vw,80px)}
.adec-prose h2{font-size:clamp(1.7rem,2.6vw,2.2rem);margin-top:1.6em}
.adec-prose h3{margin-top:1.4em}
.adec-prose h4{margin-top:1.2em}
.adec-prose li{margin-bottom:.45em}
.adec-prose blockquote{margin:1.5em 0;padding:4px 0 4px 22px;border-left:4px solid var(--green);font-size:1.1rem}
.adec-prose figure{margin:2em 0}
.adec-prose img{border-radius:var(--radius)}
.adec-post-thumb{margin:0 0 2.2em!important}
.adec-post-thumb img{width:100%;max-height:520px;object-fit:cover}
.adec-back{margin-top:3em}
.adec-prose table{width:100%;border-collapse:collapse;font-size:.95rem}
.adec-prose td,.adec-prose th{border:1px solid var(--line);padding:8px 10px}

/* Filtro y paginación */
.adec-filter{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:32px}
.adec-filter a{padding:9px 16px;border:1px solid var(--line);border-radius:999px;color:var(--ink);text-decoration:none;font-weight:600;font-size:.95rem}
.adec-filter a[aria-current],.adec-filter a:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.adec-pagination,.navigation.pagination{margin-top:48px}
.nav-links{display:flex;gap:6px;flex-wrap:wrap}
.nav-links .page-numbers{display:inline-flex;min-width:44px;height:44px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);text-decoration:none;font-weight:600}
.nav-links .current,.nav-links a:hover{background:var(--green);border-color:var(--green);color:#fff}

/* ---------- Formularios (Contact Form 7) ---------- */
.wpcf7 form{display:grid;gap:16px}
.adec-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width:640px){.adec-form-grid{grid-template-columns:1fr}}
.wpcf7 label{display:block;font-weight:600;font-size:.95rem;color:var(--ink)}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel],.wpcf7 select,.wpcf7 textarea{width:100%;margin-top:6px;padding:14px 16px;font:inherit;font-size:1rem;color:var(--ink);background:#fff;border:1px solid #cfcfc8;border-radius:var(--radius);transition:border-color .2s,box-shadow .2s}
.wpcf7 textarea{min-height:150px;resize:vertical}
.wpcf7 input:focus,.wpcf7 select:focus,.wpcf7 textarea:focus{outline:0;border-color:var(--green);box-shadow:0 0 0 3px rgba(0,149,75,.18)}
.wpcf7 .wpcf7-list-item{margin:0}
.wpcf7 .wpcf7-acceptance label,.wpcf7 .wpcf7-checkbox label{font-weight:400;font-size:.92rem;display:flex;gap:10px;align-items:flex-start;color:var(--text)}
.wpcf7 input[type=checkbox]{margin-top:4px;accent-color:var(--green);width:18px;height:18px;flex:none}
.wpcf7 input[type=submit]{justify-self:start;cursor:pointer;font:inherit;font-weight:600;padding:16px 32px;border:0;border-radius:var(--radius);background:var(--green);color:#fff}
.wpcf7 input[type=submit]:hover{background:var(--green-dark)}
.wpcf7 input[type=file]{margin-top:8px;font-size:.95rem}
.wpcf7-not-valid-tip{font-size:.85rem;color:#b3261e;margin-top:4px}
.wpcf7 form .wpcf7-response-output{margin:0;padding:14px 16px;border-radius:var(--radius);font-size:.95rem}
.adec-form-legal{font-size:.82rem;color:var(--muted);line-height:1.5}
.adec-formbox{background:#fff;border-radius:var(--radius);padding:clamp(24px,4vw,44px);box-shadow:var(--shadow)}
.adec-section--alt .adec-formbox{box-shadow:none}

/* ---------- Pie ---------- */
.adec-footer{background:var(--ink);color:#aeaea7;font-size:.96rem;padding-top:clamp(56px,7vw,88px)}
.adec-footer a{color:#e2e2dc;text-decoration:none}
.adec-footer a:hover{color:var(--lime)}
.adec-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:40px}
.adec-footer__brand img{width:200px;margin-bottom:22px}
.adec-footer__code{font-size:.85rem;color:#8d8d86}
.adec-footer__title{font-family:var(--font-display);font-weight:700;font-size:1.25rem;color:#fff;margin-bottom:16px}
.adec-footer ul{list-style:none;padding:0;margin:0}
.adec-footer li{margin-bottom:10px}
.adec-footer__contact li{margin-bottom:16px;line-height:1.5}
.adec-footer__contact strong{color:#fff;font-weight:600}
.adec-social{display:flex;gap:18px;font-weight:600}
.adec-footer__bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-top:56px;padding-block:24px;border-top:1px solid #33332f;font-size:.88rem}
.adec-footer__bottom p{margin:0}
.adec-legal{display:flex;flex-wrap:wrap;gap:18px}
.adec-legal li{margin:0}
.adec-lang--footer a{color:#aeaea7}
@media (max-width:1000px){.adec-footer__grid{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.adec-footer__grid{grid-template-columns:1fr}}

/* ---------- Utilidades de bloque ---------- */
.adec-mt-lg{margin-top:clamp(40px,5vw,64px)!important}
.adec-center{text-align:center}
.has-text-align-center{text-align:center}
.wp-block-image figcaption{font-size:.88rem;color:var(--muted);margin-top:8px}
.wp-block-separator{border:0;border-top:1px solid var(--line);margin:48px 0}
.wp-block-columns{display:flex;gap:2em;margin-bottom:0}
.wp-block-column{flex:1;min-width:0}
@media (max-width:781px){.wp-block-columns{flex-direction:column}}
.wp-block-group.adec-section,.wp-block-group.adec-card,.wp-block-group.adec-feature{margin:0}
.adec-wrap{margin-left:auto!important;margin-right:auto!important}
.adec-intro--center{margin-left:auto!important;margin-right:auto!important}

/* Banda verde y CTA */
.adec-section--green .wp-block-button__link{background:#fff;border-color:#fff;color:var(--ink)}
.adec-section--green .wp-block-button__link:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.adec-section--green .adec-stats,.adec-section--green .adec-stat{border-color:rgba(255,255,255,.25)}
.adec-section--green .adec-stat__label{color:#dff3e7}
.adec-split .adec-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.adec-split .adec-stat{padding:22px 20px 18px 0;border-right:0;border-bottom:1px solid rgba(255,255,255,.2)}
.adec-split .adec-stat__num{font-size:clamp(2.2rem,3.4vw,3rem)}
.adec-cta-band .adec-cta-cols{align-items:center}
.adec-cta-band .adec-cta-cols .wp-block-buttons{justify-content:flex-end;margin-top:0}
.adec-cta-band h2{font-size:clamp(1.8rem,3vw,2.6rem)}
@media (max-width:781px){.adec-cta-band .adec-cta-cols .wp-block-buttons{justify-content:flex-start}}
.adec-hero-contact a{color:#fff;text-decoration:none}
.adec-hero-contact a:hover{color:var(--lime)}
.adec-contact .adec-place{margin-bottom:16px}
.adec-logos--color img{filter:none;opacity:1}
.adec-stats + .adec-stats{border-top:0}

/* TranslatePress: sin selector flotante (va en la cabecera) */
#trp-floater-ls,.trp-floating-switcher,.trp-floater-ls-names{display:none!important}

@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Ajustes tras revisión visual */
.adec-hero strong,.adec-pagehead strong,.adec-cta strong,.adec-cta-band strong{color:#fff}
.adec-section--dark .adec-table td{color:var(--text)}
.adec-section--dark .adec-table tbody td:first-child{color:var(--ink)}
.adec-logos .wp-block-image{width:150px;display:flex;justify-content:center}
.adec-logos img{max-height:none;width:150px;height:auto}
.adec-logos--lg .wp-block-image,.adec-logos--lg img{width:110px}
.adec-logos--color .wp-block-image,.adec-logos--color img{width:88px}
.wp-block-table.adec-table{max-width:100%;display:block}
@media (max-width:640px){
	.adec-table table{min-width:0;font-size:.9rem}
	.adec-table th,.adec-table td{padding:10px 8px}
	.adec-hero .adec-badges{font-size:.85rem}
	.wp-block-buttons .wp-block-button{width:100%}
	.wp-block-buttons .wp-block-button__link{width:100%}
}

/* =====================================================================
   TEMA CLARO (19/10/2026): predominan los fondos claros; verde como acento
   ===================================================================== */
:root{--tint:#eef5f0}

/* Topbar + cabecera */
.adec-topbar{background:var(--bg-alt);color:var(--muted);border-bottom:1px solid var(--line)}
.adec-topbar a{color:var(--ink-3)}
.adec-topbar a:hover{color:var(--green-dark)}
.adec-header{background:#fff;color:var(--ink);box-shadow:0 1px 0 var(--line)}
.adec-header.is-scrolled{box-shadow:0 6px 20px -12px rgba(20,20,18,.28)}
.adec-menu a{color:var(--ink)}
.adec-menu > li > a:hover,
.adec-menu > li.current-menu-item > a,
.adec-menu > li.current-menu-ancestor > a,
.adec-menu > li.current-page-ancestor > a{color:var(--green-dark)}
.adec-menu .sub-menu{border:1px solid var(--line)}
.adec-lang a{color:var(--muted)}
.adec-lang a[aria-current]{color:var(--green-dark);background:var(--green-soft)}
.adec-lang a:hover{color:var(--green-dark)}
.adec-burger span:not(.screen-reader-text){background:var(--ink)}
@media (max-width:1100px){
	.adec-nav{background:#fff;border-top:1px solid var(--line)}
	.adec-menu a{border-bottom-color:var(--line)}
	.adec-menu .sub-menu a{color:var(--text)}
}

/* Cabecera simple (listados, noticias, legales) */
.adec-pagehead{background:linear-gradient(180deg,#fff 0%,var(--bg-alt) 100%);color:var(--text);border-bottom:1px solid var(--line)}
.adec-pagehead h1{color:var(--ink)}
.adec-pagehead__lead{color:var(--ink-3)}
.adec-pagehead__date{color:var(--muted)}
.adec-pagehead .adec-eyebrow{color:var(--green)}
.adec-pagehead strong{color:var(--ink)}
.adec-breadcrumb{color:var(--muted)}
.adec-breadcrumb a{color:var(--ink-3)}
.adec-breadcrumb a:hover{color:var(--green-dark)}

/* Las secciones «oscuras» pasan a un tinte verde muy claro */
.adec-section--dark{background:var(--tint);color:var(--text)}
.adec-section--dark h2,.adec-section--dark h3,.adec-section--dark strong{color:var(--ink)}
.adec-section--dark a{color:var(--green-dark)}
.adec-section--dark .adec-eyebrow{color:var(--green)}
.adec-section--dark .adec-lead{color:var(--ink-3)}
.adec-section--dark .adec-feature{background:#fff;color:var(--text);box-shadow:none}
.adec-section--dark ul.adec-checks li::before{background-color:var(--green)}
.adec-section--dark .is-style-outline .wp-block-button__link{color:var(--ink);border-color:var(--ink)}
.adec-stats{border-top-color:var(--line)}
.adec-section--dark .adec-stat{border-color:rgba(0,149,75,.18)}
.adec-section--dark .adec-stat__num{color:var(--green)}
.adec-section--dark .adec-stat__label{color:var(--muted)}
.adec-section--dark .adec-stats{border-color:rgba(0,149,75,.18)}

/* Bandas de llamada a la acción: claras con botón verde */
.adec-cta,.adec-section.adec-cta-band{background:var(--green-soft);background-image:none;color:var(--text);border-top:1px solid rgba(0,149,75,.15)}
.adec-cta h2,.adec-cta-band h2,.adec-cta strong,.adec-cta-band strong{color:var(--ink)}
.adec-cta p,.adec-cta-band p{color:var(--ink-3)}
.adec-cta-band .wp-block-button__link{background:var(--green);border-color:var(--green);color:#fff}
.adec-cta-band .wp-block-button__link:hover{background:var(--green-dark);border-color:var(--green-dark);color:#fff}
.adec-cta-band .is-style-outline .wp-block-button__link{background:transparent;color:var(--ink);border-color:var(--ink)}
.adec-cta-band .is-style-outline .wp-block-button__link:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.adec-cta .adec-btn--light{background:var(--green);border-color:var(--green);color:#fff}
.adec-cta .adec-btn--light:hover{background:var(--green-dark);border-color:var(--green-dark)}
.adec-cta .adec-btn--ghost-light{color:var(--ink);border-color:var(--ink)}
.adec-cta .adec-btn--ghost-light:hover{background:var(--ink);color:#fff}

/* Pie claro */
.adec-footer{background:var(--bg-alt);color:var(--muted);border-top:1px solid var(--line)}
.adec-footer a{color:var(--ink-3)}
.adec-footer a:hover{color:var(--green-dark)}
.adec-footer__title{color:var(--ink)}
.adec-footer__contact strong{color:var(--ink)}
.adec-footer__code{color:var(--muted)}
.adec-footer__bottom{border-top-color:var(--line)}
.adec-lang--footer a{color:var(--muted)}
.adec-table thead th{background:var(--tint);color:var(--ink)}
.adec-table thead th:nth-child(2){background:var(--green);color:#fff}
.adec-table table{border:1px solid var(--line)}
.adec-logos{gap:24px 40px}
.adec-logos:not(.adec-logos--lg):not(.adec-logos--color) .wp-block-image,.adec-logos:not(.adec-logos--lg):not(.adec-logos--color) img{width:128px}
/* Hero con foto: velo algo más oscuro */
.adec-hero .wp-block-cover__background{background:linear-gradient(90deg,rgba(14,14,12,.94) 0%,rgba(14,14,12,.82) 45%,rgba(14,14,12,.55) 100%)!important}

/* =====================================================================
   PALETA CORPORATIVA — Memoria de Sostenibilidad ADEC Global 2025
   Verde bosque #1f3a1a · verde corporativo #008539 · verde marca #3b8a37
   realce #3a8c38 · verde claro #a8d08d · tinte #e8f2e1
   texto #3a3a3a · secundario #6b6b6b · fondo #fafafa
   ===================================================================== */
:root{
	--forest:#1f3a1a;
	--green:#008539;
	--green-dark:#1f3a1a;
	--brand:#3b8a37;
	--accent:#3a8c38;
	--lime:#a8d08d;
	--green-soft:#e8f2e1;
	--tint:#e8f2e1;
	--ink:#1a1a1a;
	--ink-2:#1f3a1a;
	--ink-3:#3a3a3a;
	--text:#3a3a3a;
	--muted:#6b6b6b;
	--line:#e3e3e3;
	--bg-alt:#fafafa;
}
a{color:var(--green)}
a:hover{color:var(--forest)}
.adec-eyebrow{color:var(--accent)}
.adec-card .adec-more,.adec-card__meta{color:var(--green)}
.adec-card h3 a:hover{color:var(--green)}
.adec-step::before,.adec-section:not(.adec-section--dark):not(.adec-section--green) .adec-stat__num,.adec-section--dark .adec-stat__num{color:var(--brand)}
.adec-feature{border-top-color:var(--brand)}
.adec-menu > li > a:hover,.adec-menu > li.current-menu-item > a,.adec-menu > li.current-menu-ancestor > a,.adec-menu > li.current-page-ancestor > a{color:var(--green)}
.adec-menu .sub-menu a:hover,.adec-menu .sub-menu .current-menu-item > a{background:var(--green-soft);color:var(--forest)}
.adec-lang a[aria-current]{color:var(--forest);background:var(--green-soft)}

/* Hero: foto con velo verde bosque (como las portadas de la memoria) */
.adec-hero .wp-block-cover__background{background:linear-gradient(90deg,rgba(15,29,13,.95) 0%,rgba(22,42,19,.86) 45%,rgba(31,58,26,.62) 100%)!important}
.adec-hero::after{background:linear-gradient(90deg,var(--brand),var(--lime))}
.adec-hero .adec-eyebrow{color:var(--lime)}

/* Banda de color (sostenibilidad): verde bosque */
.adec-section--green{background:var(--forest);color:#dfe9da}
.adec-section--green .adec-eyebrow{color:var(--lime)}
.adec-section--green .adec-stat__num{color:#fff}
.adec-section--green .adec-stat__label{color:#c9d8c2}
.adec-section--green .wp-block-button__link{background:var(--lime);border-color:var(--lime);color:var(--forest)}
.adec-section--green .wp-block-button__link:hover{background:#fff;border-color:#fff;color:var(--forest)}

/* Tablas, notas y CTA */
.adec-table thead th{background:var(--tint);color:var(--forest)}
.adec-table thead th:nth-child(2){background:var(--forest);color:#fff}
.adec-note{border-left-color:var(--brand);background:var(--tint)}
.adec-cta,.adec-section.adec-cta-band{background:var(--tint);border-top-color:rgba(31,58,26,.12)}
.adec-cta-band .wp-block-button__link:hover,.adec-cta .adec-btn--light:hover{background:var(--forest);border-color:var(--forest)}
.wp-block-button__link:hover,.adec-btn:hover{background:var(--forest);border-color:var(--forest)}
ul.adec-checks li::before,.adec-hero .adec-badges li::before{background-color:var(--brand)}
ul.adec-docs a::before{background:var(--forest)}
ul.adec-docs a:hover{border-color:var(--brand);color:var(--forest)}
.adec-filter a[aria-current],.adec-filter a:hover{background:var(--forest);border-color:var(--forest)}
.nav-links .current,.nav-links a:hover{background:var(--brand);border-color:var(--brand)}
.wpcf7 input:focus,.wpcf7 select:focus,.wpcf7 textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(59,138,55,.2)}
.wpcf7 input[type=submit]:hover{background:var(--forest)}
.adec-quote cite{color:var(--accent)}
::selection{background:var(--brand)}
