/* modern-ea4ac 0.1.1 | Dark mode is the default, light mode is an explicit choice. */
:root {
  color-scheme: dark;
  --page: #0a121f;
  --header: #0e1a2b;
  --surface: #122238;
  --surface-2: #182b43;
  --surface-3: #1e344f;
  --line: #30435b;
  --text: #f1f6ff;
  --muted: #afbed1;
  --soft: #8b9eb7;
  --accent: #59c5ff;
  --accent-hover: #8bd9ff;
  --accent-bg: rgba(69, 170, 238, .13);
  --orange: #ffb547;
  --shadow: 0 24px 75px rgba(0, 0, 0, .19);
  --radius: 16px;
  --max: 1216px;
  --content: 820px;
}
html[data-theme="light"] {
  color-scheme: light;
  --page: #f4f7fc;
  --header: #ffffff;
  --surface: #ffffff;
  --surface-2: #edf3fb;
  --surface-3: #e5edf7;
  --line: #d8e3ef;
  --text: #172d49;
  --muted: #4c6280;
  --soft: #637c97;
  --accent: #075fb1;
  --accent-hover: #084681;
  --accent-bg: rgba(12, 88, 184, .08);
  --orange: #b7660c;
  --shadow: 0 18px 55px rgba(24, 55, 88, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--page); color: var(--text); margin: 0;
  font: 16px/1.65 "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 3px;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
input, textarea, select { max-width: 100%; }
.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap; }
.screen-reader-text:focus, .skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; background: var(--orange); color: #071422; padding: 10px 16px; z-index: 10000; position: fixed; left: 14px; top: 14px; }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ea4ac-icon { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }

/* Header and menu */
.site-header { background: var(--header); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.site-header__main { min-height: 106px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--text); line-height: 1.12; min-width: 0; }
.brand:hover, .footer-brand:hover { color: var(--text); }
.brand-symbol { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 13px; color: #e2f5ff; background: linear-gradient(140deg, #076ba9, #034478); border: 1px solid #3981a9; }
.brand-symbol .ea4ac-icon { width: 32px; height: 32px; }
.brand-copy { display: flex; flex-direction: column; gap: 5px; }
.brand-name { font-weight: 850; letter-spacing: -.06em; font-size: 33px; }
.brand-dot { color: var(--accent); }
.brand-tagline { font-size: 12px; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.brand-custom-logo { max-width: 220px; max-height: 74px; width: auto; object-fit: contain; }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.header-search { display: flex; align-items: center; width: min(350px, 31vw); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.header-search input { background: transparent; color: var(--text); border: none; width: 100%; min-width: 0; padding: 11px 7px 11px 18px; outline: none; }
.header-search input::placeholder { color: var(--soft); }
.header-search button { background: transparent; color: var(--muted); border: none; display: grid; place-items: center; padding: 9px 13px; }
.header-search:focus-within { border-color: var(--accent); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; white-space: nowrap; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 700; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle__sun { display: inline-flex; }
.theme-toggle__moon { display: none; }
html[data-theme="light"] .theme-toggle__sun { display: none; }
html[data-theme="light"] .theme-toggle__moon { display: inline-flex; }
.theme-toggle .ea4ac-icon { width: 18px; height: 18px; }
.nav-toggle { display: none; padding: 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.nav-toggle__close { display: none; }
.primary-nav { border-top: 1px solid var(--line); }
.menu-list { margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; list-style: none; gap: 0 8px; }
.menu-list > li { position: relative; }
.menu-list > li > a { display: block; padding: 14px 13px; font-size: 13px; font-weight: 700; color: var(--muted); transition: color .15s; }
.menu-list > li > a:hover, .menu-list > li.current-menu-item > a, .menu-list > li.current-menu-ancestor > a { color: var(--accent); }
.menu-list .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; max-width: 300px; padding: 8px; margin: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.menu-list li:hover > .sub-menu, .menu-list li:focus-within > .sub-menu { display: block; }
.menu-list .sub-menu a { display: block; color: var(--text); font-size: 13px; padding: 9px 10px; border-radius: 6px; }
.menu-list .sub-menu a:hover { background: var(--surface-2); color: var(--accent); }

/* Basic layout */
.site-main { min-height: 48vh; padding: 40px 0 80px; }
.section { margin-top: 55px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.section-heading h2, .section-title { font-size: clamp(21px, 2.5vw, 27px); font-weight: 800; line-height: 1.3; letter-spacing: -.025em; margin: 0; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.section-heading__link, .text-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; font-weight: 750; }
.section-heading__link .ea4ac-icon, .text-link .ea4ac-icon { width: 17px; height: 17px; }
.eyebrow { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.pill { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); font-size: 11px; letter-spacing: .025em; font-weight: 800; }
.pill--subtle { background: var(--surface-3); color: var(--muted); }
.button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 17px; border-radius: 10px; border: 1px solid transparent; font-weight: 800; color: #062036; background: #66ccff; }
.button-primary:hover { color: #051927; background: #99deff; }
.page-header { margin-bottom: 30px; }
.page-header h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.16; letter-spacing: -.035em; margin: 8px 0 10px; }
.page-header p { color: var(--muted); margin: 0; max-width: 750px; }
.modern-breadcrumbs { color: var(--soft); margin: 0 0 18px; font-size: 13px; }
.modern-breadcrumbs a { color: var(--muted); }
.modern-breadcrumbs span { margin: 0 9px; }

/* Home hero */
.hero { display: grid; grid-template-columns: .8fr 1.2fr; align-items: stretch; gap: 22px; }
.hero__intro { background: radial-gradient(circle at 20% 18%,rgba(34,162,239,.16),transparent 48%),var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3.2vw, 44px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero__intro h1 { line-height: 1.09; letter-spacing: -.045em; margin: 15px 0 20px; font-size: clamp(34px, 3.3vw, 53px); max-width: 450px; }
.hero__intro p { color: var(--muted); font-size: 15px; max-width: 410px; margin: 0 0 27px; }
.hero__featured { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.hero__featured .post-cover { border-radius: 0; aspect-ratio: 16/7; }
.hero__featured-body { padding: 21px 26px 25px; }
.hero__featured-title { font-size: clamp(20px, 2.1vw, 29px); line-height: 1.22; letter-spacing: -.025em; margin: 9px 0 12px; }
.hero__featured-title a { color: var(--text); }
.hero__featured-title a:hover { color: var(--accent); }
.hero__featured-excerpt { margin: 0; color: var(--muted); font-size: 14px; }
.hero__featured-meta { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 12px; }
.hero__featured .post-cover { background: #0b2949; }

/* Cards */
.posts-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 21px; }
.article-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .18s, border-color .18s; min-width: 0; }
.article-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.article-card__cover { display: block; color: var(--accent); background: var(--surface-2); }
.post-cover { position: relative; aspect-ratio: 1.65; overflow: hidden; background: linear-gradient(140deg, #0e3451, #102239); }
.post-cover__image { height: 100%; width: 100%; object-fit: cover; display: block; }

/* Tarjetas EA4AC: formato 3:2 sin recortar capturas */
.article-card .post-cover {
    aspect-ratio: 3 / 2;
}

.article-card .post-cover__image {
    object-fit: contain;
}

.post-cover__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; background: radial-gradient(circle at 20% 20%,#206a8c70,transparent 50%), linear-gradient(135deg, #123552, #0b233b); color: #81c9ed; overflow: hidden; }
.post-cover__placeholder .cover-icon { width: min(27%, 100px); height: auto; z-index: 1; opacity: .85; }
.post-cover__grid { position: absolute; inset: 0; background-image: linear-gradient(#ffffff08 1px, transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px); background-size: 29px 29px; mask-image: linear-gradient(70deg,transparent,#000); }
.article-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--soft); font-size: 12px; }
.article-card__title { font-size: 18px; line-height: 1.35; margin: 0; letter-spacing: -.015em; }
.article-card__title a { color: var(--text); }
.article-card__title a:hover { color: var(--accent); }
.article-card__excerpt { font-size: 13px; line-height: 1.63; color: var(--muted); margin: 0 0 8px; flex: 1; }
.article-card .text-link { margin-top: auto; }

/* Tools */
.tools-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); background: linear-gradient(135deg,var(--surface),var(--surface-2)); }
.tools-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.tool-card { display: flex; gap: 13px; padding: 17px; align-items: center; border-radius: 12px; background: var(--page); border: 1px solid var(--line); min-width: 0; color: var(--text); }
.tool-card:hover { color: var(--text); border-color: var(--accent); background: var(--surface); }
.tool-card__icon { display: grid; place-items: center; width: 45px; height: 45px; background: var(--accent-bg); color: var(--accent); border-radius: 11px; flex: 0 0 auto; }
.tool-card__info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tool-card__info strong { font-size: 14px; line-height: 1.3; }
.tool-card__info small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.tool-card__arrow { margin-left: auto; color: var(--accent); }
.tool-card__arrow .ea4ac-icon { width: 17px; height: 17px; }

/* Standard page and full article */
.content-wrap { max-width: var(--content); margin-left: auto; margin-right: auto; }
.content-wrap--wide, .ea4ac-page-wide .content-wrap { max-width: var(--max); }
.post-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 34px; align-items: start; }
.post-layout:not(:has(.article-aside)) { display: block; max-width: var(--content); margin: 0 auto; }
.entry { min-width: 0; }
.entry-head { margin-bottom: 25px; }
.entry-head h1 { font-size: clamp(30px,4vw,46px); line-height: 1.16; letter-spacing: -.025em; margin: 12px 0 15px; overflow-wrap: anywhere; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; color: var(--soft); font-size: 13px; }
.entry-featured-image { display: block; height: auto; width: 100%; border-radius: 14px; margin: 0 0 28px; }
.entry-content { color: var(--text); font-size: 16px; line-height: 1.78; min-width: 0; overflow-wrap: anywhere; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content :is(h2,h3,h4,h5,h6) { color: var(--text); line-height: 1.35; letter-spacing: -.015em; margin: 1.8em 0 .65em; }
.entry-content h2 { font-size: 27px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 18px; }
.entry-content :is(ol,ul) { padding-left: 1.65em; margin: 0 0 20px; }
.entry-content li { margin: 5px 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--accent-hover); }
.entry-content :is(img,video,iframe,embed,object) { max-width: 100%; }
.entry-content iframe { border: 0; }
.entry-content :is(pre,code,kbd) { font-family: Consolas, Menlo, monospace; }
.entry-content pre { background: var(--surface); padding: 20px; border-radius: 10px; border: 1px solid var(--line); overflow: auto; line-height: 1.45; font-size: 13px; }
.entry-content :not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); padding: 2px 5px; border-radius: 4px; }
.entry-content blockquote { background: var(--surface); border-left: 3px solid var(--accent); margin: 18px 0; padding: 14px 18px; border-radius: 0 7px 7px 0; }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 18px 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; min-width: 65px; }
.entry-content th { background: var(--surface-2); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
.entry-content .wp-caption { max-width: 100%; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.entry-content .wp-caption-text, .entry-content figcaption { color: var(--muted); font-size: 12px; text-align: center; }
.entry-content :is(.aligncenter,div.aligncenter) { display: block; margin: 17px auto; }
.entry-content .alignleft { float: left; margin: 5px 20px 15px 0; }
.entry-content .alignright { float: right; margin: 5px 0 15px 20px; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content .wp-block-image img { height: auto; }
.entry-content .wp-block-group { margin-bottom: 18px; }
.entry-content .wp-block-button__link { text-decoration: none; }
.entry-content .ea4ac-indice { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 22px 0 28px; }
.entry-content .ea4ac-indice :is(a,span) { color: var(--accent); }
.entry-content .ea4ac-indice ol { margin-bottom: 0; }
/* Keep custom PHP/plugin tools wide without forcing editorial card styles. */
.ea4ac-page-wide .entry-content { max-width: none; }
.ea4ac-page-wide .entry-content:has(.dme-landing) { background: #fff; padding: 16px 28px; color: #183451; border-radius: 12px; }
.ea4ac-page-wide .entry-content:has(.dme-landing) .dme-landing { max-width: 100%; }
.entry-content .dme-landing p { color: inherit; }
.article-aside { position: sticky; top: 22px; }
.article-aside .widget { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 15px; }
.article-aside .widget-title { font-size: 17px; line-height: 1.35; margin: 0 0 13px; }
.article-aside ul { margin: 0; padding-left: 20px; }
.article-aside li { margin: 6px 0; font-size: 13px; }
.entry-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.entry-footer a { font-size: 13px; }
.related-posts { margin-top: 50px; }
.post-navigation { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 30px; }
.post-navigation .nav-links a { font-size: 13px; }
.pagination, .nav-links { margin-top: 30px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 6px; display: inline-block; }
.page-numbers.current, a.page-numbers:hover { color: #062036; background: #71d0ff; border-color: #71d0ff; }
.no-results { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 25px; }
.no-results form { max-width: 550px; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form input[type="search"] { width: 100%; border-radius: 8px; padding: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.search-form input[type="submit"] { background: var(--accent); border: 0; color: var(--page); border-radius: 8px; padding: 11px 16px; font-weight: 700; }

/* Comments */
.comments-area { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 27px; }
.comments-title { font-size: 23px; margin: 0 0 16px; }
.comment-list { list-style: none; padding-left: 0; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { padding: 19px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; margin: 0 0 14px; }
.comment-meta { font-size: 13px; }
.comment-author .avatar { float: left; width: 36px; height: 36px; border-radius: 50%; margin-right: 12px; }
.comment-metadata { color: var(--muted); }
.comment-content { clear: both; font-size: 14px; padding-top: 12px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link { font-size: 12px; }
.comment-respond { margin-top: 27px; }
.comment-respond label { display: block; margin: 0 0 5px; }
.comment-form textarea, .comment-form input:not([type="checkbox"]):not([type="submit"]) { width: 100%; color: var(--text); border-radius: 8px; background: var(--surface); border: 1px solid var(--line); padding: 10px 12px; }
.comment-form textarea { min-height: 140px; }
.comment-form .submit { border: none; border-radius: 9px; background: #71d0ff; color: #061c2a; padding: 12px 21px; font-weight: 800; }
.comment-form-cookies-consent label { display: inline; }

/* Footer */
.site-footer { background: var(--header); border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(0,1fr) minmax(0,1fr); gap: 60px; padding-top: 50px; padding-bottom: 45px; }
.footer-brand { color: var(--text); font-size: 27px; line-height: 1; font-weight: 850; letter-spacing: -.04em; }
.footer-brand span { color: var(--accent); }
.footer-main p { margin: 13px 0; font-size: 13px; color: var(--muted); line-height: 1.75; }
.footer-main h2 { font-size: 14px; margin: 0 0 14px; }
.footer-main a { color: var(--muted); }
.footer-main a:hover { color: var(--accent); }
.footer-menu { margin: 0; list-style: none; padding: 0; }
.footer-menu li { font-size: 13px; margin: 7px 0; }
.footer-small { font-size: 12px; }
.footer-bottom { border-top: 1px solid var(--line); display: flex; gap: 15px; justify-content: space-between; flex-wrap: wrap; padding-top: 19px; padding-bottom: 22px; color: var(--soft); font-size: 11px; }

/* WordPress core utilities */
.sticky { position: relative; }
.bypostauthor { border-left: 3px solid var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.gallery-item { margin: 0; }
.gallery-item img { height: auto; }
.alignwide { margin-left: auto; margin-right: auto; max-width: 100%; }
.alignfull { width: 100%; }
.wp-block-cover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
