/*
Theme Name: COES Home 0.5.2
Theme URI: https://coessoluciones.com.mx
Author: COES
Description: Tema de bloques para la Home inicial de COES.
Version: 0.5.2
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: coes-home
*/

:root {
  --coes-blue: #246084;
  --coes-deep: #0b2e3e;
  --coes-ivory: #f7f2ea;
  --coes-white: #ffffff;
  --coes-coral: #c86442;
  --coes-sage: #718879;
  --coes-ink: #17313e;
  --coes-muted: #5c6b70;
  --coes-line: rgba(23, 49, 62, 0.16);
  --coes-shadow: 0 18px 50px rgba(11, 46, 62, 0.11);
  --coes-radius: 22px;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

body,
button,
input,
select,
textarea {
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
}

h1,
h2,
h3,
.coes-serif {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  letter-spacing: -0.025em;
}

a,
button { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #f0b55d;
  outline-offset: 3px;
}

.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.coes-section { padding: clamp(64px, 8vw, 112px) 24px; }
.coes-section--tight { padding-block: clamp(42px, 5vw, 72px); }
.coes-eyebrow {
  color: var(--coes-coral);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.coes-section-title { max-width: 760px; margin-inline: auto; }
.coes-section-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--coes-coral);
  border-radius: 99px;
}

/* Aviso de privacidad */
.coes-privacy-page {
  padding: clamp(54px, 7vw, 92px) 24px;
  background: linear-gradient(180deg, var(--coes-ivory) 0, #fff 280px);
}
.coes-privacy-page__inner {
  width: min(100%, 860px);
  margin-inline: auto;
}
.coes-privacy-page__back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--coes-blue);
  font-weight: 800;
  text-decoration: none;
}
.coes-privacy-page h1 {
  margin: 0 0 12px;
  color: var(--coes-deep);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
}
.coes-privacy-page h2 {
  margin: 34px 0 10px;
  color: var(--coes-deep);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.2;
}
.coes-privacy-page p,
.coes-privacy-page li {
  color: var(--coes-ink);
  font-size: 1rem;
  line-height: 1.72;
}
.coes-privacy-page ul { padding-left: 1.35rem; }
.coes-privacy-page li + li { margin-top: 7px; }
.coes-privacy-page__meta {
  margin-bottom: 32px;
  color: var(--coes-muted) !important;
}
.coes-privacy-page a { color: var(--coes-blue); }
.coes-privacy-consent-note {
  margin: 14px 0 0;
  color: var(--coes-muted);
  font-size: .84rem;
  line-height: 1.5;
}

/* Header */
.coes-header-shell {
  position: sticky;
  z-index: 40;
  top: 0;
  padding: 10px 24px;
  background: rgba(11, 46, 62, .96);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.coes-header-inner { min-height: 70px; }
.coes-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--coes-white);
  text-decoration: none;
  white-space: nowrap;
}
.coes-brand img {
  width: 44px;
  height: 58px;
  object-fit: contain;
  padding: 4px;
  background: var(--coes-white);
  border-radius: 10px;
}
.coes-brand-copy { display: grid; line-height: 1.05; }
.coes-brand-copy strong { font-size: 1.05rem; letter-spacing: .06em; }
.coes-brand-copy span { font-size: .62rem; letter-spacing: .09em; opacity: .82; text-transform: uppercase; }
.coes-header-shell .wp-block-navigation-item__content { color: var(--coes-white); font-size: .91rem; font-weight: 650; text-decoration: none; }
.coes-header-shell .wp-block-navigation-item__content:hover { color: #f4c598; }
.coes-header-shell .wp-block-navigation__responsive-container-open,
.coes-header-shell .wp-block-navigation__responsive-container-close { color: var(--coes-white); }
.coes-header-shell .wp-block-navigation__responsive-container.is-menu-open { background: var(--coes-deep); color: white; padding: 28px; }

.coes-live-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 12px;
  color: var(--coes-white);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.coes-live-cta:hover { background: var(--coes-white); color: var(--coes-deep); transform: translateY(-1px); }
.coes-live-cta.is-pending { border-style: dashed; opacity: .8; }

/* Hero */
.coes-hero {
  position: relative;
  min-height: min(760px, 82vh);
  display: flex;
  align-items: center;
  padding: clamp(86px, 10vw, 146px) 24px;
  background-image:
    linear-gradient(90deg, rgba(5, 24, 33, .72) 0%, rgba(5, 24, 33, .5) 34%, rgba(5, 24, 33, .04) 70%),
    url("assets/images/hero.webp");
  background-position: center;
  background-size: cover;
  color: var(--coes-white);
}
.coes-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(5,24,33,.25));
  pointer-events: none;
}
.coes-hero__content { position: relative; z-index: 1; width: min(1180px, 100%); margin-inline: auto; }
.coes-hero h1 { max-width: 660px; margin: 0 0 22px; color: white; font-size: clamp(3rem, 6.4vw, 6rem); line-height: .99; }
.coes-hero p { max-width: 600px; margin: 0 0 32px; color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.55; }
.coes-hero .wp-block-buttons { gap: 14px; }
.coes-hero .wp-block-button__link { min-height: 50px; display: inline-flex; align-items: center; padding-inline: 24px; border-radius: 12px; font-weight: 800; }
.coes-hero .is-style-outline .wp-block-button__link { border-color: white; color: white; background: rgba(11,46,62,.18); }
.coes-hero .is-style-outline .wp-block-button__link:hover { background: white; color: var(--coes-deep); }

/* Carrusel principal 0.4.6 */
.coes-carousel {
  position: relative;
  height: clamp(610px, 72vw, 720px);
  min-height: 610px;
  overflow: hidden;
  background: var(--coes-deep);
  color: var(--coes-white);
}
.coes-carousel__track,
.coes-carousel__slide { position: absolute; inset: 0; }
.coes-carousel__slide {
  display: flex;
  align-items: center;
  padding: clamp(92px, 10vw, 142px) max(72px, calc((100vw - 1180px) / 2));
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .65s ease, visibility .65s ease;
}
.coes-carousel__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,24,33,.92) 0%, rgba(5,24,33,.66) 46%, rgba(5,24,33,.06) 78%);
}
.coes-carousel__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.coes-carousel__slide--credit { background-image: url("assets/images/hero.webp"); }
.coes-carousel__slide--experience { background-image: url("assets/images/experience-clients.webp"); }
.coes-carousel__slide--experience::before { background: linear-gradient(90deg, rgba(11,46,62,.9) 0%, rgba(11,46,62,.62) 48%, rgba(11,46,62,.03) 80%); }
.coes-carousel__slide--modalidad { background-image: url("assets/images/modalidad40-consultation.webp"); }
.coes-carousel__slide--modalidad::before { background: linear-gradient(90deg, rgba(5,24,33,.94) 0%, rgba(11,46,62,.73) 45%, rgba(11,46,62,.07) 76%); }
.coes-carousel__slide--pensionados { background-image: url("assets/images/pensionados-carousel.webp"); background-position: center 48%; }
.coes-carousel__slide--pensionados::before { background: linear-gradient(90deg, rgba(5,24,33,.96) 0%, rgba(11,46,62,.76) 48%, rgba(11,46,62,.09) 78%); }
.coes-carousel__content { position: relative; z-index: 2; width: min(680px, 58vw); }
.coes-carousel__eyebrow { display: block; margin-bottom: 20px; color: #f4c2ad; font-size: .84rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.coes-carousel h1,
.coes-carousel h2 { margin: 0 0 22px; color: white; font-size: clamp(3.2rem, 5.3vw, 5.15rem); line-height: .98; }
.coes-carousel__slide--experience h2 { font-size: clamp(2.8rem, 4.4vw, 4.5rem); }
.coes-carousel p { max-width: 620px; margin: 0 0 28px; color: rgba(255,255,255,.92); font-size: clamp(1.05rem, 1.55vw, 1.3rem); line-height: 1.48; }
.coes-carousel__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.coes-carousel__primary,
.coes-carousel__secondary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 23px;
  border: 2px solid var(--coes-blue);
  border-radius: 12px;
  background: var(--coes-blue);
  color: white;
  font-size: .95rem;
  font-weight: 850;
  text-decoration: none;
}
.coes-carousel__secondary { border-color: white; background: rgba(11,46,62,.38); }
.coes-carousel__primary:hover,
.coes-carousel__secondary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(5,24,33,.25); }
.coes-carousel__promise {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 11px;
  background: rgba(11,46,62,.58);
  font-size: .92rem;
}
.coes-carousel__legal { position: absolute; z-index: 2; right: 26px; bottom: 18px; color: rgba(255,255,255,.72); font-size: .7rem; }
.coes-carousel__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 235px)); gap: 12px; margin: 24px 0; }
.coes-carousel__stats span { display: grid; min-height: 76px; align-content: center; padding: 12px 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; background: rgba(255,255,255,.12); font-size: .78rem; line-height: 1.25; backdrop-filter: blur(5px); }
.coes-carousel__stats strong { display: block; color: #f4c598; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; line-height: 1.05; }
.coes-carousel__metric { display: grid; width: fit-content; margin-top: 20px; padding: 12px 17px; border-radius: 13px; background: rgba(255,255,255,.9); color: var(--coes-deep); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.coes-carousel__metric small { color: var(--coes-muted); font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.coes-carousel__arrow { position: absolute; z-index: 5; top: 50%; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.58); border-radius: 50%; background: rgba(11,46,62,.5); color: white; font: 300 2rem/1 Arial,sans-serif; cursor: pointer; transform: translateY(-50%); }
.coes-carousel__arrow:hover { background: rgba(36,96,132,.94); }
.coes-carousel__arrow--prev { left: 18px; }
.coes-carousel__arrow--next { right: 18px; }
.coes-carousel__dots { position: absolute; z-index: 5; bottom: 22px; left: 50%; display: flex; gap: 9px; transform: translateX(-50%); }
.coes-carousel__dots button { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.55); cursor: pointer; }
.coes-carousel__dots button.is-active { width: 30px; background: white; }

@media (max-width: 800px) {
  .coes-carousel { height: 690px; min-height: 690px; }
  .coes-carousel__slide { align-items: flex-end; padding: 92px 24px 74px; background-position: 64% center; }
  .coes-carousel__slide::before { background: linear-gradient(180deg, rgba(5,24,33,.16) 0%, rgba(5,24,33,.55) 42%, rgba(5,24,33,.96) 76%); }
  .coes-carousel__slide--experience { background-position: 68% center; }
  .coes-carousel__slide--experience::before,
  .coes-carousel__slide--modalidad::before,
  .coes-carousel__slide--pensionados::before { background: linear-gradient(180deg, rgba(5,24,33,.12) 0%, rgba(5,24,33,.5) 40%, rgba(5,24,33,.96) 75%); }
  .coes-carousel__content { width: 100%; }
  .coes-carousel h1,
  .coes-carousel h2,
  .coes-carousel__slide--experience h2 { margin-bottom: 15px; font-size: clamp(2.35rem, 11vw, 3.25rem); }
  .coes-carousel p { margin-bottom: 18px; font-size: 1rem; }
  .coes-carousel__eyebrow { margin-bottom: 11px; font-size: .72rem; }
  .coes-carousel__stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 12px 0 14px; }
  .coes-carousel__stats span { min-height: 62px; padding: 8px 10px; font-size: .68rem; }
  .coes-carousel__stats strong { font-size: 1.25rem; }
  .coes-carousel__primary,
  .coes-carousel__secondary { min-height: 46px; padding: 10px 15px; font-size: .82rem; }
  .coes-carousel__promise { min-height: 38px; margin-top: 11px; font-size: .78rem; }
  .coes-carousel__legal { right: 18px; bottom: 48px; left: 18px; font-size: .6rem; text-align: center; }
  .coes-carousel__metric { margin-top: 12px; font-size: 1.05rem; }
  .coes-carousel__arrow { top: 38%; width: 42px; height: 42px; }
  .coes-carousel__arrow--prev { left: 10px; }
  .coes-carousel__arrow--next { right: 10px; }
  .coes-carousel__dots { bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .coes-carousel__slide { transition: none; }
}

/* Route cards */
.coes-route-grid { gap: 26px; }
.coes-route-card {
  position: relative;
  min-height: 250px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--coes-line);
  border-radius: var(--coes-radius);
  background: rgba(255,255,255,.78);
  box-shadow: var(--coes-shadow);
}
.coes-route-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--coes-blue); }
.coes-route-card--warm::before { background: var(--coes-coral); }
.coes-route-card .coes-card-number { color: rgba(36,96,132,.15); font-family: Georgia, serif; font-size: 4.4rem; line-height: .8; }
.coes-route-card h3 { margin: 12px 0 10px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.coes-route-card p { color: var(--coes-muted); }
.coes-route-card a { color: var(--coes-blue); font-weight: 800; text-decoration: none; }
.coes-route-card--warm a { color: var(--coes-coral); }
.coes-route-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(11,46,62,.16); }

/* Orientador */
.coes-orientador-wrap { background: linear-gradient(180deg, #f2f7fa 0%, var(--coes-ivory) 100%); }
.coes-orientador {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(36,96,132,.18);
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--coes-shadow);
}
.coes-orientador__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.coes-orientador__head h2 { margin: 0 0 8px; color: var(--coes-deep); font-size: clamp(2rem, 4vw, 3.3rem); }
.coes-orientador__head p { margin: 0; color: var(--coes-muted); }
.coes-progress { min-width: 210px; color: var(--coes-blue); font-weight: 800; text-align: right; }
.coes-progress__bar { height: 8px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #dbe7ed; }
.coes-progress__bar span { display: block; width: 33.333%; height: 100%; border-radius: inherit; background: var(--coes-coral); transition: width .25s ease; }
.coes-question[hidden] { display: none; }
.coes-question h3 { margin: 0 0 18px; color: var(--coes-ink); font-family: inherit; font-size: 1.2rem; letter-spacing: 0; }
.coes-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.coes-choice {
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid rgba(36,96,132,.36);
  border-radius: 12px;
  background: white;
  color: var(--coes-blue);
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.coes-choice:hover,
.coes-choice[aria-pressed="true"] { border-color: var(--coes-coral); background: #fff6f1; color: #9f4226; transform: translateY(-1px); }
.coes-result { display: grid; grid-template-columns: 80px 1fr; gap: 20px; align-items: center; padding: 26px; border-radius: 18px; background: var(--coes-ivory); }
.coes-result[hidden] { display: none; }
.coes-result__icon { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; background: #dceaf1; color: var(--coes-blue); font-size: 1.8rem; font-weight: 900; }
.coes-result h3 { margin: 0 0 6px; font-family: inherit; letter-spacing: 0; }
.coes-result p { margin: 0 0 14px; color: var(--coes-muted); }
.coes-result a { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 18px; border-radius: 10px; background: var(--coes-coral); color: white; font-weight: 800; text-decoration: none; }
.coes-disclaimer { margin-top: 24px; color: var(--coes-muted); font-size: .88rem; }

/* Services and process */
.coes-service-grid { gap: 18px; }
.coes-service-card {
  height: 100%;
  padding: 28px;
  border: 1px solid var(--coes-line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 30px rgba(11,46,62,.07);
}
.coes-service-card .coes-service-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 24px; border-radius: 50%; background: #edf4f7; color: var(--coes-blue); font-weight: 900; }
.coes-service-card:nth-child(2) .coes-service-icon { background: #f8e5dc; color: var(--coes-coral); }
.coes-service-card:nth-child(3) .coes-service-icon { background: #f7edd9; color: #9f681f; }
.coes-service-card:nth-child(4) .coes-service-icon { background: #e5ebe6; color: var(--coes-sage); }
.coes-service-card h3 { margin: 0 0 10px; font-family: inherit; font-size: 1.35rem; letter-spacing: 0; }
.coes-service-card p { margin: 0; color: var(--coes-muted); line-height: 1.65; }
.coes-process-grid { gap: 0; border: 1px solid var(--coes-line); border-radius: 18px; background: white; box-shadow: 0 12px 30px rgba(11,46,62,.06); }
.coes-step { position: relative; padding: 30px; }
.coes-step:not(:last-child)::after { content: ""; position: absolute; top: 25%; right: 0; bottom: 25%; width: 1px; background: var(--coes-line); }
.coes-step strong { display: inline-grid; width: 42px; height: 42px; place-items: center; margin-bottom: 14px; border-radius: 50%; background: var(--coes-ivory); color: var(--coes-blue); }
.coes-step h3 { margin: 0 0 7px; font-family: inherit; font-size: 1.05rem; letter-spacing: 0; }
.coes-step p { margin: 0; color: var(--coes-muted); font-size: .92rem; }
.coes-privacy-strip { gap: 24px; padding: 25px 30px; border: 1px solid #cfdee6; border-radius: 18px; background: #edf5f9; }
.coes-privacy-strip h3 { margin: 0; font-family: inherit; letter-spacing: 0; }
.coes-privacy-strip p { margin: 0; color: var(--coes-muted); }

/* Information + trust */
.coes-resources {
  background-image: linear-gradient(90deg, rgba(247,242,234,.98) 0%, rgba(247,242,234,.9) 48%, rgba(247,242,234,.05) 78%), url("assets/images/resources.webp");
  background-position: center;
  background-size: cover;
}
.coes-resources h2 { max-width: 650px; margin: 0; font-size: clamp(2.6rem, 5vw, 5rem); }
.coes-resources p { max-width: 620px; color: var(--coes-muted); font-size: 1.08rem; }
.coes-resource-links { gap: 14px; margin-top: 28px; }
.coes-resource-link { min-height: 100%; padding: 22px; border: 1px solid var(--coes-line); border-radius: 16px; background: rgba(255,255,255,.86); }
.coes-resource-link a { color: var(--coes-blue); font-weight: 800; text-decoration: none; }
.coes-trust {
  min-height: 520px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(11,46,62,.92) 0%, rgba(11,46,62,.72) 38%, rgba(11,46,62,.08) 70%), url("assets/images/team.webp");
  background-position: center;
  background-size: cover;
  color: white;
}
.coes-trust h2 { max-width: 560px; margin: 0 0 20px; color: white; font-size: clamp(2.4rem, 4.7vw, 4.5rem); }
.coes-trust p { max-width: 540px; color: rgba(255,255,255,.88); font-size: 1.15rem; line-height: 1.6; }
.coes-coverage { display: inline-block; margin-top: 18px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 12px; background: rgba(11,46,62,.45); font-weight: 800; }

/* FAQ and contact */
.coes-faq-grid { gap: 38px; }
.coes-faq-grid .wp-block-details { margin: 0 0 12px; padding: 18px 20px; border: 1px solid var(--coes-line); border-radius: 12px; background: white; }
.coes-faq-grid summary { color: var(--coes-ink); font-weight: 780; cursor: pointer; }
.coes-faq-grid .wp-block-details p { color: var(--coes-muted); line-height: 1.65; }
.coes-contact-card { height: 100%; padding: clamp(28px, 4vw, 46px); border-radius: 22px; background: var(--coes-deep); color: white; }
.coes-contact-card h3 { margin: 0 0 10px; color: white; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.coes-contact-card p { color: rgba(255,255,255,.8); }
.coes-contact-card .coes-live-cta { margin-top: 12px; }
.coes-contact-pending { padding: 16px; border: 1px dashed rgba(255,255,255,.42); border-radius: 12px; color: rgba(255,255,255,.82); font-size: .9rem; }

/* Footer */
.coes-footer { padding: 52px 24px 30px; background: var(--coes-deep); color: white; }
.coes-footer-grid { gap: 36px; }
.coes-footer .coes-brand { align-items: flex-start; }
.coes-footer a { color: white; }
.coes-footer p { color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.6; }
.coes-footer-legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.65); font-size: .78rem; }

@media (max-width: 1024px) {
  .coes-hero { min-height: 690px; background-position: 58% center; }
  .coes-service-grid { flex-wrap: wrap !important; }
  .coes-service-grid > .wp-block-column { flex-basis: calc(50% - 12px) !important; }
  .coes-process-grid { flex-wrap: wrap !important; }
  .coes-process-grid > .wp-block-column { flex-basis: 50% !important; }
  .coes-step:nth-child(2)::after { display: none; }
}

@media (max-width: 767px) {
  .coes-header-shell { padding: 8px 16px; }
  .coes-brand-copy span { display: none; }
  .coes-header-inner > .wp-block-shortcode { display: none; }
  .coes-hero { min-height: 680px; padding: 90px 18px 70px; background-position: 64% center; }
  .coes-hero::before { content: ""; position: absolute; inset: 0; background: rgba(5,24,33,.25); }
  .coes-hero h1 { max-width: 430px; font-size: clamp(3rem, 15vw, 4.5rem); }
  .coes-hero .wp-block-buttons { align-items: stretch; flex-direction: column; }
  .coes-hero .wp-block-button { width: 100%; }
  .coes-hero .wp-block-button__link { width: 100%; justify-content: center; }
  .coes-section { padding-inline: 18px; }
  .coes-route-grid,
  .coes-choice-grid { grid-template-columns: 1fr; }
  .coes-orientador { width: calc(100% - 28px); padding: 26px 20px; }
  .coes-orientador__head { align-items: start; flex-direction: column; }
  .coes-progress { width: 100%; text-align: left; }
  .coes-result { grid-template-columns: 1fr; }
  .coes-service-grid > .wp-block-column,
  .coes-process-grid > .wp-block-column { flex-basis: 100% !important; }
  .coes-step::after { display: none; }
  .coes-resources { background-position: 72% center; }
  .coes-resources .wp-block-group { padding-right: 38%; }
  .coes-trust { min-height: 700px; align-items: flex-start; padding-top: 70px; background-image: linear-gradient(180deg, rgba(11,46,62,.96) 0%, rgba(11,46,62,.7) 45%, rgba(11,46,62,.05) 82%), url("assets/images/team.webp"); background-position: 60% bottom; }
  .coes-faq-grid { flex-direction: column; }
  .coes-footer-grid { flex-direction: column; }
}

@media (max-width: 460px) {
  .coes-brand-copy strong { font-size: .92rem; }
  .coes-brand img { width: 38px; height: 50px; }
  .coes-resources { background-image: linear-gradient(180deg, rgba(247,242,234,.98) 0%, rgba(247,242,234,.9) 64%, rgba(247,242,234,.3) 100%), url("assets/images/resources.webp"); background-position: 68% bottom; }
  .coes-resources .wp-block-group { padding-right: 0; padding-bottom: 180px; }
}

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

/* Version 0.2: fidelidad con las maquetas aprobadas */
.coes-hero--v2 { min-height: 575px; padding-block: clamp(72px, 8vw, 110px); }
.coes-hero--v2 .coes-hero__content { padding-right: min(48vw, 650px); }
.coes-hero--v2 h1 { font-size: clamp(3.2rem, 5.6vw, 5.4rem); }
.coes-laptop-ui {
  position: absolute;
  z-index: 3;
  right: 13.8%;
  bottom: 16.5%;
  width: clamp(270px, 25vw, 420px);
  overflow: hidden;
  border: 5px solid #171b1c;
  border-radius: 12px;
  background: white;
  color: var(--coes-deep);
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
  transform: perspective(900px) rotateY(-2deg) rotateZ(.3deg);
}
.coes-laptop-ui__bar { padding: 8px 14px; background: var(--coes-blue); color: white; font-size: .75rem; font-weight: 850; letter-spacing: .08em; }
.coes-laptop-ui__body { display: grid; gap: 5px; padding: 13px 16px 16px; }
.coes-laptop-ui__body > strong,
.coes-laptop-ui__body > span { display: block; text-align: center; }
.coes-laptop-ui__body > strong { font-size: .78rem; }
.coes-laptop-ui__body > span { margin-bottom: 3px; font-size: .7rem; font-weight: 700; }
.coes-laptop-ui button { display: grid; grid-template-columns: 22px 1fr 16px; min-height: 34px; align-items: center; padding: 5px 9px; border: 1px solid #d8dde0; border-radius: 7px; background: white; color: var(--coes-deep); font-size: .7rem; font-weight: 720; text-align: left; cursor: pointer; }
.coes-laptop-ui button:hover { border-color: var(--coes-coral); background: #fff7f2; transform: translateX(2px); }
.coes-laptop-ui button b { color: var(--coes-coral); font-size: .9rem; text-align: center; }
.coes-laptop-ui button i { font-style: normal; font-size: 1rem; text-align: right; }

.coes-section--routes { padding-block: clamp(38px, 5vw, 66px); }
.coes-route-cards-v2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; width: min(1000px, 100%); margin: 34px auto 0; }
.coes-route-v2 { position: relative; display: grid; grid-template-columns: 110px 1fr 38px; min-height: 190px; align-items: center; overflow: hidden; border: 1px solid var(--coes-line); border-radius: 18px; background: white; color: var(--coes-ink); text-decoration: none; box-shadow: var(--coes-shadow); }
.coes-route-v2::after { content: ""; position: absolute; inset: auto 0 0; height: 34px; background: var(--route-color); }
.coes-route-v2--blue { --route-color: var(--coes-blue); }
.coes-route-v2--coral { --route-color: var(--coes-coral); }
.coes-route-v2__icon { display: grid; width: 76px; height: 76px; place-items: center; justify-self: center; border-radius: 50%; background: color-mix(in srgb, var(--route-color) 12%, white); color: var(--route-color); font-size: 2.5rem; }
.coes-route-v2 strong { display: block; font-family: Georgia, serif; font-size: clamp(1.6rem, 2.5vw, 2.25rem); line-height: 1.08; }
.coes-route-v2 small { display: block; margin-top: 12px; color: var(--coes-muted); font-weight: 700; }
.coes-route-v2 > b { position: relative; z-index: 1; align-self: end; padding-bottom: 5px; color: white; font-size: 1.5rem; }
.coes-route-v2:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(11,46,62,.16); }

.coes-guided-section { padding: 34px 24px; background-image: linear-gradient(rgba(247,242,234,.44), rgba(247,242,234,.44)), url("assets/images/city.webp"); background-position: center; background-size: cover; }
.coes-guided-grid { gap: 18px; align-items: stretch !important; }
.coes-wizard,
.coes-result-card,
.coes-advisor-card { height: 100%; box-sizing: border-box; border: 1px solid rgba(36,96,132,.16); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: var(--coes-shadow); }
.coes-wizard { min-height: 450px; padding: clamp(24px, 3vw, 36px); }
.coes-wizard__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.coes-wizard__head h2 { margin: 4px 0 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.coes-wizard__head > strong { color: var(--coes-blue); font-size: .86rem; white-space: nowrap; }
.coes-progress-line { position: relative; height: 34px; margin: 14px 10px 20px; }
.coes-progress-line::before,
.coes-progress-line__fill { content: ""; position: absolute; top: 15px; left: 0; height: 3px; border-radius: 99px; }
.coes-progress-line::before { width: 100%; background: #d8dde0; }
.coes-progress-line__fill { z-index: 1; width: 25%; background: var(--coes-blue); transition: width .25s ease; }
.coes-progress-line i { position: absolute; z-index: 2; top: 8px; width: 17px; height: 17px; border: 3px solid white; border-radius: 50%; background: #d8dde0; box-shadow: 0 0 0 1px #bbc5ca; }
.coes-progress-line i:nth-of-type(1) { left: 0; }
.coes-progress-line i:nth-of-type(2) { left: 33.333%; }
.coes-progress-line i:nth-of-type(3) { left: 66.666%; }
.coes-progress-line i:nth-of-type(4) { right: 0; }
.coes-progress-line i.is-active { background: var(--coes-blue); box-shadow: 0 0 0 2px var(--coes-blue); }
.coes-wizard-step[hidden] { display: none; }
.coes-wizard-step { outline: none; }
.coes-wizard-step h3 { margin: 0 0 14px; font-family: inherit; font-size: 1.08rem; letter-spacing: 0; }
.coes-wizard-step > p { color: var(--coes-muted); }
.coes-option-grid { display: grid; gap: 8px; }
.coes-option-grid--two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.coes-option { min-height: 46px; padding: 10px 14px; border: 1.5px solid #77a1ba; border-radius: 9px; background: white; color: var(--coes-blue); font: inherit; font-weight: 760; text-align: left; cursor: pointer; }
.coes-option:hover,
.coes-option[aria-pressed="true"] { border-color: var(--coes-coral); background: #fff5ef; color: #9c4026; box-shadow: 0 4px 12px rgba(200,100,66,.12); }
.coes-dual-question { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.coes-dual-question > div + div { padding-left: 24px; border-left: 1px solid var(--coes-line); }
.coes-wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.coes-next,
.coes-back { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 22px; border: 0; border-radius: 9px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
.coes-next { min-width: 160px; margin-left: auto; background: var(--coes-coral); color: white; }
.coes-next:disabled { cursor: not-allowed; opacity: .42; }
.coes-back { background: #e9f1f4; color: var(--coes-blue); }
.coes-result-card { display: flex; min-height: 450px; align-items: center; flex-direction: column; justify-content: center; padding: 26px 18px; text-align: center; }
.coes-result-card__icon { display: grid; width: 76px; height: 76px; place-items: center; margin-bottom: 18px; border-radius: 50%; background: var(--coes-ivory); color: var(--coes-blue); font-size: 2rem; font-weight: 900; }
.coes-result-card h3 { margin: 0 0 18px; font-family: inherit; font-size: 1.4rem; letter-spacing: 0; }
.coes-result-card > strong { color: var(--coes-blue); font-size: .82rem; }
.coes-result-card p { color: var(--coes-muted); font-size: .9rem; line-height: 1.45; }
.coes-result-card small { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--coes-line); color: #7a5d22; font-size: .75rem; }
.coes-advisor-card { min-height: 450px; overflow: hidden; padding: 22px 18px 18px; }
.coes-advisor-card h3 { margin: 0 0 5px; font-family: inherit; font-size: 1.35rem; letter-spacing: 0; }
.coes-advisor-card p { margin: 0; font-size: .9rem; }
.coes-advisor-card__photo { display: block; width: 100%; height: 210px; margin: 10px 0; object-fit: cover; object-position: center 24%; border-radius: 12px; }
.coes-advisor-card .wp-block-shortcode { margin: 7px 0 0; }
.coes-advisor-card .coes-live-cta { width: 100%; box-sizing: border-box; border: 0; background: #3f9f5b; color: white; }
.coes-advisor-card .coes-live-cta--phone { background: var(--coes-blue); }

.coes-solutions-section { padding: 42px 24px; background: white; }
.coes-solutions-section > h2 { margin-bottom: 24px; }
.coes-solution-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.coes-solution-card { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 6px 14px; padding: 18px; border: 1px solid var(--coes-line); border-radius: 14px; background: white; box-shadow: 0 8px 22px rgba(11,46,62,.06); }
.coes-line-icon { grid-row: 1 / 4; display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: var(--coes-ivory); color: var(--coes-blue); font-size: 1.7rem; }
.coes-icon { display: block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.coes-solution-card h3 { margin: 0; font-family: inherit; font-size: 1.05rem; letter-spacing: 0; }
.coes-solution-card button { min-height: 34px; border: 0; border-radius: 7px; background: var(--coes-coral); color: white; font-weight: 800; cursor: pointer; }
.coes-solution-card a { color: var(--coes-blue); font-size: .78rem; font-weight: 780; text-decoration: none; }
.coes-solution-card .coes-solution-card__page {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--coes-coral);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
}
.coes-solution-card .coes-solution-card__page:hover { background: #a94d31; transform: translateY(-1px); }
.coes-service-detail { position: relative; margin-top: 14px; padding: 22px 56px 22px 24px; border: 1px solid #d7e3e9; border-radius: 14px; background: #f2f7f9; }
.coes-service-detail[hidden] { display: none; }
.coes-service-detail h3 { margin: 0 0 5px; font-family: inherit; letter-spacing: 0; }
.coes-service-detail p { margin: 0 0 8px; color: var(--coes-muted); }
.coes-service-detail > button { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--coes-blue); font-size: 1.6rem; cursor: pointer; }
.coes-service-detail a { color: var(--coes-blue); font-weight: 800; }
.coes-process-v2 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 20px; border: 1px solid var(--coes-line); border-radius: 14px; background: #fffdfa; }
.coes-process-v2 > div { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 18px; }
.coes-process-v2 > div + div { border-left: 1px solid var(--coes-line); }
.coes-process-v2 b { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--coes-ivory); color: var(--coes-blue); }
.coes-process-v2 strong,
.coes-process-v2 small { display: block; }
.coes-process-v2 small { margin-top: 3px; color: var(--coes-muted); font-size: .74rem; line-height: 1.35; }
.coes-privacy-v2 { display: grid; grid-template-columns: 48px auto 1fr; align-items: center; gap: 18px; margin-top: 14px; padding: 16px 24px; border: 1px solid #cfdee6; border-radius: 14px; background: #edf5f9; }
.coes-privacy-v2 > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: white; color: var(--coes-blue); font-weight: 900; }
.coes-privacy-v2 p { margin: 0; color: var(--coes-muted); font-size: .84rem; }

.coes-info-v2 { padding: clamp(48px, 6vw, 78px) 24px; background-image: linear-gradient(90deg, rgba(247,242,234,.99) 0%, rgba(247,242,234,.94) 55%, rgba(247,242,234,.35) 80%), url("assets/images/resources.webp"); background-position: center; background-size: cover; }
.coes-info-v2 h2 { max-width: 620px; margin: 0; font-size: clamp(2.7rem, 4.8vw, 4.8rem); }
.coes-resource-search { width: min(720px,100%); margin: 24px auto; text-align: center; }
.coes-resource-search label { display: block; margin-bottom: 8px; color: var(--coes-blue); font-weight: 850; }
.coes-resource-search > div { position: relative; }
.coes-resource-search input { width: 100%; min-height: 50px; box-sizing: border-box; padding: 10px 50px 10px 16px; border: 1px solid var(--coes-line); border-radius: 10px; background: rgba(255,255,255,.94); color: var(--coes-ink); font-size: 1rem; }
.coes-resource-search > div span { position: absolute; top: 6px; right: 16px; color: var(--coes-blue); font-size: 1.7rem; }
.coes-resource-search small { display: block; margin-top: 5px; color: var(--coes-muted); }
.coes-resource-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.coes-resource-grid a { display: grid; grid-template-columns: 54px 1fr; gap: 2px 12px; padding: 18px; border: 1px solid var(--coes-line); border-radius: 14px; background: rgba(255,255,255,.92); color: var(--coes-ink); text-decoration: none; box-shadow: 0 8px 22px rgba(11,46,62,.06); }
.coes-resource-grid a[hidden] { display: none; }
.coes-resource-grid span { grid-row: 1/4; display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; background: #e6f0f5; color: var(--coes-blue); font-weight: 900; }
.coes-resource-grid small { color: var(--coes-muted); }
.coes-resource-grid b { color: var(--coes-blue); }

.coes-trust--v2 { min-height: 400px; padding: 54px 24px; background-image: linear-gradient(90deg, rgba(11,46,62,.94) 0%, rgba(11,46,62,.7) 36%, rgba(11,46,62,.05) 68%), url("assets/images/team-v2.webp"); background-position: center; }
.coes-trust--v2 h2 { max-width: 480px; font-size: clamp(2.4rem,4vw,4rem); }
.coes-trust--v2 > .wp-block-group > .wp-block-group { position: relative; }
.coes-trust-help { width: min(290px,100%); margin: 28px 0 0; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.94); color: var(--coes-deep); }
.coes-trust-help h3 { margin: 0 0 10px; color: var(--coes-deep); font-family: inherit; letter-spacing: 0; }
.coes-trust-help .coes-live-cta { width: 100%; box-sizing: border-box; border: 0; background: var(--coes-sage); }

.coes-final-section { padding: clamp(50px,6vw,82px) 24px; background: var(--coes-ivory); }
.coes-final-grid { gap: 42px; }
.coes-final-grid h2 { margin-top: 0; }
.coes-faq-v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coes-faq-v2 details { padding: 15px 17px; border: 1px solid var(--coes-line); border-radius: 10px; background: white; }
.coes-faq-v2 details[hidden] { display: none; }
.coes-faq-v2 summary { color: var(--coes-blue); font-size: .88rem; font-weight: 800; cursor: pointer; }
.coes-faq-v2 p { color: var(--coes-muted); font-size: .84rem; line-height: 1.55; }
.coes-next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coes-next-grid a { display: grid; grid-template-columns: 48px 1fr; gap: 5px 12px; min-height: 178px; padding: 18px; border: 1px solid var(--coes-line); border-radius: 14px; background: white; color: var(--coes-ink); text-decoration: none; }
.coes-next-grid span { grid-row: 1/4; display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: #e7f1f5; color: var(--coes-blue); font-size: 1.5rem; }
.coes-next-grid small { color: var(--coes-muted); line-height: 1.45; }
.coes-next-grid b { align-self: end; color: var(--coes-coral); font-size: 1.4rem; }
.coes-final-grid > .wp-block-column > .wp-block-shortcode { display: inline-block; margin: 14px 8px 0 0; }
.coes-final-grid .coes-live-cta { border-color: var(--coes-blue); background: var(--coes-blue); }
.coes-final-grid .coes-live-cta--phone { border-color: var(--coes-coral); background: var(--coes-coral); }

.coes-exit-card { position: fixed; z-index: 90; right: 24px; bottom: 24px; width: min(320px,calc(100vw - 32px)); box-sizing: border-box; padding: 26px; border: 1px solid var(--coes-line); border-radius: 18px; background: #fffaf4; box-shadow: 0 22px 70px rgba(11,46,62,.24); }
.coes-exit-card[hidden] { display: none; }
.coes-exit-card > button:first-child { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--coes-deep); font-size: 1.5rem; cursor: pointer; }
.coes-exit-card h2 { margin: 0 0 6px; color: var(--coes-coral); font-size: 1.9rem; }
.coes-exit-card p { color: var(--coes-muted); }
.coes-exit-card [data-exit-continue] { width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: var(--coes-blue); color: white; font-weight: 800; cursor: pointer; }

/* Version 0.4: iconografía y composición alineadas con las referencias maestras */
.coes-hero--v2 {
  min-height: 575px;
  background-position: center 48%;
}
.coes-hero--v2 .coes-hero__content { width: min(1360px, 100%); padding-right: min(51vw, 720px); }
.coes-laptop-ui { display: none; }

.coes-section-title,
.coes-route-v2 strong,
.coes-wizard h2,
.coes-info-v2 h2,
.coes-solutions-section h2,
.coes-final-section h2 { color: var(--coes-blue); }

.coes-route-v2__icon { font-size: 3rem; }
.coes-route-v2__icon .coes-icon { width: 1em; height: 1em; }

.coes-guided-grid,
.coes-solutions-section,
.coes-final-grid { width: min(1360px, calc(100vw - 56px)); max-width: none !important; margin-inline: auto; }
.coes-guided-section { padding-block: 38px; }
.coes-wizard { min-height: 470px; }
.coes-wizard-step h3 { color: var(--coes-blue); font-weight: 800; }
.coes-dual-question .coes-option { position: relative; padding-left: 46px; }
.coes-dual-question .coes-option::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translateY(-50%);
}
.coes-dual-question > div:first-child .coes-option::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}
.coes-wizard-step[data-step="2"] .coes-wizard-actions { justify-content: center; }
.coes-wizard-step[data-step="2"] .coes-next { margin-left: 0; min-width: min(350px, 65%); }
.coes-result-card__icon { font-size: 3.1rem; }
.coes-result-card__icon .coes-icon { width: 1em; height: 1em; }

.coes-solution-card { color: var(--coes-blue); }
.coes-line-icon { font-size: 2.4rem; }
.coes-line-icon .coes-icon { width: 1em; height: 1em; }
.coes-solution-card h3,
.coes-process-v2 strong,
.coes-privacy-v2 strong { color: var(--coes-blue); }
.coes-process-v2 b { font-size: 1.45rem; }
.coes-process-icon { display: grid; width: 44px; height: 44px; place-items: center; color: var(--coes-blue); font-size: 2rem; }
.coes-process-icon .coes-icon { width: 1em; height: 1em; }
.coes-privacy-v2 { grid-template-columns: 64px auto minmax(280px, 1fr); justify-content: center; text-align: left; }
.coes-privacy-v2 > span { width: 58px; height: 58px; border-radius: 50%; font-size: 2.1rem; }
.coes-privacy-v2 > span .coes-icon { width: 1em; height: 1em; }

.coes-info-v2 {
  padding-top: 52px;
  background-image: linear-gradient(90deg, rgba(247,242,234,.995) 0%, rgba(247,242,234,.94) 43%, rgba(247,242,234,.14) 72%), url("assets/images/resources.webp");
  background-position: center top;
}
.coes-info-v2 > .wp-block-group,
.coes-trust--v2 > .wp-block-group { width: min(1360px, calc(100vw - 56px)); }
.coes-info-v2 h2 { position: relative; max-width: 560px; padding-bottom: 22px; font-size: clamp(2.8rem, 4.1vw, 4.35rem); }
.coes-info-v2 h2::after,
.coes-final-grid h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58px;
  height: 4px;
  border-radius: 99px;
  background: var(--coes-coral);
}
.coes-resource-search { margin-top: 34px; }
.coes-resource-grid a { color: var(--coes-blue); }
.coes-resource-grid span { font-size: 1.9rem; }
.coes-resource-grid span .coes-icon { width: 1em; height: 1em; }

.coes-trust--v2 {
  min-height: 430px;
  background-image: linear-gradient(90deg, rgba(11,46,62,.78) 0%, rgba(11,46,62,.42) 34%, rgba(11,46,62,.02) 66%), url("assets/images/team-v2.webp");
  background-position: center 48%;
}
.coes-final-grid h2 { position: relative; padding-bottom: 17px; }
.coes-next-grid span { font-size: 2rem; }
.coes-next-grid span .coes-icon { width: 1em; height: 1em; }
.coes-exit-card { text-align: center; }

@media (max-width: 820px) {
  .coes-hero--v2 { padding-bottom: 110px; background-position: 64% center; }
  .coes-hero--v2 .coes-hero__content { padding-right: 0; }
  .coes-guided-grid,
  .coes-solutions-section,
  .coes-final-grid,
  .coes-info-v2 > .wp-block-group,
  .coes-trust--v2 > .wp-block-group { width: min(100%, calc(100vw - 36px)); }
}

@media (max-width: 600px) {
  .coes-privacy-v2 { grid-template-columns: 56px 1fr; text-align: left; }
  .coes-privacy-v2 p { grid-column: 1 / -1; }
  .coes-info-v2 { background-position: 62% top; }
}

/* 0.4.1: ajustes finales a partir de la revisión en staging */
.coes-hero .wp-block-buttons {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
}
.coes-hero .wp-block-button { flex: 0 0 auto; width: auto; }
.coes-hero .wp-block-button__link { width: auto; white-space: nowrap; }

.coes-icon { stroke-width: 2.35; }
.coes-route-v2--blue .coes-route-v2__icon { background: #e7eee7; color: var(--coes-sage); }
.coes-route-v2--coral .coes-route-v2__icon { width: 84px; height: 84px; color: var(--coes-coral); font-size: 3.25rem; }

.coes-wizard-step[data-step="2"] .coes-back { display: none; }
.coes-result-card__icon { width: 88px; height: 88px; font-size: 3.6rem; }
.coes-result-card small { display: flex; align-items: center; justify-content: center; gap: 9px; color: #7a5d22; }
.coes-info-mark { display: inline-grid; flex: 0 0 auto; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #d79513; color: white; font-size: .85rem; font-weight: 900; }
.coes-advisor-card h3 { color: var(--coes-blue); font-size: 1.5rem; }
.coes-advisor-card__photo { height: 230px; }

.coes-live-cta--whatsapp { gap: 9px; }
.coes-whatsapp-icon { flex: 0 0 auto; width: 1.35rem; height: 1.35rem; stroke-width: 2.2; }

.coes-line-icon,
.coes-process-icon,
.coes-resource-grid span,
.coes-next-grid span { stroke-width: 2.5; }
.coes-solution-card:nth-child(1) .coes-line-icon { background: #e6f0f5; color: var(--coes-blue); }
.coes-solution-card:nth-child(2) .coes-line-icon { background: #f7e5df; color: var(--coes-coral); }
.coes-solution-card:nth-child(3) .coes-line-icon { background: #faedcf; color: #d49322; }
.coes-solution-card:nth-child(4) .coes-line-icon { background: #e7ecdf; color: var(--coes-sage); }
.coes-process-v2 .coes-process-icon { font-size: 2.2rem; }

.coes-info-v2 { background-position: center bottom; }
.coes-resource-grid a:nth-child(1) span { background: #e6f0f5; color: var(--coes-blue); }
.coes-resource-grid a:nth-child(2) span { background: #f7e5df; color: var(--coes-coral); }
.coes-resource-grid a:nth-child(3) span { background: #faedcf; color: #d49322; }
.coes-resource-grid a:nth-child(4) span { background: #e7ecdf; color: var(--coes-sage); }
.coes-resource-grid a:nth-child(5) span { background: #e8eef3; color: var(--coes-deep); }

.coes-faq-v2 details { min-height: 70px; box-sizing: border-box; }
.coes-faq-v2 summary { min-height: 38px; display: flex; align-items: center; line-height: 1.4; }
.coes-next-grid a { align-content: center; align-items: center; }
.coes-next-grid span { align-self: center; }
.coes-next-grid a:nth-child(1) span { background: #e6f0f5; color: var(--coes-blue); }
.coes-next-grid a:nth-child(2) span { background: #f7e5df; color: var(--coes-coral); }

@media (max-width: 600px) {
  .coes-hero .wp-block-buttons { flex-direction: column; }
  .coes-hero .wp-block-button,
  .coes-hero .wp-block-button__link { width: 100%; }
  .coes-info-v2 { background-position: 62% bottom; }
}

@media (min-width: 1100px) {
  .coes-trust-help { margin-left: auto; margin-right: 4%; }
}

@media (max-width: 1100px) {
  .coes-laptop-ui { right: 8%; width: 330px; }
  .coes-guided-grid { flex-wrap: wrap !important; }
  .coes-guided-grid > .wp-block-column:first-child { flex-basis: 100% !important; }
  .coes-guided-grid > .wp-block-column:nth-child(2),
  .coes-guided-grid > .wp-block-column:nth-child(3) { flex-basis: calc(50% - 10px) !important; }
  .coes-result-card,
  .coes-advisor-card { min-height: 350px; }
  .coes-solution-grid,
  .coes-resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .coes-hero--v2 .coes-hero__content { padding-right: 0; }
  .coes-hero--v2 { padding-bottom: 330px; background-position: 64% center; }
  .coes-laptop-ui { right: 50%; bottom: 34px; width: min(420px,calc(100% - 36px)); transform: translateX(50%); }
  .coes-route-cards-v2 { grid-template-columns: 1fr; }
  .coes-solution-grid,
  .coes-resource-grid { grid-template-columns: 1fr 1fr; }
  .coes-process-v2 { grid-template-columns: 1fr 1fr; }
  .coes-process-v2 > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--coes-line); }
  .coes-process-v2 > div:nth-child(4) { border-top: 1px solid var(--coes-line); }
  .coes-privacy-v2 { grid-template-columns: 48px 1fr; }
  .coes-privacy-v2 p { grid-column: 1/-1; }
  .coes-final-grid { flex-direction: column; }
}

@media (max-width: 600px) {
  .coes-route-v2 { grid-template-columns: 76px 1fr 28px; min-height: 170px; }
  .coes-route-v2__icon { width: 58px; height: 58px; font-size: 1.8rem; }
  .coes-wizard__head { align-items: start; flex-direction: column; }
  .coes-dual-question { grid-template-columns: 1fr; }
  .coes-dual-question > div + div { padding: 18px 0 0; border-top: 1px solid var(--coes-line); border-left: 0; }
  .coes-option-grid--two { grid-template-columns: 1fr; }
  .coes-guided-grid > .wp-block-column:nth-child(2),
  .coes-guided-grid > .wp-block-column:nth-child(3) { flex-basis: 100% !important; }
  .coes-solution-grid,
  .coes-resource-grid,
  .coes-process-v2,
  .coes-faq-v2,
  .coes-next-grid { grid-template-columns: 1fr; }
  .coes-process-v2 > div + div { border-top: 1px solid var(--coes-line); border-left: 0; }
  .coes-info-v2 { background-image: linear-gradient(180deg,rgba(247,242,234,.99),rgba(247,242,234,.87)),url("assets/images/resources.webp"); }
  .coes-trust--v2 { min-height: 620px; align-items: start; background-image: linear-gradient(180deg,rgba(11,46,62,.96),rgba(11,46,62,.68) 48%,rgba(11,46,62,.08)),url("assets/images/team-v2.webp"); background-position: 58% bottom; }
  .coes-exit-card { right: 16px; bottom: 16px; }
}

/* Version 0.3: ajuste visual a partir de la revisión real en staging */
.coes-header-shell .wp-block-navigation a,
.coes-header-shell .wp-block-navigation-item__content,
.coes-header-shell .wp-block-navigation-item__label {
  color: var(--coes-white) !important;
}

.coes-laptop-ui {
  right: 15.6%;
  bottom: 16.4%;
  width: clamp(350px, 27vw, 470px);
}

.coes-route-cards-v2,
.coes-solution-grid,
.coes-service-detail,
.coes-process-v2,
.coes-privacy-v2,
.coes-resource-grid {
  position: relative;
  left: 50%;
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  transform: translateX(-50%);
}

.coes-route-cards-v2 {
  width: min(1060px, calc(100vw - 48px));
}
.coes-route-v2 {
  grid-template-columns: 112px 1fr 42px;
  min-height: 226px;
  padding: 22px 24px 60px;
  box-sizing: border-box;
}
.coes-route-v2::after { height: 48px; }
.coes-route-v2 > b {
  position: absolute;
  right: 22px;
  bottom: 6px;
  padding: 0;
}
.coes-route-v2 strong { font-size: clamp(1.8rem, 2.35vw, 2.35rem); }

.coes-wizard-actions .coes-next { min-width: 190px; }
.coes-wizard-step[data-step="1"] .coes-wizard-actions { justify-content: flex-end; }

.coes-advisor-actions,
.coes-final-actions {
  display: grid;
  gap: 9px;
}
.coes-advisor-actions .coes-live-cta,
.coes-final-actions .coes-live-cta {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 0;
  color: white;
}
.coes-advisor-actions .coes-live-cta--phone,
.coes-final-actions .coes-live-cta--phone { background: var(--coes-blue); }
.coes-advisor-actions .coes-live-cta--whatsapp,
.coes-final-actions .coes-live-cta--whatsapp { background: #3f9f5b; }
.coes-final-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.coes-solution-card {
  grid-template-columns: 72px 1fr;
  min-height: 182px;
  padding: 24px;
  box-sizing: border-box;
  gap: 8px 16px;
}
.coes-line-icon { width: 66px; height: 66px; }
.coes-solution-card h3 { font-size: 1.14rem; }
.coes-solution-card button { min-height: 44px; padding: 9px 14px; font-size: .9rem; }
.coes-solution-card a { font-size: .86rem; line-height: 1.35; }
.coes-process-v2 > div { min-height: 104px; padding: 22px; box-sizing: border-box; }
.coes-privacy-v2 { min-height: 76px; box-sizing: border-box; }

.coes-info-v2 > .wp-block-group,
.coes-trust--v2 > .wp-block-group {
  width: min(1180px, calc(100vw - 48px));
  max-width: none !important;
}
.coes-info-v2 > .wp-block-group > .coes-eyebrow,
.coes-info-v2 > .wp-block-group > h2,
.coes-trust--v2 > .wp-block-group > h2,
.coes-trust--v2 > .wp-block-group > p,
.coes-trust--v2 > .wp-block-group > .coes-trust-help {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.coes-info-v2 h2 {
  max-width: 650px;
  font-size: clamp(2.7rem, 4.2vw, 4.25rem);
}
.coes-resource-grid a {
  min-height: 150px;
  align-content: center;
  box-sizing: border-box;
  padding: 22px;
}
.coes-trust--v2 h2 { max-width: 510px; font-size: clamp(2.5rem, 3.7vw, 3.8rem); }
.coes-trust-help { margin-top: 24px !important; }
.coes-trust-help .coes-live-cta--whatsapp { background: var(--coes-sage); }

.coes-footer h3 { color: var(--coes-white); }
.coes-footer .coes-live-cta--whatsapp { background: var(--coes-sage); border-color: var(--coes-sage); }

@media (max-width: 1100px) {
  .coes-laptop-ui { right: 7%; width: 360px; }
}

@media (max-width: 820px) {
  .coes-laptop-ui {
    right: 50%;
    bottom: 34px;
    width: min(440px, calc(100% - 36px));
    transform: translateX(50%);
  }
  .coes-route-cards-v2,
  .coes-solution-grid,
  .coes-service-detail,
  .coes-process-v2,
  .coes-privacy-v2,
  .coes-resource-grid {
    left: auto;
    width: 100%;
    transform: none;
  }
  .coes-route-v2 { min-height: 210px; }
}

@media (max-width: 600px) {
  .coes-route-v2 {
    grid-template-columns: 68px 1fr;
    min-height: 190px;
    padding: 22px 18px 58px;
  }
  .coes-route-v2 > b { right: 18px; }
  .coes-solution-card { min-height: 164px; }
  .coes-final-actions { grid-template-columns: 1fr; }
}

/* 0.4 final overrides: deben permanecer después de los ajustes 0.3 */
.coes-hero--v2 {
  min-height: 575px;
  background-position: center 48%;
}
.coes-hero--v2 .coes-hero__content { width: min(1360px, 100%); padding-right: min(51vw, 720px); }
.coes-laptop-ui { display: none; }
.coes-route-cards-v2,
.coes-solution-grid,
.coes-service-detail,
.coes-process-v2,
.coes-privacy-v2,
.coes-resource-grid { width: min(1360px, calc(100vw - 56px)); }
.coes-route-cards-v2 { width: min(1120px, calc(100vw - 56px)); }
.coes-guided-grid,
.coes-solutions-section,
.coes-final-grid,
.coes-info-v2 > .wp-block-group,
.coes-trust--v2 > .wp-block-group { width: min(1360px, calc(100vw - 56px)); max-width: none !important; margin-inline: auto; }
.coes-process-v2 > div { grid-template-columns: 42px 48px 1fr; align-items: center; padding: 22px 18px; }
.coes-wizard-step[data-step="2"] .coes-wizard-actions { justify-content: center; }
.coes-wizard-step[data-step="2"] .coes-next { margin-left: 0; min-width: min(350px, 65%); }
.coes-info-v2 {
  padding-top: 52px;
  background-image: linear-gradient(90deg, rgba(247,242,234,.995) 0%, rgba(247,242,234,.94) 43%, rgba(247,242,234,.14) 72%), url("assets/images/resources.webp");
  background-position: center top;
}
.coes-trust--v2 {
  min-height: 430px;
  background-image: linear-gradient(90deg, rgba(11,46,62,.78) 0%, rgba(11,46,62,.42) 34%, rgba(11,46,62,.02) 66%), url("assets/images/team-v2.webp");
  background-position: center 48%;
}
@media (max-width: 820px) {
  .coes-hero--v2 { padding-bottom: 110px; background-position: 64% center; }
  .coes-hero--v2 .coes-hero__content { padding-right: 0; }
  .coes-route-cards-v2,
  .coes-solution-grid,
  .coes-service-detail,
  .coes-process-v2,
  .coes-privacy-v2,
  .coes-resource-grid { width: 100%; }
  .coes-guided-grid,
  .coes-solutions-section,
  .coes-final-grid,
  .coes-info-v2 > .wp-block-group,
  .coes-trust--v2 > .wp-block-group { width: min(100%, calc(100vw - 36px)); }
}
@media (max-width: 600px) {
  .coes-process-v2 > div { grid-template-columns: 42px 48px 1fr; }
  .coes-info-v2 { background-position: 62% top; }
}

/* 0.4.2: fidelidad final contra la maqueta aprobada */
.coes-header-shell .wp-block-navigation { margin-left: auto; }
.coes-next,
.coes-next:disabled { background: #cf532f; color: #fff; opacity: 1; }
.coes-next:disabled { cursor: not-allowed; }
.coes-line-icon { width: 76px; height: 76px; font-size: 2.85rem; }
.coes-solution-card { grid-template-columns: 82px 1fr; }
.coes-process-v2 > div { grid-template-columns: 42px 58px 1fr; }
.coes-process-v2 .coes-process-icon { width: 54px; height: 54px; font-size: 2.65rem; }
.coes-resource-grid a { grid-template-columns: 64px 1fr; }
.coes-resource-grid span { width: 58px; height: 58px; font-size: 2.3rem; }
.coes-line-icon .coes-icon,
.coes-process-icon .coes-icon,
.coes-resource-grid span .coes-icon { stroke-width: 2.75; }
.coes-live-cta--whatsapp,
.coes-advisor-actions .coes-live-cta--whatsapp,
.coes-final-actions .coes-live-cta--whatsapp,
.coes-trust-help .coes-live-cta--whatsapp,
.coes-footer .coes-live-cta--whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.coes-whatsapp-icon { width: 1.45rem; height: 1.45rem; stroke-width: 2.55; }
.coes-info-v2 { background-position: center top; }
@media (max-width: 600px) {
  .coes-solution-card { grid-template-columns: 74px 1fr; }
  .coes-line-icon { width: 68px; height: 68px; font-size: 2.5rem; }
  .coes-process-v2 > div { grid-template-columns: 42px 54px 1fr; }
  .coes-info-v2 { background-position: 62% top; }
}

/* 0.4.3: iconos entregados por el cliente y composición superior */
.coes-pensiones-reference {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.coes-solution-card:nth-child(2) .coes-line-icon {
  overflow: hidden;
  background: transparent;
}
.coes-whatsapp-icon {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
}
.coes-info-v2 {
  background-color: var(--coes-ivory);
  background-position: center -210px;
  background-repeat: no-repeat;
}
@media (max-width: 820px) {
  .coes-info-v2 { background-position: 62% -160px; }
}
@media (max-width: 600px) {
  .coes-info-v2 { background-position: 62% -90px; }
}

/* 0.4.5: centra las dos rutas respecto de la ventana */
.coes-route-cards-v2 {
  left: auto;
  margin-inline: auto;
  transform: none;
}
