/*
Theme Name: Iwales 2026
Theme URI: https://iwales.org/
Author: Iwales
Description: Tema de bloques ligero y responsive para la web pública de Asociación Iwales.
Version: 0.8.33
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: iwales-2026
*/

:root {
  --iwales-dark: #3a3a39;
  --iwales-red: #c1304a;
  --iwales-gold: #e3b023;
  --iwales-blue: #1d699b;
  --iwales-pink: #e5114a;
  --iwales-bg: #f7f7f5;
  --iwales-text: #242424;
  --iwales-muted: #686868;
  --iwales-border: #e4e4e0;
  --iwales-radius: 22px;
  --iwales-shadow: 0 18px 55px rgba(34,34,34,.08);
  --iwales-shell: 1180px;
  --iwales-gutter: clamp(20px, 4vw, 48px);
  --iwales-split-gap: clamp(1rem, 1.6vw, 1.5rem);
  --iwales-split-max: 1060px;
  --iwales-mark-color: url('assets/iwales-mark-transparent.png');
  --iwales-mark-white: url('assets/iwales-mark-white.png');
  --iwales-mark-light: url('assets/iwales-mark-light.png');
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--iwales-gold);
  outline-offset: 3px;
}

/* Consistent horizontal rhythm */
.iwales-header-inner,
.iwales-section,
.iwales-notice,
.iwales-participa,
.iwales-content,
.iwales-site-footer > .wp-block-columns,
.iwales-site-footer > .wp-block-separator {
  width: min(calc(100% - (var(--iwales-gutter) * 2)), var(--iwales-shell)) !important;
  max-width: var(--iwales-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Header */
.iwales-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(58,58,57,.10);
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,.96);
}

.iwales-header-inner {
  min-height: 74px;
  gap: 1.5rem;
}

.iwales-header-inner > .wp-block-group {
  flex: 0 0 auto;
  min-width: 0;
}

.iwales-header-inner .wp-block-site-logo img {
  max-height: 50px;
  width: auto;
}

.iwales-header-inner .wp-block-site-title {
  margin: 0;
  white-space: nowrap;
  font-size: 1.05rem;
}

.iwales-header-inner .wp-block-navigation {
  margin-left: auto;
  font-size: .9rem;
  font-weight: 700;
}

.iwales-header-inner .wp-block-navigation__container {
  gap: clamp(.7rem, 1.2vw, 1.15rem);
}

.iwales-header-inner .wp-block-navigation-item__content {
  text-decoration: none;
  white-space: nowrap;
}

.iwales-header-inner .wp-block-navigation-item__content:hover {
  color: var(--iwales-red);
}

.iwales-header-inner .iwales-nav-cta > .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--iwales-red);
  color: #fff !important;
}

/* Hero */
.iwales-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  background:
    radial-gradient(circle at 92% 18%, rgba(227,176,35,.28), transparent 30%),
    radial-gradient(circle at 72% 90%, rgba(29,105,155,.38), transparent 34%),
    linear-gradient(125deg, #272726 0%, #393939 60%, #4c3038 100%);
}

.iwales-hero::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  right: -72px;
  bottom: -110px;
  border: 38px solid rgba(229,17,74,.20);
  pointer-events: none;
}

.iwales-hero > .wp-block-group.alignwide {
  width: min(calc(100% - (var(--iwales-gutter) * 2)), var(--iwales-shell)) !important;
  max-width: var(--iwales-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.iwales-hero > .wp-block-group.alignwide.is-layout-constrained > * {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.iwales-hero > .wp-block-spacer:first-child,
.iwales-hero > .wp-block-spacer:last-child {
  height: clamp(52px, 6vw, 76px) !important;
}

.iwales-kicker {
  display: inline-block;
  margin-bottom: .6rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--iwales-gold);
}

.iwales-hero h1 {
  max-width: 780px;
  margin-top: .35rem;
  margin-bottom: 1.25rem;
  font-size: clamp(2.75rem, 5vw, 4.7rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.iwales-hero p:not(.iwales-kicker) {
  max-width: 680px;
  margin-bottom: 1.4rem;
  font-size: clamp(1.08rem, 1.6vw, 1.35rem) !important;
  line-height: 1.55;
}

/* Buttons */
.iwales-actions { gap: .75rem; }
.iwales-actions .wp-block-button__link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  border-radius: 999px;
  padding-inline: 1.2rem;
}
.iwales-button-primary .wp-block-button__link { background: var(--iwales-red); color: #fff; }
.iwales-button-secondary .wp-block-button__link { background: #fff; color: var(--iwales-dark); }

/* Home sections */
.iwales-section {
  padding-block: clamp(3.25rem, 5.5vw, 4.75rem);
}

/* WordPress constrained layout was making headings narrower than cards.
   On home sections every direct child shares the same grid width. */
.iwales-section.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.iwales-section-heading {
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 0 1.8rem 0 !important;
}

.iwales-section-heading h2 {
  margin-top: .25rem;
  margin-bottom: .7rem;
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.12;
  text-wrap: balance;
}

.iwales-section-heading p {
  color: var(--iwales-muted);
  font-size: 1.05rem;
}

.iwales-grid {
  display: grid !important;
  width: 100%;
  gap: clamp(1rem, 1.8vw, 1.3rem);
  align-items: stretch;
}

/* Gutenberg may keep the flow-layout block gap on direct children even
   after this group is converted to CSS Grid. That pushed cards 2+ down,
   making the first card look larger. Grid gap is the only spacing here. */
.iwales-grid > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-width: 0;
}

.iwales-grid > .iwales-card {
  height: 100%;
}

.iwales-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.iwales-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.iwales-card {
  min-width: 0;
  border: 1px solid var(--iwales-border);
  border-radius: var(--iwales-radius);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.iwales-card:hover { transform: translateY(-3px); box-shadow: var(--iwales-shadow); border-color: transparent; }
.iwales-card h3 { margin-top: .75rem; margin-bottom: .5rem; font-size: clamp(1.12rem, 1.5vw, 1.28rem); }
.iwales-card p { color: var(--iwales-muted); }
.iwales-card a { font-weight: 750; }
.iwales-icon {
  width: 46px;
  height: 46px;
  margin-top: 0;
  margin-bottom: .5rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: #f1f4f6;
}

/* Quick appointment CTA */
.iwales-notice {
  border-radius: var(--iwales-radius);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: #fff7dc;
  border: 1px solid #f0d16f;
}

.iwales-notice .wp-block-columns {
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.iwales-notice h2 {
  margin-top: .2rem;
  margin-bottom: .65rem;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
}

.iwales-notice p:last-child { margin-bottom: 0; }

/* Projects */
.iwales-project-card {
  min-height: clamp(220px, 20vw, 255px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.iwales-project-card.is-blue { background: linear-gradient(145deg, #123f5d, #1d699b); color: #fff; border: none; }
.iwales-project-card.is-red { background: linear-gradient(145deg, #8e2336, #c1304a); color: #fff; border: none; }
.iwales-project-card.is-dark { background: linear-gradient(145deg, #292928, #494947); color: #fff; border: none; }
.iwales-project-card p, .iwales-project-card a { color: inherit; }

.iwales-instagram-shell {
  min-height: 220px;
  border-radius: var(--iwales-radius);
  background: #fff;
  border: 1px dashed #cfcfca;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.iwales-participa {
  margin-top: clamp(1rem, 2vw, 2rem) !important;
  border-radius: 28px;
  background: linear-gradient(120deg, #f7e8eb, #f8f4e6 52%, #e7f0f6);
  padding: clamp(2rem, 4vw, 3.5rem);
}

/* Internal pages */
.iwales-page-hero {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: #f4f4f1;
  border-radius: 0 0 28px 28px;
}

.iwales-page-hero > .wp-block-post-title {
  width: min(calc(100% - (var(--iwales-gutter) * 2)), var(--iwales-shell)) !important;
  max-width: var(--iwales-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.iwales-content { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.iwales-content > * { max-width: 820px; }
.iwales-content > .alignwide, .iwales-content > .alignfull { max-width: none; }

/* Footer */
.iwales-site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  background: #262625;
  color: #fff;
}
.iwales-site-footer a { color: #fff; }
.iwales-site-footer .iwales-footer-muted { color: #c7c7c2; }

/* Tablet */
@media (max-width: 980px) {
  .iwales-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iwales-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Open the native WordPress mobile menu earlier, before links can wrap. */
  .iwales-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
  .iwales-site-header .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open {
    display: flex !important;
    padding: 1.4rem var(--iwales-gutter) 2rem;
    background: #fff;
  }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: stretch;
  }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    width: 100%;
    gap: .25rem;
    align-items: stretch;
  }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    width: 100%;
  }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    width: 100%;
    padding: .8rem 0;
    font-size: 1rem;
  }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .iwales-nav-cta > .wp-block-navigation-item__content {
    justify-content: center;
    margin-top: .6rem;
    padding: .7rem 1rem;
  }
}

/* Mobile */
@media (max-width: 680px) {
  :root { --iwales-gutter: 18px; }

  .iwales-site-header { position: relative; }
  .iwales-header-inner { min-height: 64px; gap: .75rem; }
  .iwales-header-inner .wp-block-site-logo img { max-height: 42px; }
  .iwales-header-inner .wp-block-site-title { font-size: .98rem; }

  .iwales-grid-3, .iwales-grid-4 { grid-template-columns: 1fr; }

  .iwales-hero { border-radius: 0 0 22px 22px; }
  .iwales-hero::after {
    width: 180px;
    height: 180px;
    right: -82px;
    bottom: -82px;
    border-width: 28px;
  }
  .iwales-hero > .wp-block-spacer:first-child,
  .iwales-hero > .wp-block-spacer:last-child { height: 42px !important; }
  .iwales-hero h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 12vw, 3.45rem) !important;
    line-height: 1.02 !important;
  }
  .iwales-hero p:not(.iwales-kicker) {
    max-width: 100%;
    font-size: 1.08rem !important;
  }

  .iwales-section { padding-block: 3rem; }
  .iwales-section-heading { margin-bottom: 1.4rem !important; }
  .iwales-section-heading h2 { font-size: 1.85rem; }

  .iwales-actions {
    flex-direction: column;
    align-items: stretch !important;
  }
  .iwales-actions .wp-block-button,
  .iwales-actions .wp-block-button__link { width: 100%; }

  .iwales-card {
    border-radius: 18px;
    padding: 1.25rem;
  }

  .iwales-notice { border-radius: 18px; padding: 1.3rem; }
  .iwales-notice .wp-block-columns { gap: .75rem; }
  .iwales-notice .wp-block-column { flex-basis: 100% !important; }
  .iwales-notice .wp-block-buttons { justify-content: stretch !important; }
  .iwales-notice .wp-block-button,
  .iwales-notice .wp-block-button__link { width: 100%; }

  .iwales-project-card { min-height: 205px; }
  .iwales-participa { border-radius: 20px; padding: 1.5rem; }

  .iwales-site-footer > .wp-block-columns { gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* ================================================================
   Visual refinement · v0.2.0
   ================================================================ */

/* Brand fallback: use the real Site Logo whenever configured. If the
   staging site has no logo yet, show a clean text wordmark instead of
   leaking the staging site's title ("Iwales Gestion"). */
.iwales-brand,
.iwales-footer-brand {
  gap: .8rem;
}

.iwales-brand-name,
.iwales-footer-brand-name {
  margin: 0 !important;
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
}

.iwales-brand-name a {
  color: var(--iwales-dark);
  text-decoration: none;
}

.iwales-brand:has(.wp-block-site-logo img) .iwales-brand-name,
.iwales-footer-brand:has(.wp-block-site-logo img) .iwales-footer-brand-name {
  display: none;
}

/* Header polish */
.iwales-site-header {
  box-shadow: 0 1px 0 rgba(0,0,0,.025);
}

.iwales-header-inner {
  min-height: 78px;
}

.iwales-header-inner .wp-block-navigation-item__content {
  position: relative;
  padding-block: .45rem;
}

.iwales-header-inner .wp-block-navigation-item:not(.iwales-nav-cta) > .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: .14rem;
  height: 2px;
  border-radius: 999px;
  background: var(--iwales-red);
  transition: right .18s ease;
}

.iwales-header-inner .wp-block-navigation-item:not(.iwales-nav-cta) > .wp-block-navigation-item__content:hover::after,
.iwales-header-inner .wp-block-navigation-item.current-menu-item:not(.iwales-nav-cta) > .wp-block-navigation-item__content::after,
.iwales-header-inner .wp-block-navigation-item.current-menu-ancestor:not(.iwales-nav-cta) > .wp-block-navigation-item__content::after {
  right: 0;
}

.iwales-header-inner .iwales-nav-cta > .wp-block-navigation-item__content {
  box-shadow: 0 7px 18px rgba(193,48,74,.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.iwales-header-inner .iwales-nav-cta > .wp-block-navigation-item__content:hover {
  transform: translateY(-1px);
  background: #a9273e;
  box-shadow: 0 10px 24px rgba(193,48,74,.24);
}

/* Hero: a calmer scale and a recognisable Iwales colour composition.
   The right-side artwork is CSS only, so no fake logo or stock image is used. */
.iwales-hero {
  min-height: clamp(485px, 50vw, 620px);
  display: flex;
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 81% 20%, rgba(227,176,35,.16), transparent 22%),
    radial-gradient(circle at 72% 100%, rgba(29,105,155,.34), transparent 31%),
    linear-gradient(123deg, #252524 0%, #303131 53%, #42313a 100%);
}

.iwales-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(270px, 31vw, 470px);
  aspect-ratio: 1 / 1.13;
  right: clamp(30px, 7vw, 130px);
  top: 50%;
  transform: translateY(-50%) rotate(7deg);
  border-radius: 34% 66% 57% 43% / 40% 43% 57% 60%;
  background:
    radial-gradient(circle at 28% 24%, rgba(227,176,35,.92) 0 7%, transparent 7.5%),
    radial-gradient(circle at 66% 68%, rgba(229,17,74,.78) 0 11%, transparent 11.5%),
    radial-gradient(circle at 74% 28%, rgba(29,105,155,.86) 0 15%, transparent 15.5%),
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 16px rgba(255,255,255,.018), 0 40px 80px rgba(0,0,0,.15);
  opacity: .9;
}

.iwales-hero::after {
  width: clamp(185px, 18vw, 270px);
  height: clamp(185px, 18vw, 270px);
  right: clamp(-78px, -3vw, -32px);
  bottom: clamp(-115px, -7vw, -72px);
  border-width: clamp(28px, 3vw, 42px);
  opacity: .95;
}

.iwales-hero > .wp-block-group.alignwide {
  position: relative;
  z-index: 1;
}

.iwales-hero > .wp-block-group.alignwide.is-layout-constrained > * {
  max-width: min(690px, 62vw) !important;
}

.iwales-hero h1 {
  font-size: clamp(2.8rem, 4.6vw, 4.45rem) !important;
  line-height: 1.015 !important;
}

.iwales-hero p:not(.iwales-kicker) {
  max-width: 630px !important;
  color: rgba(255,255,255,.92);
}

/* Section rhythm */
.iwales-section + .iwales-section {
  border-top: 1px solid rgba(58,58,57,.06);
}

.iwales-section-heading h2 {
  letter-spacing: -.025em;
}

.iwales-section-heading .iwales-kicker {
  margin-bottom: .35rem;
}

/* Service cards */
.iwales-card:has(.iwales-icon) {
  display: flex;
  flex-direction: column;
  min-height: 258px;
  padding: clamp(1.35rem, 2.1vw, 1.8rem);
}

.iwales-card:has(.iwales-icon) > p:last-child {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: .8rem;
}

.iwales-card:has(.iwales-icon) > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.iwales-card:has(.iwales-icon) > p:last-child a:hover {
  color: var(--iwales-red);
}

.iwales-icon {
  margin-bottom: .7rem;
  border: 1px solid rgba(29,105,155,.08);
  background: #f2f5f7;
  color: var(--iwales-blue);
  font-size: 0;
  font-weight: 800;
}

.iwales-card:nth-child(1) .iwales-icon::before { content: "✚"; }
.iwales-card:nth-child(2) .iwales-icon::before { content: "◇"; }
.iwales-card:nth-child(3) .iwales-icon::before { content: "○"; }
.iwales-card:nth-child(4) .iwales-icon::before { content: "✦"; }
.iwales-card:nth-child(5) .iwales-icon::before { content: "▤"; }
.iwales-card:nth-child(6) .iwales-icon::before { content: "△"; }
.iwales-icon::before { font-size: 1.2rem; line-height: 1; }

.iwales-card:nth-child(2) .iwales-icon { color: var(--iwales-red); background: #fbf1f3; }
.iwales-card:nth-child(3) .iwales-icon { color: var(--iwales-gold); background: #fff8e4; }
.iwales-card:nth-child(4) .iwales-icon { color: #754769; background: #f7f0f5; }
.iwales-card:nth-child(5) .iwales-icon { color: var(--iwales-dark); background: #f1f1ef; }
.iwales-card:nth-child(6) .iwales-icon { color: var(--iwales-pink); background: #fff0f4; }

/* Quick appointment */
.iwales-notice {
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(88,70,16,.06);
}

.iwales-notice::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -58px;
  width: 165px;
  height: 165px;
  border-radius: 50%;
  border: 27px solid rgba(227,176,35,.16);
  pointer-events: none;
}

.iwales-notice > * { position: relative; z-index: 1; }

/* Project cards */
.iwales-project-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(225px, 19vw, 270px);
  padding: clamp(1.55rem, 2.4vw, 2rem);
  box-shadow: 0 14px 36px rgba(0,0,0,.08);
}

.iwales-project-card::before {
  content: "PROYECTO";
  position: absolute;
  z-index: -1;
  top: 1.45rem;
  left: 1.55rem;
  font-size: .7rem;
  line-height: 1;
  letter-spacing: .11em;
  font-weight: 800;
  color: rgba(255,255,255,.72);
}

.iwales-project-card::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 175px;
  height: 175px;
  right: -75px;
  top: -75px;
  border-radius: 50%;
  border: 24px solid rgba(255,255,255,.075);
}

.iwales-project-card h3 {
  font-size: clamp(1.18rem, 1.6vw, 1.35rem);
}

.iwales-project-card p {
  max-width: 31ch;
  margin-bottom: 0;
  color: rgba(255,255,255,.88);
}

/* News query cards */
.wp-block-post-template.iwales-grid > li {
  display: flex;
  min-width: 0;
  margin: 0 !important;
}

.wp-block-post-template.iwales-grid > li > .iwales-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.wp-block-post-template.iwales-grid .wp-block-post-featured-image {
  margin: 0 !important;
  overflow: hidden;
  background: #f0f1ef;
}

.wp-block-post-template.iwales-grid .wp-block-post-featured-image img {
  width: 100%;
  transition: transform .28s ease;
}

.wp-block-post-template.iwales-grid .iwales-card:hover .wp-block-post-featured-image img {
  transform: scale(1.025);
}

.wp-block-post-template.iwales-grid .wp-block-post-date,
.wp-block-post-template.iwales-grid .wp-block-post-title,
.wp-block-post-template.iwales-grid .wp-block-post-excerpt {
  margin-left: 1.45rem;
  margin-right: 1.45rem;
}

.wp-block-post-template.iwales-grid .wp-block-post-date {
  margin-top: 1.25rem;
  margin-bottom: .35rem;
  color: var(--iwales-muted);
}

.wp-block-post-template.iwales-grid .wp-block-post-title {
  margin-top: 0;
  margin-bottom: .65rem;
  font-size: 1.25rem;
}

.wp-block-post-template.iwales-grid .wp-block-post-excerpt {
  margin-top: 0;
  margin-bottom: 1.35rem;
  color: var(--iwales-muted);
}

.wp-block-post-template.iwales-grid .wp-block-post-excerpt__more-link {
  display: inline-flex;
  margin-top: .6rem;
  font-weight: 750;
}

/* Instagram area: polished feed and graceful public fallback. */
.iwales-instagram-shell {
  min-height: 250px;
  border: 1px solid var(--iwales-border);
  background:
    radial-gradient(circle at 10% 20%, rgba(227,176,35,.11), transparent 21%),
    radial-gradient(circle at 90% 80%, rgba(193,48,74,.10), transparent 24%),
    #fff;
  box-shadow: 0 12px 40px rgba(34,34,34,.045);
}

.iwales-instagram-shell:not(:has(#sb_instagram)) {
  display: grid;
  place-items: center;
  text-align: center;
}

.iwales-instagram-shell:not(:has(#sb_instagram)) > * {
  display: none !important;
}

.iwales-instagram-shell:not(:has(#sb_instagram))::before {
  content: "Síguenos en @iwales.saludydiversidad para ver campañas, actividades y novedades de Iwales.";
  display: block;
  max-width: 520px;
  padding: 2rem;
  color: var(--iwales-muted);
  font-weight: 650;
}

/* Participate */
.iwales-participa {
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(34,34,34,.06);
}

.iwales-participa::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -90px;
  bottom: -105px;
  border-radius: 50%;
  border: 34px solid rgba(29,105,155,.10);
  pointer-events: none;
}

.iwales-participa > * { position: relative; z-index: 1; }

/* Footer */
.iwales-site-footer {
  background:
    radial-gradient(circle at 12% 15%, rgba(29,105,155,.13), transparent 24%),
    linear-gradient(135deg, #222221, #2c2c2b 58%, #33272b);
}

.iwales-site-footer .wp-block-columns {
  align-items: flex-start;
}

.iwales-site-footer h3 {
  margin-top: .1rem;
  margin-bottom: .95rem;
}

.iwales-site-footer .wp-block-navigation__container {
  gap: .45rem;
}

.iwales-site-footer .wp-block-navigation-item__content {
  color: #d9d9d5;
  font-size: .94rem;
}

.iwales-site-footer .wp-block-navigation-item__content:hover {
  color: #fff;
}

.iwales-footer-brand-name {
  color: #fff;
  font-size: 1.55rem;
}

.iwales-footer-separator {
  margin-top: 2.6rem !important;
  margin-bottom: 1.35rem !important;
  border-color: rgba(255,255,255,.14) !important;
}

.iwales-footer-bottom {
  gap: 1rem 2rem;
}

.iwales-footer-bottom p {
  margin: 0 !important;
}

@media (max-width: 1100px) {
  .iwales-hero::before {
    right: 1vw;
    opacity: .65;
  }
  .iwales-hero > .wp-block-group.alignwide.is-layout-constrained > * {
    max-width: min(660px, 68vw) !important;
  }
}

@media (max-width: 980px) {
  .iwales-hero {
    min-height: auto;
  }
  .iwales-hero::before {
    width: 310px;
    right: -105px;
    opacity: .38;
  }
  .iwales-hero > .wp-block-group.alignwide.is-layout-constrained > * {
    max-width: min(650px, 82vw) !important;
  }
}

@media (max-width: 680px) {
  .iwales-header-inner { min-height: 66px; }
  .iwales-brand-name { font-size: 1.18rem; }

  .iwales-hero {
    min-height: auto;
  }
  .iwales-hero::before {
    width: 230px;
    right: -128px;
    top: 36%;
    opacity: .27;
  }
  .iwales-hero > .wp-block-group.alignwide.is-layout-constrained > * {
    max-width: 100% !important;
  }

  .iwales-card:has(.iwales-icon) {
    min-height: 0;
  }

  .iwales-project-card::before {
    top: 1.25rem;
    left: 1.25rem;
  }

  .iwales-site-footer .wp-block-columns {
    row-gap: 2.4rem;
  }

  .iwales-footer-bottom {
    display: block !important;
  }

  .iwales-footer-bottom p + p {
    margin-top: .65rem !important;
  }
}


/* ================================================================
   Brand integration · v0.2.1
   Use the real Iwales mark and logo instead of generic circles.
   ================================================================ */

.iwales-brand,
.iwales-footer-brand {
  gap: .9rem;
}

.iwales-brand-link,
.iwales-footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.iwales-brand-logo {
  display: block;
  width: clamp(154px, 14vw, 224px);
  height: auto;
}

.iwales-footer-logo-link {
  padding: .65rem .8rem;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.iwales-footer-logo {
  display: block;
  width: clamp(165px, 18vw, 245px);
  height: auto;
}

.iwales-brand:has(.iwales-brand-logo) .iwales-brand-name,
.iwales-footer-brand:has(.iwales-footer-logo) .iwales-footer-brand-name {
  display: none;
}

.iwales-hero::before {
  width: clamp(290px, 31vw, 470px);
  aspect-ratio: 1 / 1.06;
  right: clamp(30px, 7vw, 120px);
  top: 50%;
  transform: translateY(-50%) rotate(-3deg);
  border-radius: 30px;
  background-image:
    var(--iwales-mark-color),
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center center;
  background-size: 78% auto, cover;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 38px 80px rgba(0,0,0,.18);
  opacity: .94;
}

.iwales-hero::after {
  width: clamp(170px, 16vw, 240px);
  height: clamp(110px, 10vw, 160px);
  right: clamp(-15px, 1.2vw, 36px);
  bottom: clamp(12px, 1vw, 18px);
  border: 0;
  border-radius: 0;
  background: var(--iwales-mark-white) center / contain no-repeat;
  opacity: .08;
}

.iwales-notice::after {
  right: -8px;
  top: -4px;
  width: 180px;
  height: 118px;
  border: 0;
  border-radius: 0;
  background: var(--iwales-mark-color) center / contain no-repeat;
  opacity: .12;
}

.iwales-project-card::after {
  width: 180px;
  height: 118px;
  right: -18px;
  top: -6px;
  border: 0;
  border-radius: 0;
  background: var(--iwales-mark-white) center / contain no-repeat;
  opacity: .12;
}

.iwales-participa::after {
  width: 250px;
  height: 165px;
  right: -28px;
  bottom: -18px;
  border: 0;
  border-radius: 0;
  background: var(--iwales-mark-color) center / contain no-repeat;
  opacity: .09;
}

.iwales-site-footer::before {
  content: "";
  position: absolute;
  right: min(4vw, 48px);
  top: 26px;
  width: clamp(150px, 14vw, 220px);
  height: clamp(96px, 9vw, 142px);
  background: var(--iwales-mark-white) center / contain no-repeat;
  opacity: .055;
  pointer-events: none;
}

.iwales-site-footer { position: relative; overflow: hidden; }

@media (max-width: 1100px) {
  .iwales-hero::before {
    right: 1vw;
    opacity: .78;
  }
}

@media (max-width: 980px) {
  .iwales-brand-logo { width: 176px; }
  .iwales-footer-logo { width: 215px; }
  .iwales-hero::before {
    width: 300px;
    right: -70px;
    opacity: .55;
  }
  .iwales-hero::after {
    right: -20px;
    bottom: 16px;
    opacity: .06;
  }
}

@media (max-width: 680px) {
  .iwales-brand-logo { width: 148px; }
  .iwales-footer-logo-link { padding: .6rem .72rem; }
  .iwales-footer-logo { width: 190px; }
  .iwales-hero::before {
    width: 228px;
    right: -88px;
    top: 34%;
    opacity: .34;
  }
  .iwales-hero::after {
    width: 124px;
    height: 82px;
    right: -18px;
    bottom: 8px;
    opacity: .055;
  }
  .iwales-notice::after {
    width: 140px;
    height: 92px;
    right: -20px;
    top: -2px;
  }
  .iwales-project-card::after {
    width: 140px;
    height: 92px;
    right: -20px;
    top: -10px;
  }
  .iwales-participa::after {
    width: 168px;
    height: 110px;
    right: -18px;
    bottom: -12px;
  }
  .iwales-site-footer::before {
    width: 140px;
    height: 92px;
    right: -22px;
    top: 18px;
  }
}


/* ================================================================
   Brand mark correction · v0.2.2
   True transparent mark, no white tile, no decorative overlap.
   ================================================================ */

/* Hero: use the W itself, not a framed card. */
.iwales-hero::before {
  width: clamp(320px, 34vw, 520px);
  height: clamp(245px, 25vw, 395px);
  aspect-ratio: auto;
  right: clamp(18px, 4vw, 75px);
  top: 50%;
  transform: translateY(-50%) rotate(-2deg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--iwales-mark-light) center / contain no-repeat;
  opacity: .32;
}

.iwales-hero::after {
  display: none;
}

/* Appointment CTA: keep the mark in its own empty visual zone,
   well away from the action button. */
.iwales-notice::after {
  right: clamp(132px, 15vw, 190px);
  top: 50%;
  transform: translateY(-50%) rotate(-4deg);
  width: 118px;
  height: 78px;
  border: 0;
  border-radius: 0;
  background: var(--iwales-mark-color) center / contain no-repeat;
  opacity: .085;
}

/* Project cards: watermark only, with no square/background. */
.iwales-project-card::after {
  width: 152px;
  height: 100px;
  right: -8px;
  top: 8px;
  border: 0;
  border-radius: 0;
  background: var(--iwales-mark-white) center / contain no-repeat;
  opacity: .105;
}

/* The W should never create a rectangular visual container. */
.iwales-project-card::after,
.iwales-notice::after,
.iwales-participa::after,
.iwales-site-footer::before {
  box-shadow: none !important;
}

.iwales-participa::after {
  width: 230px;
  height: 150px;
  right: -18px;
  bottom: -18px;
  border: 0;
  border-radius: 0;
  background: var(--iwales-mark-color) center / contain no-repeat;
  opacity: .07;
}

.iwales-site-footer::before {
  background: var(--iwales-mark-white) center / contain no-repeat;
  opacity: .045;
}

@media (max-width: 1100px) {
  .iwales-hero::before {
    right: -20px;
    opacity: .25;
  }
}

@media (max-width: 980px) {
  .iwales-hero::before {
    width: 300px;
    height: 220px;
    right: -90px;
    opacity: .18;
  }
  .iwales-notice::after {
    right: 138px;
    width: 96px;
    height: 64px;
    opacity: .07;
  }
}

@media (max-width: 680px) {
  .iwales-hero::before {
    width: 220px;
    height: 162px;
    right: -96px;
    top: 33%;
    opacity: .12;
  }

  /* On narrow screens the CTA needs all available width for text/button. */
  .iwales-notice::after {
    right: 12px;
    top: 14px;
    transform: none;
    width: 76px;
    height: 50px;
    opacity: .055;
  }

  .iwales-project-card::after {
    width: 122px;
    height: 80px;
    right: -10px;
    top: 8px;
    opacity: .09;
  }
}


/* ================================================================
   Targeted layout correction · v0.2.3
   Keep validated branding; align desktop CTA motif with project cards
   and add safe mobile breathing room below hero actions.
   ================================================================ */

/* Desktop/tablet CTA: same visual language as project-card watermark.
   The mark sits partially cropped in the upper-right corner, away from
   the action button, instead of floating behind the button. */
@media (min-width: 681px) {
  .iwales-notice::after {
    right: -12px;
    top: -24px;
    transform: rotate(-3deg);
    width: 158px;
    height: 104px;
    background: var(--iwales-mark-color) center / contain no-repeat;
    opacity: .075;
  }
}

/* Mobile hero: give the action row and especially the second button a
   little more bottom air before the white section begins. */
@media (max-width: 680px) {
  .iwales-hero .iwales-actions {
    margin-bottom: .9rem !important;
  }

  .iwales-hero > .wp-block-spacer:last-child {
    height: 58px !important;
    min-height: 58px !important;
  }
}


/* ================================================================
   Interior service pages · v0.3.0
   First implementation: Salud sexual
   ================================================================ */

.iwales-service-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3.8rem, 7vw, 6.4rem) 0 clamp(3.5rem, 6vw, 5.6rem);
  border-radius: 0 0 34px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 105%, rgba(29,105,155,.34), transparent 35%),
    linear-gradient(123deg, #252524 0%, #303131 55%, #442f38 100%);
}

.iwales-service-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-30px, 3vw, 52px);
  top: 50%;
  width: clamp(250px, 29vw, 430px);
  height: clamp(165px, 19vw, 285px);
  transform: translateY(-47%) rotate(-4deg);
  background: var(--iwales-mark-white) center / contain no-repeat;
  opacity: .10;
  pointer-events: none;
}

.iwales-service-hero > .wp-block-group,
.iwales-service-shell,
.iwales-service-band > .wp-block-group {
  width: min(calc(100% - (var(--iwales-gutter) * 2)), var(--iwales-shell)) !important;
  max-width: var(--iwales-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.iwales-service-hero .iwales-kicker { color: var(--iwales-gold); }

.iwales-service-hero h1 {
  max-width: 830px;
  margin: .35rem 0 1rem;
  font-size: clamp(2.7rem, 5vw, 4.65rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.038em;
  text-wrap: balance;
}

.iwales-service-hero .iwales-service-lead {
  max-width: 720px;
  margin: 0 0 1.5rem;
  color: rgba(255,255,255,.91);
  font-size: clamp(1.08rem, 1.6vw, 1.34rem);
  line-height: 1.55;
}

.iwales-trust-strip {
  display: flex !important;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 2rem !important;
}

.iwales-trust-strip > * {
  margin: 0 !important;
  padding: .62rem .86rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  font-size: .86rem;
  font-weight: 700;
  backdrop-filter: blur(5px);
}

.iwales-service-shell {
  padding-block: clamp(3.5rem, 6vw, 5rem);
}

.iwales-service-intro {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.iwales-service-intro > * { margin: 0 !important; min-width: 0; }
.iwales-service-intro h2,
.iwales-service-section-title h2 {
  margin: .3rem 0 .8rem;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.iwales-service-intro p { font-size: 1.05rem; color: var(--iwales-muted); }

.iwales-service-sidecard {
  position: relative;
  overflow: hidden;
  padding: 1.55rem;
  border-radius: 22px;
  border: 1px solid var(--iwales-border);
  background: #fff;
  box-shadow: 0 14px 36px rgba(34,34,34,.055);
}
.iwales-service-sidecard::after {
  content:"";
  position:absolute;
  right:-24px;
  bottom:-12px;
  width:128px;
  height:84px;
  background:var(--iwales-mark-transparent) center/contain no-repeat;
  opacity:.055;
  pointer-events:none;
}
.iwales-service-sidecard h3 { margin-top:0; font-size:1.2rem; }
.iwales-service-sidecard p { position:relative; z-index:1; }

.iwales-service-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.35rem);
  margin-top: 1.8rem !important;
}
.iwales-service-grid > * { margin:0 !important; min-width:0; }

.iwales-service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 1.55rem;
  border: 1px solid var(--iwales-border);
  border-radius: 22px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.iwales-service-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--iwales-shadow);
}
.iwales-service-card .iwales-service-number {
  width: fit-content;
  margin:0 0 1.35rem !important;
  padding:.42rem .62rem;
  border-radius:999px;
  background:#f1f4f6;
  color:var(--iwales-blue);
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.06em;
}
.iwales-service-card:nth-child(2) .iwales-service-number { background:#fbf1f3; color:var(--iwales-red); }
.iwales-service-card:nth-child(3) .iwales-service-number { background:#fff7df; color:#a87600; }
.iwales-service-card:nth-child(4) .iwales-service-number { background:#f3f0f3; color:#705468; }
.iwales-service-card:nth-child(5) .iwales-service-number { background:#f0f0ee; color:var(--iwales-dark); }
.iwales-service-card:nth-child(6) .iwales-service-number { background:#fff0f4; color:var(--iwales-pink); }
.iwales-service-card h3 { margin:0 0 .65rem; font-size:1.25rem; }
.iwales-service-card p { margin-top:0; color:var(--iwales-muted); }
.iwales-service-card > p:last-child { margin-top:auto; margin-bottom:0; padding-top:.7rem; }
.iwales-service-card a { font-weight:750; }

.iwales-service-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.6rem, 6vw, 5rem);
  background: #f5f6f4;
}
.iwales-service-band.is-dark {
  color:#fff;
  background:linear-gradient(128deg,#292928,#343535 62%,#3f3036);
}
.iwales-service-band.is-dark::after {
  content:"";
  position:absolute;
  right:-30px;
  bottom:-50px;
  width:330px;
  height:215px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.055;
}
.iwales-service-band.is-dark > .wp-block-group { position:relative; z-index:1; }
.iwales-service-band.is-dark p { color:rgba(255,255,255,.84); }

.iwales-feature-split {
  display:grid !important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(1.1rem,2.2vw,2rem);
  align-items:center;
}
.iwales-feature-split > * { margin:0 !important; min-width:0; }
.iwales-feature-panel {
  position:relative;
  overflow:hidden;
  min-height:320px;
  padding:clamp(1.7rem,3vw,2.5rem);
  border-radius:28px;
  background:linear-gradient(145deg,#123f5d,#1d699b);
  color:#fff;
  box-shadow:0 18px 50px rgba(29,105,155,.17);
}
.iwales-feature-panel::after {
  content:"";
  position:absolute;
  right:-45px;
  bottom:-22px;
  width:245px;
  height:160px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.11;
}
.iwales-feature-panel > * { position:relative; z-index:1; }
.iwales-feature-panel .iwales-kicker { color:#f6d977; }
.iwales-feature-panel h2 { max-width:12ch; font-size:clamp(2rem,3.2vw,2.85rem); line-height:1.05; }
.iwales-feature-panel p { max-width:40ch; color:rgba(255,255,255,.88); }

.iwales-check-list { margin:1rem 0 1.5rem !important; padding-left:0 !important; list-style:none; }
.iwales-check-list li { position:relative; margin:.7rem 0; padding-left:1.65rem; color:inherit; }
.iwales-check-list li::before {
  content:"";
  position:absolute;
  left:0;
  top:.52em;
  width:.65rem;
  height:.65rem;
  border-radius:50%;
  background:var(--iwales-red);
  box-shadow:0 0 0 4px rgba(193,48,74,.10);
}

.iwales-mini-cards {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}
.iwales-mini-cards > * { margin:0 !important; }
.iwales-mini-card {
  padding:1.25rem;
  border-radius:18px;
  border:1px solid var(--iwales-border);
  background:#fff;
}
.iwales-mini-card h3 { margin:.1rem 0 .45rem; font-size:1.08rem; }
.iwales-mini-card p { margin:0; color:var(--iwales-muted); font-size:.96rem; }

.iwales-related-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.6rem !important;
}
.iwales-related-grid > * { margin:0 !important; }
.iwales-related-card {
  position:relative;
  overflow:hidden;
  min-height:210px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:1.45rem;
  border-radius:22px;
  color:#fff;
  background:linear-gradient(145deg,#292928,#474746);
}
.iwales-related-card.is-blue { background:linear-gradient(145deg,#123f5d,#1d699b); }
.iwales-related-card.is-red { background:linear-gradient(145deg,#8e2336,#c1304a); }
.iwales-related-card::after {
  content:"";
  position:absolute;
  right:-25px;
  top:-10px;
  width:145px;
  height:95px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.10;
}
.iwales-related-card > * { position:relative; z-index:1; }
.iwales-related-card h3 { margin:0 0 .5rem; font-size:1.18rem; }
.iwales-related-card p { margin:0; color:rgba(255,255,255,.86); }

.iwales-service-cta {
  position:relative;
  overflow:hidden;
  padding:clamp(2rem,4vw,3.25rem);
  border:1px solid #f0d16f;
  border-radius:28px;
  background:#fff7dc;
  box-shadow:0 16px 45px rgba(88,70,16,.06);
}
.iwales-service-cta::after {
  content:"";
  position:absolute;
  right:-20px;
  top:-15px;
  width:210px;
  height:138px;
  background:var(--iwales-mark-transparent) center/contain no-repeat;
  opacity:.065;
}
.iwales-service-cta > * { position:relative; z-index:1; }
.iwales-service-cta h2 { max-width:18ch; margin:.2rem 0 .7rem; font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.1; }
.iwales-service-cta p { max-width:680px; }

@media (max-width: 900px) {
  .iwales-service-intro,
  .iwales-feature-split { grid-template-columns:1fr; }
  .iwales-service-grid,
  .iwales-related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-service-hero::after { right:-120px; opacity:.065; }
}

@media (max-width: 680px) {
  .iwales-service-hero {
    padding-top:3rem;
    padding-bottom:3.2rem;
    border-radius:0 0 24px 24px;
  }
  .iwales-service-hero::after {
    width:210px;
    height:138px;
    right:-92px;
    top:27%;
    opacity:.055;
  }
  .iwales-service-hero h1 { font-size:clamp(2.45rem,12vw,3.35rem) !important; }
  .iwales-trust-strip { gap:.45rem; margin-top:1.6rem !important; }
  .iwales-trust-strip > * { font-size:.78rem; padding:.52rem .68rem; }
  .iwales-service-shell { padding-block:3rem; }
  .iwales-service-grid,
  .iwales-related-grid,
  .iwales-mini-cards { grid-template-columns:1fr; }
  .iwales-service-card { min-height:0; }
  .iwales-feature-panel { min-height:285px; border-radius:22px; }
  .iwales-service-cta { border-radius:20px; padding:1.5rem; }
  .iwales-service-cta::after { width:145px; height:96px; right:-35px; top:-8px; }
}


/* ================================================================
   Diversidad page · v0.3.1
   ================================================================ */
.iwales-diversity-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3.8rem, 7vw, 6.4rem) 0 clamp(3.5rem, 6vw, 5.6rem);
  border-radius: 0 0 34px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 77% 105%, rgba(29,105,155,.28), transparent 35%),
    radial-gradient(circle at 95% 2%, rgba(227,176,35,.14), transparent 27%),
    linear-gradient(123deg, #302b30 0%, #49333d 55%, #563345 100%);
}
.iwales-diversity-hero::after {
  content:"";
  position:absolute;
  z-index:-1;
  right:clamp(-30px,3vw,50px);
  top:50%;
  width:clamp(260px,30vw,440px);
  height:clamp(170px,20vw,290px);
  transform:translateY(-47%) rotate(3deg);
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.095;
  pointer-events:none;
}
.iwales-diversity-hero > .wp-block-group,
.iwales-diversity-shell,
.iwales-diversity-band > .wp-block-group {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.iwales-diversity-hero .iwales-kicker { color:#f1c84e; }
.iwales-diversity-hero h1 {
  max-width:840px;
  margin:.35rem 0 1rem;
  font-size:clamp(2.7rem,5vw,4.65rem) !important;
  line-height:1.02 !important;
  letter-spacing:-.038em;
  text-wrap:balance;
}
.iwales-diversity-hero .iwales-service-lead {
  max-width:730px;
  margin:0 0 1.5rem;
  color:rgba(255,255,255,.91);
  font-size:clamp(1.08rem,1.6vw,1.34rem);
  line-height:1.55;
}
.iwales-diversity-shell { padding-block:clamp(3.5rem,6vw,5rem); }

.iwales-diversity-intro {
  display:grid !important;
  grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);
  gap:clamp(2rem,5vw,5rem);
  align-items:start;
}
.iwales-diversity-intro > * { margin:0 !important; min-width:0; }
.iwales-diversity-intro h2,
.iwales-diversity-section-title h2 {
  margin:.3rem 0 .8rem;
  font-size:clamp(2rem,3.2vw,2.8rem);
  line-height:1.1;
  letter-spacing:-.028em;
  text-wrap:balance;
}
.iwales-diversity-intro p { font-size:1.05rem; color:var(--iwales-muted); }

.iwales-diversity-sidecard {
  position:relative;
  overflow:hidden;
  padding:1.55rem;
  border-radius:22px;
  border:1px solid #ecdfe4;
  background:linear-gradient(145deg,#fff,#fcf5f7);
  box-shadow:0 14px 36px rgba(74,42,54,.055);
}
.iwales-diversity-sidecard::after {
  content:"";
  position:absolute;
  right:-24px;
  bottom:-12px;
  width:128px;
  height:84px;
  background:var(--iwales-mark-transparent) center/contain no-repeat;
  opacity:.055;
  pointer-events:none;
}
.iwales-diversity-sidecard > * { position:relative; z-index:1; }
.iwales-diversity-sidecard h3 { margin-top:0; font-size:1.2rem; }

.iwales-diversity-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(1rem,1.8vw,1.35rem);
  margin-top:1.8rem !important;
}
.iwales-diversity-grid > * { margin:0 !important; min-width:0; }
.iwales-diversity-card {
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:270px;
  padding:1.55rem;
  border:1px solid var(--iwales-border);
  border-radius:22px;
  background:#fff;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.iwales-diversity-card:hover {
  transform:translateY(-3px);
  border-color:transparent;
  box-shadow:var(--iwales-shadow);
}
.iwales-diversity-card::after {
  content:"";
  position:absolute;
  right:-36px;
  top:-18px;
  width:120px;
  height:80px;
  background:var(--iwales-mark-transparent) center/contain no-repeat;
  opacity:.032;
}
.iwales-diversity-card > * { position:relative; z-index:1; }
.iwales-diversity-tag {
  width:fit-content;
  margin:0 0 1.35rem !important;
  padding:.42rem .62rem;
  border-radius:999px;
  background:#fbf1f3;
  color:var(--iwales-red);
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.06em;
}
.iwales-diversity-card:nth-child(2) .iwales-diversity-tag { background:#eef5f9; color:var(--iwales-blue); }
.iwales-diversity-card:nth-child(3) .iwales-diversity-tag { background:#fff7df; color:#9b7108; }
.iwales-diversity-card:nth-child(4) .iwales-diversity-tag { background:#f4eef3; color:#704e66; }
.iwales-diversity-card:nth-child(5) .iwales-diversity-tag { background:#f0f0ee; color:var(--iwales-dark); }
.iwales-diversity-card:nth-child(6) .iwales-diversity-tag { background:#fff0f4; color:var(--iwales-pink); }
.iwales-diversity-card h3 { margin:0 0 .65rem; font-size:1.25rem; }
.iwales-diversity-card p { margin-top:0; color:var(--iwales-muted); }
.iwales-diversity-card > p:last-child { margin-top:auto; margin-bottom:0; padding-top:.7rem; }
.iwales-diversity-card a { font-weight:750; }

.iwales-diversity-band {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.6rem,6vw,5rem);
  background:linear-gradient(120deg,#f8eaee 0%,#faf7e9 48%,#eaf2f7 100%);
}
.iwales-diversity-band::after {
  content:"";
  position:absolute;
  right:-40px;
  bottom:-45px;
  width:310px;
  height:205px;
  background:var(--iwales-mark-transparent) center/contain no-repeat;
  opacity:.05;
}
.iwales-diversity-band > .wp-block-group { position:relative; z-index:1; }
.iwales-diversity-feature {
  display:grid !important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(2rem,5vw,5rem);
  align-items:center;
}
.iwales-diversity-feature > * { margin:0 !important; min-width:0; }
.iwales-diversity-feature-panel {
  position:relative;
  overflow:hidden;
  min-height:320px;
  padding:clamp(1.7rem,3vw,2.5rem);
  border-radius:28px;
  color:#fff;
  background:linear-gradient(145deg,#8d273a,#c1304a 58%,#d64f68);
  box-shadow:0 18px 50px rgba(193,48,74,.18);
}
.iwales-diversity-feature-panel::after {
  content:"";
  position:absolute;
  right:-42px;
  bottom:-20px;
  width:245px;
  height:160px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.11;
}
.iwales-diversity-feature-panel > * { position:relative; z-index:1; }
.iwales-diversity-feature-panel .iwales-kicker { color:#ffe49b; }
.iwales-diversity-feature-panel h2 { max-width:13ch; font-size:clamp(2rem,3.2vw,2.85rem); line-height:1.05; }
.iwales-diversity-feature-panel p { max-width:42ch; color:rgba(255,255,255,.9); }

.iwales-diversity-values {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}
.iwales-diversity-values > * { margin:0 !important; }
.iwales-diversity-value {
  padding:1.25rem;
  border-radius:18px;
  border:1px solid rgba(58,58,57,.10);
  background:rgba(255,255,255,.76);
  backdrop-filter:blur(5px);
}
.iwales-diversity-value h3 { margin:.1rem 0 .45rem; font-size:1.08rem; }
.iwales-diversity-value p { margin:0; color:var(--iwales-muted); font-size:.96rem; }

.iwales-diversity-dark {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.6rem,6vw,5rem);
  color:#fff;
  background:linear-gradient(128deg,#292928,#343535 62%,#41303a);
}
.iwales-diversity-dark::after {
  content:"";
  position:absolute;
  right:-35px;
  bottom:-55px;
  width:335px;
  height:220px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.055;
}
.iwales-diversity-dark > .wp-block-group { position:relative; z-index:1; }
.iwales-diversity-dark p { color:rgba(255,255,255,.84); }
.iwales-diversity-dark-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.6rem !important;
}
.iwales-diversity-dark-grid > * { margin:0 !important; }
.iwales-diversity-dark-card {
  min-height:205px;
  padding:1.45rem;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.055);
}
.iwales-diversity-dark-card:nth-child(2) { background:rgba(29,105,155,.18); }
.iwales-diversity-dark-card:nth-child(3) { background:rgba(193,48,74,.18); }
.iwales-diversity-dark-card h3 { margin:0 0 .5rem; font-size:1.18rem; color:#fff; }
.iwales-diversity-dark-card p { margin:0; }

.iwales-diversity-cta {
  position:relative;
  overflow:hidden;
  padding:clamp(2rem,4vw,3.25rem);
  border:1px solid #e8d4dc;
  border-radius:28px;
  background:linear-gradient(120deg,#fff8fa,#fffdf6);
  box-shadow:0 16px 45px rgba(74,42,54,.06);
}
.iwales-diversity-cta::after {
  content:"";
  position:absolute;
  right:-18px;
  top:-10px;
  width:205px;
  height:135px;
  background:var(--iwales-mark-transparent) center/contain no-repeat;
  opacity:.06;
}
.iwales-diversity-cta > * { position:relative; z-index:1; }
.iwales-diversity-cta h2 { max-width:20ch; margin:.2rem 0 .7rem; font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.1; }
.iwales-diversity-cta p { max-width:700px; }

@media (max-width:900px) {
  .iwales-diversity-intro,
  .iwales-diversity-feature { grid-template-columns:1fr; }
  .iwales-diversity-grid,
  .iwales-diversity-dark-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-diversity-hero::after { right:-120px; opacity:.06; }
}
@media (max-width:760px) {
  .iwales-art-grid { grid-template-columns:1fr; width:100%; }
}

@media (max-width:680px) {
  .iwales-diversity-hero {
    padding-top:3rem;
    padding-bottom:3.2rem;
    border-radius:0 0 24px 24px;
  }
  .iwales-diversity-hero::after {
    width:210px;
    height:138px;
    right:-92px;
    top:27%;
    opacity:.052;
  }
  .iwales-diversity-hero h1 { font-size:clamp(2.45rem,12vw,3.35rem) !important; }
  .iwales-diversity-shell { padding-block:3rem; }
  .iwales-diversity-grid,
  .iwales-diversity-values,
  .iwales-diversity-dark-grid { grid-template-columns:1fr; }
  .iwales-diversity-card { min-height:0; }
  .iwales-diversity-feature-panel { min-height:285px; border-radius:22px; }
  .iwales-diversity-cta { border-radius:20px; padding:1.5rem; }
  .iwales-diversity-cta::after { width:145px; height:96px; right:-35px; top:-8px; }
}


/* ================================================================
   Atención social page · v0.3.2
   ================================================================ */
.iwales-social-hero {
  position:relative;
  overflow:hidden;
  isolation:isolate;
  padding:clamp(3.8rem,7vw,6.3rem) 0 clamp(3.5rem,6vw,5.4rem);
  border-radius:0 0 34px 34px;
  color:#fff;
  background:
    radial-gradient(circle at 82% 10%, rgba(227,176,35,.18), transparent 27%),
    radial-gradient(circle at 70% 110%, rgba(29,105,155,.38), transparent 38%),
    linear-gradient(123deg,#26343c 0%,#28495c 55%,#2c566e 100%);
}
.iwales-social-hero::after {
  content:"";
  position:absolute;
  z-index:-1;
  right:clamp(-35px,2vw,45px);
  top:50%;
  width:clamp(260px,30vw,445px);
  height:clamp(170px,20vw,295px);
  transform:translateY(-48%) rotate(-2deg);
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.095;
  pointer-events:none;
}
.iwales-social-hero > .wp-block-group,
.iwales-social-shell,
.iwales-social-band > .wp-block-group {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.iwales-social-hero .iwales-kicker { color:#f2cd62; }
.iwales-social-hero h1 {
  max-width:870px;
  margin:.35rem 0 1rem;
  font-size:clamp(2.7rem,5vw,4.65rem) !important;
  line-height:1.02 !important;
  letter-spacing:-.038em;
  text-wrap:balance;
}
.iwales-social-hero .iwales-service-lead {
  max-width:740px;
  margin:0 0 1.5rem;
  color:rgba(255,255,255,.91);
  font-size:clamp(1.08rem,1.6vw,1.34rem);
  line-height:1.55;
}
.iwales-social-shell { padding-block:clamp(3.5rem,6vw,5rem); }

.iwales-social-intro {
  display:grid !important;
  grid-template-columns:minmax(0,1.25fr) minmax(275px,.75fr);
  gap:clamp(2rem,5vw,5rem);
  align-items:start;
}
.iwales-social-intro > * { margin:0 !important; min-width:0; }
.iwales-social-intro h2,
.iwales-social-title h2 {
  margin:.3rem 0 .8rem;
  font-size:clamp(2rem,3.2vw,2.8rem);
  line-height:1.1;
  letter-spacing:-.028em;
  text-wrap:balance;
}
.iwales-social-intro p { font-size:1.05rem; color:var(--iwales-muted); }
.iwales-social-sidecard {
  position:relative;
  overflow:hidden;
  padding:1.55rem;
  border-radius:22px;
  border:1px solid #d8e5ec;
  background:linear-gradient(145deg,#fff,#f4f8fa);
  box-shadow:0 14px 36px rgba(25,66,89,.055);
}
.iwales-social-sidecard::after {
  content:"";
  position:absolute;
  right:-24px;
  bottom:-12px;
  width:128px;
  height:84px;
  background:var(--iwales-mark-transparent) center/contain no-repeat;
  opacity:.05;
  pointer-events:none;
}
.iwales-social-sidecard > * { position:relative; z-index:1; }
.iwales-social-sidecard h3 { margin-top:0; font-size:1.2rem; }

.iwales-social-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(1rem,1.8vw,1.35rem);
  margin-top:1.8rem !important;
}
.iwales-social-grid > * { margin:0 !important; min-width:0; }
.iwales-social-card {
  display:flex;
  flex-direction:column;
  min-height:270px;
  padding:1.55rem;
  border:1px solid var(--iwales-border);
  border-radius:22px;
  background:#fff;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.iwales-social-card:hover { transform:translateY(-3px); border-color:transparent; box-shadow:var(--iwales-shadow); }
.iwales-social-tag {
  width:fit-content;
  margin:0 0 1.25rem !important;
  padding:.42rem .62rem;
  border-radius:999px;
  background:#eaf2f6;
  color:#1d699b;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.07em;
}
.iwales-social-card:nth-child(2) .iwales-social-tag { background:#fff6dc; color:#936b00; }
.iwales-social-card:nth-child(3) .iwales-social-tag { background:#fbf0f2; color:var(--iwales-red); }
.iwales-social-card:nth-child(4) .iwales-social-tag { background:#eef4ef; color:#43634a; }
.iwales-social-card:nth-child(5) .iwales-social-tag { background:#f1f0f1; color:#5a4b57; }
.iwales-social-card:nth-child(6) .iwales-social-tag { background:#eff0ee; color:var(--iwales-dark); }
.iwales-social-card h3 { margin:0 0 .65rem; font-size:1.24rem; }
.iwales-social-card p { margin-top:0; color:var(--iwales-muted); }
.iwales-social-card > p:last-child { margin-top:auto; margin-bottom:0; padding-top:.7rem; }
.iwales-social-card a { font-weight:750; }

.iwales-social-process {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.6rem !important;
}
.iwales-social-process > * { margin:0 !important; }
.iwales-social-step {
  position:relative;
  min-height:190px;
  padding:1.5rem;
  border-radius:20px;
  background:#f5f7f7;
  border:1px solid #e4e9eb;
}
.iwales-social-step-number {
  margin:0 0 .8rem !important;
  color:var(--iwales-blue);
  font-size:.78rem;
  font-weight:850;
  letter-spacing:.08em;
}
.iwales-social-step h3 { margin:.1rem 0 .5rem; font-size:1.15rem; }
.iwales-social-step p { margin:0; color:var(--iwales-muted); }

.iwales-social-band {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.7rem,6vw,5.2rem);
  background:#f3f6f7;
}
.iwales-social-feature {
  display:grid !important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(2rem,5vw,5rem);
  align-items:center;
}
.iwales-social-feature > * { margin:0 !important; min-width:0; }
.iwales-social-feature-panel {
  position:relative;
  overflow:hidden;
  min-height:330px;
  padding:clamp(1.7rem,3vw,2.5rem);
  border-radius:28px;
  color:#fff;
  background:linear-gradient(145deg,#184d6d,#1d699b);
  box-shadow:0 18px 50px rgba(29,105,155,.16);
}
.iwales-social-feature-panel::after {
  content:"";
  position:absolute;
  right:-42px;
  bottom:-20px;
  width:240px;
  height:158px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.10;
}
.iwales-social-feature-panel > * { position:relative; z-index:1; }
.iwales-social-feature-panel .iwales-kicker { color:#f3d46f; }
.iwales-social-feature-panel h2 { max-width:13ch; font-size:clamp(2rem,3.1vw,2.75rem); line-height:1.06; }
.iwales-social-feature-panel p { max-width:42ch; color:rgba(255,255,255,.88); }

.iwales-social-network {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.8rem,6vw,5.2rem);
  color:#fff;
  background:linear-gradient(128deg,#292928,#333838 60%,#2e4652);
}
.iwales-social-network::after {
  content:"";
  position:absolute;
  right:-34px;
  bottom:-54px;
  width:335px;
  height:218px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.055;
}
.iwales-social-network > .wp-block-group { position:relative; z-index:1; }
.iwales-social-network .iwales-kicker { color:#f1cd64; }
.iwales-social-network h2 { max-width:760px; margin:.3rem 0 .8rem; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.1; }
.iwales-social-network p { max-width:780px; color:rgba(255,255,255,.84); }
.iwales-social-network-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.7rem !important;
}
.iwales-social-network-grid > * { margin:0 !important; }
.iwales-social-network-card {
  min-height:175px;
  padding:1.35rem;
  border-radius:19px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.055);
  backdrop-filter:blur(3px);
}
.iwales-social-network-card h3 { margin:.1rem 0 .5rem; color:#fff; font-size:1.12rem; }
.iwales-social-network-card p { margin:0; color:rgba(255,255,255,.78); font-size:.96rem; }

.iwales-social-cta {
  position:relative;
  overflow:hidden;
  padding:clamp(2rem,4vw,3.25rem);
  border-radius:28px;
  border:1px solid #d7e5eb;
  background:linear-gradient(120deg,#f5fafc,#fff 55%,#fff9e8);
  box-shadow:0 16px 45px rgba(25,66,89,.055);
}
.iwales-social-cta::after {
  content:"";
  position:absolute;
  right:-20px;
  top:-10px;
  width:205px;
  height:135px;
  background:var(--iwales-mark-transparent) center/contain no-repeat;
  opacity:.055;
}
.iwales-social-cta > * { position:relative; z-index:1; }
.iwales-social-cta h2 { max-width:20ch; margin:.2rem 0 .7rem; font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.1; }
.iwales-social-cta p { max-width:700px; }

@media (max-width:900px) {
  .iwales-social-intro,
  .iwales-social-feature { grid-template-columns:1fr; }
  .iwales-social-grid,
  .iwales-social-process,
  .iwales-social-network-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-social-hero::after { right:-115px; opacity:.065; }
}

@media (max-width:680px) {
  .iwales-social-hero {
    padding-top:3rem;
    padding-bottom:3.25rem;
    border-radius:0 0 24px 24px;
  }
  .iwales-social-hero::after {
    width:210px;
    height:138px;
    right:-92px;
    top:28%;
    opacity:.055;
  }
  .iwales-social-hero h1 { font-size:clamp(2.4rem,12vw,3.3rem) !important; }
  .iwales-social-shell { padding-block:3rem; }
  .iwales-social-grid,
  .iwales-social-process,
  .iwales-social-network-grid { grid-template-columns:1fr; }
  .iwales-social-card { min-height:0; }
  .iwales-social-step { min-height:0; }
  .iwales-social-feature-panel { min-height:285px; border-radius:22px; }
  .iwales-social-cta { border-radius:20px; padding:1.5rem; }
  .iwales-social-cta::after { width:145px; height:96px; right:-35px; top:-8px; }
}


/* ================================================================
   Psychology page · v0.3.3
   ================================================================ */
.iwales-psych-hero {
  position:relative;
  overflow:hidden;
  padding-block:clamp(4.25rem,7vw,6.3rem);
  border-radius:0 0 34px 34px;
  color:#fff;
  background:
    linear-gradient(125deg,rgba(39,39,38,.97),rgba(52,48,55,.96) 54%,rgba(45,73,88,.96)),
    #2f3030;
}
.iwales-psych-hero::after {
  content:"";
  position:absolute;
  right:clamp(-95px,-4vw,-28px);
  top:50%;
  width:clamp(300px,33vw,500px);
  height:clamp(195px,22vw,330px);
  transform:translateY(-50%) rotate(-5deg);
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.075;
  pointer-events:none;
}
.iwales-psych-hero > .wp-block-group,
.iwales-psych-band > .wp-block-group,
.iwales-psych-network > .wp-block-group {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
  position:relative;
  z-index:1;
}
.iwales-psych-hero .iwales-kicker { color:#f0cc69; }
.iwales-psych-hero h1 {
  max-width:850px;
  margin:.35rem 0 1rem;
  font-size:clamp(2.7rem,5vw,4.6rem) !important;
  line-height:1.02 !important;
  letter-spacing:-.038em;
  text-wrap:balance;
}
.iwales-psych-lead {
  max-width:750px;
  margin:0 0 1.5rem;
  color:rgba(255,255,255,.9);
  font-size:clamp(1.08rem,1.55vw,1.32rem);
  line-height:1.58;
}
.iwales-psych-trust {
  gap:.7rem 1rem;
  margin-top:1.55rem !important;
}
.iwales-psych-trust p {
  margin:0 !important;
  padding:.48rem .72rem;
  border:1px solid rgba(255,255,255,.15);
  border-radius:999px;
  color:rgba(255,255,255,.83);
  background:rgba(255,255,255,.045);
  font-size:.84rem;
  font-weight:700;
}
.iwales-psych-shell {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
  padding-block:clamp(3.5rem,6vw,5rem);
}
.iwales-psych-intro {
  display:grid !important;
  grid-template-columns:minmax(0,1.2fr) minmax(290px,.8fr);
  gap:clamp(2rem,5vw,5rem);
  align-items:start;
}
.iwales-psych-intro > * { margin:0 !important; min-width:0; }
.iwales-psych-intro h2,
.iwales-psych-title h2 {
  margin:.3rem 0 .8rem;
  font-size:clamp(2rem,3.2vw,2.8rem);
  line-height:1.1;
  letter-spacing:-.028em;
  text-wrap:balance;
}
.iwales-psych-intro p { color:var(--iwales-muted); font-size:1.05rem; }
.iwales-psych-sidecard {
  position:relative;
  overflow:hidden;
  padding:1.6rem;
  border:1px solid #e3dfe6;
  border-radius:22px;
  background:linear-gradient(145deg,#fff,#f8f5f8);
  box-shadow:0 14px 36px rgba(71,54,76,.055);
}
.iwales-psych-sidecard::after {
  content:"";
  position:absolute;
  right:-26px;
  bottom:-12px;
  width:135px;
  height:88px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.05;
}
.iwales-psych-sidecard > * { position:relative; z-index:1; }
.iwales-psych-sidecard h3 { margin-top:0; font-size:1.2rem; }
.iwales-psych-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(1rem,1.8vw,1.35rem);
  margin-top:1.8rem !important;
}
.iwales-psych-grid > * { margin:0 !important; min-width:0; }
.iwales-psych-card {
  display:flex;
  flex-direction:column;
  min-height:255px;
  padding:1.55rem;
  border:1px solid var(--iwales-border);
  border-radius:22px;
  background:#fff;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.iwales-psych-card:hover { transform:translateY(-3px); border-color:transparent; box-shadow:var(--iwales-shadow); }
.iwales-psych-tag {
  width:fit-content;
  margin:0 0 1.2rem !important;
  padding:.42rem .62rem;
  border-radius:999px;
  background:#f4edf3;
  color:#704b67;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.07em;
}
.iwales-psych-card:nth-child(2) .iwales-psych-tag { background:#edf4f7; color:#315f77; }
.iwales-psych-card:nth-child(3) .iwales-psych-tag { background:#fff5dc; color:#906c0b; }
.iwales-psych-card:nth-child(4) .iwales-psych-tag { background:#fbf0f2; color:var(--iwales-red); }
.iwales-psych-card:nth-child(5) .iwales-psych-tag { background:#f1f1ef; color:var(--iwales-dark); }
.iwales-psych-card:nth-child(6) .iwales-psych-tag { background:#eef4ef; color:#49634f; }
.iwales-psych-card h3 { margin:0 0 .65rem; font-size:1.24rem; }
.iwales-psych-card p { margin-top:0; color:var(--iwales-muted); }
.iwales-psych-card > p:last-child { margin-top:auto; margin-bottom:0; padding-top:.7rem; }
.iwales-psych-card a { font-weight:750; }

.iwales-psych-band {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.8rem,6vw,5.3rem);
  background:linear-gradient(135deg,#f6f3f6,#fbfbfa 54%,#eef5f7);
}
.iwales-psych-feature {
  display:grid !important;
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  gap:clamp(2rem,5vw,5rem);
  align-items:center;
}
.iwales-psych-feature > * { margin:0 !important; min-width:0; }
.iwales-psych-feature-panel {
  position:relative;
  overflow:hidden;
  min-height:330px;
  padding:clamp(1.95rem,3.15vw,2.8rem);
  border-radius:28px;
  color:#fff;
  background:linear-gradient(145deg,#4f3e4c,#6a5164 58%,#49687a);
  box-shadow:0 18px 50px rgba(65,48,65,.15);
}
.iwales-psych-feature-panel::after {
  content:"";
  position:absolute;
  right:-42px;
  bottom:-20px;
  width:245px;
  height:160px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.09;
}
.iwales-psych-feature-panel > * { position:relative; z-index:1; }
.iwales-psych-feature-panel .iwales-kicker { color:#f0d175; }
.iwales-psych-feature-panel h2 { max-width:12ch; font-size:clamp(1.92rem,2.8vw,2.55rem); line-height:1.06; }
.iwales-psych-feature-panel p { max-width:44ch; color:rgba(255,255,255,.88); }

.iwales-psych-feature-panel h2 { overflow-wrap:normal; word-break:normal; }
.iwales-psych-checks { margin:1.2rem 0 0; padding:0; list-style:none; }
.iwales-psych-checks li { position:relative; padding-left:1.55rem; margin:.65rem 0; color:var(--iwales-muted); }
.iwales-psych-checks li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--iwales-blue); font-weight:850; }

.iwales-psych-process {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.6rem !important;
}
.iwales-psych-process > * { margin:0 !important; }
.iwales-psych-step {
  min-height:190px;
  padding:1.5rem;
  border-radius:20px;
  background:#f6f6f4;
  border:1px solid #e6e6e1;
}
.iwales-psych-step-number { margin:0 0 .8rem !important; color:#704b67; font-size:.78rem; font-weight:850; letter-spacing:.08em; }
.iwales-psych-step h3 { margin:.1rem 0 .5rem; font-size:1.15rem; }
.iwales-psych-step p { margin:0; color:var(--iwales-muted); }

.iwales-psych-network {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.8rem,6vw,5.2rem);
  color:#fff;
  background:linear-gradient(128deg,#282827,#333238 56%,#2c4654);
}
.iwales-psych-network::after {
  content:"";
  position:absolute;
  right:-38px;
  bottom:-52px;
  width:335px;
  height:218px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.05;
}
.iwales-psych-network .iwales-kicker { color:#f0cc68; }
.iwales-psych-network h2 { max-width:780px; margin:.3rem 0 .8rem; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.1; }
.iwales-psych-network p { max-width:800px; color:rgba(255,255,255,.84); }
.iwales-psych-network-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.7rem !important;
}
.iwales-psych-network-grid > * { margin:0 !important; }
.iwales-psych-network-card {
  min-height:172px;
  padding:1.35rem;
  border:1px solid rgba(255,255,255,.12);
  border-radius:19px;
  background:rgba(255,255,255,.055);
}
.iwales-psych-network-card h3 { margin:.1rem 0 .5rem; color:#fff; font-size:1.12rem; }
.iwales-psych-network-card p { margin:0; color:rgba(255,255,255,.78); font-size:.96rem; }

.iwales-psych-cta {
  position:relative;
  overflow:hidden;
  padding:clamp(2rem,4vw,3.25rem);
  border-radius:28px;
  border:1px solid #e2dfe4;
  background:linear-gradient(120deg,#faf7fa,#fff 56%,#f0f6f8);
  box-shadow:0 16px 45px rgba(65,48,65,.05);
}
.iwales-psych-cta::after {
  content:"";
  position:absolute;
  right:-18px;
  top:-8px;
  width:205px;
  height:135px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.045;
}
.iwales-psych-cta > * { position:relative; z-index:1; }
.iwales-psych-cta h2 { max-width:20ch; margin:.2rem 0 .7rem; font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.1; }
.iwales-psych-cta p { max-width:720px; }

@media (max-width:900px) {
  .iwales-psych-intro,
  .iwales-psych-feature { grid-template-columns:1fr; }
  .iwales-psych-grid,
  .iwales-psych-process,
  .iwales-psych-network-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-psych-hero::after { right:-120px; opacity:.06; }
}
@media (max-width:680px) {
  .iwales-psych-hero { padding-top:3rem; padding-bottom:3.35rem; border-radius:0 0 24px 24px; }
  .iwales-psych-hero::after { width:210px; height:138px; right:-92px; top:30%; opacity:.05; }
  .iwales-psych-hero h1 { font-size:clamp(2.4rem,12vw,3.25rem) !important; }
  .iwales-psych-shell { padding-block:3rem; }
  .iwales-psych-grid,
  .iwales-psych-process,
  .iwales-psych-network-grid { grid-template-columns:1fr; }
  .iwales-psych-card,
  .iwales-psych-step { min-height:0; }
  .iwales-psych-feature-panel { min-height:285px; border-radius:22px; }
  .iwales-psych-cta { border-radius:20px; padding:1.5rem; }
  .iwales-psych-cta::after { width:145px; height:96px; right:-35px; top:-8px; }
}


/* ================================================================
   Formación · v0.3.5
   Dynamic, professional training page with Iwales brand language.
   ================================================================ */

.iwales-training-hero {
  position:relative;
  overflow:hidden;
  padding-block:clamp(4rem,7vw,6.3rem);
  border-radius:0 0 32px 32px;
  color:#fff;
  background:
    linear-gradient(120deg,rgba(29,105,155,.96),rgba(39,64,77,.98) 54%,rgba(58,58,57,.98)),
    #1d699b;
}
.iwales-training-hero::before {
  content:"";
  position:absolute;
  right:clamp(-70px,2vw,40px);
  top:50%;
  transform:translateY(-50%) rotate(-5deg);
  width:clamp(300px,34vw,520px);
  height:clamp(205px,23vw,355px);
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.10;
  pointer-events:none;
}
.iwales-training-hero::after {
  content:"";
  position:absolute;
  right:-140px;
  bottom:-140px;
  width:0;
  height:0;
  border:0;
  background:transparent;
  pointer-events:none;
}
.iwales-training-hero > .wp-block-group {
  position:relative;
  z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-training-hero .iwales-kicker { color:#f5cf59; }
.iwales-training-hero h1 {
  max-width:820px;
  margin:.25rem 0 1.15rem;
  font-size:clamp(2.8rem,5vw,4.7rem) !important;
  line-height:1.01 !important;
  letter-spacing:-.035em;
  text-wrap:balance;
}
.iwales-training-hero .iwales-training-lead {
  max-width:720px;
  margin:0 0 1.55rem;
  color:rgba(255,255,255,.92);
  font-size:clamp(1.08rem,1.55vw,1.32rem);
  line-height:1.55;
}

.iwales-training-shell {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
  padding-block:clamp(3.5rem,6vw,5.2rem);
}
.iwales-training-intro {
  display:grid !important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(2rem,5vw,5rem);
  align-items:start;
}
.iwales-training-intro > * { margin:0 !important; min-width:0; }
.iwales-training-intro h2 {
  margin:.3rem 0 .8rem;
  font-size:clamp(2rem,3.3vw,2.85rem);
  line-height:1.08;
  letter-spacing:-.025em;
}
.iwales-training-note {
  position:relative;
  overflow:hidden;
  padding:clamp(1.4rem,2.5vw,2rem);
  border:1px solid #efd57a;
  border-radius:24px;
  background:#fff8df;
  box-shadow:0 14px 38px rgba(99,77,12,.06);
}
.iwales-training-note::after {
  content:"";
  position:absolute;
  right:-28px;
  bottom:-12px;
  width:165px;
  height:108px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.075;
}
.iwales-training-note > * { position:relative; z-index:1; }
.iwales-training-note p { margin-bottom:0; }

.iwales-training-topics {
  background:linear-gradient(180deg,#f7f9fa,#fff);
  border-top:1px solid rgba(58,58,57,.06);
  border-bottom:1px solid rgba(58,58,57,.06);
}
.iwales-training-topics > .wp-block-group {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
  padding-block:clamp(3.8rem,6vw,5.3rem);
}
.iwales-training-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.75rem !important;
}
.iwales-training-grid > * { margin:0 !important; min-width:0; }
.iwales-training-card {
  display:flex;
  flex-direction:column;
  min-height:250px;
  padding:1.55rem;
  border:1px solid var(--iwales-border);
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 26px rgba(34,34,34,.035);
}
.iwales-training-card:hover {
  transform:translateY(-3px);
  box-shadow:0 18px 45px rgba(34,34,34,.075);
  border-color:transparent;
}
.iwales-training-card .iwales-training-tag {
  display:inline-flex;
  align-self:flex-start;
  margin:0 0 1rem;
  padding:.38rem .65rem;
  border-radius:999px;
  background:#eef4f8;
  color:var(--iwales-blue);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.iwales-training-card:nth-child(2) .iwales-training-tag { background:#fbf0f3; color:var(--iwales-red); }
.iwales-training-card:nth-child(3) .iwales-training-tag { background:#fff7df; color:#9b7410; }
.iwales-training-card:nth-child(4) .iwales-training-tag { background:#f3eef4; color:#6a5164; }
.iwales-training-card:nth-child(5) .iwales-training-tag { background:#eef5ef; color:#49634f; }
.iwales-training-card:nth-child(6) .iwales-training-tag { background:#f1f1ef; color:var(--iwales-dark); }
.iwales-training-card h3 { margin:0 0 .65rem; font-size:1.22rem; }
.iwales-training-card p { margin-top:0; color:var(--iwales-muted); }
.iwales-training-card > p:last-child { margin-top:auto; margin-bottom:0; padding-top:.65rem; }

.iwales-training-audience {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.8rem,6vw,5.3rem);
  color:#fff;
  background:linear-gradient(135deg,#232f36,#1e475e 58%,#213844);
}
.iwales-training-audience::after {
  content:"";
  position:absolute;
  right:-46px;
  top:-28px;
  width:300px;
  height:195px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.055;
}
.iwales-training-audience > .wp-block-group {
  position:relative;
  z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-training-audience .iwales-kicker { color:#f5cf59; }
.iwales-training-audience h2 { max-width:760px; font-size:clamp(2rem,3.3vw,2.85rem); line-height:1.08; }
.iwales-training-audience > .wp-block-group > p { max-width:780px; color:rgba(255,255,255,.82); }
.iwales-training-audience-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.65rem !important;
}
.iwales-training-audience-grid > * { margin:0 !important; min-width:0; }
.iwales-training-audience-card {
  min-height:180px;
  padding:1.45rem;
  border:1px solid rgba(255,255,255,.11);
  border-radius:20px;
  background:rgba(255,255,255,.07);
  backdrop-filter:blur(4px);
}
.iwales-training-audience-card h3 { margin:.1rem 0 .55rem; color:#fff; }
.iwales-training-audience-card p { margin:0; color:rgba(255,255,255,.78); }

.iwales-training-process {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
  margin-top:1.7rem !important;
}
.iwales-training-process > * { margin:0 !important; min-width:0; }
.iwales-training-step {
  min-height:205px;
  padding:1.4rem;
  border-radius:20px;
  background:#f7f7f5;
  border:1px solid var(--iwales-border);
}
.iwales-training-step-number {
  margin:0 0 1rem !important;
  color:var(--iwales-red);
  font-size:.76rem;
  font-weight:850;
  letter-spacing:.08em;
}
.iwales-training-step h3 { margin:0 0 .55rem; font-size:1.08rem; }
.iwales-training-step p { margin:0; color:var(--iwales-muted); }

.iwales-training-case {
  display:grid !important;
  grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);
  gap:clamp(1.25rem,2.4vw,2.15rem);
  align-items:stretch;
  padding-right:clamp(1.25rem,2.4vw,2rem);
  margin-top:clamp(1rem,2vw,1.5rem) !important;
}
.iwales-training-case > * { margin:0 !important; min-width:0; }
.iwales-training-case-panel {
  position:relative;
  overflow:hidden;
  min-height:340px;
  padding:clamp(1.9rem,3.15vw,2.65rem);
  border-radius:26px;
  color:#fff;
  background:linear-gradient(145deg,#85283a,#c1304a 64%,#9d2c42);
  box-shadow:0 18px 50px rgba(116,35,52,.13);
}
.iwales-training-case-panel::after {
  content:"";
  position:absolute;
  right:-36px;
  bottom:-15px;
  width:230px;
  height:150px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.08;
}
.iwales-training-case-panel > * { position:relative; z-index:1; }
.iwales-training-case-panel .iwales-kicker { color:#f6d679; }
.iwales-training-case-panel h2 { max-width:none; width:100%; margin:.25rem 0 .8rem; font-size:clamp(1.85rem,2.55vw,2.4rem); line-height:1.08; }
.iwales-training-case-panel p { color:rgba(255,255,255,.88); }
.iwales-training-case-panel h2 { overflow-wrap:normal; word-break:normal; }
.iwales-training-list { margin:1rem 0 0; padding:0; list-style:none; }
.iwales-training-list li { position:relative; padding-left:1.5rem; margin:.58rem 0; color:var(--iwales-muted); }
.iwales-training-list li::before { content:"✓"; position:absolute; left:0; color:var(--iwales-blue); font-weight:850; }

.iwales-training-cta {
  position:relative;
  overflow:hidden;
  padding:clamp(1.8rem,3.5vw,2.8rem);
  border-radius:26px;
  border:1px solid #efd57a;
  background:linear-gradient(125deg,#fff8df,#fffdf7 68%,#eef5f8);
  box-shadow:0 16px 42px rgba(76,65,25,.06);
}
.iwales-training-cta::after {
  content:"";
  position:absolute;
  right:-28px;
  top:-16px;
  width:190px;
  height:125px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.07;
}
.iwales-training-cta > * { position:relative; z-index:1; }
.iwales-training-cta h2 { max-width:22ch; margin:.25rem 0 .7rem; font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.1; }
.iwales-training-cta p { max-width:760px; }

@media (max-width:980px) {
  .iwales-training-intro,
  .iwales-training-case { grid-template-columns:1fr; }
  .iwales-training-case { padding-right:0; }
  .iwales-training-grid,
  .iwales-training-audience-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-training-process { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-training-hero::before { right:-115px; opacity:.075; }
}

@media (max-width:680px) {
  .iwales-training-hero { padding-top:3.1rem; padding-bottom:3.7rem; border-radius:0 0 24px 24px; }
  .iwales-training-hero h1 { font-size:clamp(2.45rem,12vw,3.3rem) !important; }
  .iwales-training-hero::before { width:220px; height:150px; right:-88px; top:31%; opacity:.06; }
  .iwales-training-shell { padding-block:3rem; }
  .iwales-training-grid,
  .iwales-training-audience-grid,
  .iwales-training-process { grid-template-columns:1fr; }
  .iwales-training-card,
  .iwales-training-step,
  .iwales-training-audience-card { min-height:0; }
  .iwales-training-case-panel { min-height:300px; border-radius:22px; }
  .iwales-training-cta { border-radius:20px; padding:1.5rem; }
  .iwales-training-cta::after { width:145px; height:96px; right:-40px; top:-8px; }
}


/* ================================================================
   Shared split-layout system · v0.4.0
   Use for all future two-column editorial/feature sections.
   Prevents columns drifting toward opposite page edges on desktop.
   ================================================================ */
.iwales-split-cluster,
.iwales-training-case {
  display: grid !important;
  width: 100% !important;
  max-width: var(--iwales-split-max) !important;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr) !important;
  gap: var(--iwales-split-gap) !important;
  align-items: stretch;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.iwales-split-cluster > *,
.iwales-training-case > * {
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* The text column should form one visual unit with the feature panel,
   rather than being visually parked at the far right of the shell. */
.iwales-training-case > :not(.iwales-training-case-panel) {
  width: 100%;
  max-width: 500px;
  justify-self: start;
  padding-left: clamp(.2rem, .5vw, .45rem);
}

@media (max-width: 980px) {
  .iwales-split-cluster,
  .iwales-training-case {
    max-width: none !important;
    grid-template-columns: 1fr !important;
    gap: 1.35rem !important;
  }

  .iwales-training-case > :not(.iwales-training-case-panel) {
    max-width: none;
    padding-left: 0;
  }
}


/* ================================================================
   Arte y cultura · v0.4.1
   Visual and cultural page built on the shared split-layout system.
   ================================================================ */
.iwales-art-hero {
  position:relative;
  overflow:hidden;
  padding-block:clamp(4.1rem,7vw,6.4rem);
  border-radius:0 0 32px 32px;
  color:#fff;
  background:linear-gradient(125deg,#242424 0%,#4d2737 42%,#9b2c45 72%,#1d699b 135%);
}
.iwales-art-hero::after {
  content:"";
  position:absolute;
  right:clamp(-45px,3vw,42px);
  top:50%;
  transform:translateY(-50%) rotate(-5deg);
  width:clamp(300px,34vw,520px);
  height:clamp(205px,23vw,355px);
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.095;
  pointer-events:none;
}
.iwales-art-hero > .wp-block-group {
  position:relative;
  z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-art-hero .iwales-kicker { color:#f3c94d; }
.iwales-art-hero h1 {
  max-width:820px;
  margin:.25rem 0 1.1rem;
  font-size:clamp(2.85rem,5vw,4.75rem) !important;
  line-height:1.01 !important;
  letter-spacing:-.04em;
  text-wrap:balance;
}
.iwales-art-lead {
  max-width:720px;
  margin:0 0 1.55rem !important;
  color:rgba(255,255,255,.91);
  font-size:clamp(1.08rem,1.55vw,1.32rem);
  line-height:1.55;
}
.iwales-art-shell {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
  padding-block:clamp(3.6rem,6vw,5.2rem);
}
.iwales-art-intro {
  display:grid !important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(1.5rem,3vw,3.3rem);
  align-items:start;
}
.iwales-art-intro > * { margin:0 !important; min-width:0; }
.iwales-art-intro h2 { margin:.3rem 0 .8rem; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; letter-spacing:-.025em; }
.iwales-art-note {
  position:relative;
  overflow:hidden;
  padding:clamp(1.45rem,2.5vw,2rem);
  border-radius:24px;
  background:linear-gradient(135deg,#f7e7eb,#fff8df 60%,#eaf3f8);
  border:1px solid rgba(193,48,74,.13);
}
.iwales-art-note::after {
  content:"";
  position:absolute;
  right:-30px;
  bottom:-12px;
  width:170px;
  height:112px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.07;
}
.iwales-art-note > * { position:relative; z-index:1; }
.iwales-art-grid {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(1rem,2vw,1.35rem);
  width:min(100%,980px);
  margin:1.7rem auto 0 !important;
}
.iwales-art-grid > * { margin:0 !important; min-width:0; }
.iwales-art-card {
  display:flex;
  flex-direction:column;
  min-height:220px;
  padding:1.6rem;
  border:1px solid var(--iwales-border);
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 25px rgba(34,34,34,.035);
}
.iwales-art-card:nth-child(1) { border-top:4px solid var(--iwales-red); }
.iwales-art-card:nth-child(2) { border-top:4px solid var(--iwales-blue); }
.iwales-art-card:nth-child(3) { border-top:4px solid var(--iwales-gold); }
.iwales-art-card:nth-child(4) { border-top:4px solid var(--iwales-dark); }
.iwales-art-card h3 { margin:.2rem 0 .6rem; font-size:clamp(1.18rem,1.7vw,1.35rem); line-height:1.12; overflow-wrap:normal; word-break:normal; hyphens:none; text-wrap:balance; }
.iwales-art-card p { margin-top:0; color:var(--iwales-muted); }
.iwales-art-card > p:last-child { margin-top:auto; margin-bottom:0; padding-top:.6rem; }

.iwales-art-feature-band {
  padding-block:clamp(3.8rem,6vw,5.3rem);
  background:linear-gradient(180deg,#f7f7f5,#fff);
  border-block:1px solid rgba(58,58,57,.06);
}
.iwales-art-feature-band > .wp-block-group {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-art-feature-panel {
  position:relative;
  overflow:hidden;
  min-height:390px;
  padding:clamp(1.9rem,3vw,2.6rem);
  border-radius:28px;
  color:#fff;
  background:linear-gradient(145deg,#7f2236,#c1304a 58%,#8f2940);
  box-shadow:0 18px 52px rgba(120,36,54,.15);
}
.iwales-art-feature-panel::after {
  content:"";
  position:absolute;
  right:-30px;
  bottom:-12px;
  width:250px;
  height:165px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.085;
}
.iwales-art-feature-panel > * { position:relative; z-index:1; }
.iwales-art-feature-panel .iwales-kicker { color:#f5d16a; }
.iwales-art-feature-panel h2 { margin:.25rem 0 .8rem; font-size:clamp(2rem,2.9vw,2.65rem); line-height:1.07; }
.iwales-art-feature-panel p { color:rgba(255,255,255,.88); }
.iwales-art-feature-text h2 { max-width:18ch; margin:.25rem 0 .8rem; font-size:clamp(1.95rem,2.8vw,2.55rem); line-height:1.08; }
.iwales-art-feature-text p { color:var(--iwales-muted); }
.iwales-art-list { margin:1rem 0 0; padding:0; list-style:none; }
.iwales-art-list li { position:relative; padding-left:1.5rem; margin:.62rem 0; color:var(--iwales-muted); }
.iwales-art-list li::before { content:"↗"; position:absolute; left:0; color:var(--iwales-red); font-weight:850; }

.iwales-art-participate {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.8rem,6vw,5.3rem);
  color:#fff;
  background:linear-gradient(135deg,#222221,#2d3e48 58%,#1d699b);
}
.iwales-art-participate::after {
  content:"";
  position:absolute;
  right:-55px;
  top:-30px;
  width:300px;
  height:195px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.05;
}
.iwales-art-participate > .wp-block-group {
  position:relative;
  z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-art-participate .iwales-kicker { color:#f3c94d; }
.iwales-art-participate h2 { max-width:760px; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; }
.iwales-art-steps {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.6rem !important;
}
.iwales-art-steps > * { margin:0 !important; min-width:0; }
.iwales-art-step {
  min-height:190px;
  padding:1.45rem;
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  background:rgba(255,255,255,.07);
}
.iwales-art-step h3 { margin:.1rem 0 .55rem; color:#fff; }
.iwales-art-step p { margin:0; color:rgba(255,255,255,.78); }

.iwales-art-cta {
  position:relative;
  overflow:hidden;
  padding:clamp(1.8rem,3.5vw,2.8rem);
  border-radius:26px;
  border:1px solid rgba(193,48,74,.18);
  background:linear-gradient(125deg,#f8e9ed,#fff9e8 62%,#eef5f8);
  box-shadow:0 16px 42px rgba(64,48,51,.055);
}
.iwales-art-cta::after {
  content:"";
  position:absolute;
  right:-26px;
  top:-14px;
  width:190px;
  height:125px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.07;
}
.iwales-art-cta > * { position:relative; z-index:1; }
.iwales-art-cta h2 { max-width:22ch; margin:.25rem 0 .7rem; font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.1; }

@media (max-width:980px) {
  .iwales-art-intro { grid-template-columns:1fr; }
  .iwales-art-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-art-hero::after { right:-110px; opacity:.065; }
}
@media (max-width:680px) {
  .iwales-art-hero { padding-top:3.1rem; padding-bottom:3.7rem; border-radius:0 0 24px 24px; }
  .iwales-art-hero h1 { font-size:clamp(2.45rem,12vw,3.3rem) !important; }
  .iwales-art-hero::after { width:220px; height:150px; right:-90px; top:31%; opacity:.05; }
  .iwales-art-shell { padding-block:3rem; }
  .iwales-art-grid,
  .iwales-art-steps { grid-template-columns:1fr; }
  .iwales-art-card,
  .iwales-art-step { min-height:0; }
  .iwales-art-feature-panel { min-height:310px; border-radius:22px; }
  .iwales-art-cta { border-radius:20px; padding:1.5rem; }
  .iwales-art-cta::after { width:145px; height:96px; right:-38px; top:-8px; }
}


/* ================================================================
   Proyectos · v0.4.4
   Wide reusable project cards and shared split-layout composition.
   ================================================================ */
.iwales-projects-hero {
  position:relative;
  overflow:hidden;
  padding-block:clamp(4.1rem,7vw,6.4rem);
  border-radius:0 0 32px 32px;
  color:#fff;
  background:linear-gradient(125deg,#202d35 0%,#1d587a 48%,#244e61 72%,#3a3a39 120%);
}
.iwales-projects-hero::after {
  content:"";
  position:absolute;
  right:clamp(-42px,3vw,46px);
  top:50%;
  transform:translateY(-50%) rotate(-4deg);
  width:clamp(310px,35vw,530px);
  height:clamp(210px,24vw,365px);
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.085;
  pointer-events:none;
}
.iwales-projects-hero > .wp-block-group {
  position:relative;
  z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-projects-hero .iwales-kicker { color:#f3c94d; }
.iwales-projects-hero h1 {
  max-width:830px;
  margin:.25rem 0 1.1rem;
  font-size:clamp(2.85rem,5vw,4.7rem) !important;
  line-height:1.01 !important;
  letter-spacing:-.04em;
  text-wrap:balance;
}
.iwales-projects-lead {
  max-width:730px;
  margin:0 0 1.55rem !important;
  color:rgba(255,255,255,.91);
  font-size:clamp(1.08rem,1.55vw,1.32rem);
  line-height:1.55;
}
.iwales-projects-shell {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
  padding-block:clamp(3.7rem,6vw,5.3rem);
}
.iwales-projects-intro-note {
  position:relative;
  overflow:hidden;
  padding:clamp(1.45rem,2.5vw,2rem);
  border-radius:24px;
  border:1px solid #efd57a;
  background:linear-gradient(135deg,#fff8df,#fffdf7 67%,#eef5f8);
}
.iwales-projects-intro-note::after {
  content:"";
  position:absolute;
  right:-30px;
  bottom:-12px;
  width:170px;
  height:112px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.065;
}
.iwales-projects-intro-note > * { position:relative; z-index:1; }

.iwales-projects-band {
  background:linear-gradient(180deg,#f6f8f9,#fff);
  border-block:1px solid rgba(58,58,57,.06);
}
.iwales-projects-band > .wp-block-group {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
  padding-block:clamp(3.9rem,6vw,5.5rem);
}
.iwales-projects-grid {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(1rem,1.8vw,1.35rem);
  margin-top:1.8rem !important;
}
.iwales-projects-grid > * { margin:0 !important; min-width:0; }
.iwales-project-card-lg {
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:300px;
  padding:clamp(1.55rem,2.5vw,2.1rem);
  border-radius:26px;
  color:#fff;
  box-shadow:0 16px 45px rgba(34,34,34,.09);
}
.iwales-project-card-lg::after {
  content:"";
  position:absolute;
  right:-34px;
  top:-16px;
  width:220px;
  height:145px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.075;
  pointer-events:none;
}
.iwales-project-card-lg > * { position:relative; z-index:1; }
.iwales-project-card-lg.is-blue { background:linear-gradient(145deg,#174d6e,#1d699b); }
.iwales-project-card-lg.is-red { background:linear-gradient(145deg,#84283a,#c1304a); }
.iwales-project-card-lg.is-gold { background:linear-gradient(145deg,#8b6510,#b88413 62%,#927019); }
.iwales-project-card-lg.is-dark { background:linear-gradient(145deg,#282827,#454543); }
.iwales-project-label {
  display:inline-flex;
  align-self:flex-start;
  margin:0 0 1.15rem !important;
  padding:.42rem .68rem;
  border-radius:999px;
  background:rgba(255,255,255,.13);
  color:#fff;
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.iwales-project-card-lg h3 {
  max-width:20ch;
  margin:.1rem 0 .75rem;
  font-size:clamp(1.45rem,2.1vw,1.95rem);
  line-height:1.06;
  overflow-wrap:normal;
  word-break:normal;
}
.iwales-project-card-lg p:not(.iwales-project-label) {
  max-width:46ch;
  color:rgba(255,255,255,.88);
}
.iwales-project-card-lg > p:last-child {
  margin-top:auto;
  margin-bottom:0;
  padding-top:1rem;
}
.iwales-project-card-lg a { color:#fff; font-weight:800; }

.iwales-projects-method-panel {
  position:relative;
  overflow:hidden;
  min-height:350px;
  padding:clamp(1.9rem,3vw,2.6rem);
  border-radius:28px;
  color:#fff;
  background:linear-gradient(145deg,#2b3032,#3a3a39 60%,#294f61);
  box-shadow:0 18px 50px rgba(34,34,34,.12);
}
.iwales-projects-method-panel::after {
  content:"";
  position:absolute;
  right:-34px;
  bottom:-15px;
  width:245px;
  height:160px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.07;
}
.iwales-projects-method-panel > * { position:relative; z-index:1; }
.iwales-projects-method-panel .iwales-kicker { color:#f3c94d; }
.iwales-projects-method-panel h2 {
  margin:.25rem 0 .8rem;
  font-size:clamp(2rem,2.9vw,2.65rem);
  line-height:1.07;
  max-width:14ch;
}
.iwales-projects-method-panel p { color:rgba(255,255,255,.87); }
.iwales-projects-method-list { margin:.8rem 0 0; padding:0; list-style:none; }
.iwales-projects-method-list li {
  position:relative;
  margin:.62rem 0;
  padding-left:1.55rem;
  color:var(--iwales-muted);
}
.iwales-projects-method-list li::before {
  content:"✓";
  position:absolute;
  left:0;
  color:var(--iwales-blue);
  font-weight:850;
}

.iwales-projects-network {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.9rem,6vw,5.4rem);
  color:#fff;
  background:linear-gradient(135deg,#222221,#2c3e48 57%,#1f5f83);
}
.iwales-projects-network::after {
  content:"";
  position:absolute;
  right:-55px;
  top:-30px;
  width:300px;
  height:195px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.045;
}
.iwales-projects-network > .wp-block-group {
  position:relative;
  z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-projects-network .iwales-kicker { color:#f3c94d; }
.iwales-projects-network h2 { max-width:760px; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; }
.iwales-projects-network > .wp-block-group > p { max-width:780px; color:rgba(255,255,255,.82); }
.iwales-projects-network-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.65rem !important;
}
.iwales-projects-network-grid > * { margin:0 !important; min-width:0; }
.iwales-projects-network-card {
  min-height:180px;
  padding:1.45rem;
  border:1px solid rgba(255,255,255,.11);
  border-radius:20px;
  background:rgba(255,255,255,.07);
}
.iwales-projects-network-card h3 { margin:.1rem 0 .55rem; color:#fff; }
.iwales-projects-network-card p { margin:0; color:rgba(255,255,255,.78); }

.iwales-projects-cta {
  position:relative;
  overflow:hidden;
  padding:clamp(1.8rem,3.5vw,2.8rem);
  border-radius:26px;
  border:1px solid rgba(29,105,155,.18);
  background:linear-gradient(125deg,#eef5f8,#fffdf7 62%,#f8e9ed);
  box-shadow:0 16px 42px rgba(45,59,66,.055);
}
.iwales-projects-cta::after {
  content:"";
  position:absolute;
  right:-28px;
  top:-14px;
  width:190px;
  height:125px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.065;
}
.iwales-projects-cta > * { position:relative; z-index:1; }
.iwales-projects-cta h2 { max-width:22ch; margin:.25rem 0 .7rem; font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.1; }

@media (max-width:980px) {
  .iwales-projects-network-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-projects-hero::after { right:-110px; opacity:.06; }
}
@media (max-width:820px) {
  .iwales-projects-grid { grid-template-columns:1fr; }
  .iwales-project-card-lg { min-height:260px; }
}
@media (max-width:680px) {
  .iwales-projects-hero { padding-top:3.1rem; padding-bottom:3.7rem; border-radius:0 0 24px 24px; }
  .iwales-projects-hero h1 { font-size:clamp(2.45rem,12vw,3.3rem) !important; }
  .iwales-projects-hero::after { width:220px; height:150px; right:-90px; top:31%; opacity:.045; }
  .iwales-projects-shell { padding-block:3rem; }
  .iwales-projects-network-grid { grid-template-columns:1fr; }
  .iwales-projects-network-card { min-height:0; }
  .iwales-projects-method-panel { min-height:300px; border-radius:22px; }
  .iwales-projects-cta { border-radius:20px; padding:1.5rem; }
  .iwales-projects-cta::after { width:145px; height:96px; right:-38px; top:-8px; }
}


/* ================================================================
   Actualidad + entradas · v0.4.5
   Dynamic post index and polished single-post reading experience.
   ================================================================ */
.iwales-news-hero {
  position:relative;
  overflow:hidden;
  padding-block:clamp(4rem,7vw,6.2rem);
  border-radius:0 0 32px 32px;
  color:#fff;
  background:linear-gradient(125deg,#242424 0%,#3b3035 40%,#8d2b41 75%,#1d699b 135%);
}
.iwales-news-hero::after {
  content:"";
  position:absolute;
  right:clamp(-45px,3vw,44px);
  top:50%;
  transform:translateY(-50%) rotate(-4deg);
  width:clamp(300px,34vw,515px);
  height:clamp(205px,23vw,350px);
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.075;
  pointer-events:none;
}
.iwales-news-hero > .wp-block-group {
  position:relative;
  z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-news-hero .iwales-kicker { color:#f3c94d; }
.iwales-news-hero h1 {
  max-width:850px;
  margin:.25rem 0 1.1rem;
  font-size:clamp(2.85rem,5vw,4.65rem) !important;
  line-height:1.01 !important;
  letter-spacing:-.04em;
  text-wrap:balance;
}
.iwales-news-lead {
  max-width:730px;
  margin:0 0 1.55rem !important;
  color:rgba(255,255,255,.91);
  font-size:clamp(1.08rem,1.55vw,1.32rem);
  line-height:1.55;
}
.iwales-news-filters { gap:.6rem !important; }
.iwales-news-filters > * { margin:0 !important; }
.iwales-news-filters a {
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:.45rem .8rem;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:.88rem;
  font-weight:750;
  text-decoration:none;
}
.iwales-news-filters a:hover { background:rgba(255,255,255,.15); }

.iwales-news-shell {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
  padding-block:clamp(3.7rem,6vw,5.4rem);
}
.iwales-news-heading { margin-bottom:1.8rem !important; }
.iwales-news-heading h2 { margin:.25rem 0 0; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; }
.iwales-news-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(1rem,1.8vw,1.35rem);
  padding:0 !important;
  list-style:none;
}
.iwales-news-grid > li {
  display:flex;
  min-width:0;
  margin:0 !important;
}
.iwales-news-card {
  width:100%;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-width:0;
  border:1px solid var(--iwales-border);
  border-radius:24px;
  background:#fff;
  box-shadow:0 8px 28px rgba(34,34,34,.045);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.iwales-news-card:hover { transform:translateY(-3px); border-color:transparent; box-shadow:0 18px 48px rgba(34,34,34,.09); }
.iwales-news-image { margin:0 !important; overflow:hidden; background:#eef0ee; }
.iwales-news-image img { width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.iwales-news-card:hover .iwales-news-image img { transform:scale(1.025); }
.iwales-news-card-body { display:flex; flex:1; flex-direction:column; padding:1.35rem 1.4rem 1.45rem; }
.iwales-news-card-body > * { margin-block-start:0; }
.iwales-news-meta { gap:.55rem 1rem !important; margin:0 0 .8rem !important; color:var(--iwales-muted); font-size:.8rem; }
.iwales-news-meta > * { margin:0 !important; }
.iwales-news-terms a {
  color:var(--iwales-red);
  font-weight:800;
  text-decoration:none;
}
.iwales-news-card h3 {
  margin:0 0 .65rem;
  font-size:clamp(1.18rem,1.6vw,1.4rem);
  line-height:1.12;
  overflow-wrap:normal;
  word-break:normal;
}
.iwales-news-card h3 a { color:var(--iwales-text); text-decoration:none; }
.iwales-news-card .wp-block-post-excerpt { margin-top:auto; color:var(--iwales-muted); }
.iwales-news-card .wp-block-post-excerpt__more-link { display:inline-flex; margin-top:.7rem; color:var(--iwales-red); font-weight:800; text-decoration:none; }
.iwales-news-grid > li:first-child { grid-column:span 2; }
.iwales-news-grid > li:first-child .iwales-news-card { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); min-height:335px; }
.iwales-news-grid > li:first-child .iwales-news-image { min-height:100%; }
.iwales-news-grid > li:first-child .iwales-news-card-body { justify-content:center; padding:clamp(1.6rem,3vw,2.25rem); }
.iwales-news-grid > li:first-child h3 { font-size:clamp(1.65rem,2.6vw,2.2rem); }
.iwales-news-pagination { margin-top:2.3rem !important; gap:.45rem !important; }
.iwales-news-pagination a,
.iwales-news-pagination .page-numbers {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  min-height:40px;
  padding:.45rem .7rem;
  border:1px solid var(--iwales-border);
  border-radius:999px;
  text-decoration:none;
}
.iwales-news-pagination .current { background:var(--iwales-dark); color:#fff; border-color:var(--iwales-dark); }
.iwales-news-empty { padding:2rem; border:1px dashed var(--iwales-border); border-radius:22px; background:#fafaf8; }

.iwales-news-social {
  padding-block:clamp(3.8rem,6vw,5.3rem);
  background:linear-gradient(180deg,#f7f7f5,#fff);
  border-block:1px solid rgba(58,58,57,.06);
}
.iwales-news-social > .wp-block-group { width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important; max-width:var(--iwales-shell) !important; margin-inline:auto !important; }
.iwales-news-social-copy h2 { margin:.25rem 0 .8rem; font-size:clamp(1.95rem,2.9vw,2.6rem); line-height:1.08; }
.iwales-news-social-copy p { color:var(--iwales-muted); }

/* Single post */
.iwales-article-hero {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.6rem,6vw,5.5rem);
  border-radius:0 0 32px 32px;
  color:#fff;
  background:linear-gradient(125deg,#282827,#3a3a39 52%,#4c3038);
}
.iwales-article-hero::after {
  content:"";
  position:absolute;
  right:-40px;
  top:50%;
  transform:translateY(-50%);
  width:clamp(270px,28vw,430px);
  height:clamp(180px,19vw,285px);
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.055;
}
.iwales-article-hero-inner { position:relative; z-index:1; width:min(calc(100% - (var(--iwales-gutter) * 2)),980px) !important; max-width:980px !important; margin-inline:auto !important; }
.iwales-article-terms { margin-bottom:.9rem !important; }
.iwales-article-terms a { color:#f4cf5b; font-size:.82rem; font-weight:850; text-decoration:none; text-transform:uppercase; letter-spacing:.06em; }
.iwales-article-hero h1 { max-width:900px; margin:.2rem 0 1rem; font-size:clamp(2.35rem,4.3vw,4rem) !important; line-height:1.04 !important; letter-spacing:-.035em; text-wrap:balance; }
.iwales-article-meta { gap:.65rem 1.4rem !important; color:rgba(255,255,255,.74); font-size:.9rem; }
.iwales-article-meta > * { margin:0 !important; }
.iwales-article-shell { width:min(calc(100% - (var(--iwales-gutter) * 2)),980px) !important; max-width:980px !important; margin-inline:auto !important; padding-block:clamp(2.8rem,5vw,4.5rem); }
.iwales-article-featured { margin:0 0 clamp(2rem,4vw,3.2rem) !important; }
.iwales-article-featured img { width:100%; border-radius:26px; }
.iwales-article-content { font-size:1.05rem; line-height:1.72; }
.iwales-article-content > * { max-width:780px; }
.iwales-article-content > .alignwide { max-width:980px; }
.iwales-article-content > .alignfull { max-width:none; }
.iwales-article-content h2 { margin-top:2.2em; font-size:clamp(1.7rem,2.8vw,2.25rem); line-height:1.12; }
.iwales-article-content h3 { margin-top:1.8em; line-height:1.16; }
.iwales-article-separator { margin:3rem 0 1.6rem !important; }
.iwales-article-nav { gap:1rem !important; }
.iwales-article-nav a { font-weight:750; text-decoration:none; }
.iwales-article-back { width:min(calc(100% - (var(--iwales-gutter) * 2)),980px) !important; max-width:980px !important; margin:0 auto !important; padding-top:1.35rem; padding-bottom:1.4rem; position:relative; z-index:2; }

@media (max-width:980px) {
  .iwales-news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-news-grid > li:first-child { grid-column:1 / -1; }
  .iwales-news-grid > li:first-child .iwales-news-card { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .iwales-news-hero::after { right:-110px; opacity:.055; }
}
@media (max-width:720px) {
  .iwales-news-grid { grid-template-columns:1fr; }
  .iwales-news-grid > li:first-child .iwales-news-card { display:flex; min-height:0; }
  .iwales-news-grid > li:first-child .iwales-news-image { min-height:0; }
  .iwales-news-grid > li:first-child h3 { font-size:1.4rem; }
}
@media (max-width:680px) {
  .iwales-news-hero { padding-top:3.1rem; padding-bottom:3.7rem; border-radius:0 0 24px 24px; }
  .iwales-news-hero h1 { font-size:clamp(2.45rem,12vw,3.3rem) !important; }
  .iwales-news-hero::after { width:220px; height:150px; right:-90px; opacity:.04; }
  .iwales-news-shell { padding-block:3rem; }
  .iwales-news-filters { gap:.45rem !important; }
  .iwales-news-filters a { min-height:36px; padding:.4rem .7rem; font-size:.82rem; }
  .iwales-news-card { border-radius:20px; }
  .iwales-news-card-body { padding:1.2rem; }
  .iwales-article-hero { padding-top:3rem; padding-bottom:3.6rem; border-radius:0 0 24px 24px; }
  .iwales-article-hero::after { width:200px; height:132px; right:-90px; opacity:.04; }
  .iwales-article-shell { padding-block:2.4rem 3.4rem; }
  .iwales-article-featured img { border-radius:20px; }
  .iwales-article-content { font-size:1rem; }
  .iwales-article-nav { display:block !important; }
  .iwales-article-nav > * + * { margin-top:1rem !important; }
}


/* ================================================================
   Participa · v0.4.6
   Warm action-oriented page, based on reusable split/grid components.
   ================================================================ */
.iwales-join-hero {
  position:relative;
  overflow:hidden;
  padding-block:clamp(4.1rem,7vw,6.4rem);
  border-radius:0 0 32px 32px;
  color:#fff;
  background:linear-gradient(125deg,#2b2b2a 0%,#5e3341 43%,#a42e48 73%,#b98525 132%);
}
.iwales-join-hero::after {
  content:"";
  position:absolute;
  right:clamp(-35px,3vw,48px);
  top:50%;
  transform:translateY(-50%) rotate(-4deg);
  width:clamp(300px,34vw,520px);
  height:clamp(205px,23vw,355px);
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.09;
  pointer-events:none;
}
.iwales-join-hero > .wp-block-group {
  position:relative;
  z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-join-hero .iwales-kicker { color:#f3cb59; }
.iwales-join-hero h1 {
  max-width:840px;
  margin:.25rem 0 1.1rem;
  font-size:clamp(2.85rem,5vw,4.75rem) !important;
  line-height:1.01 !important;
  letter-spacing:-.04em;
  text-wrap:balance;
}
.iwales-join-lead {
  max-width:720px;
  margin:0 0 1.55rem !important;
  color:rgba(255,255,255,.91);
  font-size:clamp(1.08rem,1.55vw,1.32rem);
  line-height:1.55;
}
.iwales-join-shell {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
  padding-block:clamp(3.6rem,6vw,5.2rem);
}
.iwales-join-intro h2 {
  max-width:18ch;
  margin:.25rem 0 .8rem;
  font-size:clamp(2rem,3.2vw,2.8rem);
  line-height:1.08;
  letter-spacing:-.025em;
}
.iwales-join-note {
  position:relative;
  overflow:hidden;
  padding:clamp(1.45rem,2.5vw,2rem);
  border-radius:24px;
  border:1px solid rgba(193,48,74,.14);
  background:linear-gradient(135deg,#f8eaee,#fff8e4 62%,#eef5f8);
}
.iwales-join-note::after {
  content:"";
  position:absolute;
  right:-25px;
  bottom:-12px;
  width:165px;
  height:108px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.065;
}
.iwales-join-note > * { position:relative; z-index:1; }
.iwales-join-grid-wrap {
  background:linear-gradient(180deg,#f8f8f6,#fff);
  border-block:1px solid rgba(58,58,57,.06);
}
.iwales-join-grid-wrap > .wp-block-group {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
  padding-block:clamp(3.8rem,6vw,5.3rem);
}
.iwales-join-grid {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(1rem,1.8vw,1.35rem);
  margin-top:1.7rem !important;
}
.iwales-join-grid > * { margin:0 !important; min-width:0; }
.iwales-join-card {
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:270px;
  padding:clamp(1.45rem,2.3vw,1.9rem);
  border:1px solid var(--iwales-border);
  border-radius:24px;
  background:#fff;
  box-shadow:0 9px 28px rgba(34,34,34,.04);
}
.iwales-join-card::after {
  content:"";
  position:absolute;
  right:-32px;
  top:-16px;
  width:145px;
  height:95px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.035;
}
.iwales-join-card > * { position:relative; z-index:1; }
.iwales-join-card:nth-child(1) { border-top:4px solid var(--iwales-red); }
.iwales-join-card:nth-child(2) { border-top:4px solid var(--iwales-gold); }
.iwales-join-card:nth-child(3) { border-top:4px solid var(--iwales-blue); }
.iwales-join-card:nth-child(4) { border-top:4px solid var(--iwales-dark); }
.iwales-join-label {
  display:inline-flex;
  align-self:flex-start;
  margin:0 0 .9rem !important;
  padding:.36rem .64rem;
  border-radius:999px;
  background:#f7eef1;
  color:var(--iwales-red);
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.iwales-join-card:nth-child(2) .iwales-join-label { background:#fff7df; color:#98710f; }
.iwales-join-card:nth-child(3) .iwales-join-label { background:#edf4f8; color:var(--iwales-blue); }
.iwales-join-card:nth-child(4) .iwales-join-label { background:#f1f1ef; color:var(--iwales-dark); }
.iwales-join-card h3 { margin:0 0 .65rem; font-size:clamp(1.28rem,2vw,1.55rem); line-height:1.08; }
.iwales-join-card p { margin-top:0; color:var(--iwales-muted); }
.iwales-join-card > p:last-child { margin-top:auto; margin-bottom:0; padding-top:.75rem; }
.iwales-join-card a { font-weight:800; }

.iwales-join-feature-band {
  padding-block:clamp(3.8rem,6vw,5.3rem);
  background:linear-gradient(180deg,#fff,#f8f8f6);
}
.iwales-join-feature-band > .wp-block-group {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-join-volunteer-panel {
  position:relative;
  overflow:hidden;
  min-height:365px;
  padding:clamp(1.9rem,3vw,2.6rem);
  border-radius:28px;
  color:#fff;
  background:linear-gradient(145deg,#85283a,#c1304a 62%,#9d2c42);
  box-shadow:0 18px 52px rgba(120,36,54,.14);
}
.iwales-join-volunteer-panel::after {
  content:"";
  position:absolute;
  right:-34px;
  bottom:-12px;
  width:245px;
  height:160px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.08;
}
.iwales-join-volunteer-panel > * { position:relative; z-index:1; }
.iwales-join-volunteer-panel .iwales-kicker { color:#f6d475; }
.iwales-join-volunteer-panel h2 { margin:.25rem 0 .8rem; font-size:clamp(1.95rem,2.8vw,2.55rem); line-height:1.08; }
.iwales-join-volunteer-panel p { color:rgba(255,255,255,.88); }
.iwales-join-list { margin:1rem 0 0; padding:0; list-style:none; }
.iwales-join-list li { position:relative; padding-left:1.55rem; margin:.62rem 0; color:var(--iwales-muted); }
.iwales-join-list li::before { content:"✓"; position:absolute; left:0; color:var(--iwales-red); font-weight:850; }

.iwales-join-member {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.8rem,6vw,5.3rem);
  color:#fff;
  background:linear-gradient(135deg,#222221,#3b3335 50%,#5b3441);
}
.iwales-join-member::after {
  content:"";
  position:absolute;
  right:-52px;
  top:-26px;
  width:310px;
  height:205px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.045;
}
.iwales-join-member > .wp-block-group {
  position:relative;
  z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-join-member .iwales-kicker { color:#f3cb59; }
.iwales-join-member h2 { max-width:780px; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; }
.iwales-join-member > .wp-block-group > p { max-width:770px; color:rgba(255,255,255,.82); }
.iwales-join-member-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.6rem !important;
}
.iwales-join-member-grid > * { margin:0 !important; min-width:0; }
.iwales-join-member-card {
  min-height:175px;
  padding:1.45rem;
  border:1px solid rgba(255,255,255,.11);
  border-radius:20px;
  background:rgba(255,255,255,.07);
}
.iwales-join-member-card h3 { margin:.1rem 0 .55rem; color:#fff; }
.iwales-join-member-card p { margin:0; color:rgba(255,255,255,.77); }

.iwales-join-cta {
  position:relative;
  overflow:hidden;
  padding:clamp(1.8rem,3.5vw,2.8rem);
  border-radius:26px;
  border:1px solid rgba(193,48,74,.16);
  background:linear-gradient(125deg,#f8e9ed,#fff9e8 62%,#eef5f8);
  box-shadow:0 16px 42px rgba(64,48,51,.055);
}
.iwales-join-cta::after {
  content:"";
  position:absolute;
  right:-28px;
  top:-14px;
  width:190px;
  height:125px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.065;
}
.iwales-join-cta > * { position:relative; z-index:1; }
.iwales-join-cta h2 { max-width:22ch; margin:.25rem 0 .7rem; font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.1; }

@media (max-width:980px) {
  .iwales-join-grid { grid-template-columns:1fr; }
  .iwales-join-member-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-join-hero::after { right:-110px; opacity:.06; }
}
@media (max-width:680px) {
  .iwales-join-hero { padding-top:3.1rem; padding-bottom:3.7rem; border-radius:0 0 24px 24px; }
  .iwales-join-hero h1 { font-size:clamp(2.45rem,12vw,3.3rem) !important; }
  .iwales-join-hero::after { width:220px; height:150px; right:-90px; top:31%; opacity:.05; }
  .iwales-join-shell { padding-block:3rem; }
  .iwales-join-member-grid { grid-template-columns:1fr; }
  .iwales-join-card,
  .iwales-join-member-card { min-height:0; }
  .iwales-join-volunteer-panel { min-height:300px; border-radius:22px; }
  .iwales-join-cta { border-radius:20px; padding:1.5rem; }
  .iwales-join-cta::after { width:145px; height:96px; right:-38px; top:-8px; }
}


/* ================================================================
   Voluntariado + Persona socia · v0.4.7
   Child pages of Participa. Uses the shared split-layout system.
   ================================================================ */
.iwales-volunteer-hero,
.iwales-member-hero {
  position:relative;
  overflow:hidden;
  padding-block:clamp(4rem,7vw,6.2rem);
  border-radius:0 0 32px 32px;
  color:#fff;
}
.iwales-volunteer-hero {
  background:linear-gradient(125deg,#22383e 0%,#1d699b 54%,#365f67 100%);
}
.iwales-member-hero {
  background:linear-gradient(125deg,#3b2d35 0%,#8f2d43 56%,#c1304a 100%);
}
.iwales-volunteer-hero::after,
.iwales-member-hero::after {
  content:"";
  position:absolute;
  right:clamp(-50px,3vw,45px);
  top:50%;
  transform:translateY(-50%) rotate(-4deg);
  width:clamp(300px,34vw,510px);
  height:clamp(200px,23vw,345px);
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.075;
  pointer-events:none;
}
.iwales-volunteer-hero > .wp-block-group,
.iwales-member-hero > .wp-block-group {
  position:relative;
  z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-volunteer-hero .iwales-kicker,
.iwales-member-hero .iwales-kicker { color:#f4d066; }
.iwales-volunteer-hero h1,
.iwales-member-hero h1 {
  max-width:820px;
  margin:.25rem 0 1.1rem;
  font-size:clamp(2.8rem,5vw,4.65rem) !important;
  line-height:1.01 !important;
  letter-spacing:-.038em;
  text-wrap:balance;
}
.iwales-volunteer-lead,
.iwales-member-lead {
  max-width:720px;
  margin:0 0 1.5rem !important;
  color:rgba(255,255,255,.92);
  font-size:clamp(1.08rem,1.55vw,1.32rem);
  line-height:1.55;
}
.iwales-participation-shell {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
  padding-block:clamp(3.6rem,6vw,5.2rem);
}
.iwales-participation-intro h2 {
  margin:.3rem 0 .8rem;
  font-size:clamp(2rem,3.2vw,2.8rem);
  line-height:1.08;
  letter-spacing:-.025em;
}
.iwales-participation-note {
  position:relative;
  overflow:hidden;
  padding:clamp(1.45rem,2.5vw,2rem);
  border-radius:24px;
  background:linear-gradient(135deg,#eef5f8,#fff 58%,#fff7df);
  border:1px solid rgba(29,105,155,.12);
}
.iwales-participation-note::after {
  content:"";
  position:absolute;
  right:-30px;
  bottom:-12px;
  width:170px;
  height:112px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.06;
}
.iwales-participation-note > * { position:relative; z-index:1; }

.iwales-participation-grid {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
  margin-top:1.7rem !important;
}
.iwales-participation-grid > * { margin:0 !important; min-width:0; }
.iwales-participation-card {
  display:flex;
  flex-direction:column;
  min-height:225px;
  padding:1.55rem;
  border:1px solid var(--iwales-border);
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 25px rgba(34,34,34,.035);
}
.iwales-participation-card:nth-child(1) { border-top:4px solid var(--iwales-red); }
.iwales-participation-card:nth-child(2) { border-top:4px solid var(--iwales-blue); }
.iwales-participation-card:nth-child(3) { border-top:4px solid var(--iwales-gold); }
.iwales-participation-card:nth-child(4) { border-top:4px solid var(--iwales-dark); }
.iwales-participation-card h3 { margin:.15rem 0 .6rem; font-size:clamp(1.22rem,1.8vw,1.45rem); line-height:1.1; }
.iwales-participation-card p { margin-top:0; color:var(--iwales-muted); }

.iwales-volunteer-band,
.iwales-member-band {
  padding-block:clamp(3.8rem,6vw,5.3rem);
  border-block:1px solid rgba(58,58,57,.06);
  background:linear-gradient(180deg,#f7f8f7,#fff);
}
.iwales-volunteer-band > .wp-block-group,
.iwales-member-band > .wp-block-group {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-volunteer-panel,
.iwales-member-panel {
  position:relative;
  overflow:hidden;
  min-height:330px;
  padding:clamp(1.9rem,3vw,2.6rem);
  border-radius:26px;
  color:#fff;
  box-shadow:0 18px 50px rgba(34,34,34,.11);
}
.iwales-volunteer-panel { background:linear-gradient(145deg,#174d6e,#1d699b 62%,#285a6a); }
.iwales-member-panel { background:linear-gradient(145deg,#81283a,#c1304a 62%,#972d42); }
.iwales-volunteer-panel::after,
.iwales-member-panel::after {
  content:"";
  position:absolute;
  right:-36px;
  bottom:-18px;
  width:235px;
  height:155px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.075;
}
.iwales-volunteer-panel > *, .iwales-member-panel > * { position:relative; z-index:1; }
.iwales-volunteer-panel .iwales-kicker,
.iwales-member-panel .iwales-kicker { color:#f5d472; }
.iwales-volunteer-panel h2,
.iwales-member-panel h2 { margin:.25rem 0 .8rem; font-size:clamp(1.95rem,2.75vw,2.5rem); line-height:1.08; }
.iwales-volunteer-panel p,
.iwales-member-panel p { color:rgba(255,255,255,.88); }
.iwales-participation-list { margin:1rem 0 0; padding:0; list-style:none; }
.iwales-participation-list li { position:relative; padding-left:1.55rem; margin:.62rem 0; color:var(--iwales-muted); }
.iwales-participation-list li::before { content:"✓"; position:absolute; left:0; color:var(--iwales-red); font-weight:850; }

.iwales-participation-process {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
  margin-top:1.6rem !important;
}
.iwales-participation-process > * { margin:0 !important; min-width:0; }
.iwales-participation-step {
  min-height:195px;
  padding:1.4rem;
  border-radius:20px;
  border:1px solid var(--iwales-border);
  background:#f7f7f5;
}
.iwales-participation-step-number {
  margin:0 0 .9rem !important;
  color:var(--iwales-red);
  font-size:.76rem;
  font-weight:850;
  letter-spacing:.08em;
}
.iwales-participation-step h3 { margin:0 0 .5rem; font-size:1.08rem; }
.iwales-participation-step p { margin:0; color:var(--iwales-muted); }

.iwales-member-values {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.8rem,6vw,5.3rem);
  color:#fff;
  background:linear-gradient(135deg,#242424,#3e3036 58%,#653040);
}
.iwales-member-values::after {
  content:"";
  position:absolute;
  right:-55px;
  top:-30px;
  width:300px;
  height:195px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.045;
}
.iwales-member-values > .wp-block-group {
  position:relative;
  z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-member-values .iwales-kicker { color:#f3cb59; }
.iwales-member-values h2 { max-width:780px; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; }
.iwales-member-values-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.6rem !important;
}
.iwales-member-values-grid > * { margin:0 !important; min-width:0; }
.iwales-member-value {
  min-height:170px;
  padding:1.45rem;
  border:1px solid rgba(255,255,255,.11);
  border-radius:20px;
  background:rgba(255,255,255,.065);
}
.iwales-member-value h3 { margin:.1rem 0 .55rem; color:#fff; }
.iwales-member-value p { margin:0; color:rgba(255,255,255,.78); }

.iwales-participation-cta {
  position:relative;
  overflow:hidden;
  padding:clamp(1.8rem,3.5vw,2.8rem);
  border-radius:26px;
  border:1px solid rgba(193,48,74,.16);
  background:linear-gradient(125deg,#f7e9ed,#fff9e9 64%,#edf5f8);
  box-shadow:0 16px 42px rgba(64,48,51,.055);
}
.iwales-participation-cta::after {
  content:"";
  position:absolute;
  right:-28px;
  top:-14px;
  width:190px;
  height:125px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.065;
}
.iwales-participation-cta > * { position:relative; z-index:1; }
.iwales-participation-cta h2 { max-width:23ch; margin:.25rem 0 .7rem; font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.1; }

@media (max-width:980px) {
  .iwales-participation-process { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-member-values-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-volunteer-hero::after, .iwales-member-hero::after { right:-110px; opacity:.055; }
}
@media (max-width:680px) {
  .iwales-volunteer-hero, .iwales-member-hero { padding-top:3.1rem; padding-bottom:3.7rem; border-radius:0 0 24px 24px; }
  .iwales-volunteer-hero h1, .iwales-member-hero h1 { font-size:clamp(2.45rem,12vw,3.3rem) !important; }
  .iwales-volunteer-hero::after, .iwales-member-hero::after { width:220px; height:150px; right:-90px; top:31%; opacity:.045; }
  .iwales-participation-shell { padding-block:3rem; }
  .iwales-participation-grid,
  .iwales-participation-process,
  .iwales-member-values-grid { grid-template-columns:1fr; }
  .iwales-participation-card,
  .iwales-participation-step,
  .iwales-member-value { min-height:0; }
  .iwales-volunteer-panel, .iwales-member-panel { min-height:0; border-radius:22px; }
  .iwales-participation-cta { border-radius:20px; padding:1.5rem; }
  .iwales-participation-cta::after { width:145px; height:96px; right:-38px; top:-8px; }
}


/* ================================================================
   Sobre Iwales · v0.4.8
   Institutional page using the shared layout system.
   ================================================================ */
.iwales-about-hero {
  position:relative;
  overflow:hidden;
  padding-block:clamp(4.2rem,7vw,6.4rem);
  border-radius:0 0 32px 32px;
  color:#fff;
  background:linear-gradient(125deg,#252524 0%,#39484f 46%,#1d699b 105%);
}
.iwales-about-hero::after {
  content:"";
  position:absolute;
  right:clamp(-60px,2vw,42px);
  top:50%;
  transform:translateY(-50%) rotate(-4deg);
  width:clamp(310px,34vw,520px);
  height:clamp(210px,23vw,355px);
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.085;
  pointer-events:none;
}
.iwales-about-hero > .wp-block-group {
  position:relative;
  z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-about-hero .iwales-kicker { color:#f3cb57; }
.iwales-about-hero h1 {
  max-width:820px;
  margin:.25rem 0 1.1rem;
  font-size:clamp(2.85rem,5vw,4.75rem) !important;
  line-height:1.01 !important;
  letter-spacing:-.04em;
  text-wrap:balance;
}
.iwales-about-lead {
  max-width:760px;
  margin:0 0 1.55rem !important;
  color:rgba(255,255,255,.91);
  font-size:clamp(1.08rem,1.55vw,1.32rem);
  line-height:1.55;
}
.iwales-about-shell {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
  padding-block:clamp(3.6rem,6vw,5.2rem);
}
.iwales-about-intro {
  display:grid !important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(1.5rem,3vw,3rem);
  align-items:start;
}
.iwales-about-intro > * { margin:0 !important; min-width:0; }
.iwales-about-intro h2 { margin:.3rem 0 .8rem; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; letter-spacing:-.025em; }
.iwales-about-note {
  position:relative;
  overflow:hidden;
  padding:clamp(1.45rem,2.5vw,2rem);
  border-radius:24px;
  background:linear-gradient(135deg,#eef5f8,#fff 58%,#fff8df);
  border:1px solid rgba(29,105,155,.13);
}
.iwales-about-note::after {
  content:"";
  position:absolute;
  right:-28px;
  bottom:-12px;
  width:170px;
  height:112px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.065;
}
.iwales-about-note > * { position:relative; z-index:1; }

.iwales-about-history {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.9rem,6vw,5.4rem);
  background:linear-gradient(180deg,#f7f7f5,#fff);
  border-block:1px solid rgba(58,58,57,.06);
}
.iwales-about-history > .wp-block-group {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-about-history .iwales-split-cluster { align-items:stretch; }
.iwales-about-origin-panel {
  position:relative;
  overflow:hidden;
  min-height:330px;
  padding:clamp(1.9rem,3vw,2.6rem);
  border-radius:28px;
  color:#fff;
  background:linear-gradient(145deg,#153f58,#1d699b 62%,#214f69);
  box-shadow:0 18px 48px rgba(29,105,155,.14);
}
.iwales-about-origin-panel::after {
  content:"";
  position:absolute;
  right:-34px;
  bottom:-14px;
  width:240px;
  height:158px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.075;
}
.iwales-about-origin-panel > * { position:relative; z-index:1; }
.iwales-about-origin-panel .iwales-kicker { color:#f4cf64; }
.iwales-about-origin-panel h2 { margin:.25rem 0 .8rem; font-size:clamp(2rem,2.8vw,2.55rem); line-height:1.07; }
.iwales-about-origin-panel p { color:rgba(255,255,255,.88); }
.iwales-about-timeline { margin:1rem 0 0; padding:0; list-style:none; }
.iwales-about-timeline li { position:relative; margin:.7rem 0; padding-left:1.55rem; color:var(--iwales-muted); }
.iwales-about-timeline li::before { content:"•"; position:absolute; left:.1rem; color:var(--iwales-red); font-size:1.3rem; line-height:1; }

.iwales-about-areas {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
  margin-top:1.7rem !important;
}
.iwales-about-areas > * { margin:0 !important; min-width:0; }
.iwales-about-area {
  min-height:220px;
  padding:1.5rem;
  border:1px solid var(--iwales-border);
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 24px rgba(34,34,34,.035);
}
.iwales-about-area:nth-child(1) { border-top:4px solid var(--iwales-blue); }
.iwales-about-area:nth-child(2) { border-top:4px solid var(--iwales-red); }
.iwales-about-area:nth-child(3) { border-top:4px solid var(--iwales-gold); }
.iwales-about-area:nth-child(4) { border-top:4px solid var(--iwales-dark); }
.iwales-about-area h3 { margin:.2rem 0 .6rem; font-size:1.22rem; line-height:1.1; }
.iwales-about-area p { margin:0; color:var(--iwales-muted); }

.iwales-about-values {
  position:relative;
  overflow:hidden;
  padding-block:clamp(3.9rem,6vw,5.4rem);
  color:#fff;
  background:linear-gradient(135deg,#222221,#2e3132 55%,#3b2930);
}
.iwales-about-values::after {
  content:"";
  position:absolute;
  right:-48px;
  top:-30px;
  width:300px;
  height:195px;
  background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.05;
}
.iwales-about-values > .wp-block-group {
  position:relative;
  z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important;
  margin-inline:auto !important;
}
.iwales-about-values .iwales-kicker { color:#f3c94d; }
.iwales-about-values h2 { max-width:780px; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; }
.iwales-about-values-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.6rem !important;
}
.iwales-about-values-grid > * { margin:0 !important; min-width:0; }
.iwales-about-value {
  min-height:190px;
  padding:1.45rem;
  border:1px solid rgba(255,255,255,.11);
  border-radius:20px;
  background:rgba(255,255,255,.065);
}
.iwales-about-value h3 { margin:.1rem 0 .55rem; color:#fff; }
.iwales-about-value p { margin:0; color:rgba(255,255,255,.78); }

.iwales-about-network {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
  margin-top:1.5rem !important;
}
.iwales-about-network > * { margin:0 !important; min-width:0; }
.iwales-about-network-card {
  padding:1.45rem;
  border-radius:20px;
  border:1px solid var(--iwales-border);
  background:#f8f8f6;
}
.iwales-about-network-card h3 { margin:.1rem 0 .55rem; }
.iwales-about-network-card p { margin:0; color:var(--iwales-muted); }

.iwales-about-cta {
  position:relative;
  overflow:hidden;
  padding:clamp(1.8rem,3.5vw,2.8rem);
  border-radius:26px;
  border:1px solid rgba(29,105,155,.16);
  background:linear-gradient(125deg,#eef5f8,#fff 58%,#fff8df);
  box-shadow:0 16px 42px rgba(47,61,70,.055);
}
.iwales-about-cta::after {
  content:"";
  position:absolute;
  right:-26px;
  top:-14px;
  width:190px;
  height:125px;
  background:var(--iwales-mark-color) center/contain no-repeat;
  opacity:.065;
}
.iwales-about-cta > * { position:relative; z-index:1; }
.iwales-about-cta h2 { max-width:22ch; margin:.25rem 0 .7rem; font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.1; }

@media (max-width:980px) {
  .iwales-about-intro { grid-template-columns:1fr; }
  .iwales-about-values-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-about-hero::after { right:-110px; opacity:.06; }
}
@media (max-width:680px) {
  .iwales-about-hero { padding-top:3.1rem; padding-bottom:3.7rem; border-radius:0 0 24px 24px; }
  .iwales-about-hero h1 { font-size:clamp(2.45rem,12vw,3.3rem) !important; }
  .iwales-about-hero::after { width:220px; height:150px; right:-90px; top:31%; opacity:.045; }
  .iwales-about-shell { padding-block:3rem; }
  .iwales-about-areas,
  .iwales-about-values-grid,
  .iwales-about-network { grid-template-columns:1fr; }
  .iwales-about-area,
  .iwales-about-value { min-height:0; }
  .iwales-about-origin-panel { min-height:0; border-radius:22px; }
  .iwales-about-cta { border-radius:20px; padding:1.5rem; }
  .iwales-about-cta::after { width:145px; height:96px; right:-38px; top:-8px; }
}


/* ================================================================
   Transparencia · v0.4.9
   Document hub prepared for real public files.
   ================================================================ */
.iwales-transparency-hero {
  position:relative; overflow:hidden; color:#fff;
  padding-block:clamp(4.1rem,7vw,6.2rem);
  border-radius:0 0 32px 32px;
  background:linear-gradient(125deg,#252524 0%,#31454f 48%,#1d699b 110%);
}
.iwales-transparency-hero::after {
  content:""; position:absolute; right:clamp(-55px,2vw,45px); top:50%;
  transform:translateY(-50%) rotate(-4deg); width:clamp(300px,34vw,515px);
  height:clamp(205px,23vw,350px); background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.075; pointer-events:none;
}
.iwales-transparency-hero > .wp-block-group,
.iwales-transparency-band > .wp-block-group {
  position:relative; z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important; margin-inline:auto !important;
}
.iwales-transparency-hero .iwales-kicker { color:#f2cf62; }
.iwales-transparency-hero h1 { max-width:850px; margin:.25rem 0 1.1rem; font-size:clamp(2.8rem,5vw,4.7rem)!important; line-height:1.01!important; letter-spacing:-.035em; text-wrap:balance; }
.iwales-transparency-lead { max-width:730px; margin:0 0 1.45rem!important; color:rgba(255,255,255,.9); font-size:clamp(1.08rem,1.55vw,1.3rem); line-height:1.55; }
.iwales-transparency-shell { width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell))!important; max-width:var(--iwales-shell)!important; margin-inline:auto!important; padding-block:clamp(3.6rem,6vw,5.2rem); }
.iwales-transparency-intro { display:grid!important; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); gap:clamp(1.5rem,3vw,3.2rem); align-items:start; }
.iwales-transparency-intro > * { margin:0!important; min-width:0; }
.iwales-transparency-intro h2 { margin:.3rem 0 .8rem; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; letter-spacing:-.025em; }
.iwales-transparency-note { position:relative; overflow:hidden; padding:clamp(1.45rem,2.6vw,2rem); border-radius:24px; border:1px solid #d9e6ee; background:linear-gradient(135deg,#edf5f8,#fff 58%,#fff8e3); }
.iwales-transparency-note::after { content:""; position:absolute; right:-30px; bottom:-13px; width:170px; height:112px; background:var(--iwales-mark-color) center/contain no-repeat; opacity:.065; }
.iwales-transparency-note > * { position:relative; z-index:1; }
.iwales-transparency-docs { background:linear-gradient(180deg,#f7f9fa,#fff); border-block:1px solid rgba(58,58,57,.06); }
.iwales-transparency-docs > .wp-block-group { width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell))!important; max-width:var(--iwales-shell)!important; margin-inline:auto!important; padding-block:clamp(3.8rem,6vw,5.3rem); }
.iwales-transparency-grid { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-top:1.7rem!important; }
.iwales-transparency-grid > * { margin:0!important; min-width:0; }
.iwales-transparency-card { display:flex; flex-direction:column; min-height:245px; padding:1.55rem; border:1px solid var(--iwales-border); border-radius:22px; background:#fff; box-shadow:0 8px 26px rgba(34,34,34,.035); }
.iwales-transparency-card-tag { display:inline-flex; align-self:flex-start; margin:0 0 1rem!important; padding:.38rem .65rem; border-radius:999px; background:#edf4f8; color:var(--iwales-blue); font-size:.71rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.iwales-transparency-card:nth-child(2) .iwales-transparency-card-tag { background:#fbf0f3; color:var(--iwales-red); }
.iwales-transparency-card:nth-child(3) .iwales-transparency-card-tag { background:#fff7df; color:#8d6b12; }
.iwales-transparency-card:nth-child(4) .iwales-transparency-card-tag { background:#f1f1ef; color:var(--iwales-dark); }
.iwales-transparency-card:nth-child(5) .iwales-transparency-card-tag { background:#eef5ef; color:#49634f; }
.iwales-transparency-card:nth-child(6) .iwales-transparency-card-tag { background:#f3eef4; color:#6a5164; }
.iwales-transparency-card h3 { margin:.1rem 0 .65rem; font-size:1.2rem; line-height:1.15; }
.iwales-transparency-card p { margin-top:0; color:var(--iwales-muted); }
.iwales-transparency-card > p:last-child { margin-top:auto; margin-bottom:0; padding-top:.7rem; font-size:.9rem; }
.iwales-transparency-band { position:relative; overflow:hidden; padding-block:clamp(3.8rem,6vw,5.2rem); color:#fff; background:linear-gradient(135deg,#232323,#31444d 58%,#1d699b); }
.iwales-transparency-band::after { content:""; position:absolute; right:-55px; top:-32px; width:300px; height:195px; background:var(--iwales-mark-white) center/contain no-repeat; opacity:.05; }
.iwales-transparency-band .iwales-kicker { color:#f2cf62; }
.iwales-transparency-band h2 { max-width:770px; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; }
.iwales-transparency-band p { max-width:800px; color:rgba(255,255,255,.82); }
.iwales-transparency-principles { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-top:1.55rem!important; }
.iwales-transparency-principles > * { margin:0!important; min-width:0; }
.iwales-transparency-principle { min-height:170px; padding:1.4rem; border-radius:20px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.07); }
.iwales-transparency-principle h3 { margin:.1rem 0 .55rem; color:#fff; }
.iwales-transparency-principle p { margin:0; color:rgba(255,255,255,.76); }
.iwales-transparency-cta { position:relative; overflow:hidden; padding:clamp(1.8rem,3.5vw,2.8rem); border-radius:26px; border:1px solid #d9e6ee; background:linear-gradient(125deg,#edf5f8,#fffdf7 65%,#f8e9ed); box-shadow:0 16px 42px rgba(45,61,69,.055); }
.iwales-transparency-cta::after { content:""; position:absolute; right:-28px; top:-15px; width:190px; height:125px; background:var(--iwales-mark-color) center/contain no-repeat; opacity:.06; }
.iwales-transparency-cta > * { position:relative; z-index:1; }
.iwales-transparency-cta h2 { max-width:22ch; margin:.25rem 0 .7rem; font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.1; }
@media (max-width:980px) {
  .iwales-transparency-intro { grid-template-columns:1fr; }
  .iwales-transparency-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-transparency-principles { grid-template-columns:1fr; }
  .iwales-transparency-hero::after { right:-115px; opacity:.055; }
}
@media (max-width:680px) {
  .iwales-transparency-hero { padding-top:3.1rem; padding-bottom:3.7rem; border-radius:0 0 24px 24px; }
  .iwales-transparency-hero h1 { font-size:clamp(2.4rem,12vw,3.25rem)!important; }
  .iwales-transparency-hero::after { width:220px; height:150px; right:-90px; opacity:.045; }
  .iwales-transparency-shell { padding-block:3rem; }
  .iwales-transparency-grid { grid-template-columns:1fr; }
  .iwales-transparency-card { min-height:0; }
  .iwales-transparency-cta { border-radius:20px; padding:1.5rem; }
}


/* ================================================================
   Contacto · v0.5.0
   Clear contact hub using established Iwales layout rules.
   ================================================================ */
.iwales-contact-hero {
  position:relative; overflow:hidden; color:#fff;
  padding-block:clamp(4.1rem,7vw,6.2rem);
  border-radius:0 0 32px 32px;
  background:linear-gradient(125deg,#242424 0%,#333839 48%,#1d699b 112%);
}
.iwales-contact-hero::after {
  content:""; position:absolute; right:clamp(-55px,2vw,42px); top:50%;
  transform:translateY(-50%) rotate(-4deg); width:clamp(300px,34vw,515px);
  height:clamp(205px,23vw,350px); background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.08; pointer-events:none;
}
.iwales-contact-hero > .wp-block-group,
.iwales-contact-band > .wp-block-group {
  position:relative; z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important; margin-inline:auto !important;
}
.iwales-contact-hero .iwales-kicker { color:#f2cf62; }
.iwales-contact-hero h1 {
  max-width:820px; margin:.25rem 0 1.1rem;
  font-size:clamp(2.8rem,5vw,4.7rem)!important; line-height:1.01!important;
  letter-spacing:-.035em; text-wrap:balance;
}
.iwales-contact-lead {
  max-width:720px; margin:0 0 1.5rem!important; color:rgba(255,255,255,.9);
  font-size:clamp(1.08rem,1.55vw,1.3rem); line-height:1.55;
}
.iwales-contact-shell {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell))!important;
  max-width:var(--iwales-shell)!important; margin-inline:auto!important;
  padding-block:clamp(3.6rem,6vw,5.2rem);
}
.iwales-contact-intro {
  display:grid!important; grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);
  gap:clamp(1.5rem,3vw,3.2rem); align-items:start;
}
.iwales-contact-intro > * { margin:0!important; min-width:0; }
.iwales-contact-intro h2 { margin:.3rem 0 .8rem; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; letter-spacing:-.025em; }
.iwales-contact-note {
  position:relative; overflow:hidden; padding:clamp(1.45rem,2.6vw,2rem);
  border-radius:24px; border:1px solid #d9e6ee;
  background:linear-gradient(135deg,#edf5f8,#fff 58%,#fff8e3);
}
.iwales-contact-note::after { content:""; position:absolute; right:-30px; bottom:-13px; width:170px; height:112px; background:var(--iwales-mark-color) center/contain no-repeat; opacity:.065; }
.iwales-contact-note > * { position:relative; z-index:1; }

.iwales-contact-methods {
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem;
  margin-top:1.7rem!important; max-width:1060px;
}
.iwales-contact-methods > * { margin:0!important; min-width:0; }
.iwales-contact-card {
  display:flex; flex-direction:column; min-height:220px; padding:1.55rem;
  border:1px solid var(--iwales-border); border-radius:22px; background:#fff;
  box-shadow:0 8px 26px rgba(34,34,34,.035);
}
.iwales-contact-card-tag {
  display:inline-flex; align-self:flex-start; margin:0 0 1rem!important; padding:.38rem .65rem;
  border-radius:999px; background:#edf4f8; color:var(--iwales-blue);
  font-size:.71rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
}
.iwales-contact-card:nth-child(2) .iwales-contact-card-tag { background:#fbf0f3; color:var(--iwales-red); }
.iwales-contact-card:nth-child(3) .iwales-contact-card-tag { background:#fff7df; color:#8d6b12; }
.iwales-contact-card:nth-child(4) .iwales-contact-card-tag { background:#f3eef4; color:#6a5164; }
.iwales-contact-card h3 { margin:.1rem 0 .65rem; font-size:1.25rem; line-height:1.12; }
.iwales-contact-card p { margin-top:0; color:var(--iwales-muted); }
.iwales-contact-card > p:last-child { margin-top:auto; margin-bottom:0; padding-top:.7rem; }
.iwales-contact-card a { font-weight:750; }

.iwales-contact-band {
  position:relative; overflow:hidden; padding-block:clamp(3.8rem,6vw,5.2rem); color:#fff;
  background:linear-gradient(135deg,#222221,#30414a 58%,#1d699b);
}
.iwales-contact-band::after { content:""; position:absolute; right:-55px; top:-32px; width:300px; height:195px; background:var(--iwales-mark-white) center/contain no-repeat; opacity:.05; }
.iwales-contact-band .iwales-kicker { color:#f2cf62; }
.iwales-contact-band h2 { max-width:780px; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; }
.iwales-contact-band > .wp-block-group > p { max-width:800px; color:rgba(255,255,255,.82); }
.iwales-contact-needs {
  display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-top:1.55rem!important;
}
.iwales-contact-needs > * { margin:0!important; min-width:0; }
.iwales-contact-need {
  min-height:190px; padding:1.45rem; border-radius:20px;
  border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.07);
}
.iwales-contact-need h3 { margin:.1rem 0 .55rem; color:#fff; }
.iwales-contact-need p { margin:0 0 .85rem; color:rgba(255,255,255,.76); }
.iwales-contact-need a { color:#fff; font-weight:750; }

.iwales-contact-location-panel {
  position:relative; overflow:hidden; min-height:320px; padding:clamp(1.8rem,3vw,2.5rem);
  border-radius:28px; color:#fff; background:linear-gradient(145deg,#154e72,#1d699b 62%,#315668);
  box-shadow:0 18px 50px rgba(27,75,103,.13);
}
.iwales-contact-location-panel::after { content:""; position:absolute; right:-35px; bottom:-16px; width:230px; height:150px; background:var(--iwales-mark-white) center/contain no-repeat; opacity:.08; }
.iwales-contact-location-panel > * { position:relative; z-index:1; }
.iwales-contact-location-panel .iwales-kicker { color:#f6d679; }
.iwales-contact-location-panel h2 { margin:.25rem 0 .8rem; font-size:clamp(1.95rem,2.8vw,2.55rem); line-height:1.08; }
.iwales-contact-location-panel p { color:rgba(255,255,255,.88); }
.iwales-contact-location-text h2 { max-width:18ch; margin:.25rem 0 .8rem; font-size:clamp(1.95rem,2.8vw,2.55rem); line-height:1.08; }
.iwales-contact-location-text p { color:var(--iwales-muted); }
.iwales-contact-list { margin:1rem 0 0; padding:0; list-style:none; }
.iwales-contact-list li { position:relative; padding-left:1.5rem; margin:.62rem 0; color:var(--iwales-muted); }
.iwales-contact-list li::before { content:"✓"; position:absolute; left:0; color:var(--iwales-blue); font-weight:850; }

.iwales-contact-social {
  position:relative; overflow:hidden; padding:clamp(1.8rem,3.5vw,2.8rem);
  border-radius:26px; border:1px solid rgba(193,48,74,.16);
  background:linear-gradient(125deg,#f8e9ed,#fffdf7 64%,#edf5f8);
  box-shadow:0 16px 42px rgba(64,48,51,.055);
}
.iwales-contact-social::after { content:""; position:absolute; right:-28px; top:-15px; width:190px; height:125px; background:var(--iwales-mark-color) center/contain no-repeat; opacity:.06; }
.iwales-contact-social > * { position:relative; z-index:1; }
.iwales-contact-social h2 { max-width:22ch; margin:.25rem 0 .7rem; font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.1; }

@media (max-width:980px) {
  .iwales-contact-intro { grid-template-columns:1fr; }
  .iwales-contact-needs { grid-template-columns:1fr; }
  .iwales-contact-hero::after { right:-115px; opacity:.055; }
}
@media (max-width:680px) {
  .iwales-contact-hero { padding-top:3.1rem; padding-bottom:3.7rem; border-radius:0 0 24px 24px; }
  .iwales-contact-hero h1 { font-size:clamp(2.4rem,12vw,3.25rem)!important; }
  .iwales-contact-hero::after { width:220px; height:150px; right:-90px; opacity:.045; }
  .iwales-contact-shell { padding-block:3rem; }
  .iwales-contact-methods { grid-template-columns:1fr; }
  .iwales-contact-card, .iwales-contact-need { min-height:0; }
  .iwales-contact-location-panel { min-height:0; border-radius:22px; }
  .iwales-contact-social { border-radius:20px; padding:1.5rem; }
}

/* ================================================================
   Pedir cita · v0.5.1
   Public gateway to the booking flow managed by Iwales Gestión.
   ================================================================ */
.iwales-appointment-hero {
  position:relative; overflow:hidden; color:#fff;
  padding-block:clamp(4.1rem,7vw,6.2rem);
  border-radius:0 0 32px 32px;
  background:linear-gradient(125deg,#242424 0%,#31464f 48%,#1d699b 112%);
}
.iwales-appointment-hero::after {
  content:""; position:absolute; right:clamp(-55px,2vw,42px); top:50%;
  transform:translateY(-50%) rotate(-4deg); width:clamp(300px,34vw,515px);
  height:clamp(205px,23vw,350px); background:var(--iwales-mark-white) center/contain no-repeat;
  opacity:.08; pointer-events:none;
}
.iwales-appointment-hero > .wp-block-group,
.iwales-appointment-band > .wp-block-group {
  position:relative; z-index:1;
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width:var(--iwales-shell) !important; margin-inline:auto !important;
}
.iwales-appointment-hero .iwales-kicker { color:#f2cf62; }
.iwales-appointment-hero h1 {
  max-width:850px; margin:.25rem 0 1.1rem;
  font-size:clamp(2.8rem,5vw,4.7rem)!important; line-height:1.01!important;
  letter-spacing:-.035em; text-wrap:balance;
}
.iwales-appointment-lead {
  max-width:735px; margin:0 0 1.5rem!important; color:rgba(255,255,255,.9);
  font-size:clamp(1.08rem,1.55vw,1.3rem); line-height:1.55;
}
.iwales-appointment-shell {
  width:min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell))!important;
  max-width:var(--iwales-shell)!important; margin-inline:auto!important;
  padding-block:clamp(3.6rem,6vw,5.2rem);
}
.iwales-appointment-intro {
  display:grid!important; grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr);
  gap:clamp(1.5rem,3vw,3.2rem); align-items:start;
}
.iwales-appointment-intro > * { margin:0!important; min-width:0; }
.iwales-appointment-intro h2 { margin:.3rem 0 .8rem; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; letter-spacing:-.025em; }
.iwales-appointment-note {
  position:relative; overflow:hidden; padding:clamp(1.45rem,2.6vw,2rem);
  border-radius:24px; border:1px solid #d9e6ee;
  background:linear-gradient(135deg,#edf5f8,#fff 58%,#fff8e3);
}
.iwales-appointment-note::after { content:""; position:absolute; right:-30px; bottom:-13px; width:170px; height:112px; background:var(--iwales-mark-color) center/contain no-repeat; opacity:.065; }
.iwales-appointment-note > * { position:relative; z-index:1; }
.iwales-appointment-note a { font-weight:750; }

.iwales-appointment-steps {
  display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem;
  margin-top:clamp(2rem,4vw,3.2rem)!important;
}
.iwales-appointment-steps > * { margin:0!important; min-width:0; }
.iwales-appointment-step {
  min-height:235px; padding:1.55rem; border:1px solid var(--iwales-border);
  border-radius:22px; background:#fff; box-shadow:0 8px 26px rgba(34,34,34,.035);
}
.iwales-appointment-step-number {
  display:inline-flex; margin:0 0 1rem!important; width:2.45rem; height:2.45rem;
  align-items:center; justify-content:center; border-radius:999px;
  background:#edf4f8; color:var(--iwales-blue); font-weight:850; font-size:.82rem;
}
.iwales-appointment-step:nth-child(2) .iwales-appointment-step-number { background:#fbf0f3; color:var(--iwales-red); }
.iwales-appointment-step:nth-child(3) .iwales-appointment-step-number { background:#fff7df; color:#8d6b12; }
.iwales-appointment-step h3 { margin:.1rem 0 .65rem; font-size:1.28rem; line-height:1.14; }
.iwales-appointment-step p { margin-top:0; color:var(--iwales-muted); }

.iwales-appointment-band {
  position:relative; overflow:hidden; padding-block:clamp(3.8rem,6vw,5.2rem); color:#fff;
  background:linear-gradient(135deg,#222221,#30414a 58%,#1d699b);
}
.iwales-appointment-band::after { content:""; position:absolute; right:-55px; top:-32px; width:300px; height:195px; background:var(--iwales-mark-white) center/contain no-repeat; opacity:.05; }
.iwales-appointment-band .iwales-kicker { color:#f2cf62; }
.iwales-appointment-band h2 { max-width:780px; font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.08; }
.iwales-appointment-band > .wp-block-group > p { max-width:830px; color:rgba(255,255,255,.82); }
.iwales-appointment-help-grid { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-top:1.55rem!important; }
.iwales-appointment-help-grid > * { margin:0!important; min-width:0; }
.iwales-appointment-help {
  min-height:190px; padding:1.45rem; border-radius:20px;
  border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.07);
}
.iwales-appointment-help h3 { margin:.1rem 0 .55rem; color:#fff; }
.iwales-appointment-help p { margin:0 0 .8rem; color:rgba(255,255,255,.76); }
.iwales-appointment-help a { color:#fff; font-weight:750; }

.iwales-appointment-privacy {
  position:relative; overflow:hidden; padding:clamp(1.8rem,3.5vw,2.8rem);
  border-radius:26px; border:1px solid rgba(29,105,155,.16);
  background:linear-gradient(125deg,#edf5f8,#fff 58%,#fff8df);
  box-shadow:0 16px 42px rgba(47,61,70,.055);
}
.iwales-appointment-privacy::after { content:""; position:absolute; right:-26px; top:-14px; width:190px; height:125px; background:var(--iwales-mark-color) center/contain no-repeat; opacity:.06; }
.iwales-appointment-privacy > * { position:relative; z-index:1; }
.iwales-appointment-privacy h2 { max-width:24ch; margin:.25rem 0 .7rem; font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.1; }
.iwales-appointment-privacy > p { max-width:850px; }

@media (max-width:980px) {
  .iwales-appointment-intro { grid-template-columns:1fr; }
  .iwales-appointment-steps { grid-template-columns:1fr; }
  .iwales-appointment-help-grid { grid-template-columns:1fr; }
  .iwales-appointment-step, .iwales-appointment-help { min-height:0; }
  .iwales-appointment-hero::after { right:-115px; opacity:.055; }
}
@media (max-width:680px) {
  .iwales-appointment-hero { padding-top:3.1rem; padding-bottom:3.7rem; border-radius:0 0 24px 24px; }
  .iwales-appointment-hero h1 { font-size:clamp(2.4rem,12vw,3.25rem)!important; }
  .iwales-appointment-hero::after { width:220px; height:150px; right:-90px; opacity:.045; }
  .iwales-appointment-shell { padding-block:3rem; }
  .iwales-appointment-privacy { border-radius:20px; padding:1.5rem; }
}


/* ================================================================
   Global QA & finishing pass · v0.5.2
   Navigation, interaction states, search/archive/404 and responsive polish.
   ================================================================ */

/* Keep headings readable: never split ordinary words to make them fit. */
:where(h1,h2,h3,h4,h5,h6) {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Long technical strings may still wrap where they genuinely need to. */
:where(.iwales-contact-card,.iwales-contact-need,.iwales-appointment-help) a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

img, svg, video, iframe { max-width: 100%; }

/* Consistent interactive behaviour throughout the site. */
.wp-element-button,
.wp-block-button__link,
.iwales-news-card,
.iwales-card {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  transform: translateY(-1px);
}

.wp-block-button__link:active,
.wp-element-button:active {
  transform: translateY(0);
}

.iwales-button-primary .wp-block-button__link:hover {
  background: #a9273e;
  box-shadow: 0 10px 24px rgba(193,48,74,.20);
}

.iwales-button-secondary .wp-block-button__link:hover {
  background: #f3f3f0;
}

/* Comfortable and consistent tap/click targets. */
.iwales-site-header .wp-block-navigation-item__content,
.iwales-site-footer .wp-block-navigation-item__content {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.iwales-site-footer .wp-block-navigation-item__content {
  padding-block: .15rem;
}

/* Text links inside long-form content remain recognisable without affecting cards/buttons. */
.iwales-content :where(p,li) a:not(.wp-block-button__link),
.iwales-article-content :where(p,li) a:not(.wp-block-button__link) {
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

/* Search and basic form controls */
.iwales-search-form .wp-block-search__inside-wrapper,
.iwales-error-search .wp-block-search__inside-wrapper {
  gap: .55rem;
  padding: .35rem;
  border: 1px solid var(--iwales-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34,34,34,.04);
}

.iwales-search-form .wp-block-search__input,
.iwales-error-search .wp-block-search__input {
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1rem;
  background: transparent;
  outline: 0;
}

.iwales-search-form .wp-block-search__button,
.iwales-error-search .wp-block-search__button {
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: .72rem 1.15rem;
  background: var(--iwales-red);
  color: #fff;
  font-weight: 750;
}

/* Search and archive fallback pages */
.iwales-archive-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem,6vw,5.25rem);
  border-radius: 0 0 30px 30px;
  background: linear-gradient(125deg,#f2f3f1,#fff 55%,#edf4f8);
}

.iwales-archive-hero::after {
  content: "";
  position: absolute;
  right: clamp(-70px,2vw,30px);
  top: 50%;
  transform: translateY(-50%) rotate(-4deg);
  width: clamp(260px,30vw,430px);
  height: clamp(175px,20vw,290px);
  background: var(--iwales-mark-color) center/contain no-repeat;
  opacity: .055;
  pointer-events: none;
}

.iwales-archive-hero > .wp-block-group,
.iwales-archive-shell {
  width: min(calc(100% - (var(--iwales-gutter) * 2)),var(--iwales-shell)) !important;
  max-width: var(--iwales-shell) !important;
  margin-inline: auto !important;
}

.iwales-archive-hero > .wp-block-group { position: relative; z-index: 1; }
.iwales-archive-hero h1 { max-width: 820px; margin: .3rem 0 .75rem; font-size: clamp(2.45rem,4.4vw,4rem); line-height: 1.04; letter-spacing: -.03em; }
.iwales-archive-hero p { max-width: 720px; color: var(--iwales-muted); font-size: 1.08rem; }
.iwales-archive-shell { padding-block: clamp(3rem,5vw,4.6rem); }

.iwales-archive-grid {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
}
.iwales-archive-grid > * { min-width: 0; margin: 0 !important; }
.iwales-archive-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--iwales-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34,34,34,.035);
}
.iwales-archive-card:hover { transform: translateY(-2px); box-shadow: var(--iwales-shadow); }
.iwales-archive-card .wp-block-post-featured-image { margin: 0 !important; }
.iwales-archive-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.iwales-archive-card-body { padding: 1.3rem 1.35rem 1.45rem; }
.iwales-archive-card-body > * { margin-top: 0; }
.iwales-archive-card-body .wp-block-post-date { display: block; margin-bottom: .55rem; color: var(--iwales-muted); font-size: .88rem; }
.iwales-archive-card-body .wp-block-post-title { margin-bottom: .7rem; font-size: clamp(1.22rem,1.6vw,1.42rem); line-height: 1.13; }
.iwales-archive-card-body .wp-block-post-title a { color: var(--iwales-dark); }
.iwales-archive-card-body .wp-block-post-excerpt { color: var(--iwales-muted); }
.iwales-archive-card-body .wp-block-post-excerpt__more-link { font-weight: 750; }
.iwales-archive-pagination { margin-top: 2.2rem !important; gap: .45rem !important; }
.iwales-archive-pagination a,
.iwales-archive-pagination .page-numbers {
  min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center;
  padding: .45rem .75rem; border: 1px solid var(--iwales-border); border-radius: 999px; background: #fff;
}
.iwales-archive-pagination .current { background: var(--iwales-dark); color: #fff; border-color: var(--iwales-dark); }
.iwales-archive-empty { padding: 1.6rem; border-radius: 20px; background: #f7f7f5; border: 1px solid var(--iwales-border); }

/* 404 */
.iwales-error-shell {
  width: min(calc(100% - (var(--iwales-gutter) * 2)), 900px) !important;
  max-width: 900px !important;
  margin-inline: auto !important;
  padding-block: clamp(4.5rem,8vw,7.5rem);
  text-align: center;
}
.iwales-error-code { margin: 0 0 .5rem !important; color: var(--iwales-red); font-size: .82rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.iwales-error-shell h1 { margin: .25rem auto .85rem; max-width: 720px; font-size: clamp(2.5rem,5vw,4.25rem); line-height: 1.03; }
.iwales-error-shell > p:not(.iwales-error-code) { max-width: 650px; margin-inline: auto; color: var(--iwales-muted); font-size: 1.08rem; }
.iwales-error-search { max-width: 650px; margin: 1.8rem auto 1.2rem !important; }
.iwales-error-actions { justify-content: center; }

@media (max-width: 980px) {
  .iwales-archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .iwales-site-header .wp-block-navigation-item__content { min-height: 48px; }
  .iwales-archive-hero { padding-block: 3.1rem 3.7rem; border-radius: 0 0 24px 24px; }
  .iwales-archive-hero::after { width: 220px; height: 150px; right: -95px; opacity: .04; }
  .iwales-archive-grid { grid-template-columns: 1fr; }
  .iwales-archive-card-body { padding: 1.2rem; }
  .iwales-search-form .wp-block-search__inside-wrapper,
  .iwales-error-search .wp-block-search__inside-wrapper { border-radius: 20px; align-items: stretch; }
  .iwales-search-form .wp-block-search__button,
  .iwales-error-search .wp-block-search__button { min-width: 96px; }
  .iwales-error-shell { text-align: left; }
  .iwales-error-shell h1,
  .iwales-error-shell > p:not(.iwales-error-code) { margin-inline: 0; }
  .iwales-error-actions { justify-content: flex-start; }
}


/* =========================================================
   Portada + redes · v0.5.3
   ========================================================= */
.iwales-hero .iwales-trust-strip {
  max-width: 900px;
  margin-top: 1.7rem !important;
}

.iwales-home-social-head {
  display: grid !important;
  grid-template-columns: minmax(0,1.05fr) minmax(260px,.55fr);
  gap: var(--iwales-split-gap);
  align-items: end;
  margin-bottom: 1.35rem !important;
}
.iwales-home-social-head > * { margin: 0 !important; min-width: 0; }
.iwales-home-social-head h2 {
  margin: .25rem 0 .65rem;
  font-size: clamp(2rem,3.1vw,2.75rem);
  line-height: 1.08;
}
.iwales-home-social-head p { color: var(--iwales-muted); }
.iwales-home-social-actions {
  display: flex !important;
  justify-content: flex-end;
  align-items: flex-end;
}

.iwales-instagram-shell {
  overflow: hidden;
  padding: clamp(.75rem,1.5vw,1rem);
  border-style: solid;
}
.iwales-instagram-shell #sb_instagram {
  width: 100% !important;
  padding-bottom: 0 !important;
}
.iwales-instagram-shell #sb_instagram #sbi_images {
  padding: 0 !important;
}
.iwales-instagram-shell #sb_instagram .sbi_photo {
  border-radius: 16px;
  overflow: hidden;
}
.iwales-instagram-shell #sb_instagram .sbi_follow_btn a,
.iwales-instagram-shell #sb_instagram .sbi_load_btn {
  border-radius: 999px !important;
  font-weight: 750 !important;
}

.iwales-home-contact-strip {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .8rem;
  margin-top: clamp(1.25rem,2vw,1.8rem) !important;
}
.iwales-home-contact-strip > * {
  margin: 0 !important;
  min-width: 0;
}
.iwales-home-contact-link {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  justify-content: center;
  gap: .22rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--iwales-border);
  border-radius: 18px;
  background: #fff;
  text-decoration: none !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.iwales-home-contact-link:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 12px 34px rgba(34,34,34,.07);
}
.iwales-home-contact-link strong {
  color: var(--iwales-text);
  font-size: 1rem;
}
.iwales-home-contact-link span {
  color: var(--iwales-muted);
  font-size: .88rem;
  line-height: 1.35;
}

.iwales-site-footer .iwales-footer-contact {
  margin-top: 1rem;
  display: grid;
  gap: .35rem;
}
.iwales-site-footer .iwales-footer-contact a {
  color: rgba(255,255,255,.86);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.iwales-site-footer .iwales-footer-contact a:hover { color: #fff; }

@media (max-width: 980px) {
  .iwales-home-social-head { grid-template-columns: 1fr; align-items: start; }
  .iwales-home-social-actions { justify-content: flex-start; }
  .iwales-home-contact-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .iwales-home-contact-strip { grid-template-columns: 1fr; }
  .iwales-home-contact-link { min-height: 0; }
  .iwales-instagram-shell { border-radius: 18px; }
}

/* =========================================================
   Navegación + pie + móvil · v0.5.4
   ========================================================= */
.iwales-skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: .65rem .9rem;
  border-radius: 10px;
  background: #fff;
  color: var(--iwales-dark);
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
  font-weight: 750;
  text-decoration: none;
}
.iwales-skip-link:focus { transform: translateY(0); }

/* The real logo is enough: avoid visually repeating the wordmark. */
.iwales-brand-name { display: none !important; }
.iwales-brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: .2rem 0;
}
.iwales-brand-logo {
  display: block;
  width: clamp(186px, 16vw, 242px);
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

.iwales-header-inner { min-height: 82px; }
.iwales-footer-logo { width: clamp(188px, 19vw, 272px); max-height: 86px; object-fit: contain; object-position: left center; }
.iwales-main-nav { margin-left: auto; }
.iwales-main-nav > .wp-block-navigation__container { align-items: center; }

/* Desktop submenus */
.iwales-main-nav .wp-block-navigation__submenu-container {
  min-width: 220px !important;
  padding: .55rem !important;
  border: 1px solid rgba(58,58,57,.10) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.99) !important;
  box-shadow: 0 20px 55px rgba(34,34,34,.12) !important;
}
.iwales-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  width: 100%;
  min-height: 40px;
  padding: .6rem .7rem !important;
  border-radius: 10px;
  color: var(--iwales-dark) !important;
}
.iwales-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none !important; }
.iwales-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--iwales-bg);
  color: var(--iwales-red) !important;
}
.iwales-main-nav .wp-block-navigation__submenu-icon { margin-left: .28rem; }

/* Footer: useful directory rather than a sparse generic footer. */
.iwales-footer-grid { gap: clamp(1.5rem,3vw,3rem) !important; align-items: flex-start !important; }
.iwales-site-footer .wp-block-column { min-width: 0; }
.iwales-site-footer h3 { margin-top: .25rem !important; margin-bottom: .65rem !important; }
.iwales-site-footer .wp-block-navigation__container { gap: .08rem !important; }
.iwales-site-footer .wp-block-navigation-item__content {
  min-height: 34px;
  padding: .12rem 0 !important;
  color: rgba(255,255,255,.78) !important;
}
.iwales-site-footer .wp-block-navigation-item__content:hover { color: #fff !important; }
.iwales-footer-bottom a { color: rgba(255,255,255,.78) !important; }
.iwales-footer-bottom a:hover { color: #fff !important; }

/* The mobile menu switches earlier than before so desktop never becomes cramped. */
@media (max-width: 1100px) {
  .iwales-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .iwales-site-header .wp-block-navigation__responsive-container-open {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--iwales-border);
    border-radius: 50%;
    background: #fff;
  }
  .iwales-site-header .wp-block-navigation__responsive-container-open:hover { background: var(--iwales-bg); }

  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open {
    display: flex !important;
    padding: 1.1rem var(--iwales-gutter) 2rem !important;
    background: #fff !important;
  }
  .iwales-site-header .wp-block-navigation__responsive-dialog {
    width: min(100%, 760px);
    margin-left: auto;
    margin-right: auto;
  }
  .iwales-site-header .wp-block-navigation__responsive-container-close {
    top: .15rem;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--iwales-border);
    border-radius: 50%;
  }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 4.4rem;
    align-items: stretch;
  }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    width: 100%;
    align-items: stretch;
    gap: .15rem;
  }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    width: 100%;
    min-height: 50px;
    padding: .72rem 0 !important;
    font-size: 1.05rem;
  }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none !important; }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu {
    border-bottom: 1px solid rgba(58,58,57,.08);
    padding-bottom: .4rem;
    margin-bottom: .15rem;
  }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 0 .4rem .8rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    min-height: 42px;
    padding: .48rem .65rem !important;
    font-size: .95rem;
    color: var(--iwales-muted) !important;
  }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle { display: none !important; }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .iwales-nav-cta { margin-top: .65rem; }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open .iwales-nav-cta > .wp-block-navigation-item__content {
    min-height: 50px;
    justify-content: center;
    padding: .7rem 1rem !important;
  }

  .iwales-footer-grid { flex-wrap: wrap !important; }
  .iwales-footer-grid > .wp-block-column:first-child { flex-basis: 100% !important; }
  .iwales-footer-grid > .wp-block-column:not(:first-child) { flex-basis: calc(33.333% - 1.4rem) !important; }
}

@media (max-width: 680px) {
  .iwales-site-header { position: sticky; }
  .iwales-header-inner { min-height: 70px; }
  .iwales-brand-logo { width: 176px; max-height: 54px; }
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open { min-height: 100dvh; }
  .iwales-site-header .wp-block-navigation__responsive-dialog { width: 100%; }

  .iwales-footer-grid { gap: 1.6rem !important; }
  .iwales-footer-grid > .wp-block-column,
  .iwales-footer-grid > .wp-block-column:not(:first-child) { flex-basis: 100% !important; }
  .iwales-site-footer h3 { margin-bottom: .45rem !important; }
  .iwales-footer-bottom { align-items: flex-start !important; }
  .iwales-footer-bottom p:last-child { line-height: 1.9; }
}



/* Footer logo balance fix · v0.5.6 */
.iwales-footer-brand { justify-content: flex-start; }
.iwales-footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
}
.iwales-footer-logo {
  width: clamp(176px, 18vw, 250px);
  max-height: 82px;
  object-fit: contain;
  object-position: center center;
}
@media (max-width: 680px) {
  .iwales-footer-logo-link { padding: .68rem .9rem; }
  .iwales-footer-logo { width: 186px; max-height: 74px; }
}


/* =========================================================
   Identidad visual por familias de páginas · v0.5.7
   La estructura sigue siendo común; cambian acentos y microdetalles.
   ========================================================= */
body[class*="iwales-family-"] {
  --iwales-page-accent: var(--iwales-red);
  --iwales-page-accent-dark: #8f2336;
  --iwales-page-soft: #fbf1f3;
}
body.iwales-family-health {
  --iwales-page-accent: #1d699b;
  --iwales-page-accent-dark: #154d73;
  --iwales-page-soft: #edf6fb;
}
body.iwales-family-diversity {
  --iwales-page-accent: #8a4c78;
  --iwales-page-accent-dark: #613451;
  --iwales-page-soft: #f7eff5;
}
body.iwales-family-social {
  --iwales-page-accent: #b48512;
  --iwales-page-accent-dark: #76570b;
  --iwales-page-soft: #fff8e6;
}
body.iwales-family-psychology {
  --iwales-page-accent: #754769;
  --iwales-page-accent-dark: #523149;
  --iwales-page-soft: #f7f0f5;
}
body.iwales-family-training {
  --iwales-page-accent: #c1304a;
  --iwales-page-accent-dark: #8e2336;
  --iwales-page-soft: #fbf0f2;
}
body.iwales-family-art {
  --iwales-page-accent: #e5114a;
  --iwales-page-accent-dark: #a50c35;
  --iwales-page-soft: #fff0f4;
}
body.iwales-family-projects {
  --iwales-page-accent: #1d699b;
  --iwales-page-accent-dark: #123f5d;
  --iwales-page-soft: #edf5fa;
}
body.iwales-family-participate {
  --iwales-page-accent: #c1304a;
  --iwales-page-accent-dark: #8e2336;
  --iwales-page-soft: #fbf1f3;
}
body.iwales-family-institutional {
  --iwales-page-accent: #3a3a39;
  --iwales-page-accent-dark: #242424;
  --iwales-page-soft: #f1f1ef;
}
body.iwales-family-contact {
  --iwales-page-accent: #1d699b;
  --iwales-page-accent-dark: #154d73;
  --iwales-page-soft: #eef6fa;
}
body.iwales-family-appointment {
  --iwales-page-accent: #c1304a;
  --iwales-page-accent-dark: #8e2336;
  --iwales-page-soft: #fbf1f3;
}

/* A slim signature line makes each hero recognisable without changing its size. */
body[class*="iwales-family-"] :is(
  .iwales-service-hero,
  .iwales-diversity-hero,
  .iwales-social-hero,
  .iwales-psych-hero,
  .iwales-training-hero,
  .iwales-art-hero,
  .iwales-projects-hero,
  .iwales-join-hero,
  .iwales-volunteer-hero,
  .iwales-member-hero,
  .iwales-about-hero,
  .iwales-transparency-hero,
  .iwales-contact-hero,
  .iwales-appointment-hero
) {
  box-shadow: inset 0 -5px 0 var(--iwales-page-accent);
}

body[class*="iwales-family-"] main .iwales-kicker {
  color: var(--iwales-page-accent);
}
body[class*="iwales-family-"] :is(
  .iwales-service-hero,
  .iwales-diversity-hero,
  .iwales-social-hero,
  .iwales-psych-hero,
  .iwales-training-hero,
  .iwales-art-hero,
  .iwales-projects-hero,
  .iwales-join-hero,
  .iwales-volunteer-hero,
  .iwales-member-hero,
  .iwales-about-hero,
  .iwales-transparency-hero,
  .iwales-contact-hero,
  .iwales-appointment-hero
) .iwales-kicker {
  color: #f3cd5b;
}

/* Primary actions inherit the identity of the current area. */
body[class*="iwales-family-"] main .iwales-button-primary .wp-block-button__link {
  background: var(--iwales-page-accent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--iwales-page-accent) 20%, transparent);
}
body[class*="iwales-family-"] main .iwales-button-primary .wp-block-button__link:hover {
  background: var(--iwales-page-accent-dark);
}

/* Cards keep the shared geometry but acquire a small family signature. */
body.iwales-family-health .iwales-service-card,
body.iwales-family-diversity .iwales-diversity-card,
body.iwales-family-social .iwales-social-card,
body.iwales-family-psychology .iwales-psych-card,
body.iwales-family-training .iwales-training-card,
body.iwales-family-art .iwales-art-card,
body.iwales-family-projects .iwales-projects-network-card,
body.iwales-family-participate :is(.iwales-join-card,.iwales-participation-card,.iwales-member-value) {
  border-top: 3px solid color-mix(in srgb, var(--iwales-page-accent) 78%, #fff);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.iwales-family-health .iwales-service-card:hover,
body.iwales-family-diversity .iwales-diversity-card:hover,
body.iwales-family-social .iwales-social-card:hover,
body.iwales-family-psychology .iwales-psych-card:hover,
body.iwales-family-training .iwales-training-card:hover,
body.iwales-family-art .iwales-art-card:hover,
body.iwales-family-projects .iwales-projects-network-card:hover,
body.iwales-family-participate :is(.iwales-join-card,.iwales-participation-card,.iwales-member-value):hover {
  border-top-color: var(--iwales-page-accent);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--iwales-page-accent) 11%, transparent);
}

/* Numbered steps and tags become recognisable at a glance. */
body[class*="iwales-family-"] :is(
  .iwales-service-number,
  .iwales-social-step-number,
  .iwales-psych-step-number,
  .iwales-training-step-number,
  .iwales-participation-step-number,
  .iwales-appointment-step-number,
  .iwales-diversity-tag,
  .iwales-social-tag,
  .iwales-psych-tag,
  .iwales-training-tag,
  .iwales-join-label
) {
  color: var(--iwales-page-accent) !important;
  background: var(--iwales-page-soft) !important;
  border-color: color-mix(in srgb, var(--iwales-page-accent) 20%, transparent) !important;
}

/* Content links use the area's accent while utility/footer links stay neutral. */
body[class*="iwales-family-"] main :is(
  .iwales-service-shell,
  .iwales-diversity-shell,
  .iwales-social-shell,
  .iwales-psych-shell,
  .iwales-training-shell,
  .iwales-art-shell,
  .iwales-projects-shell,
  .iwales-join-shell,
  .iwales-participation-shell,
  .iwales-about-shell,
  .iwales-transparency-shell,
  .iwales-contact-shell,
  .iwales-appointment-shell
) a:not(.wp-block-button__link) {
  color: var(--iwales-page-accent);
}

/* A soft accent behind selected secondary panels prevents the pages feeling cloned. */
body.iwales-family-health .iwales-service-sidecard,
body.iwales-family-diversity .iwales-diversity-sidecard,
body.iwales-family-social .iwales-social-sidecard,
body.iwales-family-psychology .iwales-psych-sidecard,
body.iwales-family-training .iwales-training-note,
body.iwales-family-art .iwales-art-note,
body.iwales-family-projects .iwales-projects-intro-note,
body.iwales-family-participate .iwales-participation-note {
  background: linear-gradient(145deg, #fff, var(--iwales-page-soft));
  border-color: color-mix(in srgb, var(--iwales-page-accent) 18%, var(--iwales-border));
}

@media (max-width: 680px) {
  body[class*="iwales-family-"] :is(
    .iwales-service-hero,
    .iwales-diversity-hero,
    .iwales-social-hero,
    .iwales-psych-hero,
    .iwales-training-hero,
    .iwales-art-hero,
    .iwales-projects-hero,
    .iwales-join-hero,
    .iwales-volunteer-hero,
    .iwales-member-hero,
    .iwales-about-hero,
    .iwales-transparency-hero,
    .iwales-contact-hero,
    .iwales-appointment-hero
  ) {
    box-shadow: inset 0 -4px 0 var(--iwales-page-accent);
  }
}


/* =========================================================
   Plantillas integradas para páginas con hero propio · v0.5.8
   Elimina el título genérico previo y deja que el hero de cada
   página sea la entrada visual principal, como Salud sexual,
   Diversidad y Atención social.
   ========================================================= */
body[class*="iwales-family-"] .iwales-main-anchor + .iwales-page-hero {
  margin-top: 0;
}


/* =========================================================
   Ritmo editorial interior + navegación activa · v0.5.9
   Mejora transversal sin cambiar el contenido de las páginas.
   ========================================================= */

/* Make the current location visible even when Gutenberg outputs aria-current
   instead of classic current-menu-* classes. */
.iwales-header-inner .wp-block-navigation-item:not(.iwales-nav-cta) > .wp-block-navigation-item__content[aria-current="page"]::after,
.iwales-header-inner .wp-block-navigation-item:not(.iwales-nav-cta) > .wp-block-navigation-item__content[aria-current="true"]::after {
  right: 0;
}
.iwales-header-inner .wp-block-navigation-item:not(.iwales-nav-cta) > .wp-block-navigation-item__content[aria-current="page"],
.iwales-header-inner .wp-block-navigation-item:not(.iwales-nav-cta) > .wp-block-navigation-item__content[aria-current="true"] {
  color: var(--iwales-dark);
  font-weight: 800;
}

/* Shared editorial rhythm for the principal interior-page shells. */
body[class*="iwales-family-"] main :is(
  .iwales-service-shell,
  .iwales-diversity-shell,
  .iwales-social-shell,
  .iwales-psych-shell,
  .iwales-training-shell,
  .iwales-art-shell,
  .iwales-projects-shell,
  .iwales-join-shell,
  .iwales-participation-shell,
  .iwales-about-shell,
  .iwales-transparency-shell,
  .iwales-contact-shell,
  .iwales-appointment-shell
) {
  padding-block: clamp(3.8rem, 6.2vw, 5.4rem);
}

/* Keep section headings visually related across pages without making every
   section look like the same component. */
body[class*="iwales-family-"] main :is(
  .iwales-service-shell,
  .iwales-diversity-shell,
  .iwales-social-shell,
  .iwales-psych-shell,
  .iwales-training-shell,
  .iwales-art-shell,
  .iwales-projects-shell,
  .iwales-join-shell,
  .iwales-participation-shell,
  .iwales-about-shell,
  .iwales-transparency-shell,
  .iwales-contact-shell,
  .iwales-appointment-shell
) h2 {
  letter-spacing: -.035em;
  line-height: 1.07;
  text-wrap: balance;
}

body[class*="iwales-family-"] main :is(
  .iwales-service-shell,
  .iwales-diversity-shell,
  .iwales-social-shell,
  .iwales-psych-shell,
  .iwales-training-shell,
  .iwales-art-shell,
  .iwales-projects-shell,
  .iwales-join-shell,
  .iwales-participation-shell,
  .iwales-about-shell,
  .iwales-transparency-shell,
  .iwales-contact-shell,
  .iwales-appointment-shell
) :is(p, li) {
  text-wrap: pretty;
}

/* Body copy should remain comfortable to read on very wide monitors. Do not
   constrain copy inside cards, grids or deliberately split layouts. */
body[class*="iwales-family-"] main :is(
  .iwales-service-shell,
  .iwales-diversity-shell,
  .iwales-social-shell,
  .iwales-psych-shell,
  .iwales-training-shell,
  .iwales-art-shell,
  .iwales-projects-shell,
  .iwales-join-shell,
  .iwales-participation-shell,
  .iwales-about-shell,
  .iwales-transparency-shell,
  .iwales-contact-shell,
  .iwales-appointment-shell
) > p {
  max-width: 78ch;
}

/* More even card composition: headings stay together and cards align without
   forcing artificial fixed heights. */
body[class*="iwales-family-"] main :is(
  .iwales-service-card,
  .iwales-diversity-card,
  .iwales-social-card,
  .iwales-psych-card,
  .iwales-training-card,
  .iwales-art-card,
  .iwales-projects-network-card,
  .iwales-join-card,
  .iwales-participation-card,
  .iwales-member-value
) h3 {
  line-height: 1.13;
  letter-spacing: -.018em;
  text-wrap: balance;
}

/* Subtle breathing room at the start of grids following an introduction. */
body[class*="iwales-family-"] main :is(
  .iwales-service-grid,
  .iwales-diversity-grid,
  .iwales-social-grid,
  .iwales-psych-grid,
  .iwales-training-grid,
  .iwales-art-grid,
  .iwales-projects-grid,
  .iwales-join-grid,
  .iwales-participation-grid,
  .iwales-transparency-grid
) {
  row-gap: clamp(1rem, 2vw, 1.45rem);
}

/* Keyboard focus remains clearly visible on the new active/navigation states. */
.iwales-header-inner .wp-block-navigation-item__content:focus-visible,
body[class*="iwales-family-"] main a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 48%, #fff);
  outline-offset: 4px;
  border-radius: 5px;
}

@media (max-width: 680px) {
  body[class*="iwales-family-"] main :is(
    .iwales-service-shell,
    .iwales-diversity-shell,
    .iwales-social-shell,
    .iwales-psych-shell,
    .iwales-training-shell,
    .iwales-art-shell,
    .iwales-projects-shell,
    .iwales-join-shell,
    .iwales-participation-shell,
    .iwales-about-shell,
    .iwales-transparency-shell,
    .iwales-contact-shell,
    .iwales-appointment-shell
  ) {
    padding-block: 3.1rem;
  }
}


/* =========================================================
   Responsive polish · v0.6.0
   Refines tablet/mobile proportions without changing content.
   ========================================================= */

/* Comfortable tap targets everywhere, while preserving desktop density. */
body[class*="iwales-family-"] main .wp-block-button__link,
.iwales-home-contact-link,
.iwales-main-nav .wp-block-navigation-item__content {
  min-height: 46px;
}

/* Hero copy should stay readable before the full mobile breakpoint. */
@media (max-width: 1180px) {
  body[class*="iwales-family-"] main :is(
    .iwales-service-hero,
    .iwales-diversity-hero,
    .iwales-social-hero,
    .iwales-psych-hero,
    .iwales-training-hero,
    .iwales-art-hero,
    .iwales-projects-hero,
    .iwales-join-hero,
    .iwales-volunteer-hero,
    .iwales-member-hero,
    .iwales-about-hero,
    .iwales-transparency-hero,
    .iwales-contact-hero,
    .iwales-appointment-hero
  ) h1 {
    max-width: 860px;
    font-size: clamp(2.75rem, 6.2vw, 4.35rem) !important;
    line-height: 1.015 !important;
  }
}

@media (max-width: 900px) {
  body[class*="iwales-family-"] main :is(
    .iwales-service-hero,
    .iwales-diversity-hero,
    .iwales-social-hero,
    .iwales-psych-hero,
    .iwales-training-hero,
    .iwales-art-hero,
    .iwales-projects-hero,
    .iwales-join-hero,
    .iwales-volunteer-hero,
    .iwales-member-hero,
    .iwales-about-hero,
    .iwales-transparency-hero,
    .iwales-contact-hero,
    .iwales-appointment-hero
  ) {
    padding-top: clamp(3rem, 7vw, 4.2rem);
    padding-bottom: clamp(3.4rem, 8vw, 4.8rem);
  }

  body[class*="iwales-family-"] main :is(
    .iwales-service-hero,
    .iwales-diversity-hero,
    .iwales-social-hero,
    .iwales-psych-hero,
    .iwales-training-hero,
    .iwales-art-hero,
    .iwales-projects-hero,
    .iwales-join-hero,
    .iwales-volunteer-hero,
    .iwales-member-hero,
    .iwales-about-hero,
    .iwales-transparency-hero,
    .iwales-contact-hero,
    .iwales-appointment-hero
  ) h1 {
    max-width: 760px;
    font-size: clamp(2.55rem, 7.8vw, 3.85rem) !important;
  }

  body[class*="iwales-family-"] main :is(
    .iwales-service-hero,
    .iwales-diversity-hero,
    .iwales-social-hero,
    .iwales-psych-hero,
    .iwales-training-hero,
    .iwales-art-hero,
    .iwales-projects-hero,
    .iwales-join-hero,
    .iwales-volunteer-hero,
    .iwales-member-hero,
    .iwales-about-hero,
    .iwales-transparency-hero,
    .iwales-contact-hero,
    .iwales-appointment-hero
  ) p:not(.iwales-kicker) {
    max-width: 680px;
    font-size: 1.08rem !important;
    line-height: 1.55;
  }

  /* Two-column layouts should collapse before either side feels squeezed. */
  body[class*="iwales-family-"] main :is(
    .iwales-split,
    .iwales-two-column,
    .iwales-content-split
  ) {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 680px) {
  /* Keep the same visual language, but reduce oversized typography and whitespace. */
  body[class*="iwales-family-"] main :is(
    .iwales-service-hero,
    .iwales-diversity-hero,
    .iwales-social-hero,
    .iwales-psych-hero,
    .iwales-training-hero,
    .iwales-art-hero,
    .iwales-projects-hero,
    .iwales-join-hero,
    .iwales-volunteer-hero,
    .iwales-member-hero,
    .iwales-about-hero,
    .iwales-transparency-hero,
    .iwales-contact-hero,
    .iwales-appointment-hero
  ) {
    padding-top: 2.75rem;
    padding-bottom: 3.15rem;
    border-radius: 0 0 22px 22px;
  }

  body[class*="iwales-family-"] main :is(
    .iwales-service-hero,
    .iwales-diversity-hero,
    .iwales-social-hero,
    .iwales-psych-hero,
    .iwales-training-hero,
    .iwales-art-hero,
    .iwales-projects-hero,
    .iwales-join-hero,
    .iwales-volunteer-hero,
    .iwales-member-hero,
    .iwales-about-hero,
    .iwales-transparency-hero,
    .iwales-contact-hero,
    .iwales-appointment-hero
  ) h1 {
    max-width: 100%;
    margin-bottom: .95rem;
    font-size: clamp(2.2rem, 10.8vw, 3.05rem) !important;
    line-height: 1.025 !important;
    letter-spacing: -.032em;
  }

  body[class*="iwales-family-"] main :is(
    .iwales-service-hero,
    .iwales-diversity-hero,
    .iwales-social-hero,
    .iwales-psych-hero,
    .iwales-training-hero,
    .iwales-art-hero,
    .iwales-projects-hero,
    .iwales-join-hero,
    .iwales-volunteer-hero,
    .iwales-member-hero,
    .iwales-about-hero,
    .iwales-transparency-hero,
    .iwales-contact-hero,
    .iwales-appointment-hero
  ) p:not(.iwales-kicker) {
    max-width: 100%;
    font-size: 1.02rem !important;
    line-height: 1.52;
  }

  body[class*="iwales-family-"] main :is(
    .iwales-service-shell,
    .iwales-diversity-shell,
    .iwales-social-shell,
    .iwales-psych-shell,
    .iwales-training-shell,
    .iwales-art-shell,
    .iwales-projects-shell,
    .iwales-join-shell,
    .iwales-participation-shell,
    .iwales-about-shell,
    .iwales-transparency-shell,
    .iwales-contact-shell,
    .iwales-appointment-shell
  ) {
    padding-block: 2.75rem;
  }

  body[class*="iwales-family-"] main :is(
    .iwales-service-shell,
    .iwales-diversity-shell,
    .iwales-social-shell,
    .iwales-psych-shell,
    .iwales-training-shell,
    .iwales-art-shell,
    .iwales-projects-shell,
    .iwales-join-shell,
    .iwales-participation-shell,
    .iwales-about-shell,
    .iwales-transparency-shell,
    .iwales-contact-shell,
    .iwales-appointment-shell
  ) h2 {
    font-size: clamp(1.72rem, 8vw, 2.25rem) !important;
  }

  body[class*="iwales-family-"] main .wp-block-buttons {
    gap: .65rem;
  }

  body[class*="iwales-family-"] main .wp-block-button,
  body[class*="iwales-family-"] main .wp-block-button__link {
    max-width: 100%;
  }

  body[class*="iwales-family-"] main .wp-block-button__link {
    min-height: 48px;
    padding: .75rem 1.05rem;
    white-space: normal;
    text-align: center;
  }

  /* Smaller card radius and padding makes stacked cards feel less bulky. */
  body[class*="iwales-family-"] main :is(
    .iwales-service-card,
    .iwales-diversity-card,
    .iwales-social-card,
    .iwales-psych-card,
    .iwales-training-card,
    .iwales-art-card,
    .iwales-projects-network-card,
    .iwales-join-card,
    .iwales-participation-card,
    .iwales-member-value
  ) {
    border-radius: 18px;
    padding: 1.2rem;
  }

  .iwales-footer-bottom {
    row-gap: .8rem !important;
  }
}

/* Touch devices do not benefit from hover lifts that can feel jumpy. */
@media (hover: none) {
  .iwales-card:hover,
  body[class*="iwales-family-"] main :is(
    .iwales-service-card,
    .iwales-diversity-card,
    .iwales-social-card,
    .iwales-psych-card,
    .iwales-training-card,
    .iwales-art-card,
    .iwales-projects-network-card,
    .iwales-join-card,
    .iwales-participation-card,
    .iwales-member-value
  ):hover {
    transform: none;
  }
}


/* Portada móvil: espacio seguro bajo la franja de confianza · v0.6.1 */
@media (max-width: 680px) {
  .iwales-hero > .wp-block-spacer:last-child {
    height: 72px !important;
  }
  .iwales-hero .iwales-trust-strip {
    margin-bottom: 0 !important;
  }
}


/* Portada móvil: zona segura real para la franja de confianza · v0.6.2
   No dependemos solo del spacer de Gutenberg. */
@media (max-width: 680px) {
  .iwales-hero > .wp-block-group.alignwide {
    padding-bottom: 2.1rem !important;
  }
  .iwales-hero .iwales-trust-strip {
    margin-bottom: 0 !important;
  }
  .iwales-hero > .wp-block-spacer:last-child {
    height: 64px !important;
    min-height: 64px !important;
  }
}


/* Portada móvil: corrección estructural del hero · v0.6.3
   En escritorio el hero usa flex para centrado vertical. En móvil recuperamos
   flujo de bloque para que los spacers de Gutenberg sumen altura real. */
@media (max-width: 680px) {
  .iwales-hero {
    display: block !important;
    min-height: 0 !important;
  }

  .iwales-hero > .wp-block-spacer:first-child {
    display: block !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  .iwales-hero > .wp-block-group.alignwide {
    padding-bottom: 0 !important;
  }

  .iwales-hero .iwales-trust-strip {
    margin-bottom: 0 !important;
  }

  .iwales-hero > .wp-block-spacer:last-child {
    display: block !important;
    height: 42px !important;
    min-height: 42px !important;
  }
}


/* =========================================================
   Actualidad + Proyectos refinement · v0.6.4
   More editorial news layout and richer project cards.
   ========================================================= */

/* Actualidad: keep the listing generous rather than squeezing headlines
   into a three-column desktop grid. */
@media (min-width: 981px) {
  .iwales-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.15rem, 2vw, 1.6rem);
  }
  .iwales-news-grid > li:first-child {
    grid-column: 1 / -1;
  }
  .iwales-news-grid > li:first-child .iwales-news-card {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    min-height: 360px;
  }
  .iwales-news-grid > li:not(:first-child) .iwales-news-card-body {
    padding: 1.5rem 1.55rem 1.6rem;
  }
  .iwales-news-grid > li:not(:first-child) .iwales-news-card h3 {
    font-size: clamp(1.3rem, 1.65vw, 1.55rem);
  }
}

.iwales-news-card {
  border-color: rgba(58,58,57,.09);
  box-shadow: 0 12px 34px rgba(34,34,34,.05);
}
.iwales-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 58px rgba(34,34,34,.105);
}
.iwales-news-card h3 a:hover { color: var(--iwales-red); }
.iwales-news-meta {
  align-items: center;
  min-height: 28px;
}
.iwales-news-terms a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(193,48,74,.08);
}
.iwales-news-card .wp-block-post-excerpt__more-link {
  align-items: center;
  gap: .35rem;
  min-height: 36px;
}
.iwales-news-card .wp-block-post-excerpt__more-link:hover { text-decoration: underline; }

/* Filters stay usable on narrow screens instead of wrapping into a tall block. */
@media (max-width: 680px) {
  .iwales-news-filters {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    margin-right: calc(var(--iwales-gutter) * -1) !important;
    padding-right: var(--iwales-gutter);
    padding-bottom: .35rem;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }
  .iwales-news-filters > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .iwales-news-grid { gap: 1.15rem; }
}

/* Single articles: subtle reading refinements that do not alter editor content. */
.iwales-article-content :where(blockquote) {
  margin-block: 2rem;
  padding: 1.15rem 1.35rem;
  border-left: 4px solid var(--iwales-red);
  border-radius: 0 16px 16px 0;
  background: #f8f4f5;
}
.iwales-article-content :where(figure.wp-block-image) img {
  border-radius: 18px;
}
.iwales-article-content :where(figcaption) {
  color: var(--iwales-muted);
  font-size: .86rem;
}

/* Proyectos: richer cards without adding decorative noise. */
.iwales-projects-grid {
  gap: clamp(1.15rem, 2vw, 1.6rem);
}
.iwales-project-card-lg {
  min-height: 320px;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 18px 48px rgba(34,34,34,.105);
  transition: transform .2s ease, box-shadow .2s ease;
}
.iwales-project-card-lg:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 62px rgba(34,34,34,.15);
}
.iwales-project-card-lg::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: rgba(255,255,255,.28);
  z-index: 1;
}
.iwales-project-label {
  margin-bottom: 1.25rem !important;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.12);
}
.iwales-project-card-lg h3 {
  max-width: 23ch;
  margin-bottom: .9rem;
  font-size: clamp(1.55rem, 2.15vw, 2rem);
}
.iwales-project-card-lg p:not(.iwales-project-label) {
  max-width: 52ch;
  line-height: 1.58;
}
.iwales-project-card-lg > p:last-child {
  padding-top: 1.3rem;
}
.iwales-project-card-lg > p:last-child a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .5rem .72rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  text-decoration: none;
}
.iwales-project-card-lg > p:last-child a:hover {
  background: rgba(255,255,255,.15);
}

.iwales-projects-method-list li {
  padding-block: .15rem .75rem;
  border-bottom: 1px solid rgba(58,58,57,.08);
}
.iwales-projects-method-list li:last-child { border-bottom: 0; }

@media (max-width: 680px) {
  .iwales-project-card-lg {
    min-height: 0;
    padding: 1.45rem;
    border-radius: 22px;
  }
  .iwales-project-card-lg:hover { transform: none; }
  .iwales-project-card-lg h3 { font-size: 1.55rem; }
  .iwales-project-card-lg > p:last-child a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}


/* =========================================================
   Contacto + Cita + Participa refinement · v0.6.5
   Clearer action hierarchy without changing page content.
   ========================================================= */

/* Contact methods: easier to scan and more obviously actionable. */
.iwales-contact-card {
  position: relative;
  overflow: hidden;
  border-top-width: 4px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.iwales-contact-card:nth-child(1) { border-top-color: var(--iwales-blue); }
.iwales-contact-card:nth-child(2) { border-top-color: var(--iwales-red); }
.iwales-contact-card:nth-child(3) { border-top-color: var(--iwales-gold); }
.iwales-contact-card:nth-child(4) { border-top-color: #7b6275; }
.iwales-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(34,34,34,.085);
}
.iwales-contact-card > p:last-child a,
.iwales-contact-need a,
.iwales-appointment-help a,
.iwales-join-card > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 38px;
  text-underline-offset: 3px;
}
.iwales-contact-card > p:last-child a::after,
.iwales-contact-need a::after,
.iwales-appointment-help a::after,
.iwales-join-card > p:last-child a::after {
  content: "→";
  font-weight: 850;
  transition: transform .18s ease;
}
.iwales-contact-card > p:last-child a:hover::after,
.iwales-contact-need a:hover::after,
.iwales-appointment-help a:hover::after,
.iwales-join-card > p:last-child a:hover::after {
  transform: translateX(3px);
}

.iwales-contact-need,
.iwales-appointment-help {
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.iwales-contact-need:hover,
.iwales-appointment-help:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.105);
  border-color: rgba(255,255,255,.22);
}

/* Appointment flow: stronger sense of sequence on desktop. */
.iwales-appointment-steps {
  position: relative;
}
.iwales-appointment-step {
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.iwales-appointment-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--iwales-blue);
  opacity: .78;
}
.iwales-appointment-step:nth-child(2)::after { background: var(--iwales-red); }
.iwales-appointment-step:nth-child(3)::after { background: var(--iwales-gold); }
.iwales-appointment-step:hover {
  transform: translateY(-3px);
  border-color: rgba(58,58,57,.14);
  box-shadow: 0 18px 44px rgba(34,34,34,.08);
}
.iwales-appointment-step-number {
  box-shadow: inset 0 0 0 1px rgba(29,105,155,.08);
}
.iwales-appointment-step:nth-child(2) .iwales-appointment-step-number { box-shadow: inset 0 0 0 1px rgba(193,48,74,.08); }
.iwales-appointment-step:nth-child(3) .iwales-appointment-step-number { box-shadow: inset 0 0 0 1px rgba(227,176,35,.12); }

/* Participation: make each route feel like a clear choice rather than plain copy. */
.iwales-join-card,
.iwales-participation-card,
.iwales-participation-step {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.iwales-participation-step {
  border: 1px solid rgba(58,58,57,.08);
  background: #fff;
  box-shadow: 0 8px 26px rgba(34,34,34,.035);
}
.iwales-participation-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(34,34,34,.075);
}
.iwales-participation-step-number {
  box-shadow: 0 8px 18px rgba(34,34,34,.07);
}
.iwales-join-card > p:last-child a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.iwales-join-volunteer-panel .wp-block-button__link,
.iwales-member-panel .wp-block-button__link,
.iwales-volunteer-panel .wp-block-button__link,
.iwales-participation-cta .wp-block-button__link,
.iwales-join-cta .wp-block-button__link {
  min-height: 48px;
}

/* Keep action cards calm on touch devices and improve one-column rhythm. */
@media (max-width: 680px) {
  .iwales-contact-card:hover,
  .iwales-contact-need:hover,
  .iwales-appointment-help:hover,
  .iwales-appointment-step:hover,
  .iwales-participation-step:hover {
    transform: none;
  }
  .iwales-contact-card,
  .iwales-appointment-step,
  .iwales-participation-step {
    padding: 1.4rem;
  }
  .iwales-contact-card > p:last-child a,
  .iwales-contact-need a,
  .iwales-appointment-help a,
  .iwales-join-card > p:last-child a {
    min-height: 44px;
  }
}


/* =========================================================
   Sobre Iwales + Transparencia refinement · v0.6.6
   More editorial institutional pages, no content changes.
   ========================================================= */

/* SOBRE IWALES — clearer story and less repetitive card rhythm. */
.iwales-about-history .iwales-split-cluster {
  gap: clamp(1.6rem, 3vw, 3rem) !important;
}
.iwales-about-origin-panel {
  box-shadow: 0 22px 56px rgba(29,105,155,.13);
}
.iwales-about-timeline {
  position: relative;
  padding-left: .1rem;
}
.iwales-about-timeline::before {
  content: "";
  position: absolute;
  left: .36rem;
  top: .45rem;
  bottom: .45rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(193,48,74,.35), rgba(29,105,155,.14));
}
.iwales-about-timeline li {
  margin: 0;
  padding: .58rem 0 .58rem 1.65rem;
  line-height: 1.55;
}
.iwales-about-timeline li::before {
  content: "";
  left: .05rem;
  top: 1.04rem;
  width: .64rem;
  height: .64rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--iwales-red);
  box-shadow: 0 0 0 4px #f7f7f5;
}

.iwales-about-area,
.iwales-about-network-card {
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.iwales-about-area::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem 0 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: .08;
}
.iwales-about-area:hover,
.iwales-about-network-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(34,34,34,.075);
  border-color: rgba(58,58,57,.13);
}
.iwales-about-area h3,
.iwales-about-network-card h3 {
  text-wrap: balance;
}
.iwales-about-value {
  position: relative;
  overflow: hidden;
  transition: background-color .2s ease, border-color .2s ease;
}
.iwales-about-value::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 0;
  width: 42px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--iwales-gold);
  opacity: .85;
}
.iwales-about-value:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}
.iwales-about-network-card {
  background: linear-gradient(145deg, #f8f8f6, #fff);
}

/* TRANSPARENCIA — make the document hub read like a real catalogue. */
.iwales-transparency-intro {
  gap: clamp(1.8rem, 4vw, 4rem);
}
.iwales-transparency-note {
  border-left: 4px solid var(--iwales-blue);
  box-shadow: 0 14px 36px rgba(45,61,69,.045);
}
.iwales-transparency-grid {
  gap: 1.15rem;
}
.iwales-transparency-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 1.65rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.iwales-transparency-card::before {
  content: "";
  position: absolute;
  right: 1.35rem;
  top: 1.4rem;
  width: 28px;
  height: 34px;
  border: 1.5px solid rgba(58,58,57,.13);
  border-radius: 5px;
  background:
    linear-gradient(135deg, transparent 0 49%, rgba(58,58,57,.10) 50% 54%, transparent 55%) top right / 10px 10px no-repeat;
  opacity: .75;
}
.iwales-transparency-card::after {
  content: "";
  position: absolute;
  left: 1.65rem;
  right: 1.65rem;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--iwales-blue);
  opacity: .7;
}
.iwales-transparency-card:nth-child(2)::after { background: var(--iwales-red); }
.iwales-transparency-card:nth-child(3)::after { background: var(--iwales-gold); }
.iwales-transparency-card:nth-child(4)::after { background: var(--iwales-dark); }
.iwales-transparency-card:nth-child(5)::after { background: #5d7b64; }
.iwales-transparency-card:nth-child(6)::after { background: #7b6275; }
.iwales-transparency-card:hover {
  transform: translateY(-3px);
  border-color: rgba(58,58,57,.13);
  box-shadow: 0 20px 48px rgba(34,34,34,.075);
}
.iwales-transparency-card-tag {
  margin-right: 3rem !important;
}
.iwales-transparency-card h3 {
  max-width: 19ch;
  font-size: 1.24rem;
  text-wrap: balance;
}
.iwales-transparency-card > p:last-child {
  padding-top: 1rem;
  border-top: 1px solid rgba(58,58,57,.07);
}
.iwales-transparency-principle {
  position: relative;
  overflow: hidden;
}
.iwales-transparency-principle::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 0;
  width: 40px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #f2cf62;
  opacity: .9;
}

@media (max-width: 980px) {
  .iwales-transparency-card { min-height: 215px; }
}

@media (max-width: 680px) {
  .iwales-about-history .iwales-split-cluster { gap: 1.35rem !important; }
  .iwales-about-timeline li { padding-block: .52rem; }
  .iwales-about-area:hover,
  .iwales-about-network-card:hover,
  .iwales-transparency-card:hover { transform: none; }
  .iwales-transparency-card {
    min-height: 0;
    padding: 1.45rem;
  }
  .iwales-transparency-card::before {
    right: 1.15rem;
    top: 1.25rem;
  }
  .iwales-transparency-card::after {
    left: 1.45rem;
    right: 1.45rem;
  }
  .iwales-transparency-card h3 { max-width: 22ch; }
}


/* =========================================================
   Páginas de servicios · refinamiento común · v0.6.7
   Salud sexual, Diversidad, Atención social, Psicología,
   Formación y Arte y cultura comparten el mismo lenguaje editorial.
   ========================================================= */

/* Un mismo ritmo para las introducciones, sin borrar la identidad de cada área. */
body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
  .iwales-service-intro,
  .iwales-diversity-intro,
  .iwales-social-intro,
  .iwales-psych-intro,
  .iwales-training-intro,
  .iwales-art-intro
) h2 {
  position: relative;
  max-width: 19ch;
  margin-bottom: 1rem;
  padding-bottom: .95rem;
}
body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
  .iwales-service-intro,
  .iwales-diversity-intro,
  .iwales-social-intro,
  .iwales-psych-intro,
  .iwales-training-intro,
  .iwales-art-intro
) h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: var(--iwales-page-accent);
}

/* Las notas laterales se sienten parte del mismo sistema. */
body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
  .iwales-service-sidecard,
  .iwales-diversity-sidecard,
  .iwales-social-sidecard,
  .iwales-psych-sidecard,
  .iwales-training-note,
  .iwales-art-note
) {
  border-radius: 22px;
  border-top: 3px solid color-mix(in srgb, var(--iwales-page-accent) 68%, #fff);
  box-shadow: 0 14px 38px color-mix(in srgb, var(--iwales-page-accent) 6%, rgba(34,34,34,.04));
}

/* Tarjetas de servicio con una geometría y lectura comunes. */
body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
  .iwales-service-card,
  .iwales-diversity-card,
  .iwales-social-card,
  .iwales-psych-card,
  .iwales-training-card,
  .iwales-art-card
) {
  padding: clamp(1.35rem, 2vw, 1.65rem);
  box-shadow: 0 8px 28px rgba(34,34,34,.035);
}
body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
  .iwales-service-card,
  .iwales-diversity-card,
  .iwales-social-card,
  .iwales-psych-card,
  .iwales-training-card,
  .iwales-art-card
) h3 {
  margin-bottom: .72rem;
  font-size: clamp(1.18rem, 1.55vw, 1.32rem);
}
body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
  .iwales-service-card,
  .iwales-diversity-card,
  .iwales-social-card,
  .iwales-psych-card,
  .iwales-training-card,
  .iwales-art-card
) p {
  line-height: 1.58;
}

/* Los enlaces al final de las tarjetas se leen como acción, sin convertirlos en botones. */
body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
  .iwales-service-card,
  .iwales-diversity-card,
  .iwales-social-card,
  .iwales-psych-card,
  .iwales-training-card,
  .iwales-art-card
) a:not(.wp-block-button__link) {
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Listas de apoyo: el marcador hereda la identidad de la sección. */
body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
  .iwales-check-list,
  .iwales-psych-checks,
  .iwales-training-list,
  .iwales-art-list
) li::before {
  color: var(--iwales-page-accent) !important;
}
body.iwales-family-health main .iwales-check-list li::before {
  background: var(--iwales-page-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--iwales-page-accent) 12%, transparent);
}

/* Los bloques fuertes mantienen sus fondos propios, pero comparten acabado. */
body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
  .iwales-feature-panel,
  .iwales-diversity-feature-panel,
  .iwales-social-feature-panel,
  .iwales-psych-feature-panel,
  .iwales-training-case-panel,
  .iwales-art-feature-panel
) {
  border-radius: 28px;
  box-shadow: 0 20px 54px color-mix(in srgb, var(--iwales-page-accent) 12%, rgba(20,20,20,.10));
}

/* CTA final común: más sobrio y claramente vinculado al área. */
body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
  .iwales-service-cta,
  .iwales-diversity-cta,
  .iwales-social-cta,
  .iwales-psych-cta,
  .iwales-training-cta,
  .iwales-art-cta
) {
  border-top: 4px solid var(--iwales-page-accent);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--iwales-page-accent) 7%, rgba(34,34,34,.04));
}
body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
  .iwales-service-cta,
  .iwales-diversity-cta,
  .iwales-social-cta,
  .iwales-psych-cta,
  .iwales-training-cta,
  .iwales-art-cta
) h2 {
  max-width: 21ch;
  text-wrap: balance;
}

/* Las bandas con pasos/tarjetas oscuras comparten densidad. */
body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
  .iwales-diversity-dark-card,
  .iwales-social-network-card,
  .iwales-psych-network-card,
  .iwales-training-audience-card,
  .iwales-art-step
) {
  border-radius: 20px;
  backdrop-filter: blur(3px);
}

@media (max-width: 680px) {
  body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
    .iwales-service-intro,
    .iwales-diversity-intro,
    .iwales-social-intro,
    .iwales-psych-intro,
    .iwales-training-intro,
    .iwales-art-intro
  ) h2 {
    max-width: 100%;
    padding-bottom: .8rem;
  }
  body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art) main :is(
    .iwales-service-sidecard,
    .iwales-diversity-sidecard,
    .iwales-social-sidecard,
    .iwales-psych-sidecard,
    .iwales-training-note,
    .iwales-art-note,
    .iwales-service-cta,
    .iwales-diversity-cta,
    .iwales-social-cta,
    .iwales-psych-cta,
    .iwales-training-cta,
    .iwales-art-cta
  ) {
    border-radius: 18px;
  }
}


/* =========================================================
   Accesibilidad, estabilidad y microinteracciones · v0.6.8
   Mejora transversal sin alterar la composición validada.
   ========================================================= */

/* Sticky header must not cover keyboard/anchor destinations. */
.iwales-main-anchor,
main :where(h2, h3, h4)[id],
main :where(.wp-block-group, .wp-block-column, .wp-block-cover)[id] {
  scroll-margin-top: 112px;
}

/* Content links remain recognisable without making cards/buttons look noisy. */
main :where(p, li) > a:not(.wp-block-button__link) {
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
  text-decoration-skip-ink: auto;
}

/* Long operational addresses must never force horizontal scrolling on phones. */
.iwales-footer-contact a,
.iwales-contact-shell a[href^="mailto:"],
.iwales-contact-shell a[href^="tel:"],
.iwales-appointment-shell a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Give keyboard users a consistent, high-contrast focus treatment everywhere. */
:where(
  a,
  button,
  input,
  textarea,
  select,
  summary,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid var(--iwales-gold);
  outline-offset: 4px;
}

/* Prevent decorative layers from ever intercepting taps/clicks. */
:where(
  .iwales-hero,
  .iwales-page-hero,
  .iwales-health-hero,
  .iwales-diversity-hero,
  .iwales-social-hero,
  .iwales-psych-hero,
  .iwales-training-hero,
  .iwales-art-hero,
  .iwales-projects-hero,
  .iwales-join-hero,
  .iwales-volunteer-hero,
  .iwales-member-hero,
  .iwales-about-hero,
  .iwales-transparency-hero,
  .iwales-contact-hero,
  .iwales-appointment-hero
)::before,
:where(
  .iwales-hero,
  .iwales-page-hero,
  .iwales-health-hero,
  .iwales-diversity-hero,
  .iwales-social-hero,
  .iwales-psych-hero,
  .iwales-training-hero,
  .iwales-art-hero,
  .iwales-projects-hero,
  .iwales-join-hero,
  .iwales-volunteer-hero,
  .iwales-member-hero,
  .iwales-about-hero,
  .iwales-transparency-hero,
  .iwales-contact-hero,
  .iwales-appointment-hero
)::after {
  pointer-events: none;
}

/* Improve legibility for users requesting stronger contrast. */
@media (prefers-contrast: more) {
  :root {
    --iwales-muted: #50504e;
    --iwales-border: #c9c9c4;
  }

  .iwales-site-header {
    border-bottom-color: rgba(58,58,57,.28);
  }

  :where(.iwales-card, [class*="-card"]) {
    border-color: var(--iwales-border);
  }
}

/* Windows High Contrast / forced-colour mode: keep controls and focus visible. */
@media (forced-colors: active) {
  :where(a, button, input, textarea, select, summary):focus-visible {
    outline: 3px solid Highlight;
  }

  .iwales-nav-cta > .wp-block-navigation-item__content,
  .wp-block-button__link {
    border: 1px solid ButtonText;
  }
}

/* Motion preference: remove transforms too, not just transition duration. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-iteration-count: 1 !important;
  }

  :where(
    .iwales-card,
    [class*="-card"],
    .iwales-home-contact-link,
    .wp-block-button__link
  ):hover {
    transform: none !important;
  }
}


/* =========================================================
   Búsqueda global en cabecera · v0.7.1
   ========================================================= */
.iwales-header-search {
  position: relative;
  flex: 0 0 auto;
  margin-left: .45rem;
}
.iwales-header-search > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--iwales-border);
  border-radius: 999px;
  background: #fff;
  color: var(--iwales-dark);
  cursor: pointer;
  list-style: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.iwales-header-search > summary::-webkit-details-marker { display: none; }
.iwales-header-search > summary::marker { display: none; content: ''; }
.iwales-header-search > summary:hover,
.iwales-header-search[open] > summary {
  background: var(--iwales-bg);
  border-color: rgba(58,58,57,.18);
  color: var(--iwales-red);
}
.iwales-header-search > summary:focus-visible {
  outline: 3px solid rgba(29,105,155,.28);
  outline-offset: 3px;
}
.iwales-header-search-panel {
  position: absolute;
  z-index: 120;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, calc(100vw - 36px));
  padding: 1rem;
  border: 1px solid rgba(58,58,57,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.99);
  box-shadow: 0 24px 70px rgba(34,34,34,.16);
}
.iwales-header-search-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: .55rem;
  margin: 0;
}
.iwales-header-search-form input[type="search"] {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: .7rem .85rem;
  border: 1px solid var(--iwales-border);
  border-radius: 12px;
  background: #fff;
  color: var(--iwales-text);
  font: inherit;
}
.iwales-header-search-form input[type="search"]:focus {
  border-color: var(--iwales-blue);
  outline: 3px solid rgba(29,105,155,.16);
  outline-offset: 1px;
}
.iwales-header-search-form button {
  min-height: 46px;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--iwales-dark);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.iwales-header-search-form button:hover { background: var(--iwales-red); }
.iwales-header-search-panel p {
  margin: .7rem .15rem 0;
  color: var(--iwales-muted);
  font-size: .84rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .iwales-header-search { margin-left: .15rem; }
  .iwales-main-nav { margin-left: auto; }
}
@media (max-width: 680px) {
  .iwales-header-search > summary { width: 42px; height: 42px; }
  .iwales-header-search-panel {
    position: fixed;
    top: 78px;
    left: 18px;
    right: 18px;
    width: auto;
  }
  .iwales-header-search-form { grid-template-columns: 1fr; }
  .iwales-header-search-form button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .iwales-header-search > summary { transition: none; }
}


/* =========================================================
   Artículos: compartir + contenidos relacionados · v0.7.2
   ========================================================= */
.iwales-article-tools {
  width: min(100%, 760px);
  margin: clamp(1.8rem,4vw,2.8rem) auto 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--iwales-border);
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.iwales-article-tools-copy { min-width: 0; }
.iwales-article-tools-kicker {
  margin: 0 0 .18rem;
  color: var(--iwales-red);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.iwales-article-tools-title {
  margin: 0;
  color: var(--iwales-text);
  font-size: .98rem;
  font-weight: 750;
  line-height: 1.35;
}
.iwales-article-share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}
.iwales-share-button {
  min-height: 42px;
  padding: .62rem .9rem;
  border: 1px solid var(--iwales-border);
  border-radius: 999px;
  background: #fff;
  color: var(--iwales-text);
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.iwales-share-button:hover {
  border-color: rgba(193,48,74,.35);
  background: rgba(193,48,74,.06);
  color: var(--iwales-red);
  transform: translateY(-1px);
}
.iwales-share-button.is-primary {
  border-color: var(--iwales-red);
  background: var(--iwales-red);
  color: #fff;
}
.iwales-share-button.is-primary:hover {
  background: #aa2940;
  color: #fff;
}
.iwales-share-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.iwales-related-wrap {
  width: min(100%, var(--iwales-shell));
  margin: clamp(2.2rem,5vw,4rem) auto 0;
}
.iwales-related-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.iwales-related-eyebrow {
  margin: 0 0 .25rem;
  color: var(--iwales-red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.iwales-related-title {
  margin: 0;
  font-size: clamp(1.35rem,2.6vw,2rem);
  line-height: 1.08;
}
.iwales-related-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
}
.iwales-related-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--iwales-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.iwales-related-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 16px 38px rgba(34,34,34,.08);
}
.iwales-related-thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--iwales-bg);
}
.iwales-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.iwales-related-placeholder {
  width: 100%;
  height: 100%;
  background:
    var(--iwales-mark-light) center/38% auto no-repeat,
    linear-gradient(145deg,#f4f4f1,#ecece7);
}
.iwales-related-body { padding: 1rem 1rem 1.05rem; }
.iwales-related-meta {
  margin: 0 0 .45rem;
  color: var(--iwales-muted);
  font-size: .78rem;
  line-height: 1.35;
}
.iwales-related-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.22;
}
.iwales-related-card h3 a {
  color: var(--iwales-text);
  text-decoration: none;
}
.iwales-related-card h3 a:hover { color: var(--iwales-red); }

@media (max-width: 860px) {
  .iwales-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .iwales-related-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .iwales-article-tools {
    align-items: flex-start;
    flex-direction: column;
  }
  .iwales-article-share-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .iwales-share-button { flex: 1 1 140px; }
  .iwales-related-grid { grid-template-columns: 1fr; }
  .iwales-related-card:last-child:nth-child(odd) { grid-column: auto; }
}
@media (hover: none) {
  .iwales-related-card:hover,
  .iwales-share-button:hover { transform: none; }
}


/* Dynamic back-to-Actualidad link · v0.7.3 */
.iwales-article-back-link {
  position: relative;
  z-index: 3;
}
.iwales-article-back-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem .9rem;
  border-radius: 12px;
  color: var(--iwales-text);
  line-height: 1.2;
  text-decoration: none;
  touch-action: manipulation;
}
.iwales-article-back-link a:hover {
  color: var(--iwales-red);
  background: var(--iwales-bg);
}
.iwales-article-back-link a:focus-visible {
  outline: 3px solid rgba(29,105,155,.30);
  outline-offset: 2px;
}
@media (max-width: 680px) {
  .iwales-article-back { padding-top: 1rem; }
  .iwales-article-back-link a {
    width: 100%;
    justify-content: flex-start;
    min-height: 52px;
    padding: .8rem .9rem;
  }
}


/* =========================================================
   Breadcrumbs contextuales · v0.7.5
   ========================================================= */
.iwales-breadcrumbs-wrap {
  width: min(calc(100% - (var(--iwales-gutter) * 2)), var(--iwales-shell));
  margin: 0 auto;
  padding: .72rem 0 .66rem;
}
.iwales-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .38rem;
  margin: 0;
  color: var(--iwales-muted);
  font-size: .86rem;
  line-height: 1.35;
}
.iwales-breadcrumbs a {
  color: var(--iwales-muted);
  text-decoration: none;
  text-underline-offset: 3px;
}
.iwales-breadcrumbs a:hover,
.iwales-breadcrumbs a:focus-visible {
  color: var(--iwales-red);
  text-decoration: underline;
}
.iwales-breadcrumbs-sep {
  color: #a3a3a0;
  user-select: none;
}
.iwales-breadcrumbs-current {
  color: var(--iwales-text);
  font-weight: 650;
  max-width: min(72ch, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.single-post .iwales-breadcrumbs-wrap {
  padding-top: .78rem;
  padding-bottom: .72rem;
}
@media (max-width: 680px) {
  .iwales-breadcrumbs-wrap {
    padding-top: .62rem;
    padding-bottom: .58rem;
  }
  .iwales-breadcrumbs {
    font-size: .81rem;
    gap: .3rem;
  }
  .iwales-breadcrumbs-current {
    max-width: 60vw;
  }
}


/* =========================================================
   Volver arriba · v0.7.7
   ========================================================= */
.iwales-back-to-top {
  position: fixed;
  z-index: 9999;
  right: max(18px, calc((100vw - var(--iwales-shell)) / 2 - 66px));
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 52px;
  min-height: 52px;
  padding: 0 .9rem;
  border: 1px solid rgba(58,58,57,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: var(--iwales-dark);
  box-shadow: 0 12px 34px rgba(34,34,34,.14);
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, box-shadow .18s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.iwales-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.iwales-back-to-top:hover {
  box-shadow: 0 16px 40px rgba(34,34,34,.18);
  transform: translateY(-2px);
}
.iwales-back-to-top:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--iwales-blue) 42%, transparent);
  outline-offset: 3px;
}
.iwales-back-to-top svg { width: 18px; height: 18px; flex: 0 0 auto; }

@media (max-width: 680px) {
  .iwales-back-to-top {
    right: 14px;
    bottom: 16px;
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
    padding: 0;
  }
  .iwales-back-to-top span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .iwales-back-to-top { transition: none; }
  .iwales-back-to-top:hover { transform: none; }
}


/* =========================================================
   Acciones rápidas móviles · v0.7.8
   ========================================================= */
.iwales-mobile-actions { display: none; }

@media (max-width: 780px) {
  body.iwales-has-mobile-actions {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .iwales-mobile-actions {
    position: fixed;
    z-index: 120;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: min(calc(100% - 24px), 420px);
    padding: 8px;
    border: 1px solid rgba(58,58,57,.10);
    border-radius: 19px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 48px rgba(27,27,27,.18);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .iwales-mobile-action {
    display: inline-flex;
    min-width: 0;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    padding: .7rem .78rem;
    border-radius: 13px;
    font-size: .94rem;
    font-weight: 760;
    line-height: 1.1;
    text-align: center;
    text-decoration: none !important;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
  }

  .iwales-mobile-action svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
  }

  .iwales-mobile-action--appointment {
    background: var(--iwales-red);
    color: #fff !important;
  }
  .iwales-mobile-action--appointment:hover,
  .iwales-mobile-action--appointment:focus-visible {
    background: #a8273f;
    color: #fff !important;
  }

  .iwales-mobile-action--whatsapp {
    border: 1px solid rgba(58,58,57,.14);
    background: #fff;
    color: var(--iwales-dark) !important;
  }
  .iwales-mobile-action--whatsapp:hover,
  .iwales-mobile-action--whatsapp:focus-visible {
    border-color: rgba(29,105,155,.32);
    background: var(--iwales-bg);
  }

  .iwales-has-mobile-actions .iwales-back-to-top {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 370px) {
  .iwales-mobile-action { font-size: .88rem; padding-inline: .58rem; }
  .iwales-mobile-action svg { width: 18px; height: 18px; flex-basis: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .iwales-mobile-action { transition: none; }
}


/* =========================================================
   Navegación contextual + estados interactivos · v0.7.9
   Hace visible la familia activa sin añadir elementos nuevos.
   ========================================================= */

/* Active top-level navigation based on the public section being viewed. */
body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art)
  .iwales-nav-services > .wp-block-navigation-item__content,
body.iwales-family-projects .iwales-nav-projects > .wp-block-navigation-item__content,
body:is(.blog,.single-post,.archive,.category,.tag) .iwales-nav-news > .wp-block-navigation-item__content,
body.iwales-family-participate .iwales-nav-participate > .wp-block-navigation-item__content,
body:is(.iwales-family-institutional,.iwales-family-contact) .iwales-nav-iwales > .wp-block-navigation-item__content {
  color: var(--iwales-dark) !important;
  font-weight: 800;
}

body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art)
  .iwales-nav-services > .wp-block-navigation-item__content::after,
body.iwales-family-projects .iwales-nav-projects > .wp-block-navigation-item__content::after,
body:is(.blog,.single-post,.archive,.category,.tag) .iwales-nav-news > .wp-block-navigation-item__content::after,
body.iwales-family-participate .iwales-nav-participate > .wp-block-navigation-item__content::after,
body:is(.iwales-family-institutional,.iwales-family-contact) .iwales-nav-iwales > .wp-block-navigation-item__content::after {
  right: 0 !important;
}

/* Appointment keeps its CTA treatment, but gains a clear selected state. */
body.iwales-family-appointment .iwales-nav-cta > .wp-block-navigation-item__content {
  box-shadow: 0 0 0 3px rgba(193,48,74,.16), 0 9px 22px rgba(193,48,74,.14);
}

/* On touch, give immediate feedback without relying on hover movement. */
:where(
  .wp-block-button__link,
  .iwales-home-contact-link,
  .iwales-mobile-action,
  .iwales-back-to-top,
  .iwales-header-search > summary
):active {
  transform: scale(.985);
}

/* A consistent visual cue for text actions at the end of cards. */
body[class*="iwales-family-"] main :is(
  .iwales-service-card,
  .iwales-diversity-card,
  .iwales-social-card,
  .iwales-psych-card,
  .iwales-training-card,
  .iwales-art-card,
  .iwales-project-card-lg,
  .iwales-join-card,
  .iwales-participation-card,
  .iwales-contact-card,
  .iwales-transparency-card
) > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
body[class*="iwales-family-"] main :is(
  .iwales-service-card,
  .iwales-diversity-card,
  .iwales-social-card,
  .iwales-psych-card,
  .iwales-training-card,
  .iwales-art-card,
  .iwales-project-card-lg,
  .iwales-join-card,
  .iwales-participation-card,
  .iwales-contact-card,
  .iwales-transparency-card
) > p:last-child a::after {
  content: "→";
  line-height: 1;
  transition: transform .16s ease;
}
@media (hover:hover) and (pointer:fine) {
  body[class*="iwales-family-"] main :is(
    .iwales-service-card,
    .iwales-diversity-card,
    .iwales-social-card,
    .iwales-psych-card,
    .iwales-training-card,
    .iwales-art-card,
    .iwales-project-card-lg,
    .iwales-join-card,
    .iwales-participation-card,
    .iwales-contact-card,
    .iwales-transparency-card
  ) > p:last-child a:hover::after { transform: translateX(3px); }
}

/* Mobile navigation: active family is visible even though desktop underline is hidden. */
@media (max-width:1100px) {
  body:is(.iwales-family-health,.iwales-family-diversity,.iwales-family-social,.iwales-family-psychology,.iwales-family-training,.iwales-family-art)
    .iwales-nav-services > .wp-block-navigation-item__content,
  body.iwales-family-projects .iwales-nav-projects > .wp-block-navigation-item__content,
  body:is(.blog,.single-post,.archive,.category,.tag) .iwales-nav-news > .wp-block-navigation-item__content,
  body.iwales-family-participate .iwales-nav-participate > .wp-block-navigation-item__content,
  body:is(.iwales-family-institutional,.iwales-family-contact) .iwales-nav-iwales > .wp-block-navigation-item__content {
    padding-inline: .8rem !important;
    border-radius: 12px;
    background: var(--iwales-bg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[class*="iwales-family-"] main :is(
    .iwales-service-card,
    .iwales-diversity-card,
    .iwales-social-card,
    .iwales-psych-card,
    .iwales-training-card,
    .iwales-art-card,
    .iwales-project-card-lg,
    .iwales-join-card,
    .iwales-participation-card,
    .iwales-contact-card,
    .iwales-transparency-card
  ) > p:last-child a::after { transition: none; }
  :where(.wp-block-button__link,.iwales-home-contact-link,.iwales-mobile-action,.iwales-back-to-top,.iwales-header-search > summary):active { transform:none; }
}


/* =========================================================
   Navegación principal · corrección v0.7.10
   Inicio activo y padres de submenú sin navegación accidental.
   ========================================================= */
body.home .iwales-nav-home > .wp-block-navigation-item__content {
  color: var(--iwales-dark) !important;
  font-weight: 800;
}
body.home .iwales-nav-home > .wp-block-navigation-item__content::after {
  right: 0 !important;
}

/* Servicios e Iwales son categorías de navegación, no destinos. */
.iwales-nav-services > .wp-block-navigation-item__content,
.iwales-nav-iwales > .wp-block-navigation-item__content {
  cursor: default;
}

@media (max-width:1100px) {
  body.home .iwales-nav-home > .wp-block-navigation-item__content {
    padding-inline: .8rem !important;
    border-radius: 12px;
    background: var(--iwales-bg);
  }
}


/* =========================================================
   Navegación interna de páginas largas · v0.7.11
   Se genera automáticamente a partir de los H2 del contenido.
   ========================================================= */
.iwales-page-jump-wrap {
  width: min(calc(100% - (var(--iwales-gutter) * 2)), var(--iwales-shell));
  max-width: var(--iwales-shell);
  margin: 1.15rem auto 0;
  position: relative;
  z-index: 3;
}
.iwales-page-jump-nav {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .65rem .75rem .65rem 1rem;
  border: 1px solid rgba(58,58,57,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 26px rgba(34,34,34,.045);
}
.iwales-page-jump-label {
  flex: 0 0 auto;
  color: var(--iwales-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.iwales-page-jump-links {
  display: flex;
  align-items: center;
  gap: .28rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding: .08rem .08rem .12rem;
}
.iwales-page-jump-links a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .42rem .7rem;
  border-radius: 10px;
  color: var(--iwales-muted);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.iwales-page-jump-links a:hover,
.iwales-page-jump-links a:focus-visible {
  background: var(--iwales-bg);
  color: var(--iwales-dark);
}
body[class*="iwales-family-"] .iwales-page-jump-links a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--iwales-page-accent, var(--iwales-red));
  opacity: .75;
}

@media (max-width: 760px) {
  .iwales-page-jump-wrap {
    margin-top: .8rem;
    width: min(calc(100% - 28px), var(--iwales-shell));
  }
  .iwales-page-jump-nav {
    display: block;
    padding: .72rem .72rem .62rem;
    border-radius: 14px;
  }
  .iwales-page-jump-label {
    display: block;
    padding: 0 .35rem .42rem;
    font-size: .72rem;
  }
  .iwales-page-jump-links {
    margin-inline: -.12rem;
    padding-bottom: .18rem;
  }
  .iwales-page-jump-links a {
    min-height: 40px;
    padding: .48rem .66rem;
    background: var(--iwales-bg);
    font-size: .84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iwales-page-jump-links a { transition: none; }
}


/* =========================================================
   Navegación interna activa · v0.7.12
   Resalta el apartado visible mientras se recorre la página.
   ========================================================= */
.iwales-page-jump-links a.is-active {
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 10%, #fff);
  color: var(--iwales-dark);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 24%, transparent);
}
body[class*="iwales-family-"] .iwales-page-jump-links a.is-active::before {
  opacity: 1;
  transform: scale(1.28);
}
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .iwales-page-jump-links a.is-active {
    background: var(--iwales-bg);
    box-shadow: inset 0 0 0 1px rgba(58,58,57,.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  body[class*="iwales-family-"] .iwales-page-jump-links a.is-active::before { transform: none; }
}


/* =========================================================
   Navegación interna activa · corrección visual v0.7.14
   Mantiene la banda visible y hace inequívoco el apartado actual.
   ========================================================= */
.iwales-page-jump-wrap {
  position: sticky;
  top: 10px;
  z-index: 88;
  margin-bottom: .35rem;
}
.iwales-page-jump-nav {
  background: rgba(255,255,255,.985);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 20px rgba(34,34,34,.07);
}
.iwales-page-jump-links a.is-active {
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 16%, #fff);
  color: var(--iwales-page-accent-dark, var(--iwales-dark));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 48%, transparent);
  font-weight: 800;
}
body[class*="iwales-family-"] .iwales-page-jump-links a.is-active::before {
  background: var(--iwales-page-accent, var(--iwales-red));
  opacity: 1;
  transform: scale(1.45);
}
@media (max-width: 1100px) {
  .iwales-page-jump-wrap { top: 8px; }
}
@media (max-width: 680px) {
  .iwales-page-jump-wrap {
    top: 8px;
    z-index: 88;
  }
  .iwales-page-jump-nav {
    box-shadow: 0 8px 22px rgba(34,34,34,.09);
  }
  .iwales-page-jump-links a.is-active {
    background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 19%, #fff);
  }
}
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .iwales-page-jump-links a.is-active {
    background: var(--iwales-bg);
    color: var(--iwales-page-accent-dark, var(--iwales-dark));
    box-shadow: inset 0 0 0 2px var(--iwales-page-accent, var(--iwales-red));
  }
}


/* Navegación interna · ajuste de anclajes v0.7.15 */
.iwales-page-jump-target {
  scroll-margin-top: 92px;
}
@media (max-width: 760px) {
  .iwales-page-jump-target { scroll-margin-top: 112px; }
}


/* Navegación interna · revisión integral v0.7.16 */
.iwales-page-jump-target {
  scroll-margin-top: 118px;
}
@media (max-width: 760px) {
  .iwales-page-jump-target { scroll-margin-top: 136px; }
}


/* =========================================================
   Diversidad · margen móvil en bloque oscuro · v0.7.17
   Mantiene el contenido de "Más allá de la atención individual"
   dentro del mismo gutter que el resto de la página.
   ========================================================= */
@media (max-width: 680px) {
  body.iwales-family-diversity .iwales-diversity-dark > .wp-block-group {
    width: calc(100% - 36px) !important;
    max-width: var(--iwales-shell) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }
}


/* =========================================================
   Seguridad de gutters en móvil · v0.7.18
   Auditoría global de bloques alignfull/alignwide.
   Evita que cualquier sección de ancho completo pierda el
   margen lateral de lectura en pantallas pequeñas.
   ========================================================= */
.iwales-social-network > .wp-block-group {
  width: min(calc(100% - (var(--iwales-gutter) * 2)), var(--iwales-shell)) !important;
  max-width: var(--iwales-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

@media (max-width: 680px) {
  main .wp-block-group.alignfull > .wp-block-group.alignwide {
    width: min(calc(100% - (var(--iwales-gutter) * 2)), var(--iwales-shell)) !important;
    max-width: var(--iwales-shell) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }
}

/* =========================================================
   Mantenimiento técnico · v0.7.21
   Se retiran estilos específicos de WPForms: los formularios públicos
   se conectarán con Iwales Gestión cuando corresponda.
   ========================================================= */


/* =========================================================
   Medios e imágenes · v0.7.26
   Consistencia visual sin alterar contenidos ni consultas.
   ========================================================= */
.iwales-news-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.iwales-news-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.iwales-news-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* La noticia destacada conserva una imagen estable sin deformarse. */
@media (min-width: 721px) {
  .iwales-news-grid > li:first-child .iwales-news-image {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

/* Imágenes dentro de artículos: nunca desbordan y mantienen su proporción. */
.iwales-article-featured img,
.iwales-article-content img {
  display: block;
  max-width: 100%;
  height: auto;
}
.iwales-article-content figure.wp-block-image,
.iwales-article-content figure.wp-block-gallery {
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}
.iwales-article-content figure.wp-block-image img {
  border-radius: 18px;
}
.iwales-article-content .wp-block-gallery {
  gap: .75rem;
}
.iwales-article-content .wp-block-gallery img {
  border-radius: 14px;
}
.iwales-article-content figcaption,
.iwales-article-content .wp-element-caption {
  margin-top: .6rem;
  color: var(--iwales-muted);
  font-size: .86rem;
  line-height: 1.45;
  text-align: left;
}

/* Vídeo y embeds responsivos dentro de entradas. */
.iwales-article-content iframe,
.iwales-article-content video,
.iwales-article-content embed,
.iwales-article-content object {
  max-width: 100%;
}
.iwales-article-content .wp-block-embed__wrapper {
  overflow: hidden;
  border-radius: 18px;
}

@media (max-width: 680px) {
  .iwales-news-image { aspect-ratio: 16 / 9; }
  .iwales-article-content figure.wp-block-image img { border-radius: 14px; }
  .iwales-article-content .wp-block-gallery img { border-radius: 12px; }
  .iwales-article-content figure.wp-block-image,
  .iwales-article-content figure.wp-block-gallery {
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
  }
}


/* =========================================================
   Impresión limpia · v0.7.27
   No altera la presentación en pantalla.
   ========================================================= */
@media print {
  @page { margin: 16mm 14mm; }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
  }

  .iwales-site-header,
  .iwales-site-footer,
  .iwales-skip-link,
  .iwales-page-jump-wrap,
  .iwales-back-to-top,
  .iwales-mobile-action-bar,
  .iwales-header-search,
  .iwales-header-search-panel,
  .iwales-share-tools,
  .iwales-related-posts,
  .wp-block-navigation,
  .wp-block-buttons,
  .iwales-home-contact-strip,
  .iwales-home-social-actions,
  .iwales-news-filters,
  .iwales-footer-bottom {
    display: none !important;
  }

  main,
  .wp-site-blocks,
  .iwales-content,
  .iwales-section,
  .alignwide,
  .alignfull {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .iwales-hero,
  [class*="iwales-"][class*="hero"] {
    min-height: 0 !important;
    padding: 0 0 10mm !important;
    background: #fff !important;
    color: #000 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .iwales-hero::before,
  .iwales-hero::after,
  [class*="iwales-"][class*="hero"]::before,
  [class*="iwales-"][class*="hero"]::after {
    display: none !important;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    break-after: avoid-page;
    page-break-after: avoid;
  }

  p, li, blockquote { orphans: 3; widows: 3; }

  .wp-block-group,
  .wp-block-columns,
  .wp-block-column,
  [class*="card"],
  [class*="panel"],
  figure,
  blockquote {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  img, svg, video, iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  a {
    color: #000 !important;
    text-decoration: underline !important;
  }

  a[href^="http"]::after,
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after {
    content: " (" attr(href) ")";
    font-size: 8.5pt;
    font-weight: 400;
    word-break: break-all;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after,
  .wp-block-button__link::after {
    content: "" !important;
  }
}


/* =========================================================
   Mapa del sitio visible · v0.7.28
   ========================================================= */
.iwales-sitemap-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.1rem, 8vw, 7rem) 0 clamp(3.4rem, 6vw, 5.4rem);
  background: linear-gradient(135deg, #30302f 0%, #3a3a39 58%, #252524 100%);
  color: #fff;
}
.iwales-sitemap-hero::after {
  content: "";
  position: absolute;
  width: clamp(230px, 28vw, 430px);
  aspect-ratio: 1;
  right: clamp(-85px, 1vw, 28px);
  top: 50%;
  transform: translateY(-50%) rotate(-7deg);
  background: var(--iwales-mark-white) center / contain no-repeat;
  opacity: .055;
  pointer-events: none;
}
.iwales-sitemap-hero .alignwide { position: relative; z-index: 1; }
.iwales-sitemap-hero h1 {
  max-width: 820px;
  margin: .35rem 0 1rem;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: .98;
}
.iwales-sitemap-hero p:not(.iwales-kicker) {
  max-width: 720px;
  color: rgba(255,255,255,.79);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.iwales-sitemap-shell {
  width: min(calc(100% - (var(--iwales-gutter) * 2)), var(--iwales-shell));
  margin: clamp(2.5rem, 5vw, 4.5rem) auto clamp(4rem, 7vw, 6rem);
}
.iwales-sitemap-intro {
  max-width: 760px;
  margin-bottom: 1.75rem;
}
.iwales-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.iwales-sitemap-card {
  min-width: 0;
  padding: clamp(1.25rem, 2vw, 1.65rem);
  border: 1px solid var(--iwales-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(34,34,34,.045);
}
.iwales-sitemap-card h2 {
  margin: 0 0 .9rem;
  font-size: 1.15rem;
  line-height: 1.12;
}
.iwales-sitemap-list {
  display: grid;
  gap: .22rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.iwales-sitemap-list li { margin: 0; }
.iwales-sitemap-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 42px;
  padding: .48rem .55rem;
  border-radius: 10px;
  color: var(--iwales-text);
  text-decoration: none;
}
.iwales-sitemap-list a::after {
  content: "→";
  flex: 0 0 auto;
  color: var(--iwales-muted);
  transition: transform .16s ease;
}
.iwales-sitemap-list a:hover,
.iwales-sitemap-list a:focus-visible {
  background: var(--iwales-bg);
  color: var(--iwales-red);
}
.iwales-sitemap-list a:hover::after,
.iwales-sitemap-list a:focus-visible::after { transform: translateX(2px); }
.iwales-sitemap-card--news { grid-column: span 2; }
.iwales-sitemap-card--legal { background: var(--iwales-bg); }
.iwales-sitemap-empty { color: var(--iwales-muted); }
@media (max-width: 980px) {
  .iwales-sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iwales-sitemap-card--news { grid-column: span 2; }
}
@media (max-width: 680px) {
  .iwales-sitemap-hero { padding: 3.3rem 0 3rem; }
  .iwales-sitemap-grid { grid-template-columns: 1fr; }
  .iwales-sitemap-card--news { grid-column: auto; }
  .iwales-sitemap-card { border-radius: 16px; }
}


/* =========================================================
   Estados vacíos y recuperación de navegación · v0.7.29
   ========================================================= */
.iwales-archive-empty {
  max-width: 760px;
  margin-inline: auto !important;
  padding: clamp(1.5rem,3vw,2rem);
}
.iwales-archive-empty h2 { margin-top: 0; margin-bottom: .55rem; }
.iwales-archive-empty p { margin-top: 0; color: var(--iwales-muted); }
.iwales-empty-actions { margin-top: 1.15rem !important; gap: .6rem !important; }
.iwales-error-actions { margin-top: 1rem !important; gap: .6rem !important; }
@media (max-width: 680px) {
  .iwales-empty-actions,
  .iwales-error-actions {
    width: 100%;
    align-items: stretch !important;
  }
  .iwales-empty-actions .wp-block-button,
  .iwales-error-actions .wp-block-button { width: 100%; }
  .iwales-empty-actions .wp-block-button__link,
  .iwales-error-actions .wp-block-button__link { width: 100%; justify-content: center; text-align: center; }
}


/* =========================================================
   Navegación cruzada entre páginas · v0.7.30
   ========================================================= */
.iwales-related-pages {
  width: 100%;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  border-top: 1px solid rgba(58,58,57,.09);
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 4%, #fff);
}
.iwales-related-pages__inner {
  width: min(calc(100% - (var(--iwales-gutter) * 2)), var(--iwales-shell));
  max-width: var(--iwales-shell);
  margin-inline: auto;
}
.iwales-related-pages__kicker {
  margin: 0 0 .45rem;
  color: var(--iwales-page-accent, var(--iwales-red));
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.iwales-related-pages h2 {
  margin: 0 0 1.25rem;
  max-width: 760px;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1.08;
}
.iwales-related-pages__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.iwales-related-pages__card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 160px;
  flex-direction: column;
  gap: .55rem;
  padding: 1.25rem 3.2rem 1.2rem 1.25rem;
  border: 1px solid rgba(58,58,57,.10);
  border-radius: 18px;
  background: #fff;
  color: var(--iwales-dark);
  text-decoration: none !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.iwales-related-pages__card:hover,
.iwales-related-pages__card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 35%, rgba(58,58,57,.10));
  box-shadow: 0 14px 34px rgba(34,34,34,.07);
}
.iwales-related-pages__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}
.iwales-related-pages__description {
  color: var(--iwales-muted);
  font-size: .9rem;
  line-height: 1.5;
}
.iwales-related-pages__arrow {
  position: absolute;
  right: 1.15rem;
  bottom: 1.08rem;
  color: var(--iwales-page-accent, var(--iwales-red));
  font-size: 1.35rem;
  font-weight: 800;
  transition: transform .18s ease;
}
.iwales-related-pages__card:hover .iwales-related-pages__arrow,
.iwales-related-pages__card:focus-visible .iwales-related-pages__arrow {
  transform: translateX(3px);
}
@media (max-width: 900px) {
  .iwales-related-pages__grid { grid-template-columns: 1fr; }
  .iwales-related-pages__card { min-height: 0; }
}
@media (max-width: 680px) {
  .iwales-related-pages {
    margin-top: 2.15rem;
    padding: 1.7rem 0 2rem;
  }
  .iwales-related-pages__inner {
    width: min(calc(100% - 28px), var(--iwales-shell));
  }
  .iwales-related-pages__card {
    padding: 1rem 3rem 1rem 1rem;
    border-radius: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .iwales-related-pages__card,
  .iwales-related-pages__arrow { transition: none; }
  .iwales-related-pages__card:hover,
  .iwales-related-pages__card:focus-visible { transform: none; }
}
@media print {
  .iwales-related-pages { display: none !important; }
}


/* =========================================================
   Accesos rápidos del pie · v0.7.31
   ========================================================= */
.iwales-footer-quick {
  width: min(calc(100% - (var(--iwales-gutter) * 2)), var(--iwales-shell));
  max-width: var(--iwales-shell);
  margin: 2rem auto .4rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}
.iwales-footer-quick-label {
  margin: 0 0 .65rem;
  color: rgba(255,255,255,.68);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.iwales-footer-quick-links {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .65rem;
}
.iwales-footer-quick-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .72rem .85rem;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: #fff !important;
  font-size: .9rem;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.iwales-footer-quick-link::after {
  content: "→";
  flex: 0 0 auto;
  opacity: .7;
  transition: transform .16s ease, opacity .16s ease;
}
.iwales-footer-quick-link:hover,
.iwales-footer-quick-link:focus-visible {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
  transform: translateY(-1px);
}
.iwales-footer-quick-link:hover::after,
.iwales-footer-quick-link:focus-visible::after {
  opacity: 1;
  transform: translateX(2px);
}
.iwales-footer-quick-link.is-primary {
  background: var(--iwales-red);
  border-color: var(--iwales-red);
}
.iwales-footer-quick-link.is-primary:hover,
.iwales-footer-quick-link.is-primary:focus-visible {
  background: color-mix(in srgb, var(--iwales-red) 88%, #000);
  border-color: transparent;
}
@media (max-width: 900px) {
  .iwales-footer-quick-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .iwales-footer-quick {
    width: min(calc(100% - 28px), var(--iwales-shell));
    margin-top: 1.4rem;
    padding: .82rem;
    border-radius: 15px;
  }
  .iwales-footer-quick-links { grid-template-columns: 1fr; gap: .5rem; }
  .iwales-footer-quick-link { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .iwales-footer-quick-link,
  .iwales-footer-quick-link::after { transition: none; transform: none !important; }
}


/* =========================================================
   Tiempo estimado de lectura · v0.7.32
   ========================================================= */
.iwales-reading-time {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: inherit;
  white-space: nowrap;
}
.iwales-reading-time::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .65;
}
@media (max-width: 680px) {
  .iwales-reading-time { white-space: normal; }
}


/* =========================================================
   Fecha de actualización de noticias · v0.7.33
   ========================================================= */
.iwales-modified-date {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: inherit;
  white-space: nowrap;
}
.iwales-modified-date::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .65;
}
@media (max-width: 680px) {
  .iwales-modified-date { white-space: normal; }
}


/* =========================================================
   Tiempo de lectura en tarjetas de Actualidad · v0.7.34
   ========================================================= */
.iwales-news-meta .iwales-reading-time {
  color: var(--iwales-muted);
  font-size: inherit;
  font-weight: 500;
}
.iwales-news-meta .iwales-reading-time::before {
  width: 3px;
  height: 3px;
  opacity: .55;
}


/* Actualidad: categorías públicas limpias · v0.7.35 */
.iwales-news-terms,
.iwales-article-terms { margin: 0 !important; }
.iwales-news-terms .wp-block-shortcode,
.iwales-article-terms .wp-block-shortcode { margin: 0 !important; }
.iwales-term-separator { opacity: .55; }


/* =========================================================
   Metadatos de Actualidad · corrección v0.7.36
   Categoría de respaldo en Query Loop + alineación común.
   ========================================================= */
.iwales-news-meta,
.iwales-article-meta {
  align-items: center !important;
}
.iwales-news-meta > *,
.iwales-article-meta > * {
  align-self: center;
  line-height: 1.35 !important;
}
.iwales-news-meta .wp-block-post-date,
.iwales-news-meta .wp-block-shortcode,
.iwales-article-meta .wp-block-post-date,
.iwales-article-meta .wp-block-post-author-name,
.iwales-article-meta .wp-block-shortcode {
  display: inline-flex;
  align-items: center;
  min-height: 1.35em;
  margin: 0 !important;
}
.iwales-news-meta .wp-block-post-date time,
.iwales-article-meta .wp-block-post-date time,
.iwales-article-meta .wp-block-post-author-name__name,
.iwales-reading-time,
.iwales-modified-date {
  line-height: 1.35 !important;
}
.iwales-news-terms .wp-block-shortcode,
.iwales-article-terms .wp-block-shortcode {
  min-height: 0;
}


/* =========================================================
   Metadatos unificados de Actualidad · v0.7.37
   Evita diferencias de caja entre bloques de fecha y shortcodes.
   ========================================================= */
.iwales-news-meta-shortcode,
.iwales-article-meta-shortcode {
  margin: 0 !important;
}
.iwales-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: 1.35;
}
.iwales-meta-line > * {
  display: inline-flex;
  align-items: center;
  min-height: 1.35em;
  margin: 0;
  padding: 0;
  line-height: 1.35 !important;
  vertical-align: middle;
}
.iwales-meta-line time,
.iwales-meta-line .iwales-meta-author,
.iwales-meta-line .iwales-reading-time,
.iwales-meta-line .iwales-modified-date {
  line-height: 1.35 !important;
}
.iwales-meta-line .iwales-reading-time::before,
.iwales-meta-line .iwales-modified-date::before {
  align-self: center;
  margin: 0;
}
.iwales-news-meta.iwales-meta-line {
  margin: 0 0 .8rem !important;
  color: var(--iwales-muted);
  font-size: .8rem;
}
.iwales-news-meta.iwales-meta-line .iwales-news-terms {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.iwales-article-meta.iwales-meta-line {
  color: rgba(255,255,255,.82);
}
@media (max-width: 680px) {
  .iwales-meta-line { gap: .45rem .75rem; }
}


/* =========================================================
   Actualidad · imagen de respaldo · v0.7.39
   Mantiene una tarjeta terminada cuando una entrada no tiene imagen destacada.
   ========================================================= */
.iwales-news-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef0ee;
}
.iwales-news-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.iwales-news-image--placeholder {
  min-height: 180px;
  background:
    radial-gradient(circle at 78% 28%, rgba(193,48,74,.12), transparent 26%),
    radial-gradient(circle at 22% 78%, rgba(29,105,155,.11), transparent 30%),
    linear-gradient(135deg, #f4f4f1 0%, #ecefea 100%);
}
.iwales-news-image--placeholder::before {
  content: "";
  position: absolute;
  inset: 18% 16%;
  background: var(--iwales-mark-color) center / contain no-repeat;
  opacity: .16;
  transform: rotate(-2deg);
}
.iwales-news-image--placeholder::after {
  content: "Iwales";
  position: absolute;
  left: 1.15rem;
  bottom: 1rem;
  color: rgba(58,58,57,.52);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.iwales-news-grid > li:first-child .iwales-news-image--placeholder {
  min-height: 100%;
  aspect-ratio: auto;
}
@media (max-width: 680px) {
  .iwales-news-image--placeholder { min-height: 150px; }
  .iwales-news-image--placeholder::before { inset: 20% 18%; }
}


/* =========================================================
   Actualidad dinámica: filtros y archivos unificados · v0.7.40
   ========================================================= */
.iwales-news-filters a.is-active,
.iwales-news-filters a[aria-current="page"] {
  background: #fff;
  color: var(--iwales-dark);
  border-color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
.iwales-news-filters--light {
  margin-top: 1.35rem;
}
.iwales-news-filters--light a {
  border-color: rgba(58,58,57,.14);
  background: rgba(255,255,255,.78);
  color: var(--iwales-dark);
}
.iwales-news-filters--light a:hover,
.iwales-news-filters--light a:focus-visible {
  background: #fff;
  border-color: rgba(58,58,57,.22);
}
.iwales-news-filters--light a.is-active,
.iwales-news-filters--light a[aria-current="page"] {
  background: var(--iwales-red);
  border-color: var(--iwales-red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(193,48,74,.18);
}
.iwales-archive-shell .iwales-news-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.iwales-archive-shell .iwales-news-card { height: 100%; }
@media (max-width: 760px) {
  .iwales-archive-shell .iwales-news-grid { grid-template-columns: 1fr; }
  .iwales-news-filters--light {
    margin-right: calc(var(--iwales-gutter) * -1) !important;
    padding-right: var(--iwales-gutter);
  }
}


/* Search / fallback result cards · v0.7.41 */
.iwales-search-result-card { height:100%; }
.iwales-search-result-card .iwales-news-card-body { min-height:100%; }
.iwales-search-result-type { color:var(--iwales-blue); font-weight:800; }
.iwales-search-result-excerpt { margin:.1rem 0 1rem; color:var(--iwales-muted); line-height:1.6; }
.iwales-search-result-link { margin-top:auto; color:var(--iwales-red); font-weight:800; text-decoration:none; }
.iwales-search-result-link:hover { text-decoration:underline; }
.iwales-search-result-card h2 { margin:0 0 .65rem; font-size:clamp(1.18rem,1.6vw,1.4rem); line-height:1.12; }
.iwales-search-result-card h2 a { color:var(--iwales-text); text-decoration:none; }


/* =========================================================
   Actualidad · navegación por años + paginación · v0.7.42
   ========================================================= */
.iwales-news-years {
  display:flex;
  align-items:center;
  gap:.42rem;
  margin-top:.85rem;
  min-width:0;
}
.iwales-news-years-label {
  flex:0 0 auto;
  color:rgba(255,255,255,.72);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.iwales-news-years-links {
  display:flex;
  align-items:center;
  gap:.32rem;
  min-width:0;
  overflow-x:auto;
  padding:.1rem 0 .18rem;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.iwales-news-years a {
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:.38rem .68rem;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:.82rem;
  font-weight:750;
  text-decoration:none;
}
.iwales-news-years a:hover,
.iwales-news-years a:focus-visible { background:rgba(255,255,255,.14); }
.iwales-news-years a.is-active,
.iwales-news-years a[aria-current="page"] {
  background:#fff;
  border-color:#fff;
  color:var(--iwales-dark);
}
.iwales-news-years--light .iwales-news-years-label { color:var(--iwales-muted); }
.iwales-news-years--light a {
  border-color:rgba(58,58,57,.14);
  background:rgba(255,255,255,.78);
  color:var(--iwales-dark);
}
.iwales-news-years--light a:hover,
.iwales-news-years--light a:focus-visible { background:#fff; border-color:rgba(58,58,57,.22); }
.iwales-news-years--light a.is-active,
.iwales-news-years--light a[aria-current="page"] {
  background:var(--iwales-red);
  border-color:var(--iwales-red);
  color:#fff;
}

/* One pagination language for home and archives. */
.iwales-news-pagination,
.iwales-archive-pagination {
  display:flex !important;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:.42rem !important;
}
.iwales-news-pagination .wp-block-query-pagination-numbers,
.iwales-archive-pagination .wp-block-query-pagination-numbers {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.34rem;
}
.iwales-news-pagination a,
.iwales-news-pagination .page-numbers,
.iwales-archive-pagination a,
.iwales-archive-pagination .page-numbers {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  min-height:42px;
  margin:0 !important;
  padding:.46rem .72rem;
  border:1px solid var(--iwales-border);
  border-radius:999px;
  background:#fff;
  color:var(--iwales-dark);
  line-height:1;
  text-decoration:none;
}
.iwales-news-pagination a:hover,
.iwales-archive-pagination a:hover,
.iwales-news-pagination a:focus-visible,
.iwales-archive-pagination a:focus-visible {
  border-color:rgba(58,58,57,.24);
  background:var(--iwales-bg);
}
.iwales-news-pagination .current,
.iwales-archive-pagination .current {
  background:var(--iwales-dark);
  color:#fff;
  border-color:var(--iwales-dark);
  font-weight:800;
}
@media (max-width:680px) {
  .iwales-news-years { align-items:flex-start; flex-direction:column; gap:.3rem; }
  .iwales-news-years-links {
    width:calc(100% + var(--iwales-gutter));
    margin-right:calc(var(--iwales-gutter) * -1);
    padding-right:var(--iwales-gutter);
  }
  .iwales-news-pagination,
  .iwales-archive-pagination { gap:.32rem !important; }
  .iwales-news-pagination a,
  .iwales-news-pagination .page-numbers,
  .iwales-archive-pagination a,
  .iwales-archive-pagination .page-numbers {
    min-width:40px;
    min-height:40px;
    padding:.42rem .62rem;
  }
}


/* =========================================================
   Progreso de lectura de noticias · v0.7.43
   Línea discreta bajo la cabecera, solo en publicaciones.
   ========================================================= */
.iwales-reading-progress {
  position: fixed;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 99;
  pointer-events: none;
  background: rgba(58,58,57,.08);
  opacity: 0;
  transition: opacity .16s ease;
}
.iwales-reading-progress.is-visible { opacity: 1; }
.iwales-reading-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--iwales-red), var(--iwales-blue));
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .iwales-reading-progress { transition: none; }
  .iwales-reading-progress-bar { will-change: auto; }
}


/* =========================================================
   Safe areas móviles · v0.7.44
   Respeta zonas de gestos/notch sin alterar escritorio.
   ========================================================= */
@media (max-width: 780px) {
  .iwales-mobile-actions {
    width: min(
      calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)),
      420px
    );
  }

  .iwales-back-to-top {
    right: max(14px, calc(env(safe-area-inset-right, 0px) + 10px));
    bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 10px));
  }

  .iwales-has-mobile-actions .iwales-back-to-top {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 1100px) {
  .iwales-site-header .wp-block-navigation__responsive-container.is-menu-open {
    padding-top: calc(1.1rem + env(safe-area-inset-top, 0px)) !important;
    padding-right: calc(var(--iwales-gutter) + env(safe-area-inset-right, 0px)) !important;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)) !important;
    padding-left: calc(var(--iwales-gutter) + env(safe-area-inset-left, 0px)) !important;
  }
}

@media (max-width: 680px) {
  .iwales-site-footer {
    padding-bottom: max(2rem, calc(1.25rem + env(safe-area-inset-bottom, 0px))) !important;
  }
}


/* =========================================================
   Búsqueda: contexto y resaltado · v0.7.45
   ========================================================= */
.iwales-search-summary {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: .15rem 0 1rem;
  color: var(--iwales-muted);
  font-size: .94rem;
  line-height: 1.45;
}
.iwales-search-summary strong { color: var(--iwales-dark); }
.iwales-search-highlight {
  padding: 0 .08em;
  border-radius: .22em;
  background: color-mix(in srgb, var(--iwales-yellow, #e3b023) 28%, #fff);
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .iwales-search-highlight { background: rgba(227,176,35,.22); }
}
@media (max-width: 680px) {
  .iwales-search-summary { margin-bottom: .85rem; font-size: .9rem; }
}


/* =========================================================
   Tablas y contenido estructurado · v0.7.46
   Mejora lectura, responsive y consistencia editorial.
   ========================================================= */
.wp-site-blocks .wp-block-table {
  width: 100%;
  margin-block: 1.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(58,58,57,.10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34,34,34,.035);
}
.wp-site-blocks .wp-block-table table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
}
.wp-site-blocks .wp-block-table th,
.wp-site-blocks .wp-block-table td {
  padding: .78rem .9rem;
  border: 0;
  border-bottom: 1px solid rgba(58,58,57,.09);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}
.wp-site-blocks .wp-block-table th {
  background: color-mix(in srgb, var(--iwales-bg) 86%, #fff);
  color: var(--iwales-dark);
  font-size: .88rem;
  font-weight: 800;
}
.wp-site-blocks .wp-block-table tbody tr:last-child > * { border-bottom: 0; }
.wp-site-blocks .wp-block-table tbody tr:nth-child(even) td {
  background: rgba(58,58,57,.018);
}
.wp-site-blocks .wp-block-table figcaption {
  margin: 0;
  padding: .72rem .9rem .8rem;
  border-top: 1px solid rgba(58,58,57,.08);
  color: var(--iwales-muted);
  font-size: .82rem;
  line-height: 1.45;
  text-align: left;
}
body[class*="iwales-family-"] .wp-block-table th {
  box-shadow: inset 0 3px 0 color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 55%, transparent);
}

/* Definition lists are useful for institutional and transparency content. */
.wp-site-blocks dl {
  margin-block: 1.25rem;
}
.wp-site-blocks dt {
  margin-top: .9rem;
  color: var(--iwales-dark);
  font-weight: 800;
}
.wp-site-blocks dd {
  margin: .25rem 0 0;
  color: var(--iwales-muted);
  line-height: 1.6;
}

/* Keep numbered lists readable without oversized browser defaults. */
.wp-site-blocks .iwales-content ol:not([class]),
.wp-site-blocks .iwales-section ol:not([class]) {
  padding-left: 1.35rem;
}
.wp-site-blocks .iwales-content ol:not([class]) > li,
.wp-site-blocks .iwales-section ol:not([class]) > li {
  padding-left: .18rem;
  margin-block: .42rem;
}

@media (max-width: 680px) {
  .wp-site-blocks .wp-block-table {
    width: calc(100% + 2px);
    margin-inline: -1px;
    border-radius: 13px;
  }
  .wp-site-blocks .wp-block-table table { min-width: 540px; }
  .wp-site-blocks .wp-block-table th,
  .wp-site-blocks .wp-block-table td {
    padding: .7rem .75rem;
    font-size: .88rem;
  }
  .wp-site-blocks .wp-block-table figcaption { padding: .65rem .75rem .72rem; }
}

@media print {
  .wp-site-blocks .wp-block-table {
    overflow: visible;
    border-color: #aaa;
    box-shadow: none;
  }
  .wp-site-blocks .wp-block-table table { min-width: 0; }
  .wp-site-blocks .wp-block-table th,
  .wp-site-blocks .wp-block-table td {
    padding: .45rem .5rem;
    border-color: #bbb;
    font-size: 9.5pt;
  }
}


/* =========================================================
   Acordeones / detalles nativos · v0.7.47
   Gutenberg wp-block-details y elementos <details> dentro del contenido.
   ========================================================= */
.wp-site-blocks .iwales-content details,
.wp-site-blocks .iwales-section details,
.wp-site-blocks .wp-block-details {
  margin-block: .85rem;
  border: 1px solid var(--iwales-border, rgba(58,58,57,.14));
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(34,34,34,.025);
  overflow: clip;
}
.wp-site-blocks .iwales-content details > summary,
.wp-site-blocks .iwales-section details > summary,
.wp-site-blocks .wp-block-details > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: .85rem 3rem .85rem 1rem;
  color: var(--iwales-dark);
  font-weight: 780;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.wp-site-blocks .iwales-content details > summary::-webkit-details-marker,
.wp-site-blocks .iwales-section details > summary::-webkit-details-marker,
.wp-site-blocks .wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-site-blocks .iwales-content details > summary::after,
.wp-site-blocks .iwales-section details > summary::after,
.wp-site-blocks .wp-block-details > summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 10%, #fff);
  color: var(--iwales-page-accent, var(--iwales-red));
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}
.wp-site-blocks .iwales-content details[open] > summary::after,
.wp-site-blocks .iwales-section details[open] > summary::after,
.wp-site-blocks .wp-block-details[open] > summary::after { content: "−"; }
.wp-site-blocks .iwales-content details > summary:hover,
.wp-site-blocks .iwales-section details > summary:hover,
.wp-site-blocks .wp-block-details > summary:hover {
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 4%, #fff);
}
.wp-site-blocks .iwales-content details > summary:focus-visible,
.wp-site-blocks .iwales-section details > summary:focus-visible,
.wp-site-blocks .wp-block-details > summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 35%, transparent);
  outline-offset: -3px;
}
.wp-site-blocks .iwales-content details[open] > summary,
.wp-site-blocks .iwales-section details[open] > summary,
.wp-site-blocks .wp-block-details[open] > summary {
  border-bottom: 1px solid var(--iwales-border, rgba(58,58,57,.12));
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 4%, #fff);
}
.wp-site-blocks .iwales-content details > :not(summary),
.wp-site-blocks .iwales-section details > :not(summary),
.wp-site-blocks .wp-block-details > :not(summary) {
  margin-left: 1rem;
  margin-right: 1rem;
}
.wp-site-blocks .iwales-content details > :last-child,
.wp-site-blocks .iwales-section details > :last-child,
.wp-site-blocks .wp-block-details > :last-child { margin-bottom: 1rem; }
.wp-site-blocks .iwales-content details > summary + *,
.wp-site-blocks .iwales-section details > summary + *,
.wp-site-blocks .wp-block-details > summary + * { margin-top: 1rem; }

@media (max-width: 680px) {
  .wp-site-blocks .iwales-content details,
  .wp-site-blocks .iwales-section details,
  .wp-site-blocks .wp-block-details { border-radius: 14px; }
  .wp-site-blocks .iwales-content details > summary,
  .wp-site-blocks .iwales-section details > summary,
  .wp-site-blocks .wp-block-details > summary {
    min-height: 50px;
    padding: .8rem 2.8rem .8rem .9rem;
    font-size: .96rem;
  }
  .wp-site-blocks .iwales-content details > :not(summary),
  .wp-site-blocks .iwales-section details > :not(summary),
  .wp-site-blocks .wp-block-details > :not(summary) {
    margin-left: .9rem;
    margin-right: .9rem;
  }
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .wp-site-blocks .iwales-content details > summary::after,
  .wp-site-blocks .iwales-section details > summary::after,
  .wp-site-blocks .wp-block-details > summary::after {
    background: var(--iwales-bg);
    color: var(--iwales-red);
  }
}

@media print {
  .wp-site-blocks details,
  .wp-site-blocks .wp-block-details {
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  .wp-site-blocks details > summary,
  .wp-site-blocks .wp-block-details > summary {
    padding: 0 0 .35rem;
    min-height: 0;
    border-bottom: 1px solid #bbb;
  }
  .wp-site-blocks details > summary::after,
  .wp-site-blocks .wp-block-details > summary::after { display: none; }
  .wp-site-blocks details > :not(summary),
  .wp-site-blocks .wp-block-details > :not(summary) {
    display: block !important;
    margin-left: 0;
    margin-right: 0;
  }
}


/* =========================================================
   Archivos y descargas nativas · v0.7.48
   Integra wp-block-file sin plugins ni JavaScript.
   ========================================================= */
.wp-site-blocks .wp-block-file {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem 1rem;
  margin-block: 1rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(58,58,57,.11);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34,34,34,.035);
}
.wp-site-blocks .wp-block-file::before {
  content: "PDF";
  position: absolute;
  top: .75rem;
  left: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 26px;
  padding: .15rem .38rem;
  border-radius: 7px;
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 11%, #fff);
  color: var(--iwales-page-accent-dark, var(--iwales-dark));
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .05em;
}
.wp-site-blocks .wp-block-file > a:not(.wp-block-file__button) {
  min-width: 0;
  padding-left: 3rem;
  color: var(--iwales-dark);
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.wp-site-blocks .wp-block-file > a:not(.wp-block-file__button):hover,
.wp-site-blocks .wp-block-file > a:not(.wp-block-file__button):focus-visible {
  color: var(--iwales-page-accent, var(--iwales-red));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wp-site-blocks .wp-block-file .wp-block-file__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0 !important;
  padding: .58rem .85rem;
  border: 0;
  border-radius: 11px;
  background: var(--iwales-page-accent, var(--iwales-red));
  color: #fff !important;
  font-size: .84rem;
  font-weight: 780;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.wp-site-blocks .wp-block-file .wp-block-file__button:hover,
.wp-site-blocks .wp-block-file .wp-block-file__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(34,34,34,.10);
  filter: brightness(.95);
}

/* WordPress may wrap file metadata/caption separately. */
.wp-site-blocks .wp-block-file figcaption,
.wp-site-blocks .wp-block-file .wp-element-caption {
  grid-column: 1 / -1;
  margin: -.15rem 0 0 3rem;
  color: var(--iwales-muted);
  font-size: .8rem;
  line-height: 1.4;
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .wp-site-blocks .wp-block-file::before {
    background: var(--iwales-bg);
    color: var(--iwales-red);
  }
}

@media (max-width: 680px) {
  .wp-site-blocks .wp-block-file {
    grid-template-columns: 1fr;
    gap: .72rem;
    padding: .9rem;
    border-radius: 14px;
  }
  .wp-site-blocks .wp-block-file::before {
    top: .72rem;
    left: .75rem;
  }
  .wp-site-blocks .wp-block-file > a:not(.wp-block-file__button) {
    min-height: 28px;
    padding-left: 2.85rem;
    padding-top: .12rem;
  }
  .wp-site-blocks .wp-block-file .wp-block-file__button {
    width: 100%;
    min-height: 46px;
  }
  .wp-site-blocks .wp-block-file figcaption,
  .wp-site-blocks .wp-block-file .wp-element-caption {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wp-site-blocks .wp-block-file .wp-block-file__button { transition: none; }
  .wp-site-blocks .wp-block-file .wp-block-file__button:hover,
  .wp-site-blocks .wp-block-file .wp-block-file__button:focus-visible { transform: none; }
}

@media print {
  .wp-site-blocks .wp-block-file {
    display: block;
    padding: .35rem 0;
    border: 0;
    border-bottom: 1px solid #bbb;
    border-radius: 0;
    box-shadow: none;
  }
  .wp-site-blocks .wp-block-file::before,
  .wp-site-blocks .wp-block-file .wp-block-file__button { display: none !important; }
  .wp-site-blocks .wp-block-file > a:not(.wp-block-file__button) {
    padding-left: 0;
    color: #000 !important;
  }
  .wp-site-blocks .wp-block-file figcaption,
  .wp-site-blocks .wp-block-file .wp-element-caption { margin-left: 0; }
}


/* =========================================================
   Citas y testimonios · v0.7.49
   Integra los bloques nativos Quote / Pullquote con Iwales.
   ========================================================= */
.wp-block-quote,
.wp-block-pullquote {
  position: relative;
  margin-block: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--iwales-dark);
}

.wp-block-quote {
  padding: 1.25rem 1.35rem 1.2rem 1.55rem;
  border: 1px solid rgba(58,58,57,.10);
  border-left: 4px solid var(--iwales-page-accent, var(--iwales-red));
  border-radius: 0 18px 18px 0;
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 4%, #fff);
  box-shadow: 0 10px 28px rgba(34,34,34,.045);
}

.wp-block-quote::before {
  content: "“";
  position: absolute;
  top: .45rem;
  right: 1rem;
  color: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 28%, transparent);
  font-family: Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  pointer-events: none;
}

.wp-block-quote p,
.wp-block-pullquote blockquote p {
  margin: 0;
  max-width: 68ch;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.68;
}

.wp-block-quote cite,
.wp-block-pullquote cite {
  display: block;
  margin-top: .8rem;
  color: var(--iwales-muted);
  font-size: .88rem;
  font-style: normal;
  font-weight: 700;
}

.wp-block-pullquote {
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  border: 0;
  border-top: 1px solid rgba(58,58,57,.10);
  border-bottom: 1px solid rgba(58,58,57,.10);
  text-align: center;
  background: transparent;
}

.wp-block-pullquote blockquote {
  margin: 0 auto;
  max-width: 820px;
}

.wp-block-pullquote blockquote p {
  margin-inline: auto;
  color: var(--iwales-dark);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  font-weight: 760;
  text-wrap: balance;
}

.wp-block-pullquote blockquote::before {
  content: "“";
  display: block;
  margin-bottom: .35rem;
  color: var(--iwales-page-accent, var(--iwales-red));
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: .8;
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .wp-block-quote { background: var(--iwales-bg); }
  .wp-block-quote::before { color: rgba(58,58,57,.16); }
}

@media (max-width: 680px) {
  .wp-block-quote {
    padding: 1.05rem 1rem 1rem 1.2rem;
    border-radius: 0 14px 14px 0;
  }
  .wp-block-quote::before {
    top: .35rem;
    right: .75rem;
    font-size: 2.7rem;
  }
  .wp-block-pullquote {
    padding: 1.5rem .9rem;
  }
  .wp-block-pullquote blockquote p {
    font-size: clamp(1.12rem, 5vw, 1.4rem);
  }
}

@media print {
  .wp-block-quote,
  .wp-block-pullquote {
    break-inside: avoid;
    box-shadow: none !important;
  }
}


/* =========================================================
   Bloque nativo Medios y texto · v0.7.50
   ========================================================= */
.wp-block-media-text {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(58,58,57,.09);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(34,34,34,.045);
}

.wp-block-media-text .wp-block-media-text__media {
  align-self: stretch;
  min-height: 100%;
  background: var(--iwales-bg);
}

.wp-block-media-text .wp-block-media-text__media img,
.wp-block-media-text .wp-block-media-text__media video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.wp-block-media-text .wp-block-media-text__content {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.wp-block-media-text .wp-block-media-text__content > :first-child { margin-top: 0; }
.wp-block-media-text .wp-block-media-text__content > :last-child { margin-bottom: 0; }

.wp-block-media-text .wp-block-media-text__content h2,
.wp-block-media-text .wp-block-media-text__content h3 {
  margin-bottom: .75rem;
  text-wrap: balance;
}

.wp-block-media-text .wp-block-media-text__content p {
  max-width: 58ch;
}

body[class*="iwales-family-"] .wp-block-media-text {
  border-color: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 14%, transparent);
}

body[class*="iwales-family-"] .wp-block-media-text .wp-block-media-text__content h2::after,
body[class*="iwales-family-"] .wp-block-media-text .wp-block-media-text__content h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: .65rem;
  border-radius: 99px;
  background: var(--iwales-page-accent, var(--iwales-red));
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  body[class*="iwales-family-"] .wp-block-media-text { border-color: rgba(58,58,57,.12); }
}

@media (max-width: 760px) {
  .wp-block-media-text,
  .wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr !important;
  }
  .wp-block-media-text .wp-block-media-text__media,
  .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  .wp-block-media-text .wp-block-media-text__content,
  .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 1.25rem 1.1rem 1.35rem;
  }
  .wp-block-media-text .wp-block-media-text__media img,
  .wp-block-media-text .wp-block-media-text__media video {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media print {
  .wp-block-media-text {
    break-inside: avoid;
    box-shadow: none !important;
  }
  .wp-block-media-text .wp-block-media-text__media img,
  .wp-block-media-text .wp-block-media-text__media video {
    min-height: 0;
  }
}


/* =========================================================
   Notas al pie y referencias · v0.7.51
   ========================================================= */
.wp-block-footnotes {
  margin-top: clamp(2.2rem, 5vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--iwales-border);
  color: var(--iwales-muted);
  font-size: .9rem;
  line-height: 1.65;
}
.wp-block-footnotes::before {
  content: "Referencias";
  display: block;
  margin-bottom: .85rem;
  color: var(--iwales-dark);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.wp-block-footnotes li {
  margin: .55rem 0;
  padding-left: .2rem;
}
.wp-block-footnotes li::marker {
  color: var(--iwales-page-accent, var(--iwales-red));
  font-weight: 800;
}
.wp-block-footnotes a {
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}
.wp-block-footnotes .fn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  margin-left: .3rem;
  border-radius: 999px;
  color: var(--iwales-page-accent, var(--iwales-red));
  text-decoration: none;
}
.wp-block-footnotes .fn-back:hover,
.wp-block-footnotes .fn-back:focus-visible {
  background: var(--iwales-bg);
}
sup a[href^="#"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15em;
  height: 1.15em;
  margin-inline: .08em;
  border-radius: 999px;
  color: var(--iwales-page-accent, var(--iwales-red));
  font-size: .72em;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
sup a[href^="#"]:hover,
sup a[href^="#"]:focus-visible {
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 10%, #fff);
}
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  sup a[href^="#"]:hover,
  sup a[href^="#"]:focus-visible { background: var(--iwales-bg); }
}
@media (max-width: 680px) {
  .wp-block-footnotes {
    margin-top: 2rem;
    font-size: .86rem;
  }
  .wp-block-footnotes li { margin: .7rem 0; }
}
@media print {
  .wp-block-footnotes {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .wp-block-footnotes .fn-back { display: none !important; }
}


/* =========================================================
   Código, preformateado y verso · v0.7.52
   ========================================================= */
.wp-block-code,
.wp-block-preformatted,
.wp-block-verse {
  margin-block: 1.35rem;
  border: 1px solid var(--iwales-border);
  border-radius: 16px;
  background: #f7f7f5;
  color: var(--iwales-dark);
  box-shadow: 0 8px 24px rgba(34,34,34,.035);
}
.wp-block-code,
.wp-block-preformatted {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem 1.1rem;
  font-size: .92rem;
  line-height: 1.65;
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}
.wp-block-code code,
.wp-block-preformatted {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre;
}
.wp-block-code {
  position: relative;
  border-top: 3px solid var(--iwales-page-accent, var(--iwales-red));
}
.wp-block-code code {
  display: block;
  min-width: max-content;
}
.wp-block-verse {
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--iwales-page-accent, var(--iwales-red));
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 4%, #fff);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.75;
  white-space: pre-wrap;
}
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .wp-block-verse { background: #fafafa; }
}
@media (max-width: 680px) {
  .wp-block-code,
  .wp-block-preformatted {
    margin-inline: 0;
    padding: .9rem;
    border-radius: 14px;
    font-size: .86rem;
  }
  .wp-block-verse {
    padding: 1rem;
    border-radius: 14px;
    font-size: .95rem;
  }
}
@media print {
  .wp-block-code,
  .wp-block-preformatted,
  .wp-block-verse {
    overflow: visible !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .wp-block-code code,
  .wp-block-preformatted { white-space: pre-wrap; }
}


/* =========================================================
   Iconos sociales nativos · v0.7.53
   ========================================================= */
.wp-block-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-block: 1rem 1.35rem;
  padding: 0;
}
.wp-block-social-links .wp-social-link {
  margin: 0 !important;
  border: 1px solid color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 18%, var(--iwales-border));
  border-radius: 999px;
  background: #fff !important;
  color: var(--iwales-page-accent, var(--iwales-red)) !important;
  box-shadow: 0 6px 18px rgba(34,34,34,.04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.wp-block-social-links .wp-social-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: .65rem;
  color: inherit !important;
}
.wp-block-social-links .wp-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.wp-block-social-links .wp-social-link:hover,
.wp-block-social-links .wp-social-link:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 42%, var(--iwales-border));
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 6%, #fff) !important;
  box-shadow: 0 10px 24px rgba(34,34,34,.07);
}
.wp-block-social-links .wp-social-link a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 28%, transparent);
  outline-offset: 3px;
  border-radius: 999px;
}
.wp-block-social-links.has-small-icon-size .wp-social-link a {
  min-width: 40px;
  min-height: 40px;
  padding: .55rem;
}
.wp-block-social-links.has-large-icon-size .wp-social-link a,
.wp-block-social-links.has-huge-icon-size .wp-social-link a {
  min-width: 48px;
  min-height: 48px;
}
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .wp-block-social-links .wp-social-link { border-color: var(--iwales-border); }
  .wp-block-social-links .wp-social-link:hover,
  .wp-block-social-links .wp-social-link:focus-within { background: var(--iwales-bg) !important; }
  .wp-block-social-links .wp-social-link a:focus-visible { outline-color: var(--iwales-page-accent, var(--iwales-red)); }
}
@media (max-width: 680px) {
  .wp-block-social-links {
    gap: .5rem;
    margin-block: .9rem 1.15rem;
  }
  .wp-block-social-links .wp-social-link a {
    min-width: 46px;
    min-height: 46px;
  }
}
@media (hover: none) {
  .wp-block-social-links .wp-social-link:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-block-social-links .wp-social-link { transition: none; }
}
@media print {
  .wp-block-social-links { display: none !important; }
}


/* =========================================================
   Audio y vídeo nativos · v0.7.54
   ========================================================= */
.wp-block-video,
.wp-block-audio {
  margin-block: 1.25rem 1.6rem;
}
.wp-block-video video,
.wp-block-audio audio {
  display: block;
  width: 100%;
  max-width: 100%;
}
.wp-block-video video {
  border-radius: 18px;
  background: #111;
  box-shadow: 0 12px 34px rgba(34,34,34,.08);
}
.wp-block-audio {
  padding: .85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 16%, var(--iwales-border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 3%, #fff);
  box-shadow: 0 8px 24px rgba(34,34,34,.04);
}
.wp-block-audio audio {
  min-height: 42px;
}
.wp-block-video figcaption,
.wp-block-audio figcaption {
  margin: .65rem .15rem 0;
  color: var(--iwales-muted);
  font-size: .84rem;
  line-height: 1.5;
}
.wp-block-embed.is-type-video .wp-block-embed__wrapper {
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 12px 34px rgba(34,34,34,.08);
}
.wp-block-embed.is-type-video iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .wp-block-audio {
    border-color: var(--iwales-border);
    background: #fafafa;
  }
}
@media (max-width: 680px) {
  .wp-block-video,
  .wp-block-audio {
    margin-block: 1rem 1.3rem;
  }
  .wp-block-video video,
  .wp-block-embed.is-type-video .wp-block-embed__wrapper {
    border-radius: 14px;
  }
  .wp-block-audio {
    padding: .7rem .75rem;
    border-radius: 14px;
  }
}
@media print {
  .wp-block-video,
  .wp-block-audio,
  .wp-block-embed.is-type-video {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
  }
  .wp-block-video video,
  .wp-block-audio audio,
  .wp-block-embed.is-type-video iframe {
    display: none !important;
  }
  .wp-block-video figcaption,
  .wp-block-audio figcaption {
    color: #444 !important;
  }
}


/* =========================================================
   Abreviaturas, términos y resaltados editoriales · v0.7.55
   ========================================================= */
.iwales-content abbr[title],
.iwales-post-content abbr[title],
.entry-content abbr[title] {
  text-decoration: underline dotted color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 65%, currentColor);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  cursor: help;
}

.iwales-content abbr[title]:focus,
.iwales-post-content abbr[title]:focus,
.entry-content abbr[title]:focus {
  outline: 3px solid color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 28%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

.iwales-content mark,
.iwales-post-content mark,
.entry-content mark {
  padding: .08em .2em;
  border-radius: .28em;
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-yellow, #e3b023)) 18%, #fff);
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.iwales-content small,
.iwales-post-content small,
.entry-content small {
  color: var(--iwales-muted);
  font-size: .86em;
  line-height: 1.5;
}

.iwales-content sup,
.iwales-content sub,
.iwales-post-content sup,
.iwales-post-content sub,
.entry-content sup,
.entry-content sub {
  position: relative;
  font-size: .72em;
  line-height: 0;
  vertical-align: baseline;
}
.iwales-content sup,
.iwales-post-content sup,
.entry-content sup { top: -.5em; }
.iwales-content sub,
.iwales-post-content sub,
.entry-content sub { bottom: -.2em; }

@media (forced-colors: active) {
  .iwales-content mark,
  .iwales-post-content mark,
  .entry-content mark {
    border: 1px solid CanvasText;
    background: Highlight;
    color: HighlightText;
  }
}

@media print {
  .iwales-content abbr[title]::after,
  .iwales-post-content abbr[title]::after,
  .entry-content abbr[title]::after {
    content: " (" attr(title) ")";
    text-decoration: none;
    font-weight: 400;
  }
  .iwales-content mark,
  .iwales-post-content mark,
  .entry-content mark {
    background: transparent !important;
    border-bottom: 1px solid currentColor;
  }
}


/* =========================================================
   Lectura y tipografía · v0.7.56
   Ajuste fino de ritmo editorial sin alterar componentes.
   ========================================================= */
:where(.iwales-content, .iwales-post-content, .entry-content) p {
  line-height: 1.72;
  text-wrap: pretty;
}

:where(.iwales-content, .iwales-post-content, .entry-content) > p:not(.has-text-align-center) {
  max-width: 72ch;
}

:where(.iwales-content, .iwales-post-content, .entry-content) h2,
:where(.iwales-content, .iwales-post-content, .entry-content) h3 {
  text-wrap: balance;
}

:where(.iwales-content, .iwales-post-content, .entry-content) h2 {
  line-height: 1.12;
  margin-block-end: .68em;
}

:where(.iwales-content, .iwales-post-content, .entry-content) h3 {
  line-height: 1.18;
  margin-block-end: .58em;
}

:where(.iwales-content, .iwales-post-content, .entry-content) :is(ul, ol) {
  line-height: 1.62;
}

:where(.iwales-content, .iwales-post-content, .entry-content) :is(li + li) {
  margin-top: .28em;
}

@media (max-width: 980px) {
  :where(.iwales-content, .iwales-post-content, .entry-content) p {
    line-height: 1.68;
  }
}

@media (max-width: 680px) {
  :where(.iwales-content, .iwales-post-content, .entry-content) p {
    line-height: 1.64;
  }
  :where(.iwales-content, .iwales-post-content, .entry-content) h2 {
    line-height: 1.14;
  }
  :where(.iwales-content, .iwales-post-content, .entry-content) h3 {
    line-height: 1.2;
  }
}


/* =========================================================
   Estados vacíos y contenido incompleto · v0.7.57
   Mantiene una salida útil cuando todavía no hay contenido.
   ========================================================= */
.iwales-empty-state,
.iwales-news-empty,
.iwales-archive-empty {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px dashed color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 30%, var(--iwales-border));
  border-radius: 22px;
  background: color-mix(in srgb, var(--iwales-page-accent, var(--iwales-red)) 3%, #fff);
}
.iwales-empty-state::after,
.iwales-news-empty::after,
.iwales-archive-empty::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 145px;
  height: 145px;
  background: var(--iwales-mark-light) center/contain no-repeat;
  opacity: .055;
  pointer-events: none;
}
.iwales-empty-state > *,
.iwales-news-empty > *,
.iwales-archive-empty > * { position: relative; z-index: 1; }
.iwales-empty-state h2,
.iwales-empty-state h3,
.iwales-news-empty h2,
.iwales-news-empty h3,
.iwales-archive-empty h2,
.iwales-archive-empty h3 {
  margin-top: 0;
  margin-bottom: .55rem;
}
.iwales-empty-state p,
.iwales-news-empty p,
.iwales-archive-empty p {
  max-width: 62ch;
  margin-top: 0;
  color: var(--iwales-muted);
}
.iwales-empty-state .wp-block-buttons,
.iwales-news-empty .wp-block-buttons,
.iwales-archive-empty .wp-block-buttons {
  margin-top: 1.05rem !important;
}
@media (max-width: 680px) {
  .iwales-empty-state,
  .iwales-news-empty,
  .iwales-archive-empty { border-radius: 18px; }
  .iwales-empty-state .wp-block-buttons,
  .iwales-news-empty .wp-block-buttons,
  .iwales-archive-empty .wp-block-buttons { width: 100%; }
  .iwales-empty-state .wp-block-button,
  .iwales-news-empty .wp-block-button,
  .iwales-archive-empty .wp-block-button { width: 100%; }
  .iwales-empty-state .wp-block-button__link,
  .iwales-news-empty .wp-block-button__link,
  .iwales-archive-empty .wp-block-button__link { width: 100%; justify-content: center; }
}


/* =========================================================
   Revisión final de navegación móvil · v0.7.58
   Refuerza zonas táctiles y evita solapamientos en anchos pequeños.
   ========================================================= */
@media (max-width: 780px) {
  .iwales-header-inner {
    gap: .55rem !important;
  }

  .iwales-header-inner > .iwales-brand {
    flex: 1 1 auto !important;
    min-width: 0;
  }

  .iwales-brand-link {
    max-width: 100%;
  }

  .iwales-brand-logo {
    width: min(176px, 42vw);
    max-width: 100%;
    height: auto;
  }

  .iwales-main-nav,
  .iwales-header-search {
    flex: 0 0 auto;
  }

  .iwales-site-header .wp-block-navigation__responsive-container-open,
  .iwales-header-search > summary {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  .iwales-header-search-panel {
    top: calc(70px + env(safe-area-inset-top, 0px) + 8px);
    left: max(12px, calc(env(safe-area-inset-left, 0px) + 12px));
    right: max(12px, calc(env(safe-area-inset-right, 0px) + 12px));
    max-height: calc(100dvh - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .iwales-page-jump-links {
    scroll-padding-inline: .35rem;
    overscroll-behavior-inline: contain;
  }

  .iwales-page-jump-links a,
  .iwales-mobile-action,
  .iwales-back-to-top {
    touch-action: manipulation;
  }

  .iwales-mobile-actions {
    max-width: calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 420px) {
  .iwales-header-inner {
    gap: .42rem !important;
  }

  .iwales-brand-logo {
    width: min(164px, 40vw);
  }

  .iwales-site-header .wp-block-navigation__responsive-container-open,
  .iwales-header-search > summary {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .iwales-page-jump-wrap {
    width: calc(100% - 24px) !important;
  }

  .iwales-page-jump-nav {
    padding: .65rem .62rem .58rem;
  }

  .iwales-page-jump-links a {
    min-height: 42px;
    padding-inline: .62rem;
  }

  .iwales-mobile-actions {
    gap: 6px;
    padding: 7px;
  }

  .iwales-mobile-action {
    min-height: 48px;
    padding-inline: .52rem;
    font-size: .86rem;
  }
}

@media (max-width: 340px) {
  .iwales-brand-logo {
    width: min(146px, 39vw);
  }

  .iwales-header-inner {
    gap: .3rem !important;
  }

  .iwales-mobile-action {
    font-size: .82rem;
  }
}


/* =========================================================
   Consistencia final de CTA y microtextos · v0.7.59
   Los enlaces de navegación conservan nombres de sección; los botones de acción usan verbos.
   ========================================================= */


/* =========================================================
   Proyectos dinámicos · v0.7.60
   Las páginas hijas de /proyectos/ se convierten en fichas públicas.
   ========================================================= */
.iwales-projects-dynamic {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(1.15rem,2vw,1.6rem);
  margin-top:1.4rem;
}
.iwales-projects-dynamic-card {
  position:relative;
  display:flex;
  min-width:0;
  min-height:100%;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(58,58,57,.10);
  border-radius:26px;
  background:#fff;
  box-shadow:0 16px 46px rgba(34,34,34,.08);
  color:var(--iwales-dark);
  text-decoration:none !important;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.iwales-projects-dynamic-card:hover {
  transform:translateY(-4px);
  border-color:color-mix(in srgb,var(--iwales-page-accent,var(--iwales-blue)) 32%,transparent);
  box-shadow:0 24px 60px rgba(34,34,34,.13);
}
.iwales-projects-dynamic-media {
  position:relative;
  display:block;
  aspect-ratio:16/9;
  overflow:hidden;
  background:linear-gradient(145deg,#eef4f7,#f8f4f5);
}
.iwales-projects-dynamic-media img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.iwales-projects-dynamic-placeholder::before {
  content:"";
  position:absolute;
  inset:12%;
  background-image:var(--iwales-mark-color);
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  opacity:.10;
}
.iwales-projects-dynamic-body {
  display:flex;
  flex:1;
  flex-direction:column;
  padding:clamp(1.2rem,2.2vw,1.7rem);
}
.iwales-projects-dynamic-kicker {
  margin:0 0 .65rem;
  color:var(--iwales-page-accent,var(--iwales-blue));
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.iwales-projects-dynamic-card h3,
.iwales-projects-dynamic-card h4 {
  margin:0 0 .7rem;
  color:var(--iwales-dark);
  font-size:clamp(1.35rem,1.9vw,1.72rem);
  line-height:1.12;
}
.iwales-projects-dynamic-excerpt {
  margin:0;
  color:var(--iwales-muted);
  line-height:1.62;
}
.iwales-projects-dynamic-cta {
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  margin-top:auto;
  padding-top:1.2rem;
  color:var(--iwales-page-accent,var(--iwales-blue));
  font-weight:800;
}
.iwales-projects-fallback-note {
  margin:.9rem 0 0;
  color:var(--iwales-muted);
  font-size:.9rem;
}

/* Detail pages created as children of Proyectos use the same visual family. */
.iwales-project-detail .iwales-page-hero {
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#153d55,#1d699b 62%,#285d72);
}
.iwales-project-detail .iwales-page-hero::after {
  content:"";
  position:absolute;
  width:min(36vw,390px);
  aspect-ratio:1;
  right:clamp(-70px,2vw,20px);
  top:50%;
  transform:translateY(-50%) rotate(-4deg);
  background-image:var(--iwales-mark-white);
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  opacity:.07;
  pointer-events:none;
}
.iwales-project-detail .iwales-page-hero .wp-block-post-title {
  position:relative;
  z-index:1;
  color:#fff !important;
}
.iwales-project-detail .iwales-content {
  padding-top:clamp(1.6rem,3vw,2.6rem);
}
.iwales-project-breadcrumb {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.45rem;
  margin:0 0 1.4rem;
  color:var(--iwales-muted);
  font-size:.9rem;
}
.iwales-project-breadcrumb a {
  color:var(--iwales-page-accent,var(--iwales-blue));
  font-weight:750;
  text-decoration:none;
}
.iwales-project-breadcrumb a:hover { text-decoration:underline; }

@media (max-width:760px) {
  .iwales-projects-dynamic { grid-template-columns:1fr; }
  .iwales-projects-dynamic-card:hover { transform:none; }
  .iwales-projects-dynamic-card { border-radius:22px; }
  .iwales-projects-dynamic-body { padding:1.25rem; }
  .iwales-project-detail .iwales-page-hero::after { width:260px; right:-95px; }
}

@media (prefers-reduced-motion:reduce) {
  .iwales-projects-dynamic-card { transition:none; }
  .iwales-projects-dynamic-card:hover { transform:none; }
}


/* Project detail enrichment: lead, highlights and sponsor area */
.iwales-project-lead {
  margin:0 0 1.6rem;
  font-size:clamp(1.15rem,2vw,1.42rem);
  line-height:1.7;
  color:#213547;
  max-width:68ch;
}
.iwales-project-highlight,
.iwales-project-section-card,
.iwales-project-sponsor,
.iwales-project-callout {
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  border-radius:24px;
  box-shadow:0 18px 45px rgba(19,37,53,.06);
}
.iwales-project-highlight {
  padding:1.6rem;
  margin:0 0 2rem;
}
.iwales-project-highlight p:last-child { margin-bottom:0; }
.iwales-project-meta {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(165px,1fr));
  gap:1rem;
  margin-top:1.25rem;
}
.iwales-project-meta-item {
  padding:1rem 1.05rem;
  border-radius:18px;
  background:linear-gradient(180deg,#f8fafc,#eef4f8);
  border:1px solid rgba(29,105,155,.12);
}
.iwales-project-meta-item strong {
  display:block;
  margin:0 0 .35rem;
  color:#1d699b;
  font-size:.82rem;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.iwales-project-meta-item span {
  display:block;
  color:#202736;
  font-weight:700;
  line-height:1.45;
}
.iwales-project-section-card {
  padding:1.45rem 1.5rem;
  height:100%;
}
.iwales-project-section-card h3 {
  margin-top:0;
  margin-bottom:.65rem;
  font-size:1.38rem;
}
.iwales-project-section-card ul { margin:.65rem 0 0 1.1rem; }
.iwales-project-section-card li + li { margin-top:.55rem; }
.iwales-project-sponsor {
  margin:1.9rem 0 2rem;
  padding:1.35rem 1.45rem;
  display:flex;
  align-items:center;
  gap:1.25rem;
  flex-wrap:wrap;
  background:linear-gradient(135deg,#fbfdff,#f3f7fb);
}
.iwales-project-sponsor-copy {
  flex:1 1 320px;
  min-width:260px;
}
.iwales-project-sponsor-copy p:last-child { margin-bottom:0; }
.iwales-project-sponsor-kicker {
  margin:0 0 .45rem;
  color:#1d699b;
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.iwales-project-sponsor-logo {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:-1.15rem 0 2rem;
  padding:0;
  border:0;
  background:transparent;
}
.iwales-project-sponsor-logo img {
  display:block;
  width:100%;
  max-width:728px;
  height:auto;
  border-radius:14px;
}
.iwales-project-callout {
  padding:1.5rem;
  margin-top:1.2rem;
}
.iwales-project-callout .iwales-actions { margin-top:1rem; }
@media (max-width:760px) {
  .iwales-project-highlight,
  .iwales-project-section-card,
  .iwales-project-sponsor,
  .iwales-project-callout { border-radius:20px; }
  .iwales-project-highlight { padding:1.25rem; }
  .iwales-project-sponsor { padding:1.15rem; }
  .iwales-project-sponsor-logo { width:100%; justify-content:center; margin:-.8rem 0 1.6rem; }
  .iwales-project-sponsor-logo img { width:100%; max-width:728px; border-radius:10px; }
}


/* Fast-Track public results and activity highlights · v0.7.62 */
.iwales-project-results {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
  margin:2rem 0 2.25rem;
}
.iwales-project-result {
  padding:1.15rem 1.1rem;
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#f7fafc);
  border:1px solid rgba(29,105,155,.12);
  box-shadow:0 10px 28px rgba(23,65,92,.05);
}
.iwales-project-result strong {
  display:block;
  margin:0 0 .3rem;
  color:var(--iwales-page-accent,var(--iwales-blue));
  font-size:clamp(1.55rem,3vw,2.2rem);
  line-height:1;
}
.iwales-project-result span {
  display:block;
  color:#384556;
  font-size:.92rem;
  line-height:1.4;
}
.iwales-project-activity-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
  margin:1.2rem 0 2rem;
}
.iwales-project-activity-card {
  padding:1.35rem 1.4rem;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
}
.iwales-project-activity-card h3 { margin:.1rem 0 .55rem; font-size:1.25rem; }
.iwales-project-activity-card p { margin:0; color:#465365; }
.iwales-project-method {
  margin:2rem 0;
  padding:1.5rem;
  border-radius:24px;
  background:linear-gradient(135deg,#173f59,#1d699b);
  color:#fff;
}
.iwales-project-method h2,.iwales-project-method h3 { color:#fff; }
.iwales-project-method p,.iwales-project-method li { color:rgba(255,255,255,.88); }
.iwales-project-method ul { margin-bottom:0; }
@media (max-width:900px) {
  .iwales-project-results { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:680px) {
  .iwales-project-results,
  .iwales-project-activity-grid { grid-template-columns:1fr; }
  .iwales-project-result,
  .iwales-project-activity-card,
  .iwales-project-method { border-radius:18px; }
}


/* Fast-Track evidence gallery · v0.7.63 */
.iwales-fasttrack-media {
  margin:2rem 0 2.4rem;
}
.iwales-fasttrack-media-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
}
.iwales-fasttrack-media-card {
  margin:0;
  overflow:hidden;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  box-shadow:0 14px 36px rgba(19,37,53,.06);
}
.iwales-fasttrack-media-card img {
  display:block;
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  background:#fff;
}
.iwales-fasttrack-media-card figcaption {
  padding:.9rem 1rem 1rem;
  color:#445166;
  font-size:.9rem;
  line-height:1.45;
}
.iwales-fasttrack-evidence {
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
  gap:1.4rem;
  align-items:center;
  margin:2rem 0 2.4rem;
  padding:1.25rem;
  border-radius:24px;
  background:linear-gradient(135deg,#f7fafc,#eef5f8);
  border:1px solid rgba(29,105,155,.1);
}
.iwales-fasttrack-evidence img {
  display:block;
  width:100%;
  border-radius:18px;
  border:1px solid rgba(17,24,39,.08);
}
.iwales-fasttrack-evidence-copy h3 { margin:.1rem 0 .65rem; }
.iwales-fasttrack-evidence-copy p:last-child { margin-bottom:0; }
@media (max-width:900px) {
  .iwales-fasttrack-media-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-fasttrack-evidence { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .iwales-fasttrack-media-grid { grid-template-columns:1fr; }
  .iwales-fasttrack-media-card,
  .iwales-fasttrack-evidence { border-radius:18px; }
  .iwales-fasttrack-evidence { padding:1rem; }
}


/* Arte PositHIVo project detail: cultural / editorial visual language */
body.iwales-project-arte-posithivo { --iwales-page-accent:#c1304a; }
.iwales-project-arte-posithivo .iwales-page-hero {
  background:
    radial-gradient(circle at 82% 24%,rgba(227,176,35,.18),transparent 24%),
    radial-gradient(circle at 68% 78%,rgba(229,17,74,.16),transparent 28%),
    linear-gradient(135deg,#242423 0%,#3a3032 50%,#70293a 100%);
}
.iwales-project-arte-posithivo .iwales-page-hero::after {
  opacity:.05;
  transform:translateY(-50%) rotate(8deg);
}
.iwales-art-project-intro {
  position:relative;
  overflow:hidden;
  margin:0 0 2rem;
  padding:clamp(1.5rem,3vw,2.35rem);
  border-radius:28px;
  background:linear-gradient(135deg,#fff7f8,#fff 55%,#fff9ed);
  border:1px solid rgba(193,48,74,.12);
  box-shadow:0 20px 50px rgba(32,22,26,.06);
}
.iwales-art-project-intro::after {
  content:"I = I";
  position:absolute;
  right:clamp(-20px,2vw,28px);
  bottom:clamp(-18px,-1vw,-8px);
  font-size:clamp(4.8rem,13vw,9.5rem);
  line-height:.85;
  font-weight:900;
  letter-spacing:-.08em;
  color:rgba(193,48,74,.055);
  pointer-events:none;
}
.iwales-art-project-intro > * { position:relative; z-index:1; }
.iwales-art-project-intro .iwales-project-lead { max-width:64ch; color:#2c2a2b; }
.iwales-art-project-quote {
  margin:1.6rem 0 0;
  max-width:20ch;
  font-size:clamp(1.7rem,4vw,3.2rem);
  line-height:.98;
  font-weight:900;
  letter-spacing:-.035em;
  color:#c1304a;
}
.iwales-art-project-principles {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin:1.5rem 0 2.2rem;
}
.iwales-art-project-principle {
  min-height:170px;
  padding:1.35rem;
  border-radius:22px;
  background:#2f2f2e;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.iwales-art-project-principle:nth-child(2){ background:#c1304a; }
.iwales-art-project-principle:nth-child(3){ background:#1d699b; }
.iwales-art-project-principle::after {
  content:"";
  position:absolute;
  width:90px;
  height:90px;
  right:-25px;
  bottom:-25px;
  border-radius:50%;
  border:18px solid rgba(255,255,255,.07);
}
.iwales-art-project-principle strong {
  display:block;
  margin-bottom:.55rem;
  font-size:1.12rem;
}
.iwales-art-project-principle p { margin:0; color:rgba(255,255,255,.83); }
.iwales-art-project-territories {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
  margin:1.4rem 0 2.4rem;
}
.iwales-art-project-territory {
  min-height:205px;
  padding:1.25rem;
  border-radius:22px;
  border:1px solid rgba(17,24,39,.08);
  background:#fff;
  box-shadow:0 14px 35px rgba(32,22,26,.045);
}
.iwales-art-project-territory .num {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:2.15rem;
  height:2.15rem;
  margin-bottom:1rem;
  border-radius:50%;
  background:#f9e7ec;
  color:#a9283e;
  font-weight:900;
  font-size:.85rem;
}
.iwales-art-project-territory h3 { margin:.05rem 0 .55rem; font-size:1.22rem; }
.iwales-art-project-territory p { margin:0; color:#5e626b; }
.iwales-art-project-method {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:.7rem;
  margin:1.2rem 0 2.2rem;
}
.iwales-art-project-step {
  padding:1rem .85rem;
  min-height:125px;
  border-radius:18px;
  background:#f7f7f5;
  border:1px solid rgba(17,24,39,.07);
}
.iwales-art-project-step strong {
  display:block;
  margin-bottom:.45rem;
  color:#c1304a;
  font-size:.76rem;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.iwales-art-project-step span { display:block; font-weight:800; line-height:1.25; }
.iwales-art-project-avoid {
  margin:2rem 0;
  padding:clamp(1.4rem,3vw,2rem);
  border-radius:26px;
  background:linear-gradient(135deg,#2d2d2c,#3a3a39);
  color:#fff;
}
.iwales-art-project-avoid h2 { color:#fff; }
.iwales-art-project-avoid p { color:rgba(255,255,255,.82); }
.iwales-art-project-tags {
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  margin-top:1rem;
}
.iwales-art-project-tags span {
  display:inline-flex;
  padding:.55rem .85rem;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-weight:750;
  font-size:.9rem;
}
.iwales-art-project-phrases {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-rows:auto;
  align-items:stretch;
  gap:1rem;
  margin:1.2rem 0 2.2rem;
}
.iwales-art-project-phrase {
  display:grid;
  align-content:end;
  min-width:0;
  min-height:200px;
  height:auto;
  box-sizing:border-box;
  padding:1.35rem;
  border-radius:24px;
  font-size:clamp(1.22rem,2.05vw,1.82rem);
  line-height:1.09;
  font-weight:900;
  letter-spacing:-.02em;
  overflow-wrap:anywhere;
  word-break:normal;
  hyphens:auto;
  background:#f8edf0;
  color:#852237;
}
.iwales-art-project-phrase:nth-child(2){ background:#eaf3f8; color:#174c6d; }
.iwales-art-project-phrase:nth-child(3){ background:#fff6df; color:#7b590d; }
/* Reusable protection for project cards: content must wrap and cards must grow with it. */
.iwales-art-project-principle,
.iwales-art-project-territory,
.iwales-art-project-step,
.iwales-art-project-phrase,
.iwales-project-section-card,
.iwales-project-meta-item {
  min-width:0;
  box-sizing:border-box;
}
.iwales-art-project-principle *,
.iwales-art-project-territory *,
.iwales-art-project-step *,
.iwales-art-project-phrase *,
.iwales-project-section-card *,
.iwales-project-meta-item * {
  max-width:100%;
  overflow-wrap:break-word;
  word-break:normal;
}
@media (max-width:980px){
  .iwales-art-project-territories { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-art-project-method { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:700px){
  .iwales-art-project-principles,
  .iwales-art-project-phrases { grid-template-columns:1fr; }
  .iwales-art-project-territories { grid-template-columns:1fr; }
  .iwales-art-project-method { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-art-project-principle,
  .iwales-art-project-territory,
  .iwales-art-project-phrase { min-height:0; }
}

/* Annual project editions: evergreen project hub + year-specific posts. */
.iwales-project-editions {
  margin-top:clamp(2.2rem,5vw,4rem);
  padding-top:clamp(2rem,4vw,3.2rem);
  border-top:1px solid rgba(17,24,39,.1);
}
.iwales-project-editions-head { max-width:760px; margin-bottom:1.4rem; }
.iwales-project-editions-head h2 { margin:.25rem 0 .55rem; }
.iwales-project-editions-head p:last-child { margin-bottom:0; color:var(--iwales-muted); }
.iwales-project-editions-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.2rem;
}
.iwales-project-edition-card {
  display:grid;
  grid-template-columns:minmax(150px,34%) 1fr;
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(17,24,39,.08);
  border-radius:24px;
  background:#fff;
  box-shadow:0 16px 42px rgba(19,37,53,.06);
}
.iwales-project-edition-media {
  display:block;
  min-height:210px;
  background:linear-gradient(145deg,#173f58,#1d699b);
  overflow:hidden;
}
.iwales-project-edition-media img { width:100%; height:100%; object-fit:cover; display:block; }
.iwales-project-edition-media--placeholder {
  position:relative;
  background:linear-gradient(145deg,#183f57,#1d699b 65%,#c1304a);
}
.iwales-project-edition-media--placeholder::after {
  content:"";
  position:absolute;
  inset:20%;
  background-image:var(--iwales-mark-white);
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
  opacity:.12;
}
.iwales-project-edition-body { padding:1.25rem 1.3rem 1.35rem; min-width:0; }
.iwales-project-edition-topline { display:flex; align-items:center; gap:.6rem; margin-bottom:.55rem; }
.iwales-project-edition-year {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:.2rem .65rem;
  border-radius:999px;
  background:#eef6fb;
  color:#1d699b;
  font-size:.82rem;
  font-weight:850;
}
.iwales-project-edition-status {
  display:inline-flex;
  padding:.2rem .55rem;
  border-radius:999px;
  background:#fff5d9;
  color:#7d5a08;
  font-size:.76rem;
  font-weight:800;
}
.iwales-project-edition-stage {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:.2rem .6rem;
  border-radius:999px;
  font-size:.76rem;
  font-weight:850;
}
.iwales-project-edition-stage.is-documented { background:#edf7ef; color:#146c2e; }
.iwales-project-edition-stage.is-planning { background:#eef4ff; color:#1d4f91; }
.iwales-project-edition-stage.is-not-ready { background:#fff7df; color:#8a5d00; }
.iwales-project-edition-stage.is-review { background:#f0f0f1; color:#50575e; }
.iwales-project-edition-stagebar {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin:0 0 1.5rem;
  padding:1rem 1.1rem;
  border:1px solid rgba(17,24,39,.08);
  border-left:4px solid #1d699b;
  border-radius:16px;
  background:#f7fbfd;
}
.iwales-project-edition-stagebar.is-documented { border-left-color:#2f7d46; background:#f5fbf6; }
.iwales-project-edition-stagebar.is-planning { border-left-color:#1d699b; background:#f5f9fd; }
.iwales-project-edition-stagebar.is-not-ready { border-left-color:#e3b023; background:#fffaf0; }
.iwales-project-edition-stagebar.is-review { border-left-color:#777; background:#f7f7f7; }
.iwales-project-edition-stagebar-label {
  display:inline-block;
  margin-bottom:.28rem;
  font-weight:850;
}
.iwales-project-edition-stagebar p { margin:0; color:var(--iwales-muted); }
.iwales-project-edition-preview {
  flex:0 0 auto;
  display:inline-flex;
  padding:.28rem .65rem;
  border-radius:999px;
  background:#fff5d9;
  color:#7d5a08;
  font-size:.78rem;
  font-weight:850;
  white-space:nowrap;
}
.iwales-project-edition-card h3 { margin:.15rem 0 .6rem; font-size:clamp(1.25rem,2vw,1.55rem); line-height:1.12; }
.iwales-project-edition-card h3 a { color:inherit; text-decoration:none; }
.iwales-project-edition-card p { margin:0 0 .9rem; color:var(--iwales-muted); }
.iwales-project-edition-link { color:#c1304a; font-weight:800; text-decoration:none; }
.iwales-project-edition-breadcrumb { margin-bottom:1.5rem; }
body.iwales-project-edition .iwales-article-hero,
body.iwales-project-edition .iwales-post-hero {
  background:linear-gradient(135deg,#153d55,#1d699b 62%,#3f3840);
}
@media (max-width:900px) {
  .iwales-project-editions-grid { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .iwales-project-edition-card { grid-template-columns:1fr; }
  .iwales-project-edition-media { min-height:190px; }
  .iwales-project-edition-topline { align-items:flex-start; flex-wrap:wrap; }
  .iwales-project-edition-stagebar { flex-direction:column; }
  .iwales-project-edition-preview { white-space:normal; }
}


/* =========================================================
   Iwales Info · biblioteca pública · v0.7.69
   Comparte el mismo lenguaje visual de las páginas interiores:
   hero oscuro, acento por familia, geometría de tarjetas y ritmo editorial.
   ========================================================= */
body.iwales-family-information {
  --iwales-page-accent: #1d699b;
  --iwales-page-accent-dark: #154d73;
  --iwales-page-soft: #edf6fb;
}

/* Root and section heroes deliberately mirror the service-page hero instead
   of creating a visually separate microsite. */
.iwales-info-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3.8rem, 7vw, 6.4rem) 0 clamp(3.5rem, 6vw, 5.6rem);
  border-radius: 0 0 34px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 105%, rgba(29,105,155,.34), transparent 35%),
    linear-gradient(123deg, #252524 0%, #303131 55%, #263a47 100%);
  box-shadow: inset 0 -5px 0 var(--iwales-page-accent);
}
.iwales-info-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-30px, 3vw, 52px);
  top: 50%;
  width: clamp(250px, 29vw, 430px);
  height: clamp(165px, 19vw, 285px);
  transform: translateY(-47%) rotate(-4deg);
  background: var(--iwales-mark-white) center / contain no-repeat;
  opacity: .10;
  pointer-events: none;
}
.iwales-info-hero > .wp-block-group {
  width: min(calc(100% - (var(--iwales-gutter) * 2)), var(--iwales-shell)) !important;
  max-width: var(--iwales-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.iwales-info-hero .iwales-kicker { color: var(--iwales-gold) !important; }
.iwales-info-hero h1 {
  max-width: 880px;
  margin: .35rem 0 1rem;
  color: #fff !important;
  font-size: clamp(2.7rem, 5vw, 4.65rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.iwales-info-hero .iwales-info-lead {
  max-width: 760px;
  margin: 0 0 1.5rem;
  color: rgba(255,255,255,.91);
  font-size: clamp(1.08rem, 1.6vw, 1.34rem);
  line-height: 1.55;
}

/* Hub and section shells use the same maximum width and spacing as the
   validated service/institutional pages. */
.iwales-info-shell,
.iwales-info-section-shell {
  width: min(calc(100% - (var(--iwales-gutter) * 2)), var(--iwales-shell));
  max-width: var(--iwales-shell);
  margin-inline: auto;
  padding-block: clamp(3.8rem, 6.2vw, 5.4rem);
}
.iwales-info-section-shell { display: grid; gap: 2rem; }
.iwales-info-section-head { max-width: 760px; margin-bottom: 1.35rem; }
.iwales-info-section-head h2 {
  margin: .15rem 0 .55rem;
  letter-spacing: -.035em;
  line-height: 1.07;
  text-wrap: balance;
}
.iwales-info-section-head p:last-child { margin-bottom: 0; }

/* Search panel follows the rounded side-card language used elsewhere. */
.iwales-info-search {
  background: linear-gradient(145deg, #fff, var(--iwales-page-soft));
  border: 1px solid color-mix(in srgb, var(--iwales-page-accent) 18%, var(--iwales-border));
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  box-shadow: 0 16px 38px rgba(26,54,74,.07);
  margin-bottom: clamp(2.4rem, 4vw, 3.4rem);
}
.iwales-info-search form {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(190px,.55fr) auto;
  gap: .8rem;
  align-items: end;
}
.iwales-info-search label {
  display: block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .035em;
  color: #384451;
  margin-bottom: .4rem;
}
.iwales-info-search input[type=search],
.iwales-info-search select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid #c8d2da;
  border-radius: 14px;
  padding: .72rem .9rem;
  background: #fff;
  color: #1d2327;
  font: inherit;
}
.iwales-info-search input[type=search]:focus,
.iwales-info-search select:focus {
  outline: 3px solid color-mix(in srgb, var(--iwales-page-accent) 22%, transparent);
  outline-offset: 2px;
  border-color: var(--iwales-page-accent);
}
.iwales-info-search button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: .72rem 1.25rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: var(--iwales-page-accent);
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--iwales-page-accent) 20%, transparent);
}
.iwales-info-search button:hover { background: var(--iwales-page-accent-dark); }
.iwales-info-search-note { margin: .72rem 0 0; color: #5a6670; font-size: .9rem; line-height: 1.5; }

.iwales-info-section-grid,
.iwales-info-results,
.iwales-info-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.iwales-info-section-card,
.iwales-info-result-card,
.iwales-info-article-card {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--iwales-border);
  border-top: 3px solid color-mix(in srgb, var(--iwales-page-accent) 78%, #fff);
  border-radius: 22px;
  background: #fff;
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 30px rgba(26,54,74,.045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.iwales-info-section-card:hover,
.iwales-info-result-card:hover,
.iwales-info-article-card:hover {
  border-top-color: var(--iwales-page-accent);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--iwales-page-accent) 11%, transparent);
  transform: translateY(-2px);
}
.iwales-info-topic {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 .72rem;
  padding: .32rem .62rem;
  border: 1px solid color-mix(in srgb, var(--iwales-page-accent) 18%, transparent);
  border-radius: 999px;
  background: var(--iwales-page-soft);
  color: var(--iwales-page-accent);
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: .72rem;
  line-height: 1;
  font-weight: 800;
}
.iwales-info-section-card strong {
  margin: .05rem 0 .5rem;
  color: var(--iwales-dark);
  font-size: 1.22rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.iwales-info-section-card p,
.iwales-info-result-card p,
.iwales-info-article-card p {
  margin: .15rem 0 0;
  color: #59646e;
  line-height: 1.58;
}
.iwales-info-result-card h3,
.iwales-info-article-card h3 {
  margin: .05rem 0 .55rem;
  color: var(--iwales-dark);
  font-size: 1.16rem;
  line-height: 1.18;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.iwales-info-count,
.iwales-info-read {
  margin-top: auto;
  padding-top: 1.05rem;
  color: var(--iwales-page-accent);
  font-weight: 800;
  font-size: .9rem;
}

.iwales-info-index {
  margin-top: clamp(2.8rem, 5vw, 4.2rem);
  padding-top: clamp(2rem, 3vw, 2.8rem);
  border-top: 1px solid var(--iwales-border);
}
.iwales-info-index h2 { margin: .15rem 0 .7rem; letter-spacing: -.035em; }
.iwales-info-index-list {
  columns: 3 250px;
  column-gap: 2rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.iwales-info-index-list li { break-inside: avoid; margin: 0 0 .62rem; }
.iwales-info-index-list a { color: var(--iwales-page-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.iwales-info-empty {
  border: 1px dashed color-mix(in srgb, var(--iwales-page-accent) 28%, #b9c6cf);
  border-radius: 20px;
  padding: 1.4rem;
  background: var(--iwales-page-soft);
}
.iwales-info-empty p:last-child { margin-bottom: 0; }

/* Information detail pages retain the generic article template, but the hero
   now uses the same visual DNA as the rest of the site. */
body.iwales-family-information.iwales-info-detail .iwales-page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3.2rem, 6vw, 5rem);
  border-radius: 0 0 34px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 108%, rgba(29,105,155,.32), transparent 34%),
    linear-gradient(123deg, #252524 0%, #303131 58%, #263a47 100%);
  box-shadow: inset 0 -5px 0 var(--iwales-page-accent);
}
body.iwales-family-information.iwales-info-detail .iwales-page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-35px, 3vw, 48px);
  top: 50%;
  width: clamp(220px, 25vw, 360px);
  height: clamp(145px, 17vw, 240px);
  transform: translateY(-48%) rotate(-4deg);
  background: var(--iwales-mark-white) center / contain no-repeat;
  opacity: .08;
  pointer-events: none;
}
body.iwales-family-information.iwales-info-detail .iwales-page-hero > .wp-block-post-title {
  position: relative;
  z-index: 1;
  max-width: 900px !important;
  color: #fff !important;
  font-size: clamp(2.35rem, 4.7vw, 4.05rem) !important;
  line-height: 1.03 !important;
  letter-spacing: -.038em;
  text-wrap: balance;
}
body.iwales-family-information.iwales-info-detail .iwales-content {
  padding-block: clamp(2.8rem, 5vw, 4.4rem);
}
body.iwales-family-information.iwales-info-detail .iwales-content > p.has-large-font-size:first-of-type {
  color: #33414b;
  line-height: 1.55;
}
.iwales-info-breadcrumb {
  width: 100%;
  margin: 0 0 1.25rem;
  font-size: .88rem;
  color: #64717b;
}
.iwales-info-breadcrumb a { color: var(--iwales-page-accent); font-weight: 700; }
.iwales-info-review {
  display: flex;
  gap: .55rem 1.05rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 1.15rem 0 1.9rem;
  padding: .9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--iwales-page-accent) 16%, var(--iwales-border));
  border-radius: 16px;
  background: var(--iwales-page-soft);
  color: #44515b;
  font-size: .9rem;
}
.iwales-info-review strong { color: var(--iwales-page-accent); }
.iwales-info-callout {
  border: 1px solid color-mix(in srgb, var(--iwales-page-accent) 18%, var(--iwales-border));
  border-left: 5px solid var(--iwales-page-accent);
  background: linear-gradient(145deg, #fff, var(--iwales-page-soft));
  padding: 1rem 1.15rem;
  border-radius: 0 16px 16px 0;
  margin: 1.45rem 0;
}
.iwales-info-callout p:last-child { margin-bottom: 0; }
.iwales-info-danger { border-left-color: #c1304a; background: #fff5f7; }
.iwales-info-sources {
  margin-top: 2.4rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--iwales-border);
  border-radius: 18px;
  background: #fafbfc;
  font-size: .92rem;
  color: #58636c;
}
.iwales-info-sources ul { margin: .75rem 0 0 1.1rem; }

/* Two-level reading pattern: a short orientation first, followed by the full article. */
.iwales-info-summary {
  margin: 0 0 1.2rem;
  padding: clamp(1.15rem, 2.6vw, 1.5rem);
  border: 1px solid color-mix(in srgb, var(--iwales-page-accent) 18%, var(--iwales-border));
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, var(--iwales-page-soft));
  box-shadow: 0 12px 30px rgba(26,54,74,.045);
}
.iwales-info-summary-label {
  display: inline-block;
  margin: 0 0 .55rem;
  color: var(--iwales-page-accent);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.iwales-info-summary p {
  margin: 0;
  color: #33414b;
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  line-height: 1.55;
}
.iwales-info-expanded {
  margin-top: clamp(1.7rem, 3vw, 2.4rem);
}
.iwales-info-expanded-label {
  margin: 0 0 .35rem;
  color: var(--iwales-gold);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.iwales-info-expanded > h2:first-of-type {
  margin-top: .2rem;
}
.iwales-info-urgent-action {
  display: grid;
  gap: .45rem;
  margin: 1.35rem 0;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: #fff5f7;
  border: 1px solid #f1cbd2;
  border-left: 6px solid var(--iwales-red);
}
.iwales-info-urgent-action strong {
  color: #8f2136;
  font-size: 1.02rem;
}
.iwales-info-urgent-action p { margin: 0; }
.iwales-info-key-points {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .8rem;
  margin: 1.25rem 0 1.6rem;
}
.iwales-info-key-point {
  border: 1px solid var(--iwales-border);
  border-radius: 16px;
  padding: .95rem 1rem;
  background: #fff;
}
.iwales-info-key-point strong { display:block; color:var(--iwales-page-accent); margin-bottom:.2rem; }
.iwales-info-key-point p { margin:0; color:#53606a; }


/* Keep the section page visually complete even though its slug matches the
   existing /salud-sexual/ template and therefore uses the integrated template. */
.iwales-info-section-shell .iwales-info-article-grid { margin-top: .25rem; }
.iwales-info-section-cta {
  margin-top: .8rem;
  padding: clamp(1.35rem, 3vw, 1.8rem);
  border-radius: 22px;
  background: linear-gradient(120deg, var(--iwales-page-soft), #fff 72%);
  border: 1px solid color-mix(in srgb, var(--iwales-page-accent) 16%, var(--iwales-border));
}
.iwales-info-section-cta h2 { margin: .1rem 0 .55rem; }
.iwales-info-section-cta p { max-width: 720px; }

@media (max-width: 980px) {
  .iwales-info-search form { grid-template-columns: 1fr 1fr; }
  .iwales-info-search button { grid-column: 1 / -1; justify-self: start; }
  .iwales-info-section-grid,
  .iwales-info-results,
  .iwales-info-article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .iwales-info-hero {
    padding: 3.35rem 0 3.45rem;
    border-radius: 0 0 26px 26px;
    box-shadow: inset 0 -4px 0 var(--iwales-page-accent);
  }
  .iwales-info-hero::after { right: -120px; opacity: .065; }
  .iwales-info-hero h1 { font-size: clamp(2.45rem,12vw,3.35rem) !important; }
  .iwales-info-search form,
  .iwales-info-section-grid,
  .iwales-info-results,
  .iwales-info-article-grid { grid-template-columns: 1fr; }
  .iwales-info-search button { grid-column: auto; width: 100%; justify-self: stretch; }
  .iwales-info-index-list { columns: 1; }
  .iwales-info-key-points { grid-template-columns: 1fr; }
  body.iwales-family-information.iwales-info-detail .iwales-page-hero {
    padding-block: 2.8rem 3.1rem;
    border-radius: 0 0 26px 26px;
    box-shadow: inset 0 -4px 0 var(--iwales-page-accent);
  }
  body.iwales-family-information.iwales-info-detail .iwales-page-hero::after { right: -120px; opacity: .055; }
}

/* Iwales Info · contextual glossary -------------------------------------- */
.iwales-info-term {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0 .04em;
  border: 0;
  border-bottom: 1.5px dashed color-mix(in srgb, var(--iwales-page-accent) 72%, transparent);
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: help;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.iwales-info-term:hover,
.iwales-info-term:focus-visible {
  color: var(--iwales-page-accent);
  background: color-mix(in srgb, var(--iwales-page-accent) 8%, transparent);
  border-bottom-color: var(--iwales-page-accent);
}
html.iwales-glossary-open { overflow: hidden; }
.iwales-info-glossary-overlay[hidden] { display: none !important; }
.iwales-info-glossary-overlay {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(26, 32, 36, .42);
  backdrop-filter: blur(3px);
}
.iwales-info-glossary-dialog {
  position: relative;
  width: min(100%, 470px);
  max-height: min(78vh, 620px);
  overflow: auto;
  padding: 1.45rem 1.45rem 1.35rem;
  border: 1px solid color-mix(in srgb, var(--iwales-page-accent) 18%, var(--iwales-border));
  border-top: 5px solid var(--iwales-page-accent);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(23, 37, 47, .24);
}
.iwales-info-glossary-close {
  position: absolute;
  top: .75rem;
  right: .8rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--iwales-border);
  border-radius: 999px;
  background: #fff;
  color: #39454d;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.iwales-info-glossary-close:hover { background: #f5f7f8; }
.iwales-info-glossary-eyebrow {
  margin: 0 3rem .35rem 0;
  color: var(--iwales-gold);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.iwales-info-glossary-dialog h2 {
  margin: 0 2.4rem .7rem 0;
  color: var(--iwales-text);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.iwales-info-glossary-definition {
  margin: 0;
  color: #47545e;
  font-size: 1rem;
  line-height: 1.62;
}
.iwales-info-glossary-more {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  margin-top: 1.15rem;
  color: var(--iwales-page-accent);
  font-weight: 800;
  text-decoration: none;
}
.iwales-info-glossary-plus {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--iwales-page-accent);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  transition: transform .16s ease, background-color .16s ease;
}
.iwales-info-glossary-more:hover .iwales-info-glossary-plus { transform: scale(1.07); }

@media (max-width: 680px) {
  .iwales-info-glossary-overlay {
    place-items: end center;
    padding: 0;
  }
  .iwales-info-glossary-dialog {
    width: 100%;
    max-height: 78vh;
    padding: 1.4rem 1.2rem calc(1.35rem + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }
}

/* Iwales Info · expanded editorial components (v0.7.73) ----------------- */
.iwales-info-table-wrap {
  margin: 1.45rem 0 1.8rem;
  overflow-x: auto;
  border: 1px solid var(--iwales-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(26,54,74,.04);
}
.iwales-info-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: .94rem;
}
.iwales-info-table th,
.iwales-info-table td {
  padding: .85rem .95rem;
  border-bottom: 1px solid var(--iwales-border);
  text-align: left;
  vertical-align: top;
}
.iwales-info-table th {
  background: var(--iwales-page-soft);
  color: var(--iwales-dark);
  font-weight: 800;
}
.iwales-info-table tbody tr:last-child td { border-bottom: 0; }
.iwales-info-table-note {
  margin: 0;
  padding: .85rem .95rem;
  border-top: 1px solid var(--iwales-border);
  color: #64717b;
  font-size: .82rem;
  line-height: 1.5;
}
.iwales-info-myths {
  margin: 1.75rem 0;
  padding: clamp(1.1rem, 2.5vw, 1.4rem);
  border: 1px solid color-mix(in srgb, var(--iwales-page-accent) 16%, var(--iwales-border));
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, var(--iwales-page-soft));
}
.iwales-info-myths > h2 { margin: 0 0 1rem; }
.iwales-info-myth {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .12rem .7rem;
  padding: .9rem 0;
  border-top: 1px solid color-mix(in srgb, var(--iwales-border) 76%, transparent);
}
.iwales-info-myth:first-of-type { border-top: 0; padding-top: 0; }
.iwales-info-myth:last-child { padding-bottom: 0; }
.iwales-info-myth strong,
.iwales-info-myth span {
  align-self: start;
  min-width: 68px;
  color: var(--iwales-red);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.iwales-info-myth span { color: var(--iwales-page-accent); }
.iwales-info-myth p { margin: 0 0 .35rem; color: #46535d; }
.iwales-info-faq {
  margin: 1.8rem 0;
}
.iwales-info-faq > h2 { margin-bottom: .8rem; }
.iwales-info-faq details {
  margin: .65rem 0;
  border: 1px solid var(--iwales-border);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}
.iwales-info-faq summary {
  position: relative;
  cursor: pointer;
  padding: .95rem 2.7rem .95rem 1rem;
  color: var(--iwales-dark);
  font-weight: 780;
  list-style: none;
}
.iwales-info-faq summary::-webkit-details-marker { display: none; }
.iwales-info-faq summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--iwales-page-soft);
  color: var(--iwales-page-accent);
  font-weight: 900;
}
.iwales-info-faq details[open] summary::after { content: "−"; }
.iwales-info-faq details[open] summary { background: var(--iwales-page-soft); }
.iwales-info-faq details > p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: #53606a;
  line-height: 1.62;
}

@media (max-width: 680px) {
  .iwales-info-myth { grid-template-columns: 1fr; gap: .2rem; }
  .iwales-info-myth strong,
  .iwales-info-myth span { min-width: 0; margin-top: .15rem; }
  .iwales-info-table { font-size: .9rem; }
}


/* Iwales Info · Clínica Legal (v0.7.75) */
.iwales-legal-hero {
  --iwales-legal-blue: #7ea8b9;
  background: linear-gradient(135deg,#17313f 0%,#254b5e 52%,#6e9aac 100%) !important;
}
.iwales-legal-hero::after { opacity:.07 !important; }
.iwales-legal-hero .iwales-kicker { color:#f2c14e !important; }
.iwales-legal-hero .iwales-info-lead { max-width:780px; }
.iwales-legal-intro-note {
  background:#f4f8fa;
  border:1px solid #d8e5ea;
  border-left:5px solid #6f9daf;
  border-radius:18px;
  padding:1.2rem 1.35rem;
  color:#344650;
}
.iwales-legal-intro-note strong { color:#17313f; }
.iwales-legal-card {
  padding:0 !important;
  overflow:hidden;
}
.iwales-legal-card > .iwales-info-topic,
.iwales-legal-card > h3,
.iwales-legal-card > p,
.iwales-legal-card > .iwales-info-read { margin-left:1.35rem; margin-right:1.35rem; }
.iwales-legal-card > .iwales-info-topic { margin-top:1.25rem; }
.iwales-legal-card > .iwales-info-read { margin-bottom:1.35rem; }
.iwales-legal-card-visual {
  position:relative;
  min-height:255px;
  display:block;
  padding:1.25rem 1.35rem 1.4rem;
  background:linear-gradient(135deg,#83aebe 0%,#789faf 100%);
  color:#172027;
  overflow:hidden;
}
.iwales-legal-card-visual::after {
  content:"";
  position:absolute;
  right:-6%;
  bottom:-27%;
  width:58%;
  aspect-ratio:1;
  border-radius:50%;
  background:rgba(21,35,42,.08);
  box-shadow:-82px -42px 0 rgba(255,255,255,.07);
}
.iwales-legal-card-number {
  display:inline-block;
  margin-right:.55rem;
  color:#fff;
  font-weight:900;
  font-size:2.35rem;
  line-height:1;
  letter-spacing:-.05em;
}
.iwales-legal-card-series {
  display:inline-block;
  vertical-align:top;
  padding-left:.65rem;
  border-left:2px solid rgba(255,255,255,.8);
  color:#fff;
  font-family:Georgia,serif;
  font-size:.93rem;
  line-height:1.12;
}
.iwales-legal-card-title {
  display:block;
  position:relative;
  z-index:1;
  max-width:78%;
  margin-top:1.35rem;
  font-size:1.75rem;
  line-height:1.03;
  font-weight:850;
  letter-spacing:-.04em;
}
.iwales-legal-card-title::first-letter { color:inherit; }
.iwales-legal-card-language {
  position:absolute;
  top:1rem;
  right:1rem;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:50%;
  color:#fff;
  background:#1f1d1d;
  font-size:.72rem;
  font-weight:800;
}
.iwales-legal-article-top {
  display:grid;
  gap:1.5rem;
  margin:0 0 2rem;
  align-items:start;
}
.iwales-legal-cover-panel {
  position:relative;
  min-height:430px;
  border-radius:22px;
  overflow:hidden;
  background:#7ea8b9;
  box-shadow:0 18px 44px rgba(21,42,52,.13);
}
.iwales-legal-cover-panel iframe {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:#fff;
}
.iwales-legal-cover-fallback {
  position:absolute;
  inset:0;
  z-index:0;
  padding:1.8rem;
  color:#172027;
  background:linear-gradient(145deg,#84afbf,#749aa9);
}
.iwales-legal-cover-fallback strong { display:block; max-width:80%; margin-top:2rem; font-size:2rem; line-height:1.05; }
.iwales-legal-cover-fallback span { display:block; color:#fff; font-weight:800; }
.iwales-legal-source-card {
  background:#fff;
  border:1px solid #dfe6e9;
  border-radius:22px;
  padding:1.35rem 1.45rem;
  box-shadow:0 14px 38px rgba(25,45,57,.07);
}
.iwales-legal-source-card .iwales-kicker { margin-bottom:.35rem; }
.iwales-legal-source-card h2 { margin:.1rem 0 .7rem; font-size:clamp(1.45rem,2.7vw,2.15rem); }
.iwales-legal-source-card p { color:#4d5b63; }
.iwales-legal-source-card .iwales-legal-meta {
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin:.85rem 0 1rem;
}
.iwales-legal-source-card .iwales-legal-meta span {
  border-radius:999px;
  padding:.42rem .72rem;
  background:#eef5f7;
  border:1px solid #d4e4ea;
  font-size:.82rem;
  font-weight:700;
  color:#31566a;
}
.iwales-legal-attribution {
  margin:1.5rem 0;
  padding:1.2rem 1.35rem;
  border-radius:18px;
  background:#fff8e7;
  border:1px solid #ecd9a5;
  color:#50452d;
}
.iwales-legal-attribution strong { color:#2b3034; }
.iwales-legal-update {
  margin:1.6rem 0;
  padding:1.3rem 1.4rem;
  border-radius:18px;
  border-left:5px solid #c1304a;
  background:#fff5f7;
}
.iwales-legal-update strong { color:#8d2035; }
.iwales-legal-deadline {
  display:grid;
  grid-template-columns:auto 1fr;
  gap:1rem;
  align-items:center;
  margin:1.5rem 0;
  padding:1.15rem 1.25rem;
  border-radius:18px;
  background:#172d39;
  color:#fff;
}
.iwales-legal-deadline-number { font-size:2.5rem; line-height:1; font-weight:900; color:#f2c14e; }
.iwales-legal-deadline p { margin:0; color:#fff; }
.iwales-legal-actions-grid {
  display:grid;
  gap:.8rem;
  margin:1.2rem 0 1.6rem;
}
.iwales-legal-action {
  border:1px solid #e0e6e9;
  border-radius:16px;
  padding:1rem 1.05rem;
  background:#fff;
}
.iwales-legal-action strong { display:block; margin-bottom:.25rem; color:#315f73; }
.iwales-legal-action p { margin:0; color:#4e5c64; }
@media (min-width:850px) {
  .iwales-legal-article-top { grid-template-columns:minmax(280px,.82fr) minmax(0,1.18fr); }
  .iwales-legal-actions-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  .iwales-legal-card-visual { min-height:225px; }
  .iwales-legal-card-title { max-width:84%; font-size:1.55rem; }
  .iwales-legal-cover-panel { min-height:360px; }
  .iwales-legal-deadline { grid-template-columns:1fr; gap:.4rem; }
}

body.iwales-family-information.iwales-info-legal-detail .iwales-page-hero {
  background:linear-gradient(135deg,#17313f 0%,#476f81 48%,#7ea8b9 100%) !important;
}
body.iwales-family-information.iwales-info-legal-detail .iwales-page-hero::after { opacity:.055 !important; }
body.iwales-family-information.iwales-info-legal-detail .iwales-page-hero .wp-block-post-title { max-width:900px; }


/* Iwales Info · visor limpio de folletos de Clínica Legal (v0.7.84) */
.iwales-legal-cover-panel {
  cursor: default;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.iwales-legal-cover-panel iframe {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  transform-origin: 50% 50%;
  will-change: transform;
  transition: transform .22s ease;
}
.iwales-legal-cover-panel.is-zoomed {
  cursor: grab;
}
.iwales-legal-cover-panel.is-dragging {
  cursor: grabbing;
}
.iwales-legal-cover-panel.is-dragging iframe {
  transition: none;
}
.iwales-legal-viewer-control {
  position: absolute;
  z-index: 4;
  top: .85rem;
  right: .85rem;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(31,29,29,.88);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.iwales-legal-viewer-control:hover,
.iwales-legal-viewer-control:focus-visible {
  background: #1f1d1d;
  transform: translateY(-1px);
}
.iwales-legal-viewer-control:focus-visible {
  outline: 3px solid #f2c14e;
  outline-offset: 3px;
}
.iwales-legal-viewer-control svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.iwales-legal-viewer-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: .8rem;
  transform: translateX(-50%);
  margin: 0;
  padding: .38rem .7rem;
  border-radius: 999px;
  background: rgba(31,29,29,.78);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.iwales-legal-cover-panel.is-zoomed .iwales-legal-viewer-hint {
  opacity: 1;
}
@media (max-width: 560px) {
  .iwales-legal-viewer-control {
    top: .65rem;
    right: .65rem;
    width: 44px;
    height: 44px;
  }
  .iwales-legal-viewer-hint { bottom: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .iwales-legal-cover-panel iframe,
  .iwales-legal-viewer-control,
  .iwales-legal-viewer-hint { transition: none !important; }
}


.iwales-legal-cover-panel.iwales-legal-cover-static{background:transparent;overflow:hidden;display:block;aspect-ratio:1 / 1;min-height:0}.iwales-legal-cover-image{position:absolute;inset:0}.iwales-legal-cover-image img{width:100%;height:100%;display:block;object-fit:contain;object-position:center top;background:transparent}

/* Clínica Legal · portada y ficha con altura coordinada (v0.7.84) */
@media (min-width:850px){
  .iwales-legal-article-top{align-items:start;}
  .iwales-legal-article-top > .iwales-legal-cover-panel.iwales-legal-cover-static{height:auto;min-height:0;aspect-ratio:1 / 1;background:transparent;border:0;display:block;}
  .iwales-legal-article-top > .iwales-legal-source-card{height:auto;box-sizing:border-box;}
  .iwales-legal-cover-panel.iwales-legal-cover-static .iwales-legal-cover-image{display:block;width:100%;height:100%;background:transparent;}
  .iwales-legal-cover-panel.iwales-legal-cover-static .iwales-legal-cover-image img{width:100%;height:100%;object-fit:contain;object-position:center top;background:transparent;}
}


/* Clínica Legal · composición definitiva de folletos (v0.7.89) */
.iwales-legal-article-top-v2{
  display:grid;
  gap:1rem 1.5rem;
  margin:0 0 2rem;
  align-items:start;
}
.iwales-legal-article-top-v2 .iwales-legal-cover-panel{grid-area:cover;}
.iwales-legal-article-top-v2 .iwales-legal-source-card{grid-area:source;}
.iwales-legal-article-top-v2 .iwales-legal-attribution-compact{
  grid-area:attribution;
  margin:0;
  padding:1rem 1.05rem;
  font-size:.9rem;
  line-height:1.55;
}
.iwales-legal-license-note{
  margin:1.5rem 0;
  padding:1rem 1.15rem;
  border-radius:16px;
  background:#f7fafc;
  border:1px solid #d9e5eb;
  color:#56636a;
  font-size:.9rem;
}
.iwales-legal-license-note p{margin:0;}
@media (min-width:850px){
  .iwales-legal-article-top-v2{
    grid-template-columns:minmax(280px,.82fr) minmax(0,1.18fr);
    grid-template-areas:
      "cover source"
      "attribution source";
  }
  .iwales-legal-article-top-v2 .iwales-legal-cover-panel.iwales-legal-cover-static{
    width:100%;
    height:auto;
    min-height:0;
    aspect-ratio:1 / 1;
    background:transparent;
    border:0;
  }
  .iwales-legal-article-top-v2 .iwales-legal-cover-image,
  .iwales-legal-article-top-v2 .iwales-legal-cover-image img{
    width:100%;
    height:100%;
  }
  .iwales-legal-article-top-v2 .iwales-legal-cover-image img{
    object-fit:contain;
    object-position:center top;
  }
}
@media (max-width:849px){
  .iwales-legal-article-top-v2{
    grid-template-columns:1fr;
    grid-template-areas:"cover" "source" "attribution";
  }
}


/* Clínica Legal: the public catalogue must reuse the actual cover stored in each article. */
.iwales-legal-card-visual.iwales-legal-card-cover-real{
  min-height:0;
  padding:0;
  aspect-ratio:1 / 1;
  background:transparent;
}
.iwales-legal-card-visual.iwales-legal-card-cover-real::after{display:none;}
.iwales-legal-card-visual.iwales-legal-card-cover-real img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* Clínica Legal · biblioteca navegable (v0.7.90) */
.iwales-legal-library { margin-top:1rem; }
.iwales-legal-library-tools {
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(260px,.85fr);
  gap:1rem 1.25rem;
  align-items:end;
  margin:0 0 1.4rem;
  padding:1.1rem 1.2rem;
  border:1px solid #d8e5ea;
  border-radius:20px;
  background:linear-gradient(135deg,#f7fafb 0%,#fff 100%);
  box-shadow:0 10px 28px rgba(23,49,63,.045);
}
.iwales-legal-library-search label,
.iwales-legal-library-ranges > span {
  display:block;
  margin:0 0 .45rem;
  color:#17313f;
  font-weight:800;
}
.iwales-legal-library-search-row { display:flex; gap:.55rem; }
.iwales-legal-library-search input {
  width:100%;
  min-height:48px;
  border:1px solid #c8d9e0;
  border-radius:14px;
  padding:.7rem .9rem;
  background:#fff;
  color:inherit;
  font:inherit;
}
.iwales-legal-library-search input:focus { border-color:#1d699b; outline:3px solid rgba(29,105,155,.14); outline-offset:1px; }
.iwales-legal-library-search p { margin:.5rem 0 0; color:#64727b; font-size:.88rem; line-height:1.45; }
.iwales-legal-library-submit,
.iwales-legal-library-clear,
.iwales-legal-library-range-buttons button {
  min-height:42px;
  border:1px solid #bed2dc;
  border-radius:999px;
  padding:.55rem .82rem;
  background:#fff;
  color:#234654;
  font:inherit;
  font-size:.88rem;
  font-weight:800;
  cursor:pointer;
}
.iwales-legal-library-submit:hover,
.iwales-legal-library-clear:hover,
.iwales-legal-library-range-buttons button:hover { border-color:#6f9daf; background:#eef5f7; }
.iwales-legal-library-range-buttons { display:flex; flex-wrap:wrap; gap:.45rem; }
.iwales-legal-library-range-buttons button.is-active { background:#17313f; border-color:#17313f; color:#fff; }
.iwales-legal-library-status {
  grid-column:1/-1;
  padding-top:.8rem;
  border-top:1px solid #e0eaee;
  color:#5c6c74;
  font-size:.92rem;
}
.iwales-legal-library-status strong { color:#17313f; font-size:1.05rem; }
.iwales-legal-library-grid > .iwales-legal-library-item { min-width:0; }
.iwales-legal-library-grid > .iwales-legal-library-item[hidden] { display:none !important; }
.iwales-legal-library-item > .iwales-info-article-card { height:100%; }
.iwales-legal-library-empty { margin-top:1rem; }
@media (max-width:800px){
  .iwales-legal-library-tools { grid-template-columns:1fr; }
  .iwales-legal-library-status { grid-column:auto; }
}
@media (max-width:540px){
  .iwales-legal-library-tools { padding:1rem; border-radius:16px; }
  .iwales-legal-library-search-row { display:block; }
  .iwales-legal-library-clear { width:100%; margin-top:.5rem; }
  .iwales-legal-library-range-buttons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iwales-legal-library-range-buttons button:first-child { grid-column:1/-1; }
}

/* Clínica Legal · búsqueda confirmada y tramos dinámicos (v0.7.91) */
.iwales-legal-library-submit {
  border-color:#17313f;
  background:#17313f;
  color:#fff;
  border-radius:14px;
  padding-inline:1rem;
  white-space:nowrap;
}
.iwales-legal-library-submit:hover { background:#234654; border-color:#234654; }
@media (max-width:540px){
  .iwales-legal-library-search-row { display:grid; grid-template-columns:1fr auto; }
  .iwales-legal-library-search-row input { grid-column:1/-1; }
  .iwales-legal-library-submit { width:100%; }
  .iwales-legal-library-clear { width:100%; margin-top:0; }
}


/* Clínica Legal · temáticas y aviso de síntesis (v0.7.93) */
.iwales-legal-library-browse{display:flex;gap:.75rem;align-items:flex-end;justify-content:space-between;}
.iwales-legal-library-browse .iwales-legal-library-ranges{flex:1;}
.iwales-legal-library-topic-toggle{
  min-height:42px;border:1px solid #17313f;border-radius:14px;padding:.55rem .9rem;background:#fff;color:#17313f;
  font:inherit;font-size:.9rem;font-weight:800;cursor:pointer;white-space:nowrap;
}
.iwales-legal-library-topic-toggle:hover,.iwales-legal-library-topic-toggle[aria-expanded="true"]{background:#17313f;color:#fff;}
.iwales-legal-library-topic-toggle span{display:inline-block;min-width:1.1em;text-align:center;}
.iwales-legal-library-topics{grid-column:1/-1;padding:1rem;border:1px solid #d8e5ea;border-radius:16px;background:#fff;}
.iwales-legal-library-topics[hidden]{display:none!important;}
.iwales-legal-library-topics-head{display:flex;gap:.5rem 1rem;align-items:baseline;justify-content:space-between;margin-bottom:.75rem;}
.iwales-legal-library-topics-head strong{color:#17313f;}
.iwales-legal-library-topics-head span{color:#64727b;font-size:.84rem;}
.iwales-legal-library-topic-buttons{display:flex;flex-wrap:wrap;gap:.45rem;}
.iwales-legal-library-topic-buttons button{
  min-height:40px;border:1px solid #bed2dc;border-radius:999px;padding:.5rem .72rem;background:#f8fbfc;color:#234654;
  font:inherit;font-size:.84rem;font-weight:750;cursor:pointer;
}
.iwales-legal-library-topic-buttons button:hover{border-color:#6f9daf;background:#eef5f7;}
.iwales-legal-library-topic-buttons button.is-active{background:#17313f;border-color:#17313f;color:#fff;}
.iwales-legal-library-topic-buttons button span{display:inline-flex;align-items:center;justify-content:center;min-width:1.55rem;height:1.55rem;margin-left:.35rem;padding:0 .35rem;border-radius:999px;background:rgba(29,105,155,.10);font-size:.75rem;}
.iwales-legal-library-topic-buttons button.is-active span{background:rgba(255,255,255,.18);}
.iwales-legal-card-topics{display:flex;flex-wrap:wrap;gap:.32rem;margin:.55rem 1.35rem 0;}
.iwales-legal-card-topics span{display:inline-block;border-radius:999px;padding:.26rem .5rem;background:#f3f7f9;color:#47616d;font-size:.69rem;font-weight:750;line-height:1.15;}
.iwales-legal-summary-notice{margin:1rem 0 1.4rem;padding:1rem 1.1rem;border:1px solid #cfe0e7;border-left:4px solid var(--iwales-blue);border-radius:14px;background:#f7fbfc;color:#314850;}
.iwales-legal-summary-notice>div:first-child>strong{display:block;margin-bottom:.3rem;color:#17313f;font-size:1.02rem;}
.iwales-legal-summary-notice p{margin:.25rem 0;line-height:1.55;}
.iwales-legal-summary-topics{display:flex;flex-wrap:wrap;gap:.4rem;margin:.8rem 0;}
.iwales-legal-summary-topics span{display:inline-block;border:1px solid #bcd5df;border-radius:999px;padding:.32rem .58rem;background:#fff;color:#1d5d79;font-size:.78rem;font-weight:800;}
.iwales-legal-summary-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:.8rem;}
.iwales-legal-summary-columns p{margin:0;padding:.75rem;border-radius:10px;background:#fff;border:1px solid #e1eaee;font-size:.86rem;}
@media(max-width:700px){
  .iwales-legal-library-browse{display:block;}
  .iwales-legal-library-topic-toggle{width:100%;margin-top:.75rem;}
  .iwales-legal-library-topics-head{display:block;}
  .iwales-legal-library-topics-head span{display:block;margin-top:.25rem;}
  .iwales-legal-library-topic-buttons{display:grid;grid-template-columns:1fr;}
  .iwales-legal-library-topic-buttons button{text-align:left;}
  .iwales-legal-summary-columns{grid-template-columns:1fr;}
}


/* Clínica Legal · navegación editorial más serena (v0.7.94) */
.iwales-legal-library-tools{
  display:block;
  padding:1.15rem 1.2rem 1rem;
  background:#fff;
  border:1px solid #dbe6ea;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(23,49,63,.035);
}
.iwales-legal-library-search{max-width:none;}
.iwales-legal-library-search label{font-size:1rem;margin-bottom:.5rem;}
.iwales-legal-library-search-row{max-width:760px;}
.iwales-legal-library-search p{max-width:760px;color:#6a777d;}
.iwales-legal-library-browse{
  display:flex;
  align-items:center;
  gap:.9rem 1.4rem;
  justify-content:space-between;
  margin-top:1rem;
  padding-top:.9rem;
  border-top:1px solid #edf2f4;
}
.iwales-legal-library-ranges{
  display:flex;
  align-items:center;
  gap:.75rem;
  min-width:0;
}
.iwales-legal-library-ranges > span{
  margin:0;
  color:#66757c;
  font-size:.82rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  white-space:nowrap;
}
.iwales-legal-library-range-buttons{display:flex;align-items:center;gap:.15rem;flex-wrap:wrap;}
.iwales-legal-library-range-buttons button{
  min-height:auto;
  border:0;
  border-radius:8px;
  padding:.42rem .58rem;
  background:transparent;
  color:#51656f;
  font-size:.85rem;
  font-weight:700;
}
.iwales-legal-library-range-buttons button:hover{border:0;background:#f1f6f8;color:#17313f;}
.iwales-legal-library-range-buttons button.is-active{
  background:#eaf3f7;
  color:#175b78;
  box-shadow:inset 0 0 0 1px #c9dde6;
}
.iwales-legal-library-topic-toggle{
  min-height:auto;
  border:0;
  border-radius:9px;
  padding:.48rem .68rem;
  background:#f3f7f9;
  color:#315564;
  font-size:.86rem;
  font-weight:750;
}
.iwales-legal-library-topic-toggle:hover,
.iwales-legal-library-topic-toggle[aria-expanded="true"]{
  background:#e8f1f5;
  color:#17313f;
}
.iwales-legal-library-topics{
  margin-top:.85rem;
  padding:.95rem 0 .15rem;
  border:0;
  border-top:1px solid #edf2f4;
  border-radius:0;
  background:transparent;
}
.iwales-legal-library-topics-head{
  margin-bottom:.7rem;
  align-items:center;
}
.iwales-legal-library-topics-head strong{font-size:.95rem;}
.iwales-legal-library-topics-head span{font-size:.8rem;color:#78858b;}
.iwales-legal-library-topic-buttons{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.3rem .65rem;
}
.iwales-legal-library-topic-buttons button{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:42px;
  border:0;
  border-bottom:1px solid #edf2f4;
  border-radius:0;
  padding:.55rem .15rem;
  background:transparent;
  color:#334f5b;
  text-align:left;
  font-size:.84rem;
  font-weight:650;
}
.iwales-legal-library-topic-buttons button:hover{
  border-color:#dce8ed;
  background:#f8fbfc;
  color:#17313f;
}
.iwales-legal-library-topic-buttons button.is-active{
  border-color:#bcd4de;
  background:#f2f7f9;
  color:#175b78;
  font-weight:800;
}
.iwales-legal-library-topic-buttons button span,
.iwales-legal-library-topic-buttons button.is-active span{
  flex:0 0 auto;
  min-width:auto;
  height:auto;
  margin-left:.65rem;
  padding:.12rem .42rem;
  border-radius:7px;
  background:#eef4f6;
  color:#607780;
  font-size:.72rem;
  font-weight:750;
}
.iwales-legal-library-topic-buttons button.is-active span{background:#dfeef4;color:#175b78;}
.iwales-legal-library-status{
  margin-top:.7rem;
  padding-top:.7rem;
  border-top:1px solid #edf2f4;
  color:#748087;
  font-size:.84rem;
}
.iwales-legal-library-status strong{font-size:.92rem;color:#405963;}
@media(max-width:700px){
  .iwales-legal-library-browse{display:block;}
  .iwales-legal-library-ranges{display:block;}
  .iwales-legal-library-ranges > span{margin-bottom:.35rem;}
  .iwales-legal-library-topic-toggle{width:auto;margin-top:.7rem;}
  .iwales-legal-library-topic-buttons{grid-template-columns:1fr;}
}
@media(max-width:540px){
  .iwales-legal-library-tools{padding:1rem;border-radius:15px;}
  .iwales-legal-library-range-buttons{display:flex;gap:.1rem;}
  .iwales-legal-library-range-buttons button:first-child{grid-column:auto;}
}


/* Clínica Legal · contexto de temática activa (v0.7.97) */
.iwales-legal-library-active-topic-js{
  display:flex;
  align-items:baseline;
  gap:.45rem;
  flex-wrap:wrap;
  margin-top:.75rem;
  padding:.68rem .15rem .15rem;
  border-top:1px solid #edf2f4;
  color:#64767e;
  font-size:.82rem;
}
.iwales-legal-library-active-topic-js[hidden]{display:none!important;}
.iwales-legal-library-active-topic-prefix{color:#7b898f;}
.iwales-legal-library-active-topic-label{color:#274b5a;font-size:.84rem;font-weight:750;}
.iwales-legal-library-active-topic-js button{
  margin-left:.2rem;
  padding:0;
  border:0;
  border-bottom:1px solid #bfd2db;
  border-radius:0;
  background:transparent;
  color:#486b7a;
  font:inherit;
  font-weight:650;
  cursor:pointer;
}
.iwales-legal-library-active-topic-js button:hover{color:#17313f;border-bottom-color:#17313f;}
@media(max-width:700px){
  .iwales-legal-library-active-topic-js{align-items:flex-start;gap:.35rem .45rem;}
}



/* Clínica Legal · Píldoras informativas */
.iwales-info-format-nav{margin:1.2rem 0 2rem;padding:1rem 1.1rem;border:1px solid #dbe7ec;border-radius:16px;background:#f8fbfc;align-items:center;gap:.8rem}
.iwales-info-format-nav p{margin:0}
.iwales-pill-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.15rem;margin-top:1.2rem}
.iwales-pill-card{display:flex;flex-direction:column;height:100%;overflow:hidden;border:1px solid #dbe5e9;border-radius:20px;background:#fff;text-decoration:none;color:#17313f;box-shadow:0 10px 28px rgba(23,49,63,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.iwales-pill-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(23,49,63,.10);border-color:#b9d2dd}
.iwales-pill-card-media{display:block;aspect-ratio:1/1;background:#eef4f6;overflow:hidden}
.iwales-pill-card-media img{display:block;width:100%;height:100%;object-fit:cover}
.iwales-pill-card-copy{display:flex;flex-direction:column;gap:.7rem;padding:1rem 1rem 1.1rem;flex:1}
.iwales-pill-card-copy strong{font-size:1.04rem;line-height:1.18;color:#242424}
.iwales-pill-card-copy .iwales-info-read{margin-top:auto}
.iwales-pill-detail{display:grid;grid-template-columns:minmax(240px,420px) minmax(0,1fr);gap:1.5rem;align-items:start;margin:1rem 0 1.5rem}
.iwales-pill-detail-media{overflow:hidden;border-radius:20px;border:1px solid #dbe5e9;background:#eef4f6}
.iwales-pill-detail-media img{display:block;width:100%;height:auto}
.iwales-pill-detail-copy{padding:.4rem 0}
.iwales-pill-detail-copy h2{margin:.65rem 0 .8rem}
@media(max-width:900px){.iwales-pill-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.iwales-pill-detail{grid-template-columns:1fr}}
@media(max-width:620px){.iwales-pill-grid{grid-template-columns:1fr}.iwales-info-format-nav{display:block}.iwales-info-format-nav .wp-block-buttons{margin-top:.65rem}}


/* Iwales Info hub: guaranteed section access and compact quick links */
.iwales-info-section-card-static { display:flex; flex-direction:column; align-items:flex-start; }
.iwales-info-card-mainlink { display:inline-flex; margin-top:auto; font-weight:800; text-decoration:none; }
.iwales-info-quicklinks { display:flex; flex-wrap:wrap; gap:.45rem .55rem; margin-top:1rem; padding-top:.9rem; border-top:1px solid rgba(29,105,155,.16); width:100%; }
.iwales-info-quicklinks a { display:inline-flex; align-items:center; min-height:34px; padding:.38rem .68rem; border:1px solid rgba(29,105,155,.22); border-radius:999px; background:#fff; color:inherit; font-size:.9rem; font-weight:700; text-decoration:none; }
.iwales-info-quicklinks a:hover, .iwales-info-quicklinks a:focus-visible { border-color:rgba(29,105,155,.55); background:rgba(29,105,155,.05); }
@media (max-width: 640px) { .iwales-info-quicklinks a { font-size:.84rem; } }


/* Iwales Info · Guía de salud sexual agrupada */
.iwales-health-guide{display:grid;gap:2.6rem}.iwales-health-guide-start{padding:1.5rem 1.6rem;border:1px solid var(--wp--preset--color--line,#d9e5eb);border-radius:22px;background:#f7fbfd}.iwales-health-guide-start h2{margin:.25rem 0 .55rem}.iwales-health-guide-start p:last-of-type{max-width:760px}.iwales-health-guide-jumps{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1rem}.iwales-health-guide-jumps a{display:inline-flex;align-items:center;min-height:40px;padding:.55rem .85rem;border:1px solid #c8dce7;border-radius:12px;background:#fff;text-decoration:none;font-weight:700}.iwales-health-guide-jumps a:hover{border-color:#1d699b}.iwales-health-guide-group{scroll-margin-top:110px}.iwales-health-guide-group+.iwales-health-guide-group{padding-top:2.1rem;border-top:1px solid #e3ebef}.iwales-health-guide-group-head{max-width:780px;margin-bottom:1.1rem}.iwales-health-guide-group-head h2{margin:.2rem 0 .45rem}.iwales-health-guide-group-head p:last-child{margin-bottom:0;color:#4f5f67}@media(max-width:700px){.iwales-health-guide{gap:2rem}.iwales-health-guide-start{padding:1.15rem}.iwales-health-guide-jumps{display:grid;grid-template-columns:1fr}.iwales-health-guide-jumps a{justify-content:center}.iwales-health-guide-group+.iwales-health-guide-group{padding-top:1.5rem}}


/* Iwales Info · ITS una a una v0.8.04 */
.iwales-health-guide-subgroups{display:grid;gap:34px;margin-top:28px}
.iwales-health-guide-subgroup{padding-top:26px;border-top:1px solid rgba(58,58,57,.14)}
.iwales-health-guide-subgroup:first-child{padding-top:0;border-top:0}
.iwales-health-guide-subgroup-head{max-width:780px;margin:0 0 18px}
.iwales-health-guide-subgroup-head h3{margin:0 0 7px;font-size:clamp(1.25rem,2vw,1.65rem);line-height:1.18}
.iwales-health-guide-subgroup-head p{margin:0;color:#5b5b58}


/* Iwales Info · aviso sanitario ITS v0.8.05 */
.iwales-health-guide-medical-note{margin:1rem 0 1.25rem;padding:1rem 1.1rem;border:1px solid rgba(29,105,155,.18);border-left:4px solid var(--iwales-blue);border-radius:14px;background:rgba(29,105,155,.045)}
.iwales-health-guide-medical-note strong{display:block;margin-bottom:.25rem;color:var(--iwales-dark)}
.iwales-health-guide-medical-note p{margin:0;color:var(--iwales-muted);line-height:1.55}
.iwales-info-sources-compact ul{display:flex;flex-wrap:wrap;gap:.5rem 1rem;list-style:none;padding-left:0;margin:.65rem 0 0}
.iwales-info-sources-compact a{font-weight:700;text-decoration:none}
.iwales-info-summary .iwales-info-key-points{margin-top:1rem}

/* Iwales Info · related reading */
.iwales-info-related{margin-top:3rem}
.iwales-info-related__intro{max-width:760px;margin:.35rem 0 1.35rem;color:var(--wp--preset--color--contrast-2,#5c6268)}
@media (max-width:782px){.iwales-info-related{margin-top:2.25rem}}


/* Iwales Info · alineación de fuentes oficiales v0.8.07 */
.iwales-info-sources-compact ul{align-items:center}
.iwales-info-sources-compact li{margin:0!important;padding:0!important;display:flex;align-items:center;line-height:1.2}
.iwales-info-sources-compact li+li{margin-top:0!important}
.iwales-info-sources-compact a{display:inline-flex;align-items:center;line-height:1.2}


/* Clínica Legal · índice de Píldoras v0.8.08 */
.iwales-pill-card-topics{display:block;margin-top:-.15rem;color:#64757d;font-size:.86rem;line-height:1.35}
.iwales-pill-library .iwales-legal-library-status{margin-top:.85rem}
@media(max-width:620px){.iwales-pill-card-topics{font-size:.82rem}}


/* Píldoras posteriores cuyo original se conserva únicamente como PDF */
.iwales-pill-card-document,
.iwales-pill-pdf-preview{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:100%;
  padding:24px;
  background:linear-gradient(145deg,#eef5f7,#f9fbfb);
  color:var(--iwales-dark);
  box-sizing:border-box;
}
.iwales-pill-card-document strong,
.iwales-pill-pdf-preview strong{
  font-size:clamp(2.5rem,6vw,4.6rem);
  line-height:.9;
  color:var(--iwales-blue);
}
.iwales-pill-card-document span,
.iwales-pill-pdf-preview span{
  font-weight:700;
  max-width:13rem;
}
.iwales-pill-card-document em,
.iwales-pill-pdf-preview em{
  font-style:normal;
  font-size:.8rem;
  color:var(--iwales-muted);
}
.iwales-pill-detail-media .iwales-pill-pdf-preview{
  aspect-ratio:1/1;
}

/* Píldoras · nota sobre numeración original v0.8.12 */
.iwales-pill-library-note{
  margin:.7rem 0 0;
  padding:.7rem .9rem;
  border-left:3px solid var(--iwales-blue);
  background:rgba(29,105,155,.055);
  color:var(--iwales-muted);
  font-size:.91rem;
  line-height:1.5;
  border-radius:0 10px 10px 0;
}
.iwales-pill-library-note strong{color:var(--iwales-text);font-weight:700;}
@media (max-width:640px){.iwales-pill-library-note{font-size:.88rem;}}

/* Collection pack navigation and PDF cover previews */
.iwales-legal-library-pack-nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.15rem 0 0;padding-top:.9rem;border-top:1px solid #e3ebee}
.iwales-legal-library-pack-nav[hidden]{display:none!important}
.iwales-legal-library-pack-nav button{appearance:none;border:1px solid #c9dce4;background:#fff;color:#17455c;border-radius:12px;padding:.68rem .9rem;font:inherit;font-weight:700;cursor:pointer}
.iwales-legal-library-pack-nav button:hover{background:#f1f7f9;border-color:#9fc2d0}
.iwales-legal-library-pack-nav button[hidden]{visibility:hidden;display:block!important}
.iwales-pill-card-pdf-frame{display:block;position:relative;width:100%;height:100%;background:#eef4f6;overflow:hidden}
.iwales-pill-card-pdf-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none;background:#fff}
@media(max-width:620px){.iwales-legal-library-pack-nav{gap:.6rem}.iwales-legal-library-pack-nav button{padding:.62rem .72rem;font-size:.92rem}}


/* v0.8.15 · Píldoras 37–60: doble página sin visor visible y portadas locales 49–60. */
.iwales-pill-card-pdf-pair{
  display:grid;grid-template-columns:1fr 1fr;width:100%;height:100%;overflow:hidden;background:#fff;
}
.iwales-pill-card-pdf-page{position:relative;display:block;min-width:0;height:100%;overflow:hidden;background:#fff;}
.iwales-pill-card-pdf-page iframe{
  position:absolute;top:-2px;left:-2px;width:calc(100% + 24px);height:calc(100% + 4px);
  border:0;pointer-events:none;background:#fff;
}
.iwales-pill-pdf-pair{display:grid;grid-template-columns:1fr 1fr;width:100%;aspect-ratio:4 / 5;overflow:hidden;background:#fff;}
.iwales-pill-pdf-pair .iwales-pill-pdf-page{position:relative;display:block;min-width:0;height:100%;overflow:hidden;background:#fff;}
.iwales-pill-pdf-pair .iwales-pill-pdf-page iframe{
  position:absolute;top:-2px;left:-2px;width:calc(100% + 26px);height:calc(100% + 4px);
  border:0;pointer-events:none;background:#fff;
}
.iwales-pill-detail-media:has(.iwales-pill-pdf-pair){background:#fff;}
@media(max-width:620px){
  .iwales-pill-card-pdf-page iframe{width:calc(100% + 20px);}
  .iwales-pill-pdf-pair .iwales-pill-pdf-page iframe{width:calc(100% + 22px);}
}


/* v0.8.16 · previews estáticas dobles para Píldoras 37–60. */
.iwales-pill-card-media-double{background:#fff;}
.iwales-pill-card-media-double img{object-fit:contain;background:#fff;}


/* v0.8.17 · Revisión global Iwales Info: Píldoras también en el buscador general. */
.iwales-info-pill-card{overflow:hidden;}
.iwales-info-pill-visual{display:block;margin:-1.35rem -1.35rem 1rem;aspect-ratio:16/9;background:#f6fafb;border-bottom:1px solid var(--iwales-border);overflow:hidden;}
.iwales-info-pill-visual img{display:block;width:100%;height:100%;object-fit:contain;background:#fff;}
@media(max-width:700px){.iwales-info-pill-visual{aspect-ratio:3/2;}}

.iwales-projects-dynamic-history {
  display:inline-flex;
  align-items:center;
  width:fit-content;
  margin-top:.1rem;
  padding:.38rem .62rem;
  border-radius:999px;
  background:#f2f7fa;
  border:1px solid #d8e6ee;
  color:#46616f;
  font-size:.78rem;
  font-weight:750;
  line-height:1.2;
}


/* Project detail status summary · v0.8.23 · corrección de saltos CSS */
.iwales-project-statusbar{max-width:var(--iwales-shell);margin:0 auto 1.4rem;padding:1rem 1.1rem;border:1px solid #d9e4e9;border-radius:18px;background:#f6fafb;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.iwales-project-statusbar-main{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.iwales-project-statusbar-type{display:inline-flex;align-items:center;padding:.42rem .68rem;border-radius:999px;background:#e8f2f7;color:#174e69;font-weight:800;font-size:.82rem}
.iwales-project-statusbar-copy{color:var(--iwales-muted);font-size:.94rem}
.iwales-project-statusbar-actions{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap}
.iwales-project-statusbar-actions a{font-weight:800;text-decoration:none}
.iwales-project-statusbar-actions a:hover{text-decoration:underline}
@media(max-width:720px){.iwales-project-statusbar{align-items:flex-start}.iwales-project-statusbar-actions{width:100%}}


/* =========================================================
   Proyectos agrupados por línea de trabajo · v0.8.22
   ========================================================= */
.iwales-projects-grouped {
  display:grid;
  gap:clamp(2.2rem,4vw,3.5rem);
  margin-top:1.4rem;
}
.iwales-projects-cluster {
  min-width:0;
}
.iwales-projects-cluster-head {
  max-width:760px;
  margin:0 0 1.15rem;
}
.iwales-projects-cluster-head .iwales-kicker {
  margin-bottom:.35rem;
}
.iwales-projects-cluster-head h3 {
  margin:0;
  color:var(--iwales-dark);
  font-size:clamp(1.55rem,2.5vw,2.15rem);
  line-height:1.08;
}
.iwales-projects-cluster-head > p:last-child {
  margin:.55rem 0 0;
  color:var(--iwales-muted);
  line-height:1.6;
}
.iwales-projects-cluster + .iwales-projects-cluster {
  padding-top:clamp(1.7rem,3vw,2.5rem);
  border-top:1px solid rgba(58,58,57,.10);
}
.iwales-projects-cluster--salud .iwales-projects-cluster-head .iwales-kicker {
  color:var(--iwales-blue);
}
.iwales-projects-cluster--derechos .iwales-projects-cluster-head .iwales-kicker {
  color:var(--iwales-red);
}
.iwales-projects-cluster--participacion .iwales-projects-cluster-head .iwales-kicker {
  color:#8d6811;
}
@media (max-width:720px) {
  .iwales-projects-grouped {
    gap:2rem;
  }
  .iwales-projects-cluster + .iwales-projects-cluster {
    padding-top:1.5rem;
  }
}

/* =========================================================
   Proyectos relacionados por línea de trabajo · v0.8.24
   Facilita continuar navegando entre fichas estables sin mezclar ediciones anuales.
   ========================================================= */
.iwales-project-related {
  max-width:var(--iwales-shell);
  margin:clamp(2.4rem,5vw,4rem) auto 0;
  padding-top:clamp(1.8rem,3vw,2.5rem);
  border-top:1px solid rgba(58,58,57,.12);
}
.iwales-project-related-head {
  max-width:760px;
  margin:0 0 1.15rem;
}
.iwales-project-related-head .iwales-kicker {
  margin-bottom:.35rem;
}
.iwales-project-related-head h2 {
  margin:0;
  color:var(--iwales-dark);
  font-size:clamp(1.45rem,2.4vw,1.95rem);
  line-height:1.12;
}
.iwales-project-related-head p:last-child {
  margin:.55rem 0 0;
  color:var(--iwales-muted);
  line-height:1.6;
}
.iwales-project-related-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}
.iwales-project-related-card {
  display:flex;
  min-width:0;
  flex-direction:column;
  padding:clamp(1.15rem,2vw,1.4rem);
  border:1px solid rgba(58,58,57,.10);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 34px rgba(34,34,34,.06);
  color:var(--iwales-dark);
  text-decoration:none !important;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.iwales-project-related-card:hover {
  transform:translateY(-3px);
  border-color:color-mix(in srgb,var(--iwales-page-accent,var(--iwales-blue)) 30%,transparent);
  box-shadow:0 18px 42px rgba(34,34,34,.10);
}
.iwales-project-related-type {
  margin:0 0 .45rem;
  color:var(--iwales-page-accent,var(--iwales-blue));
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.iwales-project-related-card h3 {
  margin:0 0 .55rem;
  color:var(--iwales-dark);
  font-size:clamp(1.1rem,1.8vw,1.35rem);
  line-height:1.18;
}
.iwales-project-related-excerpt {
  margin:0;
  color:var(--iwales-muted);
  font-size:.94rem;
  line-height:1.55;
}
.iwales-project-related-link {
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  margin-top:auto;
  padding-top:.9rem;
  color:var(--iwales-page-accent,var(--iwales-blue));
  font-weight:800;
}
@media(max-width:720px) {
  .iwales-project-related-grid { grid-template-columns:1fr; }
  .iwales-project-related-card:hover { transform:none; }
}
@media(prefers-reduced-motion:reduce) {
  .iwales-project-related-card { transition:none; }
  .iwales-project-related-card:hover { transform:none; }
}



/* =========================================================
   Portada de Proyectos · navegación por líneas · v0.8.28
   Resume el conjunto antes de las tarjetas y mantiene visibles
   los borradores únicamente al personal que puede revisarlos.
   ========================================================= */
.iwales-projects-overview {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.85rem;
  margin:0 0 clamp(2rem,4vw,3rem);
}
.iwales-projects-overview-link {
  --iwales-line-accent:var(--iwales-blue);
  display:flex;
  min-width:0;
  align-items:center;
  justify-content:space-between;
  gap:.85rem;
  padding:1rem 1.05rem;
  border:1px solid rgba(58,58,57,.11);
  border-top:4px solid var(--iwales-line-accent);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 30px rgba(34,34,34,.055);
  color:var(--iwales-dark);
  text-decoration:none !important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.iwales-projects-overview-link:hover {
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--iwales-line-accent) 34%,rgba(58,58,57,.11));
  box-shadow:0 16px 38px rgba(34,34,34,.09);
}
.iwales-projects-overview-link--salud { --iwales-line-accent:var(--iwales-blue); }
.iwales-projects-overview-link--derechos { --iwales-line-accent:var(--iwales-red); }
.iwales-projects-overview-link--participacion { --iwales-line-accent:#9a7110; }
.iwales-projects-overview-name {
  min-width:0;
  font-weight:800;
  line-height:1.25;
}
.iwales-projects-overview-count {
  flex:0 0 auto;
  padding:.34rem .58rem;
  border-radius:999px;
  background:#f3f3f0;
  color:var(--iwales-muted);
  font-size:.78rem;
  font-weight:800;
  white-space:nowrap;
}
.iwales-projects-cluster--salud { --iwales-page-accent:var(--iwales-blue); }
.iwales-projects-cluster--derechos { --iwales-page-accent:var(--iwales-red); }
.iwales-projects-cluster--participacion { --iwales-page-accent:#8d6811; }
.iwales-projects-cluster-head h3 { scroll-margin-top:120px; }
.iwales-projects-draft-badge {
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin:0 0 .55rem;
  padding:.34rem .58rem;
  border-radius:999px;
  background:#fff3cd;
  color:#765500;
  font-size:.74rem;
  font-weight:850;
  letter-spacing:.02em;
}
@media (max-width:820px) {
  .iwales-projects-overview { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .iwales-projects-overview-link { transition:none; }
  .iwales-projects-overview-link:hover { transform:none; }
}


/* =========================================================
   Portada de Proyectos · densidad de tarjetas · v0.8.29
   Tres proyectos ocupan una fila completa en escritorio; dos
   mantienen dos columnas. Los placeholders sin fotografía se
   compactan para no dominar visualmente la ficha.
   ========================================================= */
@media (min-width:1080px) {
  .iwales-projects-dynamic--count-3 {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .iwales-projects-dynamic--count-2 {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .iwales-projects-dynamic--count-1 {
    grid-template-columns:minmax(0,1fr);
    max-width:560px;
  }
  .iwales-projects-dynamic--count-3 .iwales-projects-dynamic-card h4 {
    font-size:clamp(1.18rem,1.45vw,1.48rem);
  }
  .iwales-projects-dynamic--count-3 .iwales-projects-dynamic-body {
    padding:clamp(1.05rem,1.55vw,1.35rem);
  }
}

.iwales-projects-dynamic-placeholder {
  aspect-ratio:5/2;
  background:
    radial-gradient(circle at 82% 18%, rgba(227,176,35,.10), transparent 24%),
    linear-gradient(145deg,#f1f5f6,#faf7f7);
}
.iwales-projects-dynamic-placeholder::before {
  inset:18%;
  opacity:.095;
}
.iwales-projects-dynamic-card {
  height:100%;
}
.iwales-projects-dynamic-excerpt {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
}

@media (min-width:721px) and (max-width:1079px) {
  .iwales-projects-dynamic {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:720px) {
  .iwales-projects-dynamic-placeholder {
    aspect-ratio:16/7;
  }
  .iwales-projects-dynamic-excerpt {
    -webkit-line-clamp:initial;
    overflow:visible;
  }
}

/* =========================================================
   Proyectos · identidad visual de tarjetas · v0.8.30
   Cada proyecto tiene un motivo propio mientras no exista una
   imagen destacada. Una imagen real siempre sustituye este recurso.
   ========================================================= */
.iwales-projects-dynamic-card {
  --iwales-project-visual-accent:var(--iwales-page-accent,var(--iwales-blue));
  --iwales-project-visual-soft:rgba(29,105,155,.11);
}
.iwales-project-card--fast-track-campo-de-gibraltar {
  --iwales-project-visual-accent:#1d699b;
  --iwales-project-visual-soft:rgba(29,105,155,.13);
}
.iwales-project-card--prevencion-combinada-vih {
  --iwales-project-visual-accent:#c1304a;
  --iwales-project-visual-soft:rgba(193,48,74,.12);
}
.iwales-project-card--salud-vih-its-personas-migrantes {
  --iwales-project-visual-accent:#a87a10;
  --iwales-project-visual-soft:rgba(227,176,35,.16);
}
.iwales-project-card--formacion-frente-al-estigma-y-la-discriminacion {
  --iwales-project-visual-accent:#1d699b;
  --iwales-project-visual-soft:rgba(29,105,155,.11);
}
.iwales-project-card--iwales-ante-la-diversidad {
  --iwales-project-visual-accent:#e5114a;
  --iwales-project-visual-soft:rgba(229,17,74,.11);
}
.iwales-project-card--autorrealizate {
  --iwales-project-visual-accent:#9b7417;
  --iwales-project-visual-soft:rgba(227,176,35,.15);
}
.iwales-project-card--arte-posithivo {
  --iwales-project-visual-accent:#c1304a;
  --iwales-project-visual-soft:rgba(193,48,74,.12);
}
.iwales-project-card--think-tank-prisiones {
  --iwales-project-visual-accent:#3a3a39;
  --iwales-project-visual-soft:rgba(58,58,57,.10);
}
.iwales-projects-dynamic-card::before {
  content:"";
  position:absolute;
  z-index:3;
  inset:0 auto 0 0;
  width:4px;
  background:var(--iwales-project-visual-accent);
  opacity:.88;
  pointer-events:none;
}
.iwales-projects-dynamic-placeholder {
  isolation:isolate;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 80% 18%, var(--iwales-project-visual-soft), transparent 25%),
    radial-gradient(circle at 18% 88%, var(--iwales-project-visual-soft), transparent 30%),
    linear-gradient(145deg,#f5f7f7,#fbf9f8);
}
.iwales-projects-dynamic-placeholder::before {
  content:none;
}
.iwales-projects-dynamic-placeholder::after {
  content:"";
  position:absolute;
  z-index:-1;
  width:clamp(92px,30%,138px);
  aspect-ratio:1;
  right:-2%;
  bottom:-38%;
  border:1px solid var(--iwales-project-visual-accent);
  border-radius:50%;
  opacity:.08;
}
.iwales-projects-dynamic-visual {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(.7rem,1.4vw,1rem);
  max-width:88%;
  color:var(--iwales-project-visual-accent);
}
.iwales-projects-dynamic-visual-icon {
  display:grid;
  width:clamp(54px,6vw,78px);
  aspect-ratio:1;
  place-items:center;
  flex:0 0 auto;
  border-radius:22px;
  background:var(--iwales-project-visual-soft);
}
.iwales-projects-dynamic-visual-icon svg {
  width:68%;
  height:68%;
  fill:none;
  stroke:currentColor;
  stroke-width:3.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.iwales-projects-dynamic-visual-label {
  max-width:12ch;
  color:var(--iwales-dark);
  font-size:clamp(.92rem,1.35vw,1.15rem);
  font-weight:850;
  letter-spacing:-.015em;
  line-height:1.08;
}
.iwales-projects-dynamic-media:not(.iwales-projects-dynamic-placeholder)::after {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:5px;
  background:var(--iwales-project-visual-accent);
  opacity:.82;
}
@media (min-width:1080px) {
  .iwales-projects-dynamic--count-3 .iwales-projects-dynamic-visual {
    gap:.62rem;
  }
  .iwales-projects-dynamic--count-3 .iwales-projects-dynamic-visual-icon {
    width:58px;
    border-radius:18px;
  }
  .iwales-projects-dynamic--count-3 .iwales-projects-dynamic-visual-label {
    font-size:.94rem;
  }
}
@media (max-width:720px) {
  .iwales-projects-dynamic-visual-icon { width:58px; border-radius:18px; }
  .iwales-projects-dynamic-visual-label { font-size:1rem; }
}


/* =========================================================
   Fichas individuales de Proyectos · revisión global · v0.8.31
   Cabecera, ritmo, estado de borrador y navegación relacionada.
   ========================================================= */
.iwales-project-detail {
  --iwales-project-line:var(--iwales-blue);
  --iwales-project-line-soft:#eaf4f9;
  --iwales-project-line-deep:#174e69;
}
.iwales-project-detail.iwales-project-area-derechos {
  --iwales-project-line:var(--iwales-red);
  --iwales-project-line-soft:#fbecf0;
  --iwales-project-line-deep:#84283a;
}
.iwales-project-detail.iwales-project-area-participacion {
  --iwales-project-line:var(--iwales-gold);
  --iwales-project-line-soft:#fff7df;
  --iwales-project-line-deep:#75550d;
}
.iwales-project-detail .iwales-page-hero {
  background:linear-gradient(135deg,#163a50 0%,color-mix(in srgb,var(--iwales-project-line) 74%,#173b50) 64%,#284f5f 100%);
  border-bottom:4px solid var(--iwales-project-line);
}
.iwales-project-detail .iwales-content {
  padding-top:clamp(1.35rem,2.5vw,2.15rem);
}
.iwales-project-detail .iwales-project-breadcrumb {
  margin-bottom:1rem;
  padding-bottom:.85rem;
  border-bottom:1px solid rgba(58,58,57,.09);
}
.iwales-project-detail .iwales-project-breadcrumb a {
  color:var(--iwales-project-line-deep);
}
.iwales-project-statusbar {
  position:relative;
  overflow:hidden;
  margin-bottom:clamp(1.5rem,3vw,2rem);
  padding:1.05rem 1.15rem 1.05rem 1.3rem;
  border-color:color-mix(in srgb,var(--iwales-project-line) 22%,#d9e4e9);
  background:linear-gradient(135deg,#fff,var(--iwales-project-line-soft));
}
.iwales-project-statusbar::before {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:var(--iwales-project-line);
}
.iwales-project-statusbar-main {
  flex:1 1 560px;
  align-items:flex-start;
  gap:.5rem;
}
.iwales-project-statusbar-badges {
  display:flex;
  gap:.45rem;
  flex-wrap:wrap;
  width:100%;
}
.iwales-project-statusbar-type,
.iwales-project-statusbar-area {
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:.38rem .65rem;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
  line-height:1.15;
}
.iwales-project-statusbar-type {
  background:var(--iwales-project-line-soft);
  color:var(--iwales-project-line-deep);
}
.iwales-project-statusbar-area {
  border:1px solid color-mix(in srgb,var(--iwales-project-line) 24%,transparent);
  background:#fff;
  color:#4d5b66;
}
.iwales-project-statusbar-copy {
  display:block;
  width:100%;
  margin-top:.1rem;
  color:#53616c;
  line-height:1.55;
}
.iwales-project-statusbar-draft {
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  padding:.42rem .68rem;
  border-radius:999px;
  background:#fff3cd;
  border:1px solid #efd78a;
  color:#70540a;
  font-size:.78rem;
  font-weight:850;
  line-height:1.2;
}

/* Ritmo común de lectura para las ocho fichas. */
.iwales-project-detail .iwales-project-highlight {
  margin-bottom:clamp(1.7rem,3vw,2.25rem);
  border-top:4px solid var(--iwales-project-line);
  box-shadow:0 16px 42px rgba(19,37,53,.055);
}
.iwales-project-detail .iwales-project-highlight .iwales-kicker,
.iwales-project-detail .iwales-project-callout .iwales-kicker {
  color:var(--iwales-project-line-deep);
}
.iwales-project-detail .iwales-project-lead {
  margin-bottom:1.25rem;
  max-width:72ch;
}
.iwales-project-detail .iwales-project-meta {
  margin-top:1.35rem;
}
.iwales-project-detail .iwales-project-meta-item strong {
  color:var(--iwales-project-line-deep);
}
.iwales-project-detail .iwales-project-columns {
  gap:clamp(1rem,2vw,1.35rem);
  margin-top:clamp(1.5rem,3vw,2rem);
  margin-bottom:clamp(1.5rem,3vw,2rem);
}
.iwales-project-detail .iwales-project-section-card {
  border-top:3px solid color-mix(in srgb,var(--iwales-project-line) 72%,#fff);
  box-shadow:0 12px 34px rgba(19,37,53,.05);
}
.iwales-project-detail .iwales-project-section-card h2,
.iwales-project-detail .iwales-project-section-card h3 {
  margin-top:0;
  color:var(--iwales-dark);
  line-height:1.17;
}
.iwales-project-detail .iwales-project-callout {
  margin-top:clamp(1.8rem,3vw,2.4rem);
  padding:clamp(1.35rem,2.5vw,1.75rem);
  border-color:color-mix(in srgb,var(--iwales-project-line) 20%,rgba(17,24,39,.08));
  background:linear-gradient(135deg,#fff,var(--iwales-project-line-soft));
  box-shadow:0 14px 38px rgba(19,37,53,.055);
}
.iwales-project-detail .iwales-project-callout h2 {
  margin-top:.15rem;
  line-height:1.12;
}
.iwales-project-detail .iwales-actions {
  gap:.65rem;
}

/* Navegación relacionada: visible también al revisar borradores internos. */
.iwales-project-detail .iwales-project-related {
  border-top:0;
  padding-top:clamp(1.2rem,2vw,1.7rem);
  margin-top:clamp(2.8rem,5vw,4.4rem);
}
.iwales-project-detail .iwales-project-related::before {
  content:"";
  display:block;
  width:72px;
  height:4px;
  margin:0 0 1.2rem;
  border-radius:999px;
  background:var(--iwales-project-line);
}
.iwales-project-detail .iwales-project-related-head .iwales-kicker {
  color:var(--iwales-project-line-deep);
}
.iwales-project-related-grid {
  align-items:stretch;
}
.iwales-project-related-card {
  position:relative;
  overflow:hidden;
  border-top:3px solid var(--iwales-project-line);
}
.iwales-project-related-card-top {
  display:flex;
  align-items:center;
  gap:.55rem;
  min-width:0;
  margin-bottom:.55rem;
}
.iwales-project-related-icon {
  display:inline-flex;
  flex:0 0 34px;
  width:34px;
  height:34px;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:var(--iwales-project-line-soft);
  color:var(--iwales-project-line-deep);
}
.iwales-project-related-icon svg {
  display:block;
  width:21px;
  height:21px;
}
.iwales-project-related-type {
  margin:0;
  color:var(--iwales-project-line-deep);
}
.iwales-project-related-draft {
  display:inline-flex;
  width:fit-content;
  margin:-.15rem 0 .55rem;
  padding:.27rem .48rem;
  border-radius:999px;
  background:#fff3cd;
  color:#70540a;
  font-size:.72rem;
  font-weight:800;
  line-height:1.2;
}
.iwales-project-related-link {
  color:var(--iwales-project-line-deep);
}
.iwales-project-related-footer {
  display:flex;
  justify-content:flex-end;
  margin-top:1rem;
}
.iwales-project-related-footer a {
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  color:var(--iwales-project-line-deep);
  font-weight:850;
  text-decoration:none;
}
.iwales-project-related-footer a:hover { text-decoration:underline; }

@media (max-width:780px) {
  .iwales-project-statusbar {
    padding:1rem 1rem 1rem 1.15rem;
  }
  .iwales-project-statusbar-draft {
    width:100%;
    justify-content:center;
  }
  .iwales-project-detail .iwales-project-columns {
    gap:.9rem;
  }
  .iwales-project-related-footer {
    justify-content:flex-start;
  }
}
@media (max-width:520px) {
  .iwales-project-statusbar-badges {
    align-items:flex-start;
  }
  .iwales-project-statusbar-type,
  .iwales-project-statusbar-area {
    max-width:100%;
    white-space:normal;
  }
}
