/* =====================================================================
   ESTANQUE CREATIVO — Sistema visual 2026  ("Ideas que fluyen")
   Capa de estilo que se carga DESPUÉS de styles.css y la sobrescribe.
   Basada en la Guía de Marca: azul #021CD4 · navy #0F172A · pale #EEF2FF
   · slate #64748B · Inter · ondas, burbujas, ondas circulares y puntos.
   ===================================================================== */

:root {
  --primary: #021CD4;
  --primary-hover: #0015A6;
  --blue: #021CD4;
  --blue-2: #2A47F0;
  --blue-deep: #0A1580;
  --navy: #0F172A;
  --navy-2: #16213B;
  --navy-line: #233154;
  --pale: #EEF2FF;
  --pale-2: #C9D4FF;
  --lilac: #AFC0FF;
  --slate: #64748B;
  --ink: #0F172A;
  --line: #D9E0F5;
  --gold: #F5C84B;
  --border: #D9E0F5;
  --text-main: #0F172A;
  --text-dim: #64748B;
  --bg-soft: #EEF2FF;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-full: 999px;
  --max-width: 1296px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --gap-section: clamp(4rem, 8vw, 7.5rem);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20C120 0 240 0 360 20s240 20 360 0 240-20 360 0 240 20 360 0v20Z' fill='%23000'/%3E%3C/svg%3E");
  --squiggle-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M2 12q14-12 28 0t28 0 28 0 28 0' fill='none' stroke='%23021CD4' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --squiggle-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M2 12q14-12 28 0t28 0 28 0 28 0' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --ripples: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 420'%3E%3Cg fill='none' stroke='%23233154' stroke-width='2'%3E%3Cellipse cx='350' cy='210' rx='340' ry='160'/%3E%3Cellipse cx='350' cy='210' rx='250' ry='116'/%3E%3Cellipse cx='350' cy='210' rx='160' ry='72'/%3E%3Cellipse cx='350' cy='210' rx='80' ry='34'/%3E%3C/g%3E%3C/svg%3E");
  --ripples-pale: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 420'%3E%3Cg fill='none' stroke='%23C9D4FF' stroke-width='2'%3E%3Cellipse cx='350' cy='210' rx='340' ry='160'/%3E%3Cellipse cx='350' cy='210' rx='250' ry='116'/%3E%3Cellipse cx='350' cy='210' rx='160' ry='72'/%3E%3C/g%3E%3C/svg%3E");
  --ripples-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 420'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.18' stroke-width='2'%3E%3Cellipse cx='350' cy='210' rx='340' ry='160'/%3E%3Cellipse cx='350' cy='210' rx='250' ry='116'/%3E%3Cellipse cx='350' cy='210' rx='160' ry='72'/%3E%3C/g%3E%3C/svg%3E");
  --dots-white: radial-gradient(circle, rgba(255,255,255,.5) 2.6px, transparent 3px);
  --dots-blue: radial-gradient(circle, rgba(2,28,212,.35) 2.6px, transparent 3px);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blue); color: #fff; }
a { color: inherit; }

.container {
  max-width: var(--max-width);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- utilidades de marca ---------- */
.ec-eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
}
.ec-dark .ec-eyebrow, .ec-eyebrow--light { color: var(--lilac); }
.ec-squiggle {
  display: block; width: 120px; height: 24px;
  background: var(--squiggle-blue) no-repeat center/contain;
}
.ec-squiggle--white { background-image: var(--squiggle-white); }
.ec-lead { font-size: clamp(1.05rem, .6vw + .9rem, 1.3rem); line-height: 1.55; color: var(--slate); }
.ec-dark .ec-lead { color: #94A3B8; }
.ec-hide-sm { }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Olas divisorias: añade .ec-wave-top a una sección con fondo de color */
.ec-wave-top { position: relative; }
.ec-wave-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -39px; height: 40px;
  background: currentColor;
  -webkit-mask: var(--wave) no-repeat center/100% 100%; mask: var(--wave) no-repeat center/100% 100%;
  pointer-events: none;
}

/* ---------- BOTONES ---------- */
.ec-btn, .btn-primary, .btn-secondary, .anatomy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: 0 1.6rem;
  border-radius: var(--radius-full);
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  border: 2px solid var(--blue);
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: none;
}
.ec-btn i, .btn-primary i, .btn-secondary i { font-size: .9em; transition: transform .2s ease; }
.ec-btn:hover i { transform: translateX(3px); }
.ec-btn--primary, .btn-primary, .anatomy-btn { background: var(--blue); color: #fff; }
.ec-btn--primary:hover, .btn-primary:hover, .anatomy-btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(2,28,212,.6); }
.ec-btn--outline, .btn-secondary { background: transparent; color: var(--blue); }
.ec-btn--outline:hover, .btn-secondary:hover { background: var(--pale); }
.ec-btn--white { background: #fff; border-color: #fff; color: var(--blue); }
.ec-btn--white:hover { background: var(--pale); border-color: var(--pale); }
.ec-btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.ec-btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.ec-btn--sm { min-height: 44px; padding: 0 1.25rem; font-size: .95rem; }
.text-link, .read-more { color: var(--blue); font-weight: 600; }

/* =====================================================================
   TOPBAR + HEADER + NAV
   ===================================================================== */
.ec-topbar {
  background: var(--navy); color: #C7D2FE;
  font-size: .82rem; text-align: center;
}
.ec-topbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 40px; padding: .5rem var(--gutter);
  text-decoration: none;
}
.ec-topbar b { color: #fff; font-weight: 600; }
.ec-topbar i { color: #fff; font-size: .75rem; transition: transform .2s ease; }
.ec-topbar a:hover i { transform: translateX(3px); }

.site-header.ec-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.ec-header .nav-wrapper {
  min-height: 84px; padding-top: 0; padding-bottom: 0;
  flex-wrap: nowrap; gap: 2rem;
}
.ec-header .brand { gap: .8rem; flex: none; }
.ec-header .brand-logo { width: 46px; height: auto; }
.ec-header .brand-name {
  font-size: 1.28rem; line-height: .95; font-weight: 800; letter-spacing: -.035em;
  color: var(--blue);
}
.ec-header .main-nav {
  flex-wrap: nowrap; gap: clamp(1rem, 2.2vw, 2.25rem); margin-left: auto;
}
.ec-header .main-nav > a, .ec-header .dropdown-toggle {
  position: relative; font-size: .98rem; font-weight: 500; color: var(--navy);
  padding: .5rem 0; text-decoration: none; white-space: nowrap;
  background: none; border: 0; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
}
.ec-header .main-nav > a::after, .ec-header .dropdown-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  border-radius: 3px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.ec-header .main-nav > a:hover, .ec-header .dropdown-toggle:hover { color: var(--blue); }
.ec-header .main-nav > a:hover::after { transform: scaleX(1); }
.ec-header .main-nav > a.is-active, .ec-header .dropdown.is-active .dropdown-toggle { color: var(--blue); }
.ec-header .main-nav > a.is-active::after, .ec-header .dropdown.is-active .dropdown-toggle::after { transform: scaleX(1); }
.ec-header .dropdown { position: relative; }
.ec-header .dropdown-toggle i { font-size: .7rem; transition: transform .2s ease; }
.ec-header .dropdown:hover .dropdown-toggle i, .ec-header .dropdown.is-open .dropdown-toggle i { transform: rotate(180deg); }
.ec-header .dropdown-menu {
  position: absolute; top: calc(100% + 14px); right: -1rem; left: auto;
  min-width: 240px; padding: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.25);
  display: block; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.ec-header .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.ec-header .dropdown:hover .dropdown-menu, .ec-header .dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.ec-header .dropdown-menu a {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem .9rem; border-radius: 12px;
  font-size: .95rem; font-weight: 500; color: var(--navy); text-decoration: none;
}
.ec-header .dropdown-menu a i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--pale); color: var(--blue); font-size: .8rem; }
.ec-header .dropdown-menu a:hover { background: var(--pale); color: var(--blue); }
.ec-nav-actions { display: flex; align-items: center; gap: .75rem; flex: none; }
.ec-burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; position: relative;
}
.ec-burger span, .ec-burger span::before, .ec-burger span::after {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; border-radius: 2px;
  background: var(--navy); transform: translate(-50%,-50%); transition: transform .25s ease, opacity .2s;
  content: "";
}
.ec-burger span::before { transform: translate(-50%, calc(-50% - 6px)); }
.ec-burger span::after { transform: translate(-50%, calc(-50% + 6px)); }
.ec-header.is-open .ec-burger span { background: transparent; }
.ec-header.is-open .ec-burger span::before { transform: translate(-50%,-50%) rotate(45deg); }
.ec-header.is-open .ec-burger span::after { transform: translate(-50%,-50%) rotate(-45deg); }

/* =====================================================================
   HERO (INICIO) Y CABECERAS DE PÁGINA
   ===================================================================== */
.ec-hero { padding: clamp(3rem, 6vw, 5.5rem) 0 0; overflow: hidden; }
.ec-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.ec-hero h1 {
  font-size: clamp(3.4rem, 7.4vw, 7.25rem); line-height: .92; letter-spacing: -.05em; font-weight: 800;
  margin: 1.4rem 0 1.8rem; color: var(--navy);
}
.ec-hero h1 span { color: var(--blue); }
.ec-hero .ec-lead { max-width: 34rem; }
.ec-hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.ec-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: 36rem; }
.ec-stat b { display: block; font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; color: var(--blue); line-height: 1.1; }
.ec-stat span { font-size: .88rem; color: var(--slate); }
.ec-dark .ec-stat b { color: #fff; }
.ec-dark .ec-stat span { color: #7C8DB5; }

.ec-hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 640px; width: 100%; justify-self: end; }
.ec-hero-art .ec-pond {
  position: absolute; inset: 6% 0 0 3%;
  border-radius: 0 0 48px 48px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' preserveAspectRatio='none'%3E%3Cpath d='M0 50C60 4 120 4 180 46s120 42 180 0 120-42 180 0c30 20 50 28 60 30V552c0 26-22 48-48 48H48C22 600 0 578 0 552Z'/%3E%3C/svg%3E") no-repeat center/100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' preserveAspectRatio='none'%3E%3Cpath d='M0 50C60 4 120 4 180 46s120 42 180 0 120-42 180 0c30 20 50 28 60 30V552c0 26-22 48-48 48H48C22 600 0 578 0 552Z'/%3E%3C/svg%3E") no-repeat center/100% 100%;
  overflow: hidden;
}
.ec-pond img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .35; }
.ec-pond::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -8%; height: 46%; background: var(--ripples-white) no-repeat center/100% 100%; }
.ec-pond::after { content: ""; position: absolute; left: 7%; top: 44%; width: 26%; height: 18%; background-image: var(--dots-white); background-size: 22px 22px; }
.ec-hero-fish { position: absolute; left: 28%; top: 36%; width: 52%; z-index: 2; filter: brightness(0) invert(1); }
.ec-bubbles { position: absolute; right: 0; top: 0; width: 70px; height: 56px; z-index: 2; }
.ec-float {
  position: absolute; z-index: 3; background: #fff; border-radius: 20px;
  box-shadow: 0 22px 40px -12px rgba(15,23,42,.3);
  text-decoration: none; color: var(--navy);
  transition: transform .25s ease;
}
.ec-float:hover { transform: translateY(-4px); }
.ec-float--card { left: -4%; bottom: 5%; width: min(320px, 60%); display: flex; gap: 1rem; align-items: center; padding: 1rem; }
.ec-float--card img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; flex: none; }
.ec-float--card small { display: block; font-size: .7rem; letter-spacing: .14em; color: var(--blue); font-weight: 700; text-transform: uppercase; }
.ec-float--card strong { display: block; font-size: 1rem; line-height: 1.25; margin-top: .25rem; }
.ec-float--pill { right: -2%; top: 24%; background: var(--navy); color: #fff; border-radius: 999px; padding: .8rem 1.25rem; font-size: .9rem; font-weight: 600; display: flex; gap: .6rem; align-items: center; }
.ec-float--pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

/* Cabecera de páginas internas (listados) */
.ec-phero { position: relative; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 5vw, 4.5rem); overflow: hidden; }
.ec-phero.ec-dark { background: var(--navy); color: #fff; }
.ec-phero.ec-pale { background: var(--pale); }
.ec-phero.ec-dark::after, .ec-phero.ec-pale::after {
  content: ""; position: absolute; right: -160px; top: -40px; width: 700px; height: 420px; pointer-events: none;
  background: var(--ripples) no-repeat center/contain; opacity: .55;
}
.ec-phero.ec-pale::after { background-image: var(--ripples-pale); opacity: 1; top: auto; bottom: -140px; }
.ec-phero > .container { position: relative; z-index: 1; }
.ec-phero-top { display: grid; grid-template-columns: 1fr minmax(280px, 460px); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.ec-phero h1 {
  font-size: clamp(3.2rem, 8vw, 7.5rem); line-height: .9; letter-spacing: -.055em; font-weight: 800; margin-top: 1.2rem; color: inherit;
}
.ec-phero h1 span { color: var(--blue); }
.ec-phero.ec-dark h1 span { color: #8EA2FF; }
.ec-crumbs { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .88rem; color: var(--slate); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ec-crumbs a { text-decoration: none; }
.ec-crumbs a:hover { color: var(--blue); }
.ec-crumbs b { color: var(--navy); font-weight: 600; }
.ec-crumbs i { font-style: normal; color: #B6C1DE; }
.ec-dark .ec-crumbs { color: #7C8DB5; }
.ec-dark .ec-crumbs b { color: #fff; }
.ec-dark .ec-crumbs i { color: #33456F; }
.ec-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.ec-dark .ec-toolbar { border-color: var(--navy-line); }
.ec-pale .ec-toolbar { border-color: #D0D9F5; }
.ec-count-note { font-size: .95rem; color: var(--slate); }
.ec-count-note b { color: var(--navy); }
.ec-dark .ec-count-note b { color: #fff; }

/* =====================================================================
   SECCIONES
   ===================================================================== */
.section-block { padding-top: var(--gap-section); padding-bottom: 0; }
main > .section-block:last-child, main > section:last-child { padding-bottom: var(--gap-section); }
.section-header { display: block; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-header > div {
  display: grid; grid-template-columns: 1fr minmax(260px, 440px); gap: 1rem 3rem; align-items: end;
}
.section-header .ec-eyebrow { grid-column: 1 / -1; margin-bottom: -.25rem; }
.section-title {
  font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; color: var(--navy); margin: 0;
}
.section-desc { font-size: clamp(1rem, .5vw + .9rem, 1.2rem); line-height: 1.55; color: var(--slate); max-width: 440px; }
.posters-section .section-desc { max-width: 440px; }
.ec-dark .section-title { color: #fff; }
.ec-dark .section-desc { color: #94A3B8; }
.section-block hr, .hero-section hr { display: none; }

.ec-band-dark { background: var(--navy); color: #fff; padding-bottom: var(--gap-section) !important; margin-top: var(--gap-section); position: relative; overflow: hidden; }
.ec-band-dark::after { content: ""; position: absolute; right: -120px; top: 40px; width: 520px; height: 300px; background: var(--ripples) no-repeat center/contain; opacity: .55; pointer-events: none; }
.ec-band-dark > .container { position: relative; z-index: 1; }
.ec-band-pale { background: var(--pale); padding-bottom: var(--gap-section) !important; margin-top: calc(var(--gap-section) + 40px); color: var(--pale); }
.ec-band-pale > * { color: var(--ink); }
.ec-band-dark.ec-wave-top { overflow: visible; color: var(--navy); }
.ec-band-dark.ec-wave-top > * { color: #fff; }

/* MANIFIESTO (banda azul) */
.ec-manifesto { background: var(--blue); color: #fff; margin-top: calc(var(--gap-section) + 40px); padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem); }
.ec-manifesto.ec-wave-top { color: var(--blue); }
.ec-manifesto > .container { color: #fff; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(2rem, 5vw, 4rem); }
.ec-manifesto .big { font-size: clamp(1.7rem, 3.2vw, 2.9rem); line-height: 1.18; letter-spacing: -.025em; font-weight: 600; }
.ec-manifesto .big em { font-style: normal; color: var(--lilac); }
.ec-manifesto .side { color: #C7D2FE; font-size: 1rem; line-height: 1.6; margin-top: 1.75rem; }
.ec-manifesto .side b { color: #fff; }
.ec-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.ec-pillar { border-top: 1.5px solid rgba(255,255,255,.35); padding-top: 1.4rem; }
.ec-pillar i { font-size: 1.5rem; }
.ec-pillar h4 { font-size: 1.25rem; font-weight: 600; margin: .9rem 0 .5rem; }
.ec-pillar p { font-size: .95rem; line-height: 1.55; color: #C7D2FE; }

/* =====================================================================
   TARJETAS (posters = Anatomy, Notas, Libros)
   ===================================================================== */
.posters-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2vw, 1.75rem) clamp(1rem, 1.6vw, 1.5rem); }
.poster-card { display: block; text-decoration: none; color: inherit; position: relative; }
.poster-media {
  aspect-ratio: 3 / 4; border-radius: 24px; border: 0; overflow: hidden; position: relative;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
  transition: transform .3s ease, box-shadow .3s ease;
}
.poster-media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15,23,42,.06); pointer-events: none;
}
.poster-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.poster-card:hover .poster-media { transform: translateY(-6px); box-shadow: 0 30px 50px -24px rgba(2,28,212,.55); }
.poster-card:hover .poster-media img { transform: scale(1.03); }
.poster-meta { display: block; padding: 1.1rem .15rem 0; }
.poster-issue { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--blue); }
.poster-title { font-size: 1.15rem; line-height: 1.22; letter-spacing: -.02em; font-weight: 700; color: var(--navy); margin-top: .4rem; }
.poster-card:hover .poster-title { color: var(--blue); }
.ec-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.ec-chip-s {
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--slate); padding: .3rem .6rem; border-radius: 999px; line-height: 1.2;
}
.ec-chip-s.is-gp { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.ec-chip-s.is-gold { background: #FBE7A6; border-color: #FBE7A6; color: #6B4E00; }
.ec-chip-s.is-silver { background: #E5E9F2; border-color: #E5E9F2; color: #334155; }
.ec-chip-s.is-bronze { background: #F4D9C6; border-color: #F4D9C6; color: #7A3E12; }
.ec-chip-s.is-idea { background: var(--blue); border-color: var(--blue); color: #fff; }
.ec-dark .poster-issue { color: var(--lilac); }
.ec-dark .poster-title { color: #fff; }
.ec-dark .poster-card:hover .poster-title { color: var(--lilac); }
.ec-dark .ec-chip-s { border-color: #33456F; color: var(--lilac); }
.ec-dark .ec-chip-s.is-gp, .ec-dark .ec-chip-s.is-gold, .ec-dark .ec-chip-s.is-silver, .ec-dark .ec-chip-s.is-bronze { color: var(--navy); }
.ec-dark .ec-chip-s.is-idea { color: #fff; }
.ec-dark .poster-media { box-shadow: 0 0 0 1px var(--navy-line); }
.ec-dark .poster-card:hover .poster-media { box-shadow: 0 30px 50px -24px rgba(0,0,0,.7), 0 0 0 1px var(--navy-line); }
/* libros: portadas con lomo */
.ec-books .poster-media { border-radius: 8px 18px 18px 8px; background: var(--pale); box-shadow: 0 24px 40px -22px rgba(2,28,212,.55), inset 6px 0 0 rgba(0,0,0,.1); aspect-ratio: 2 / 3; }
.ec-books .poster-media::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0)); z-index: 2; }
.ec-books .posters-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
.ec-book-author { display: block; font-size: .88rem; color: var(--slate); margin-top: .2rem; font-weight: 400; letter-spacing: 0; }

/* Tarjeta "próxima edición" */
.ec-soon {
  border: 2px dashed #B6C1DE; border-radius: 24px; background: var(--pale);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; aspect-ratio: 3/4;
}
.ec-dark .ec-soon { background: var(--navy-2); border-color: #33456F; color: #fff; }
.ec-soon img { width: 76px; }
.ec-soon h3 { font-size: 1.35rem; font-weight: 700; margin-top: 1.1rem; letter-spacing: -.02em; }
.ec-soon p { font-size: .92rem; color: var(--slate); margin: .5rem 0 1.2rem; line-height: 1.5; }
.ec-dark .ec-soon p { color: #94A3B8; }

/* =====================================================================
   FILTROS
   ===================================================================== */
.filters-row { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .9rem; margin-bottom: clamp(2rem, 3vw, 2.5rem); }
.filter-dropdown { position: relative; }
.filter-dropdown-btn {
  width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 0 1.1rem 0 1.2rem; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--line); color: var(--navy);
  font-family: inherit; font-size: .98rem; font-weight: 500; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-shadow: none;
}
.filter-dropdown-btn:hover, .filter-dropdown.open .filter-dropdown-btn { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(2,28,212,.08); background: #fff; color: var(--navy); }
.filter-dropdown-btn i { color: var(--blue); font-size: .75rem; }
.filter-dropdown-menu {
  position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; min-width: 100%; max-height: 320px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: .5rem;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.3);
}
.filter-option { display: block; width: 100%; text-align: left; border: 0; background: none; font-family: inherit; font-size: .95rem; color: var(--navy); padding: .7rem .85rem; border-radius: 10px; cursor: pointer; }
.filter-option:hover { background: var(--pale); color: var(--blue); }
.filter-option.active { background: var(--blue); color: #fff; }
.ec-dark .filter-dropdown-btn { background: var(--navy-2); border-color: var(--navy-line); color: #fff; }
.ec-dark .filter-dropdown-btn:hover, .ec-dark .filter-dropdown.open .filter-dropdown-btn { background: var(--navy-2); color: #fff; border-color: #4D66FF; box-shadow: 0 0 0 4px rgba(77,102,255,.18); }
.ec-dark .filter-dropdown-btn i { color: var(--lilac); }
.posters-section > .container > .filter-dropdown { max-width: 320px; margin-bottom: clamp(2rem, 3vw, 2.5rem); }
.ec-filter-label { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin-bottom: .45rem; }
.ec-dark .ec-filter-label { color: #7C8DB5; }

/* =====================================================================
   EXPLORAR / NEWSLETTER / CTA
   ===================================================================== */
.ec-explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ec-ex {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  min-height: 300px; padding: 2rem; border-radius: 24px; border: 1.5px solid var(--line);
  text-decoration: none; color: var(--navy); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ec-ex:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 30px 50px -30px rgba(2,28,212,.5); }
.ec-ex--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.ec-ex .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--pale); color: var(--blue); display: grid; place-items: center; font-size: 1.4rem; }
.ec-ex--blue .ic { background: rgba(255,255,255,.14); color: #fff; }
.ec-ex .go { position: absolute; top: 2rem; right: 2rem; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; color: var(--blue); transition: transform .25s ease; }
.ec-ex--blue .go { color: #fff; }
.ec-ex:hover .go { transform: rotate(-45deg); }
.ec-ex h4 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -.025em; }
.ec-ex p { font-size: 1rem; line-height: 1.5; color: var(--slate); margin-top: .6rem; max-width: 22rem; }
.ec-ex--blue p { color: #C7D2FE; }
.ec-ex .cnt { display: inline-block; font-size: .9rem; font-weight: 600; color: var(--blue); margin-top: 1.1rem; }
.ec-ex--blue .cnt { color: #fff; }

/* newsletter-card (bloque "Sigue explorando" en todas las páginas) */
#explore-more, .section-block:has(> .newsletter-card) { padding-bottom: 0; }
.newsletter-card, .final-cta-card {
  max-width: var(--max-width) !important; margin-left: auto; margin-right: auto;
  position: relative; overflow: hidden;
  background: var(--navy) !important; color: #fff;
  border: 0 !important; border-radius: 36px !important; box-shadow: none !important;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.75rem, 5vw, 5rem) !important;
  text-align: left !important;
}
.container.newsletter-card, .container.final-cta-card { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max-width) - 2 * var(--gutter)) !important; }
.newsletter-card::after, .final-cta-card::after {
  content: ""; position: absolute; right: -60px; bottom: -110px; width: 460px; height: 280px; pointer-events: none;
  background: var(--ripples) no-repeat center/contain; opacity: .7;
}
.newsletter-card > *, .final-cta-card > * { position: relative; z-index: 1; }
.newsletter-copy::before, .final-cta-copy::before {
  content: "Sigue explorando"; display: block; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--lilac); margin-bottom: 1.1rem;
}
.final-cta-copy::before { content: "Hablemos"; }
.newsletter-title, .final-cta-title { font-size: clamp(2rem, 4.2vw, 3.6rem) !important; line-height: 1.02 !important; letter-spacing: -.035em; font-weight: 700 !important; color: #fff !important; margin-bottom: 1rem !important; max-width: 16ch; }
.newsletter-desc, .final-cta-desc { font-size: 1.1rem !important; line-height: 1.55; color: #94A3B8 !important; max-width: 44rem !important; margin-left: 0 !important; margin-right: 0 !important; }
.newsletter-card .mini-note { color: #7C8DB5; margin-top: 1.25rem; font-size: .85rem; }
.explore-links { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-start !important; margin-top: 2rem; }
.newsletter-card .btn-secondary, .final-cta-card .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.newsletter-card .btn-secondary:hover, .final-cta-card .btn-secondary:hover { background: #fff; color: var(--blue); border-color: #fff; }
.newsletter-card .btn-secondary:first-child { background: #fff; color: var(--blue); border-color: #fff; }
.final-cta-card { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.final-cta-card .btn-secondary { background: #fff; color: var(--blue); border-color: #fff; min-height: 60px; padding: 0 2rem; font-size: 1.05rem; }
.newsletter-form { display: flex; flex-wrap: nowrap; gap: 0; background: #fff; padding: 6px; border-radius: 999px; max-width: 560px; margin: 1.75rem 0 .75rem; box-shadow: 0 20px 40px -24px rgba(15,23,42,.4); border: 1.5px solid var(--line); }
.input-email { flex: 1; border: 0 !important; background: transparent !important; min-height: 52px; padding: 0 1.25rem !important; font-size: 1rem !important; font-family: inherit; color: var(--navy); outline: none; min-width: 0; border-radius: 999px; }
.input-email::placeholder { color: #94A3B8; }
.newsletter-form .btn-primary { flex: none; }
.newsletter-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(2,28,212,.12); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer.ec-footer {
  position: relative; margin-top: calc(var(--gap-section) + 40px); padding: 0;
  background: var(--blue); color: #fff; border: 0;
}
.ec-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -39px; height: 40px; background: var(--blue);
  -webkit-mask: var(--wave) no-repeat center/100% 100%; mask: var(--wave) no-repeat center/100% 100%;
}
.ec-footer-inner { overflow: hidden; }
.ec-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 3rem; padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 4vw, 4rem); }
.ec-footer .brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: #fff; }
.ec-footer .brand img { width: 58px; filter: brightness(0) invert(1); }
.ec-footer .brand span { font-size: 1.6rem; font-weight: 800; line-height: .95; letter-spacing: -.035em; }
.ec-footer .claim { font-size: 1.2rem; line-height: 1.5; color: #DCE3FF; margin-top: 1.5rem; max-width: 22rem; }
.ec-footer h6 { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--lilac); font-weight: 600; margin-bottom: 1.25rem; }
.ec-footer ul { list-style: none; display: flex; flex-direction: column; gap: .8rem; padding: 0; margin: 0; }
.ec-footer ul a { color: #fff; text-decoration: none; font-size: 1rem; }
.ec-footer ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ec-footer .ec-squiggle { margin-bottom: 1rem; }
.ec-footer .small { color: #C7D2FE; font-size: .95rem; line-height: 1.55; }
.ec-footer-word {
  font-size: clamp(3.2rem, 11.6vw, 10.2rem); font-weight: 800; letter-spacing: -.06em; line-height: .8;
  color: rgba(255,255,255,.1); white-space: nowrap; padding-bottom: clamp(1.25rem, 2.5vw, 2.25rem); user-select: none;
}
.ec-footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding: 1.6rem 0 2.2rem; border-top: 1px solid rgba(255,255,255,.22); font-size: .9rem; color: #C7D2FE; }
.ec-social { display: flex; gap: .7rem; }
.ec-social a { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); display: grid; place-items: center; color: #fff; text-decoration: none; transition: background .2s ease, color .2s ease; }
.ec-social a:hover { background: #fff; color: var(--blue); }

/* =====================================================================
   PÁGINAS DE DETALLE: ARTÍCULOS · ANATOMY · LIBROS
   ===================================================================== */
.post-hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem) !important; padding-bottom: clamp(3rem, 6vw, 5rem) !important; }
.post-header-wrap, .booknotes-header-wrap { max-width: var(--max-width); }
.post-meta-top, .booknotes-meta-top { gap: .6rem .9rem; font-size: .85rem; margin-bottom: 1.4rem; }
.post-tag-pill, .booknote-type-pill {
  background: var(--blue); color: #fff; border: 0; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .45rem .8rem; border-radius: 999px;
}
.post-tag-pill + .post-tag-pill { background: var(--pale); color: var(--blue); }
.post-title-xl, .booknotes-title-xl {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem) !important; line-height: .98 !important; letter-spacing: -.045em !important; font-weight: 800 !important;
  color: var(--navy); max-width: 16ch; margin-bottom: 1.4rem;
}
.post-subhead, .booknotes-subhead { font-size: clamp(1.05rem, .6vw + .95rem, 1.35rem) !important; line-height: 1.55 !important; color: var(--slate); max-width: 46rem; margin-bottom: 2rem; }

/* Encabezado de detalle separado (.ec-detail-hero) */
.ec-detail-hero { position: relative; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.ec-detail-hero + .post-hero { padding-top: 0 !important; }

/* Anatomy: héroe navy con ondas */
.ec-page--anatomy .ec-detail-hero { background: var(--navy); color: #fff; overflow: hidden; padding-bottom: clamp(4rem, 7vw, 6rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.ec-page--anatomy .ec-detail-hero::before { content: ""; position: absolute; right: 0; top: -40px; width: min(620px, 55vw); height: 400px; background: var(--ripples) no-repeat center/contain; opacity: .55; pointer-events: none; }
.ec-page--anatomy .ec-detail-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: #fff; pointer-events: none;
  -webkit-mask: var(--wave) no-repeat center/100% 100%; mask: var(--wave) no-repeat center/100% 100%;
}
.ec-page--anatomy .ec-detail-hero > .container { position: relative; z-index: 1; }
.ec-page--anatomy .post-title-xl { color: #fff; }
.ec-page--anatomy .post-subhead { color: #94A3B8; }
.ec-page--anatomy .post-date-line, .ec-page--anatomy .post-readtime { color: #94A3B8; }
.ec-page--anatomy .ec-detail-hero .post-tag-pill { background: var(--gold); color: var(--navy); }
.ec-page--anatomy .ec-detail-hero .post-tag-pill + .post-tag-pill { background: var(--navy-2); color: #C7D2FE; border: 1px solid var(--navy-line); }
.ec-page--anatomy .ec-detail-hero .pab-trigger { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.18) !important; }
.ec-page--anatomy .ec-detail-hero .pab-name { color: #fff; }
.ec-page--anatomy .ec-detail-hero .pab-handle { color: var(--lilac); }
.ec-page--anatomy .ec-detail-hero .pab-more-hint { color: #C7D2FE; border-color: rgba(255,255,255,.25); background: transparent; }
.ec-detail-hero .post-author-banner { position: relative; z-index: 20; }
.ec-detail-hero { overflow: visible !important; }
.ec-page--anatomy .ec-detail-hero { clip-path: inset(0 0 -400px 0); }

/* Artículo con héroe azul (ya existente) */
.post-hero--azul { background: var(--blue) !important; }
.post-hero--azul .post-tag-pill { background: #fff; color: var(--blue); }
.post-hero--azul .post-title-xl { color: #fff; }
.post-hero-wave { display: none; }
.post-hero--azul::after, .booknotes-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: #fff; pointer-events: none;
  -webkit-mask: var(--wave) no-repeat center/100% 100%; mask: var(--wave) no-repeat center/100% 100%;
}
.post-hero--azul::before { content: ""; position: absolute; right: -120px; top: 0; width: 640px; height: 380px; background: var(--ripples-white) no-repeat center/contain; pointer-events: none; }

/* Autor (banner) */
.pab-trigger { border-radius: 999px !important; border: 1.5px solid var(--line) !important; background: #fff !important; }
.post-hero--azul .pab-trigger { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.18) !important; }
.post-hero--azul .pab-name { color: #fff; }
.post-hero--azul .pab-handle { color: var(--lilac); }
.post-hero--azul .pab-more-hint { color: #C7D2FE; border-color: rgba(255,255,255,.25); background: transparent; }
.pab-card { border-radius: 24px !important; }
.pab-card-btn-primary { background: var(--blue) !important; border-radius: 999px !important; }
.pab-card-btn-secondary { border-radius: 999px !important; }

/* Cuerpo */
.post-body-inner, .booknotes-body-inner { max-width: 820px !important; }
.post-body-inner p, .post-body p, .booknotes-text {
  font-size: clamp(1.02rem, .25vw + .97rem, 1.15rem) !important; line-height: 1.75 !important; color: #334155;
}
.post-body-inner h2, .post-h2, .booknotes-h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem) !important; line-height: 1.1 !important; letter-spacing: -.03em !important; font-weight: 700 !important; color: var(--navy) !important;
  margin-top: 3rem !important; margin-bottom: 1rem !important;
}
.post-body-inner h2.section-title { font-size: clamp(1.7rem, 2.8vw, 2.4rem) !important; }
.booknotes-h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.post-body-inner ul.post-list li, .booknotes-list li { font-size: 1.08rem; line-height: 1.65; }
.post-body-inner ul.post-list { list-style: none; margin-left: 0; }
.post-body-inner ul.post-list li, .booknotes-list li { position: relative; padding-left: 2rem; }
.post-body-inner ul.post-list li::before, .booknotes-list li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 18px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M1 5q4-5 8 0t8 0' fill='none' stroke='%23021CD4' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.booknotes-list { list-style: none; padding-left: 0 !important; }
.post-body-inner img.img-fluid, .post-body-inner > img, .photo-frame, .post-image img { border-radius: 28px !important; border: 0 !important; box-shadow: none !important; overflow: hidden; }
.post-body-inner img.img-fluid { width: 100%; margin: 1rem 0 1.5rem; }

/* Citas / pull quotes */
.booknotes-quote-block, .post-quote-block {
  position: relative; margin: 2.75rem 0 !important; padding: 2.4rem 2.6rem 2.4rem !important;
  background: var(--blue) !important; color: #fff; border: 0 !important; border-radius: 28px !important; box-shadow: none !important;
  overflow: hidden; max-width: none !important;
}
.booknotes-quote-block::before, .post-quote-block::before { content: ""; display: block; width: 110px; height: 22px; background: var(--squiggle-white) no-repeat left center/contain; margin-bottom: 1.1rem; }
.booknotes-quote-block::after, .post-quote-block::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 360px; height: 220px; background: var(--ripples-white) no-repeat center/contain; pointer-events: none; }
.booknotes-quote-text, .post-quote-text, .post-body-inner .booknotes-quote-block p {
  position: relative; z-index: 1; color: #fff !important; font-size: clamp(1.3rem, 2vw, 1.75rem) !important; line-height: 1.32 !important; font-weight: 600 !important; letter-spacing: -.02em; margin: 0 !important; font-style: normal;
}
.kcc-note { background: var(--pale) !important; border: 1.5px solid #D6DEFF !important; border-radius: 24px !important; padding: 1.6rem 1.8rem !important; max-width: none !important; }
.kcc-figure { border-radius: 28px !important; border: 1.5px solid var(--line) !important; box-shadow: none !important; max-width: none !important; }

/* Ficha rápida (Anatomy) */
.quick-facts { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 !important; border: 1.5px solid var(--line); border-radius: 24px; overflow: hidden; margin: 1.5rem 0 2rem !important; }
.fact-chip { display: block !important; padding: 1.15rem 1.35rem !important; border-radius: 0 !important; background: #fff !important; border: 0 !important; border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
.fact-chip:nth-child(3n) { border-right: 0 !important; }
.fact-label { display: block; font-size: .68rem !important; letter-spacing: .18em !important; color: var(--slate) !important; margin-bottom: .35rem; }
.fact-value { display: block; font-size: 1.05rem; font-weight: 600 !important; color: var(--navy); }

/* Tarjeta de anatomía + matriz */
.anatomy-card, .idc-card { border-radius: 32px !important; border: 0 !important; background: var(--pale) !important; box-shadow: none !important; padding: clamp(1.75rem, 4vw, 3rem) !important; position: relative; overflow: hidden; }
.anatomy-badge { background: var(--blue) !important; color: #fff !important; border: 0 !important; padding: .45rem .85rem !important; font-weight: 700 !important; }
.anatomy-title, .idc-title { font-size: clamp(1.6rem, 2.8vw, 2.4rem) !important; font-weight: 700 !important; letter-spacing: -.03em !important; line-height: 1.1; }
.anatomy-text, .anatomy-list li { font-size: 1.02rem !important; line-height: 1.65; }
.anatomy-list li::before { content: "" !important; top: .55em !important; width: 18px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M1 5q4-5 8 0t8 0' fill='none' stroke='%23021CD4' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }
.anatomy-list li { padding-left: 2rem !important; }
.anatomy-image { border-radius: 20px !important; border: 0 !important; transform: none !important; }
.idc-card { background: var(--navy) !important; color: #fff; }
.idc-card .idc-title { color: #fff; }
.idc-card .idc-desc, .idc-card .idc-diagnosis-text { color: #94A3B8 !important; }
.idc-stat { background: var(--navy-2) !important; border: 1px solid var(--navy-line) !important; border-radius: 18px !important; }
.idc-stat-value { color: #fff !important; }
.idc-stat-label { color: #7C8DB5 !important; }
.idc-chart { border-radius: 18px; overflow: hidden; }
.idc-axis-y-label, .idc-axis-x-label, .idc-y-ticks, .idc-x-ticks { color: #94A3B8 !important; }

/* Recursos / tarjetas de referencia */
.resource-card, .ref-card, .tool-card, .resource-card-lg {
  border-radius: 24px !important; border: 1.5px solid var(--line) !important; box-shadow: none !important; padding: 1.75rem !important; text-decoration: none; color: inherit;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
a.resource-card:hover, a.ref-card:hover { transform: translateY(-4px); border-color: var(--blue) !important; box-shadow: 0 26px 40px -28px rgba(2,28,212,.5) !important; }
.resource-eyebrow, .resource-type-pill, .ref-pill, .tool-tag { background: var(--pale) !important; color: var(--blue) !important; border: 0 !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; font-size: .68rem !important; padding: .4rem .75rem !important; }
.resource-title { font-size: 1.2rem !important; font-weight: 700 !important; letter-spacing: -.02em; }
.resource-desc { font-size: .98rem !important; }

/* Highlights (frases) */
.hl-section { background: var(--pale) !important; border: 0 !important; margin-top: calc(var(--gap-section) + 40px) !important; position: relative; color: var(--pale); }
.hl-section::before { content: ""; position: absolute; left: 0; right: 0; top: -39px; height: 40px; background: var(--pale); -webkit-mask: var(--wave) no-repeat center/100% 100%; mask: var(--wave) no-repeat center/100% 100%; }
.hl-section > .container { color: var(--ink); }
.hl-section .post-body-inner { max-width: var(--max-width) !important; }
.hl-title { font-size: clamp(2rem, 4vw, 3.4rem) !important; font-weight: 700 !important; letter-spacing: -.035em !important; }
.hl-grid { gap: 1.25rem !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)) !important; }
.hl-grid li { background: #fff !important; border-radius: 24px; padding: 1.8rem !important; gap: .9rem !important; border: 1.5px solid #D6DEFF; transition: transform .25s ease, box-shadow .25s ease; }
.hl-grid li:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(2,28,212,.45); }
.hl-grid li::before { content: ""; display: block; width: 64px; height: 14px; background: var(--squiggle-blue) no-repeat left center/contain; }
.hl-grid q { font-size: 1.3rem !important; line-height: 1.25 !important; font-weight: 700 !important; letter-spacing: -.02em; color: var(--navy) !important; }
.hl-grid p { font-size: .98rem !important; line-height: 1.6 !important; }
.hl-grid li.is-featured { background: var(--blue) !important; border-color: var(--blue); }
.hl-grid li.is-featured::before { background-image: var(--squiggle-white); }
.hl-grid li.is-featured q { color: #fff !important; }
.hl-grid li.is-featured p { color: #DCE3FF !important; }
.hl-copy { font-weight: 600 !important; }
.hl-toast { background: var(--navy) !important; }

/* Fuentes */
.post-sources { border-top: 0 !important; }
.sources-list li { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.sources-list a { color: var(--blue); font-weight: 500; }

/* Compartir */
.share-section { padding-top: clamp(2.5rem, 5vw, 4rem) !important; }
.share-container { border-radius: 999px !important; border: 1.5px solid var(--line) !important; background: #fff !important; box-shadow: 0 20px 40px -30px rgba(15,23,42,.35) !important; max-width: 640px; margin: 0 auto; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.share-title { color: var(--navy) !important; font-weight: 600 !important; }
.share-btn { width: 46px !important; height: 46px !important; border-radius: 50% !important; border: 1.5px solid var(--line) !important; background: #fff !important; color: var(--navy) !important; }
.share-btn:hover { background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; }

/* Navegación anterior / siguiente */
.post-nav, .booknotes-nav { max-width: var(--max-width) !important; display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.25rem !important; border-top: 0 !important; padding-top: clamp(2.5rem, 4vw, 3.5rem) !important; padding-bottom: 0 !important; }
.post-nav-link, .booknotes-nav-link {
  display: flex; align-items: center; min-height: 104px; max-width: none !important;
  padding: 1.5rem 1.9rem; border-radius: 24px; background: var(--pale); color: var(--navy) !important;
  font-size: 1.12rem !important; font-weight: 600 !important; letter-spacing: -.015em; line-height: 1.3;
  text-decoration: none !important; transition: transform .25s ease, background .25s ease;
}
.post-nav-link:hover, .booknotes-nav-link:hover { transform: translateY(-3px); text-decoration: none !important; }
.post-nav-link.next-post, .booknotes-nav-link:last-child:not(:first-child) { background: var(--blue); color: #fff !important; justify-content: flex-end; text-align: right; }
.post-nav-link:only-child, .booknotes-nav-link:only-child { grid-column: 1 / -1; }

/* LIBROS: héroe pálido + portada */
.booknotes-hero { background: var(--pale); position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem) !important; padding-bottom: clamp(3.5rem, 6vw, 5.5rem) !important; overflow: hidden; }
.booknotes-hero::before { content: ""; position: absolute; right: -140px; bottom: -120px; width: 640px; height: 380px; background: var(--ripples-pale) no-repeat center/contain; pointer-events: none; }
.booknotes-hero > .container { position: relative; z-index: 1; }
.booknotes-book-intro { display: grid !important; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; margin-top: 2.5rem !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.booknotes-cover-frame { border-radius: 8px 20px 20px 8px !important; overflow: hidden; border: 0 !important; box-shadow: 0 50px 80px -36px rgba(2,28,212,.6), inset 10px 0 0 rgba(0,0,0,.15) !important; max-width: 300px !important; width: 100% !important; }
.booknotes-cover-frame img { width: 100%; height: auto; border-radius: 0 !important; }
.booknotes-book-title { font-size: clamp(1.6rem, 3vw, 2.6rem) !important; font-weight: 800 !important; letter-spacing: -.035em; line-height: 1.02; color: var(--navy); }
.booknotes-book-author { font-size: 1.15rem !important; color: var(--slate) !important; margin-top: .5rem; }
.booknotes-book-tagline { font-size: 1.05rem !important; color: #334155 !important; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #D0D9F5; line-height: 1.6; }
.booknotes-grid-2col { gap: 1.25rem !important; }
.booknotes-col-card { border-radius: 24px !important; border: 1.5px solid var(--line) !important; box-shadow: none !important; padding: 1.75rem !important; background: #fff !important; }
.booknotes-h3.good { color: var(--blue) !important; }
.booknotes-h3.bad { color: var(--slate) !important; }
.booknotes-quote-deck { gap: 1.25rem !important; }
.booknotes-quote-card { border-radius: 24px !important; background: var(--pale) !important; border: 0 !important; box-shadow: none !important; padding: 1.75rem !important; }
.booknotes-quote-card:nth-child(2) { background: var(--navy) !important; }
.booknotes-quote-card:nth-child(2) .booknotes-quote-card-text { color: #fff !important; }
.booknotes-quote-card-text { font-size: 1.15rem !important; font-weight: 600 !important; line-height: 1.4; color: var(--navy) !important; }

/* =====================================================================
   PÁGINAS ESTÁTICAS: Sobre / About / Contacto / Newsletter
   ===================================================================== */
.ec-about-hero .ec-phero-top { align-items: center; grid-template-columns: 1fr minmax(260px, 480px); }
.ec-portrait { position: relative; border-radius: 240px 240px 36px 36px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--blue); }
.ec-portrait img { width: 100%; height: 100%; object-fit: cover; }
.ec-portrait figcaption { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; background: #fff; border-radius: 20px; padding: 1rem 1.25rem; }
.ec-portrait figcaption small { display: block; font-size: .7rem; letter-spacing: .16em; color: var(--blue); font-weight: 700; text-transform: uppercase; }
.ec-portrait figcaption b { display: block; font-size: 1.15rem; margin-top: .2rem; color: var(--navy); }
.ec-portrait figcaption span { font-size: .88rem; color: var(--slate); }
.principles-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 0 2rem !important; border-top: 2px solid var(--navy); }
.principle-card { border: 0 !important; background: none !important; box-shadow: none !important; padding: 2rem 0 0 !important; border-radius: 0 !important; }
.principle-title { font-size: 1.45rem !important; font-weight: 700 !important; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .8rem !important; color: var(--navy); }
.principle-text { font-size: 1.02rem !important; color: var(--slate) !important; line-height: 1.6 !important; }
.whatwedo-card { border-radius: 24px !important; border: 1.5px solid var(--line) !important; box-shadow: none !important; background: #fff !important; padding: 2rem !important; }
.whatwedo-card:hover { border-color: var(--blue) !important; transform: translateY(-4px); box-shadow: 0 26px 40px -28px rgba(2,28,212,.5) !important; }
.whatwedo-icon { width: 60px !important; height: 60px !important; border-radius: 50% !important; background: var(--pale) !important; color: var(--blue) !important; border: 0 !important; box-shadow: none !important; }
.whatwedo-card-title { font-size: 1.3rem !important; font-weight: 700 !important; letter-spacing: -.02em; }
.whatwedo-card-desc { font-size: 1rem !important; color: var(--slate) !important; }
.soft-bg { background: var(--pale) !important; }
.founder-photo-frame, .about-photo-frame { border-radius: 28px !important; border: 0 !important; box-shadow: none !important; overflow: hidden; }

/* Contacto / Newsletter */
.ec-contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px, 600px); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ec-form-card { background: var(--navy); color: #fff; border-radius: 36px; padding: clamp(1.75rem, 4vw, 3rem); position: relative; overflow: hidden; }
.ec-form-card::after { content: ""; position: absolute; right: -90px; top: -70px; width: 380px; height: 230px; background: var(--ripples) no-repeat center/contain; pointer-events: none; }
.ec-form-card > * { position: relative; z-index: 1; }
.ec-form-card h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.025em; }
.ec-form-card .sub { color: #94A3B8; margin-top: .5rem; }
.ec-form-card .newsletter-form { background: #fff; border-color: #fff; max-width: none; }
.ec-form-card .mini-note, .ec-form-card #newsletter-message { color: #94A3B8; }
.ec-info { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
.ec-info a, .ec-info div.ci { display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem 1.4rem; border-radius: 20px; border: 1.5px solid var(--line); text-decoration: none; color: var(--navy); transition: border-color .2s ease; }
.ec-info a:hover { border-color: var(--blue); }
.ec-info .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--pale); color: var(--blue); display: grid; place-items: center; flex: none; font-size: 1.1rem; }
.ec-info small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.ec-info b { font-size: 1.12rem; font-weight: 600; }
.ec-proof { display: flex; align-items: center; gap: .9rem; margin-top: 1.75rem; }
.ec-proof .sp-avatar { width: 42px; height: 42px; border: 2px solid var(--navy); margin-left: -12px; box-shadow: none; }
.ec-proof .sp-avatar:first-child { margin-left: 0; }
.ec-proof p { font-size: .95rem; color: #C7D2FE; }

/* Contact form (si existe) */
.contact-card { border-radius: 32px !important; border: 0 !important; background: var(--navy) !important; color: #fff; box-shadow: none !important; }
.input-text, .input-area { border-radius: 16px !important; border: 1.5px solid var(--line) !important; min-height: 56px; font-family: inherit; font-size: 1rem !important; }
.input-text:focus, .input-area:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 4px rgba(2,28,212,.12); }

/* Gracias */
.ec-thanks { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 4rem var(--gutter); background: var(--pale); position: relative; overflow: hidden; }
.ec-thanks::after { content: ""; position: absolute; left: 50%; bottom: -160px; width: 900px; height: 420px; transform: translateX(-50%); background: var(--ripples-pale) no-repeat center/contain; }
.ec-thanks > div { position: relative; z-index: 1; max-width: 40rem; }
.ec-thanks img { width: 96px; margin: 0 auto 1.5rem; }
.ec-thanks h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .95; }
.ec-thanks p { font-size: 1.15rem; color: var(--slate); margin: 1.25rem 0 2rem; line-height: 1.55; }

/* Lightbox */
.lightbox { background: rgba(15,23,42,.92) !important; }
.lightbox img { border-radius: 20px; }

/* Barra de progreso */
.scroll-progress { height: 4px; background: var(--blue); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .ec-header .main-nav { gap: 1.1rem; }
  .ec-header .main-nav > a { font-size: .92rem; }
  .posters-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ec-books .posters-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .filters-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1024px) {
  .ec-burger { display: inline-block; }
  .ec-header .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: 0 30px 40px -30px rgba(15,23,42,.35);
    display: none; margin: 0;
  }
  .ec-header.is-open .main-nav { display: flex; }
  .ec-header .main-nav > a, .ec-header .dropdown-toggle { padding: 1rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; }
  .ec-header .main-nav > a::after, .ec-header .dropdown-toggle::after { display: none; }
  .ec-header .main-nav > a.is-active { color: var(--blue); font-weight: 600; }
  .ec-header .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: .25rem 0 0; display: none; min-width: 0; }
  .ec-header .dropdown.is-open .dropdown-menu { display: block; }
  .ec-header .dropdown:hover .dropdown-menu { opacity: 1; }
  .ec-hero-grid { grid-template-columns: 1fr; }
  .ec-hero-art { justify-self: center; max-width: 560px; margin-top: 1rem; }
  .ec-phero-top { grid-template-columns: 1fr; align-items: start; }
  .section-header > div { grid-template-columns: 1fr; }
  .ec-manifesto > .container { grid-template-columns: 1fr; }
  .ec-footer-top { grid-template-columns: 1fr 1fr; }
  .ec-contact-grid { grid-template-columns: 1fr; }
  .ec-about-hero .ec-phero-top { grid-template-columns: 1fr; }
  .ec-portrait { max-width: 460px; }
}
@media (max-width: 820px) {
  .posters-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ec-books .posters-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ec-explore-grid, .ec-pillars, .principles-grid { grid-template-columns: 1fr !important; }
  .filters-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quick-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fact-chip:nth-child(3n) { border-right: 1px solid var(--line) !important; }
  .fact-chip:nth-child(2n) { border-right: 0 !important; }
  .post-nav, .booknotes-nav { grid-template-columns: 1fr; }
  .booknotes-book-intro { grid-template-columns: 1fr; }
  .booknotes-cover-frame { max-width: 220px !important; }
}
@media (max-width: 560px) {
  .ec-topbar a { font-size: .75rem; }
  .ec-topbar .ec-hide-sm { display: none; }
  .ec-header .nav-wrapper { min-height: 72px; gap: 1rem; }
  .ec-header .brand-logo { width: 40px; }
  .ec-header .brand-name { font-size: 1.1rem; }
  .ec-nav-actions .ec-btn { display: none; }
  .posters-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem .9rem; }
  .poster-title { font-size: 1rem; }
  .poster-media { border-radius: 18px; }
  .filters-row { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .filter-dropdown-btn { min-height: 52px; font-size: .9rem; padding: 0 .9rem; }
  .ec-float--card { left: 0; width: 78%; }
  .ec-float--pill { right: 0; font-size: .8rem; }
  .ec-footer-top { grid-template-columns: 1fr; gap: 2.25rem; }
  .newsletter-form { flex-direction: column; border-radius: 24px; gap: 6px; }
  .newsletter-form .btn-primary { width: 100%; }
  .quick-facts { grid-template-columns: 1fr; }
  .fact-chip { border-right: 0 !important; }
  .booknotes-quote-block, .post-quote-block { padding: 1.75rem !important; }
  .share-container { border-radius: 24px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Evita desbordes horizontales sin romper el header sticky */
body { overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }

/* ---------- Listados: destacado, etiquetas, newsletter ---------- */
.ec-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--blue); color: #fff; padding: .45rem .8rem; border-radius: 999px; }
.ec-featrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); text-decoration: none; color: inherit; }
.ec-featrow-media { border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--pale); }
.ec-featrow-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s ease; }
.ec-featrow:hover .ec-featrow-media img { transform: scale(1.03); }
.ec-featrow h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 1.1rem 0 1rem; color: var(--navy); }
.ec-featrow:hover h2 { color: var(--blue); }
.ec-featrow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 1.75rem; color: var(--slate); font-size: .95rem; }
.ec-featrow--compact { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: 36px; background: var(--pale); }
.ec-featrow--compact .ec-featrow-media { aspect-ratio: 16 / 11; border-radius: 24px; }
.ec-toolbar .filter-dropdown { min-width: 260px; }
.posters-grid.ec-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2.5rem 1.75rem; }
.ec-books-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 3rem 2.5rem !important; max-width: 1000px; margin: 0 auto; }
.ec-hl-page { margin-top: calc(var(--gap-section) * .6 + 40px) !important; }
.ec-hl-page .post-body-inner { padding-top: 0; }

.ec-news .ec-news-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 520px); gap: 2rem 4rem; align-items: center; }
.ec-news .newsletter-copy::before { content: "Newsletter"; }
.ec-news .newsletter-title { max-width: 14ch; }
.ec-news .newsletter-form { margin: 0 0 .75rem; border-color: #fff; }
.ec-news .mini-note { margin-top: .5rem; }
.ec-news-grid > div:last-child { position: relative; }

@media (max-width: 1024px) {
  .ec-featrow, .ec-featrow--compact { grid-template-columns: 1fr; }
  .ec-news .ec-news-grid { grid-template-columns: 1fr; }
  .posters-grid.ec-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .ec-books-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 2rem 1rem !important; }
  .posters-grid.ec-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem .9rem; }
  .ec-toolbar .filter-dropdown { min-width: 0; width: 100%; }
}
.ec-header .main-nav > a, .ec-header .dropdown-toggle { line-height: 1.5; }
.ec-manifesto + .ec-band-dark { margin-top: 0; }
.filters-row .filter-dropdown, .ec-toolbar .filter-dropdown { display: block; width: 100%; }
.ec-toolbar .filter-dropdown { width: auto; }
.ec-news .newsletter-title { max-width: 18ch; }
main > section:last-child { padding-bottom: 0 !important; }
.ec-filters-hero { margin: clamp(2rem, 4vw, 3rem) 0 0 !important; }
.ec-hl-page { padding-top: clamp(2.5rem, 5vw, 4rem) !important; }
.ec-featrow-media img { object-position: center top; }

/* ---------- Sobre / Contacto / Newsletter ---------- */
.ec-phero h1.ec-h1-md { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: .98; letter-spacing: -.045em; }
.ec-about-hero .ec-phero-top { align-items: center; }
.ec-num { display: block; font-size: .85rem; font-weight: 700; color: var(--blue); letter-spacing: .06em; margin-bottom: .9rem; }
.ec-ex--static { cursor: default; }
.ec-ex--static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.ec-ex--static.ec-ex--blue:hover { border-color: var(--blue); }
.ec-ex--static { min-height: 260px; }
.ec-banner { margin: 0; border-radius: 36px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--navy); }
.ec-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }

.ec-contact-grid h1 { font-size: clamp(3.2rem, 7.5vw, 7rem); line-height: .9; letter-spacing: -.055em; font-weight: 800; margin-top: 1.2rem; }
.ec-contact-grid h1 span { color: var(--blue); }
.ec-dark .ec-contact-grid h1 span { color: #8EA2FF; }
.ec-form { margin-top: 1.25rem; }
.ec-field { border: 0; padding: 0; margin: 1.4rem 0 0; min-width: 0; }
.ec-field label, .ec-field legend { display: block; font-size: .8rem; font-weight: 600; color: var(--lilac); letter-spacing: .06em; margin-bottom: .6rem; padding: 0; }
.ec-input { width: 100%; min-height: 56px; border-radius: 16px; background: var(--navy-2); border: 1.5px solid var(--navy-line); padding: 0 1.15rem; color: #fff; font-family: inherit; font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.ec-input::placeholder { color: #64748B; }
.ec-input:focus { border-color: #4D66FF; box-shadow: 0 0 0 4px rgba(2,28,212,.35); }
.ec-ta { min-height: 150px; padding: 1rem 1.15rem; resize: vertical; line-height: 1.5; }
.ec-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.ec-opts { display: flex; flex-wrap: wrap; gap: .55rem; }
.ec-opts label { margin: 0; cursor: pointer; }
.ec-opts input { position: absolute; opacity: 0; pointer-events: none; }
.ec-opts span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid #33456F; font-size: .92rem; color: #C7D2FE; transition: all .2s ease; }
.ec-opts label:hover span { border-color: #fff; }
.ec-opts input:checked + span { background: #fff; color: var(--blue); border-color: #fff; font-weight: 600; }
.ec-opts input:focus-visible + span { box-shadow: 0 0 0 4px rgba(77,102,255,.45); }
.ec-form-foot { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2rem; }
.ec-form-foot span { font-size: .82rem; color: #7C8DB5; max-width: 16rem; }
.ec-form-card--light { background: #fff; color: var(--navy); }
.ec-form-card--light::after { background-image: var(--ripples-pale); }
.ec-form-card--light .sub { color: var(--slate); }
.ec-form-card--light .newsletter-form { border-color: var(--line); }
.ec-form-card--light .ec-proof p { color: var(--slate); }
.ec-form-card--light .ec-proof .sp-avatar { border-color: #fff; }
.ec-form-card--light #newsletter-message { color: var(--slate); }
.ec-news-hero { padding-bottom: clamp(4rem, 7vw, 6rem); }
.ec-pillars--dark { margin-top: clamp(3rem, 6vw, 5rem); }
.ec-pillars--dark .ec-pillar { border-color: var(--navy-line); }
.ec-pillars--dark .ec-pillar i { color: var(--lilac); }
.ec-pillars--dark .ec-pillar p { color: #94A3B8; }
.ec-news .ec-proof p { color: #94A3B8; }

/* Páginas heredadas (about, blog, recursos) */
.about-title, .blog-page-title, .resources-page-title { font-size: clamp(2.6rem, 6vw, 5rem) !important; line-height: .98 !important; letter-spacing: -.045em !important; font-weight: 800 !important; color: var(--navy); }
.blog-row { border-color: var(--line) !important; padding: 1.75rem 0 !important; }
.blog-row-title { font-size: clamp(1.3rem, 2vw, 1.7rem) !important; font-weight: 700 !important; letter-spacing: -.02em; }
.blog-row-title:hover { color: var(--blue) !important; }
.blog-row-tag { background: var(--pale) !important; color: var(--blue) !important; border: 0 !important; font-weight: 700; }
.blog-list-section .container { max-width: 900px !important; }
.hero-title { font-size: clamp(2.4rem, 5vw, 4.4rem) !important; letter-spacing: -.045em !important; font-weight: 800 !important; }

@media (max-width: 560px) {
  .ec-row2 { grid-template-columns: 1fr; }
  .ec-banner { aspect-ratio: 4 / 5; border-radius: 24px; }
  .ec-form-foot .ec-btn { width: 100%; }
}

/* separación entre encabezado blanco y cuerpo del artículo */
.post-hero:not(.post-hero--azul) + .post-body.section-block, .post-hero:not(.post-hero--azul) + article.section-block { padding-top: 0 !important; }
.post-hero:not(.post-hero--azul) { padding-bottom: clamp(2rem, 4vw, 3rem) !important; }
.post-hero--azul { margin-bottom: clamp(2rem, 4vw, 3rem); }
.booknotes-col-card ul { padding-left: 1.1rem; }
.booknotes-mini-list li { font-size: .98rem; line-height: 1.55; margin-bottom: .45rem; }
/* videos y listas largas */
.post-body-inner iframe, .post-body iframe { width: 100% !important; max-width: 100%; height: auto !important; aspect-ratio: 16 / 9; border-radius: 24px; display: block; }
.post-body-inner li, .post-body-inner p { overflow-wrap: anywhere; }
.post-body-inner ul:not([class]), .anatomy-text ul:not([class]), .post-section ul:not([class]) { padding-left: 1.4rem; }
.post-body-inner ul:not([class]) li { margin-bottom: .4rem; line-height: 1.65; }
@media (max-width: 560px) { .ec-footer-word { font-size: 12.4vw; } }
@media (max-width: 1024px) {
  .ec-header .dropdown { display: block; width: 100%; }
  .ec-header .dropdown-menu a { padding: .85rem .25rem; font-size: 1.05rem; }
  .ec-header .main-nav { max-height: calc(100vh - 120px); overflow-y: auto; }
}
.ec-thanks::after { opacity: .55; bottom: -260px; }


/* =====================================================================
   AJUSTES MÓVILES Y TABLETA (v3)
   ===================================================================== */
/* decoraciones contenidas en su sección (no generan scroll lateral) */
.post-hero--azul, .ec-manifesto, .hl-section, .ec-band-pale, .ec-detail-hero, .ec-thanks { overflow-x: clip; }
/* anclas no quedan debajo del header fijo */
[id] { scroll-margin-top: 96px; }
/* enlaces dentro de citas azules: legibles */
.booknotes-quote-block a, .post-quote-block a, .booknotes-quote-block em, .booknotes-quote-block strong { color: #fff !important; }
.booknotes-quote-block a, .post-quote-block a { text-decoration: underline; text-underline-offset: 3px; }
/* objetivo táctil mínimo en enlaces sueltos */
.text-link, .read-more, .pab-handle { display: inline-flex; align-items: center; min-height: 40px; }
.pab-handle { min-height: 24px; }
/* el último filtro impar ocupa la fila completa */
.filters-row .filter-dropdown:last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (max-width: 1024px) {
  .ec-header .main-nav { max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); }
  .ec-explore-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ec-ex { padding: 1.5rem; min-height: 260px; }
  .ec-ex .go { top: 1.5rem; right: 1.5rem; }
}

/* tableta vertical */
@media (max-width: 900px) {
  .ec-explore-grid { grid-template-columns: 1fr; }
  .ec-ex { min-height: 0; flex-direction: row; align-items: center; gap: 1.25rem; padding: 1.4rem 4.5rem 1.4rem 1.4rem; }
  .ec-ex .ic { flex: none; width: 56px; height: 56px; }
  .ec-ex .go { top: 50%; transform: translateY(-50%); width: 42px; height: 42px; }
  .ec-ex:hover .go { transform: translateY(-50%) rotate(-45deg); }
  .ec-ex h4 { font-size: 1.35rem; }
  .ec-ex p { margin-top: .35rem; font-size: .95rem; }
  .ec-ex .cnt { margin-top: .5rem; }
  .ec-pillars { grid-template-columns: 1fr; gap: 0; }
  .ec-pillar { display: grid; grid-template-columns: 2rem 1fr; column-gap: 1rem; padding: 1.25rem 0; }
  .ec-pillar i { grid-row: span 2; margin-top: .2rem; }
  .ec-pillar h4 { margin: 0 0 .25rem; }
  .ec-footer-top { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; }
  .ec-footer-top > div:first-child, .ec-footer-top > div:last-child { grid-column: 1 / -1; }
}

/* teléfonos */
@media (max-width: 560px) {
  :root { --gutter: 1.25rem; --gap-section: 3.5rem; }
  .ec-wave-top::before, .ec-footer::before, .hl-section::before { height: 28px; top: -27px; }
  .ec-manifesto, .ec-band-pale, .hl-section, .site-footer.ec-footer { margin-top: calc(var(--gap-section) + 28px) !important; }
  .ec-manifesto + .ec-band-dark { margin-top: 0 !important; }

  /* tipografía */
  .ec-hero h1 { font-size: clamp(3rem, 15vw, 4.2rem); margin: 1rem 0 1.25rem; }
  .ec-phero h1, .ec-contact-grid h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .ec-phero h1.ec-h1-md { font-size: clamp(2.2rem, 10vw, 3rem); }
  .section-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .ec-eyebrow { font-size: .72rem; letter-spacing: .2em; }
  .post-title-xl, .booknotes-title-xl { font-size: clamp(2.1rem, 10.5vw, 2.8rem) !important; }
  .ec-manifesto .big { font-size: 1.55rem; }

  /* hero inicio */
  .ec-hero { padding-top: 2rem; }
  .ec-hero-ctas { gap: .75rem; }
  .ec-hero-ctas .ec-btn { flex: 1 1 auto; }
  .ec-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; }
  .ec-stat b { font-size: 1.9rem; }
  .ec-stat span { font-size: .78rem; line-height: 1.3; display: block; }
  .ec-hero-art { aspect-ratio: 1 / .92; margin-top: .5rem; }
  .ec-float--pill { top: 16%; padding: .6rem .95rem; }
  .ec-float--card { bottom: 2%; padding: .75rem; gap: .75rem; }
  .ec-float--card img { width: 48px; height: 48px; }
  .ec-float--card strong { font-size: .92rem; }

  /* encabezados de listados */
  .ec-phero { padding-top: 1.5rem; }
  .ec-crumbs { margin-bottom: 1.25rem; font-size: .82rem; }
  .ec-phero .ec-stats { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.5rem; }
  .ec-featrow { margin-top: 2rem; gap: 1.25rem; }
  .ec-featrow-media { border-radius: 24px; aspect-ratio: 4 / 3; }
  .ec-featrow h2 { font-size: 1.85rem; margin: .9rem 0 .6rem; }
  .ec-featrow-meta { margin-top: 1.25rem; }
  .ec-featrow--compact { padding: 1rem; border-radius: 28px; }
  .ec-toolbar { flex-direction: column; align-items: stretch; }

  /* tarjetas */
  .poster-meta { padding-top: .8rem; }
  .poster-issue { font-size: .7rem; }
  .ec-chips { gap: .3rem; margin-top: .6rem; }
  .ec-chip-s { font-size: .64rem; padding: .28rem .5rem; }
  .poster-card[data-award] .ec-chip-s:not([class*=" is-"]) { display: none; }
  .posters-grid.ec-grid-3 .ec-soon, .posters-grid .ec-soon { grid-column: 1 / -1; aspect-ratio: auto; padding: 1.75rem 1.5rem; flex-direction: row; text-align: left; gap: 1.1rem; flex-wrap: wrap; }
  .ec-soon img { width: 56px; }
  .ec-soon h3 { margin-top: 0; }
  .ec-soon > div, .ec-soon p { flex: 1 1 180px; }
  .ec-soon p { margin: 0; }
  .ec-books .poster-media { aspect-ratio: 2 / 3; }

  /* filtros */
  .filters-row { gap: .5rem; }
  .filter-dropdown-btn { min-height: 50px; border-radius: 14px; font-size: .92rem; }
  .filter-dropdown-menu { max-height: 60vh; }

  /* bloques */
  .newsletter-card, .final-cta-card { border-radius: 28px !important; padding: 2rem 1.4rem !important; }
  .container.newsletter-card, .container.final-cta-card { width: calc(100% - 2 * var(--gutter)); }
  .newsletter-title, .final-cta-title { font-size: 2rem !important; }
  .final-cta-card .btn-secondary { width: 100%; }
  .explore-links .btn-secondary { width: 100%; }
  .ec-form-card { border-radius: 28px; padding: 1.6rem 1.25rem; }
  .ec-info a { padding: 1rem; }
  .ec-info b { font-size: 1rem; word-break: break-word; }
  .ec-banner { aspect-ratio: 4 / 3; }

  /* detalle */
  .ec-detail-hero, .post-hero { padding-top: 1.75rem !important; }
  .post-meta-top, .booknotes-meta-top { margin-bottom: 1rem; }
  .post-subhead, .booknotes-subhead { margin-bottom: 1.5rem; }
  .post-body-inner h2, .post-h2, .booknotes-h2, .post-body-inner h2.section-title { font-size: 1.6rem !important; margin-top: 2.25rem !important; }
  .booknotes-quote-block, .post-quote-block { padding: 1.5rem 1.4rem !important; border-radius: 24px !important; margin: 2rem 0 !important; }
  .booknotes-quote-text, .post-quote-text, .post-body-inner .booknotes-quote-block p { font-size: 1.2rem !important; }
  .kcc-note { padding: 1.25rem !important; }
  .kcc-figure { padding: 1rem .5rem !important; }
  .anatomy-card, .idc-card { border-radius: 24px !important; padding: 1.4rem !important; }
  .idc-chart-wrap { overflow-x: auto; }
  .booknotes-book-intro { gap: 1.25rem; margin-top: 1.75rem !important; }
  .booknotes-cover-frame { max-width: 180px !important; }
  .post-nav-link, .booknotes-nav-link { min-height: 80px; padding: 1.1rem 1.25rem; font-size: 1rem !important; }
  .share-container { width: calc(100% - 2 * var(--gutter)) !important; padding: 1rem !important; }
  .resource-card, .ref-card, .tool-card, .resource-card-lg, .booknotes-col-card, .booknotes-quote-card { padding: 1.25rem !important; }

  /* footer */
  .ec-footer-top { padding: 3rem 0 2rem; }
  .ec-footer .claim { font-size: 1.05rem; }
  .ec-footer-word { font-size: 11vw; padding-bottom: 1rem; }
  .ec-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* teléfonos muy angostos (320) */
@media (max-width: 360px) {
  .ec-header .brand-name { font-size: 1rem; }
  .ec-stat b { font-size: 1.6rem; }
  .posters-grid { gap: 1.1rem .7rem; }
  .poster-title { font-size: .95rem; }
  .ec-float--pill { display: none; }
}

/* teléfono horizontal */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header.ec-header { position: relative; }
  .ec-header .main-nav { max-height: 70vh; }
}
.filters-row .filter-dropdown { margin-bottom: 0; width: 100%; }
@media (min-width: 561px) and (max-width: 1024px) {
  .posters-grid, .posters-grid.ec-grid-3, .ec-books .posters-grid, .ec-books-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 2rem 1.25rem !important; }
  .ec-hero-art { max-width: 460px; }
  .ec-hero h1 { font-size: clamp(3.6rem, 9vw, 5.5rem); }
  .ec-phero-top { gap: 1.5rem; }
  .ec-soon { aspect-ratio: auto; }
}
