/* ==========================================================================
   CÁMARA DE COMERCIO PRO - THEME STYLESHEET
   Desarrollado a partir del prototipo institucional de Figma Make
   ========================================================================== */

:root {
  --navy: #122057;
  --blue: #162a71;
  --blue-bright: #2443b8;
  --yellow: #f8d248;
  --ink: #101735;
  --muted: #66708a;
  --line: #e6e9f1;
  --soft: #f4f6fa;
  --white: #ffffff;
  --success: #19784b;
  --success-soft: #f0f8f4;
  --success-line: #dcebe4;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 18px 50px rgba(18, 32, 87, 0.09);
  --font-heading: "Manrope", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6, p {
  margin-top: 0;
}

h1, h2, h3, h4, h5, h6, b, strong {
  font-family: var(--font-heading);
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: 108px;
}

/* ==========================================================================
   HEADER & NAVEGACIÓN
   ========================================================================== */

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(230, 233, 241, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background .2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo-link, .logo-button {
  display: flex;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  text-decoration: none;
}

.header-logo {
  width: 235px;
  max-height: 60px;
  object-fit: contain;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  color: var(--navy);
}

.logo-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 12px 12px 12px 3px;
  background: var(--navy);
  color: var(--yellow);
  transform: rotate(-5deg);
}

.logo-mark span {
  font: 800 24px/1 var(--font-heading);
  transform: rotate(5deg);
}

.logo-copy {
  display: grid;
  line-height: 1.15;
}

.logo-copy b {
  font-size: 14px;
}

.logo-copy small {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
}

.logo-light {
  color: var(--white);
}

.logo-light .logo-mark {
  background: var(--yellow);
  color: var(--navy);
}

.logo-light .logo-copy small {
  color: rgba(255, 255, 255, 0.7);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav-list,
.main-nav ul,
.main-nav .menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.main-nav-list li,
.main-nav li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.nav-link {
  position: relative;
  border: 0;
  padding: 13px 15px;
  background: transparent;
  color: #48506a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color .2s ease;
}

.nav-link:hover, .nav-link.active, .nav-link.current-menu-item {
  color: var(--navy);
}

.nav-link.active::after, .nav-link.current-menu-item::after {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
  transform: translateX(-50%);
}

.menu-button {
  display: none;
  border: 0;
  padding: 10px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   BOTONES Y ACCIONES
   ========================================================================== */

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 9px 24px rgba(248, 210, 72, 0.25);
}

.btn-primary:hover {
  background: #ffdc59;
  box-shadow: 0 12px 30px rgba(248, 210, 72, 0.34);
}

.btn-secondary {
  background: var(--navy);
  color: white;
}

.btn-secondary:hover {
  background: #0d1740;
}

.btn-ghost {
  padding-inline: 12px;
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  color: var(--blue-bright);
}

.btn-light {
  background: white;
  color: var(--navy);
}

.btn-outline {
  min-height: 46px;
  border-color: #cbd2e3;
  background: white;
  color: var(--navy);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--blue);
  background: var(--soft);
  box-shadow: 0 8px 20px rgba(18, 32, 87, 0.08);
}

/* ==========================================================================
   ELEMENTOS DE ENCABEZADO
   ========================================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue);
  font: 700 12px/1.2 var(--font-heading);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
  flex-shrink: 0;
}

.eyebrow-light {
  color: var(--yellow);
}

.eyebrow-light > span {
  background: var(--yellow);
}

.section-heading {
  max-width: 670px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.heading-center {
  margin-inline: auto;
  text-align: center;
}

.heading-center .eyebrow {
  justify-content: center;
}

.heading-light h2, .heading-light p {
  color: white;
}

.icon-box {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: #ebeffb;
  color: var(--blue);
}

.icon-box.yellow {
  background: var(--yellow);
  color: var(--navy);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  display: grid;
  min-height: 680px;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 70px;
  padding-block: 64px 84px;
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(49px, 5.8vw, 76px);
  line-height: .98;
  letter-spacing: -.06em;
}

.hero-copy h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-copy > p {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-trust p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hero-trust b {
  color: var(--ink);
  font-size: 14px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-left: -8px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 9px;
  font-weight: 700;
}

.avatar-stack span:first-child {
  margin-left: 0;
  background: var(--yellow);
  color: var(--navy);
}

.avatar-stack span:last-child {
  background: #8fa2d7;
}

.hero-visual {
  position: relative;
  min-height: 530px;
}

.hero-visual > img {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 92%;
  height: 92%;
  border-radius: 110px 28px 28px 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: opacity .4s ease;
}

.hero-visual::after {
  position: absolute;
  z-index: 3;
  inset: auto 0 0 8%;
  height: 55%;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(transparent, rgba(18, 32, 87, 0.45));
  content: "";
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  top: 0;
  right: -30px;
  width: 210px;
  height: 210px;
  border-radius: 50% 50% 8px 50%;
  background: var(--yellow);
}

.floating-card {
  position: absolute;
  z-index: 5;
  top: 42px;
  left: -30px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 19px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.floating-card div {
  display: grid;
}

.floating-card b {
  font-size: 17px;
}

.floating-card small {
  color: var(--muted);
}

.floating-stat {
  position: absolute;
  z-index: 5;
  right: -25px;
  bottom: 30px;
  display: grid;
  max-width: 150px;
  padding: 20px;
  border-radius: 18px;
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
}

.floating-stat span {
  color: var(--yellow);
  font: 800 27px var(--font-heading);
}

.floating-stat small {
  line-height: 1.35;
}

.hero-carousel-controls {
  position: absolute;
  z-index: 6;
  bottom: 22px;
  left: 12%;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(8, 15, 44, 0.72);
  backdrop-filter: blur(8px);
}

.hero-carousel-controls > div {
  display: flex;
  gap: 6px;
}

.hero-carousel-controls > div button {
  width: 7px;
  height: 7px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hero-carousel-controls > div button.active {
  width: 20px;
  border-radius: 7px;
  background: var(--yellow);
}

/* ==========================================================================
   QUICK BAR (BARRA RÁPIDA DE CONTACTO)
   ========================================================================== */

.quick-bar {
  background: var(--navy);
  color: white;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1.2fr 1.35fr;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.quick-item svg {
  color: var(--yellow);
  flex-shrink: 0;
}

.quick-item span {
  display: grid;
  min-width: 0;
}

.quick-item small {
  margin-bottom: 3px;
  color: #abb5d7;
  font-size: 11px;
}

.quick-item b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.experience {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  background: var(--blue);
}

.experience strong {
  color: var(--yellow);
  font-size: 47px;
  letter-spacing: -.05em;
  font-family: var(--font-heading);
}

.experience span {
  font-size: 13px;
  line-height: 1.45;
}

/* ==========================================================================
   SERVICIOS DESTACADOS (3 TARJETAS)
   ========================================================================== */

.three-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card .service-number {
  position: absolute;
  top: 26px;
  right: 28px;
  color: #b6bdd0;
  font: 700 12px var(--font-heading);
}

.service-card h3 {
  margin: 45px 0 15px;
  font-size: 24px;
  letter-spacing: -.03em;
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
}

.service-card .circle-link {
  position: absolute;
  right: 25px;
  bottom: 25px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--navy);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.service-card:hover .circle-link {
  transform: scale(1.08);
}

.service-2 {
  background: var(--navy);
  color: white;
}

.service-2 p {
  color: #bfc7e3;
}

.service-2 .icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
}

.service-2 .circle-link {
  background: var(--yellow);
  color: var(--navy);
}

/* ==========================================================================
   STORY SPLIT (NUESTRA ESENCIA)
   ========================================================================== */

.story-split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 80px;
}

.story-image {
  position: relative;
}

.story-image img {
  width: 100%;
  height: 550px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.story-image::before {
  position: absolute;
  z-index: -1;
  right: -25px;
  bottom: -25px;
  width: 70%;
  height: 70%;
  border-radius: var(--radius-lg);
  background: var(--yellow);
  content: "";
}

.story-badge {
  position: absolute;
  right: -30px;
  bottom: 45px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 21px;
  border-radius: 17px;
  background: white;
  color: var(--blue);
  box-shadow: var(--shadow);
}

.story-badge span {
  font-size: 12px;
  line-height: 1.35;
}

.story-badge b {
  font-size: 17px;
}

.story-copy .section-heading {
  margin-bottom: 30px;
}

.values-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 34px;
}

.values-mini > div {
  display: flex;
  gap: 11px;
}

.values-mini svg {
  margin-top: 2px;
  color: var(--blue);
  flex-shrink: 0;
}

.values-mini span {
  display: grid;
  gap: 3px;
}

.values-mini small {
  color: var(--muted);
  line-height: 1.4;
}

/* ==========================================================================
   BANNERS INSTITUCIONALES (EDU BANNER & BUSINESS BANNER)
   ========================================================================== */

.banner-section {
  background: white;
}

.edu-banner {
  display: grid;
  grid-template-columns: 1.1fr .85fr .85fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.edu-photo {
  position: relative;
  min-height: 410px;
}

.edu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-label {
  position: absolute;
  bottom: 26px;
  left: 26px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.edu-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px;
  background: white;
}

.edu-title h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.edu-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px;
  background: var(--blue);
  color: white;
}

.edu-copy p {
  color: #cbd2e9;
  line-height: 1.75;
}

.edu-copy button, .detail-card > button, .edu-copy a.btn-link {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  border: 0;
  padding: 12px 0;
  background: transparent;
  color: var(--yellow);
  font-weight: 700;
  cursor: pointer;
}

.soft-section {
  background: var(--soft);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.program-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.program-card h3 {
  margin: 35px 0 12px;
  font-size: 21px;
  letter-spacing: -.03em;
}

.program-card p {
  color: var(--muted);
  line-height: 1.6;
}

.program-card > a, .program-card > button {
  position: absolute;
  right: 25px;
  bottom: 22px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--navy);
}

.tone-blue {
  background: var(--blue);
  color: white;
}

.tone-blue p, .tone-navy p {
  color: #c8d0ea;
}

.tone-blue .icon-box, .tone-navy .icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
}

.tone-blue > a, .tone-blue > button, .tone-navy > a, .tone-navy > button {
  background: var(--yellow);
  color: var(--navy);
}

.tone-yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}

.tone-yellow .icon-box {
  background: rgba(255, 255, 255, 0.5);
}

.tone-navy {
  background: var(--navy);
  color: white;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ==========================================================================
   CONVENIOS PREVIEW (HOME BENEFIT GRID)
   ========================================================================== */

.agreements-preview {
  background: var(--soft);
}

.home-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.home-benefit-card {
  min-height: 245px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: transform .25s ease, box-shadow .25s ease;
}

.home-benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.home-benefit-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-benefit-card small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-benefit-card h3 {
  margin: 35px 0 11px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.home-benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.home-benefit-blue {
  border-color: var(--blue-bright);
  background: var(--blue-bright);
  color: white;
}

.home-benefit-blue .icon-box, .home-benefit-navy .icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
}

.home-benefit-blue small, .home-benefit-navy small {
  color: var(--yellow);
}

.home-benefit-blue p, .home-benefit-navy p {
  color: #c8d0ea;
}

.home-benefit-yellow {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--navy);
}

.home-benefit-yellow .icon-box {
  background: rgba(255, 255, 255, 0.5);
}

.home-benefit-navy {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.agreements-preview-action {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ==========================================================================
   BUSINESS BANNER & BENEFITS GRID
   ========================================================================== */

.business-banner {
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: white;
}

.business-photo {
  min-height: 550px;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.business-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 65px;
}

.business-content h2 {
  margin-bottom: 20px;
  font-size: clamp(35px, 4vw, 49px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.business-content > p {
  color: #bdc6e2;
  font-size: 17px;
  line-height: 1.7;
}

.business-content .btn {
  align-self: flex-start;
}

.stats-row {
  display: flex;
  gap: 50px;
  margin: 20px 0 34px;
}

.stats-row > div {
  display: grid;
}

.stats-row b {
  color: var(--yellow);
  font-size: 31px;
}

.stats-row span {
  color: #aeb9dc;
  font-size: 12px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.benefit-column {
  padding: 50px;
}

.benefit-column h3 {
  margin: 30px 0;
  font-size: 28px;
}

.benefit-column p {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.benefit-column p svg {
  color: var(--blue);
  flex-shrink: 0;
}

.benefit-column.dark {
  background: var(--blue);
  color: white;
}

.benefit-column.dark .icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
}

.benefit-column.dark p {
  border-color: rgba(255, 255, 255, 0.12);
  color: #d4d9eb;
}

.benefit-column.dark p svg {
  color: var(--yellow);
}

.allies {
  padding-block: 85px;
  background: var(--soft);
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 14px;
}

.logo-row b, .logo-row .ally-item {
  display: grid;
  min-height: 95px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: #8991a5;
  text-align: center;
  filter: grayscale(1);
  font-size: 14px;
  padding: 12px;
  transition: filter .2s ease;
}

.logo-row b:hover, .logo-row .ally-item:hover {
  filter: grayscale(0);
}

/* ==========================================================================
   ESPACIOS PUBLICITARIOS & PROMOTIONAL CAROUSEL
   ========================================================================== */

.promotional-wrap {
  padding-block: 70px;
}

.promotional-carousel {
  position: relative;
  display: grid;
  min-height: 231px;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: white;
}

.promotional-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
}

.promotional-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -5px;
}

.promotional-carousel.has-image {
  grid-template-columns: 1.15fr .85fr;
}

.promotional-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 30px 42px;
  pointer-events: none;
}

.promotional-copy h2 {
  max-width: 780px;
  margin-bottom: 10px;
  font-size: clamp(27px, 3.3vw, 36px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.promotional-copy p {
  max-width: 710px;
  margin-bottom: 15px;
  color: #c4cce4;
  font-size: 13px;
  line-height: 1.55;
}

.promotional-copy .eyebrow {
  margin-bottom: 11px;
}

.promotional-copy .btn {
  min-height: 42px;
  align-self: flex-start;
  pointer-events: auto;
}

.promotional-carousel.is-placeholder {
  background: linear-gradient(135deg, var(--blue), var(--navy));
}

.promotional-carousel.is-placeholder::before, .promotional-carousel.is-placeholder::after {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.promotional-carousel.is-placeholder::before {
  top: -140px;
  left: -60px;
}

.promotional-carousel.is-placeholder::after {
  right: -70px;
  bottom: -170px;
}

.promotional-carousel.is-placeholder .promotional-copy {
  align-items: center;
  text-align: center;
}

.promotional-carousel.is-placeholder .promotional-copy h2 {
  margin: 0;
  color: white;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: .08em;
}

.promotional-image {
  min-height: 231px;
}

.promotional-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promotional-controls {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(8, 15, 44, 0.72);
  backdrop-filter: blur(8px);
}

.promotional-controls span {
  min-width: 42px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

/* ==========================================================================
   CONTACT SECTION & LOCATION MAP
   ========================================================================== */

.contact-section {
  padding-block: 110px;
  background: white;
}

.contact-section.compact {
  background: var(--soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form {
  padding: 56px;
  background: var(--soft);
}

.contact-form h2 {
  max-width: 550px;
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 47px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.contact-form > p {
  color: var(--muted);
}

.contact-form form {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  padding: 15px 16px;
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  resize: vertical;
  transition: border .2s ease, box-shadow .2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 42, 113, 0.1);
}

.contact-form form .btn {
  justify-self: start;
}

.contact-info {
  padding: 56px 42px;
  background: var(--navy);
  color: white;
}

.contact-info h3 {
  margin-bottom: 10px;
  font-size: 30px;
}

.contact-info > p {
  color: #b8c2e0;
}

.contact-info > div:not(.eyebrow):not(.hours) {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.contact-info .icon-box {
  width: 43px;
  height: 43px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
}

.contact-info div p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.contact-info small {
  color: #929fc8;
}

.contact-info b {
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hours {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #c1c9df;
  font-size: 12px;
}

.hours svg {
  color: var(--yellow);
}

.success-message {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: white;
}

.success-message p {
  margin: 4px 0 0;
  color: var(--muted);
}

.location-section {
  padding-top: 105px;
  background: white;
}

.location-header {
  padding-bottom: 48px;
}

.location-intro {
  max-width: 680px;
}

.location-intro > h2 {
  margin-bottom: 18px;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.location-intro > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.map-frame {
  width: 100%;
  min-height: 540px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 540px;
  border: 0;
  filter: saturate(.75) contrast(1.04);
}

/* ==========================================================================
   PÁGINAS INTERNAS & HERO
   ========================================================================== */

.page-hero {
  overflow: hidden;
  background: var(--navy);
  color: white;
}

.page-hero-inner {
  display: grid;
  min-height: 570px;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 75px;
  padding-block: 75px;
}

.page-hero h1 {
  max-width: 690px;
  margin: 0 0 24px;
  font-size: clamp(48px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.page-hero p {
  max-width: 650px;
  margin-bottom: 30px;
  color: #bdc6e2;
  font-size: 18px;
  line-height: 1.7;
}

.page-hero-image {
  position: relative;
}

.page-hero-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 430px;
  border-radius: 80px 20px 20px 20px;
  object-fit: cover;
}

.page-hero-dot {
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--yellow);
}

.intro-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
}

.intro-grid .section-heading {
  margin: 0;
}

.long-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.leadership-messages {
  background: var(--soft);
}

.leadership-message-list {
  display: grid;
  gap: 24px;
}

.leadership-message {
  display: grid;
  min-height: 560px;
  grid-template-columns: .88fr 1.12fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow);
}

.leadership-message-reverse {
  grid-template-columns: 1.12fr .88fr;
}

.leadership-message-reverse .leadership-portrait {
  grid-column: 2;
}

.leadership-message-reverse .leadership-message-copy {
  grid-column: 1;
  grid-row: 1;
}

.leadership-portrait {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.leadership-portrait::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(8, 15, 44, 0.62));
  content: "";
}

.leadership-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leadership-portrait > span {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 28px;
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.leadership-message-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px;
}

.leadership-message-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.leadership-message-copy > p {
  color: var(--muted);
  line-height: 1.75;
}

.leadership-message-copy .leadership-quote {
  padding-left: 22px;
  border-left: 4px solid var(--yellow);
  color: var(--navy);
  font: 600 18px/1.65 var(--font-heading);
}

.leadership-message-copy .btn {
  align-self: flex-start;
  margin-top: 18px;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.purpose-card {
  min-height: 460px;
  padding: 48px;
  border-radius: var(--radius-lg);
}

.purpose-card.navy {
  background: var(--navy);
  color: white;
}

.purpose-card.yellow {
  background: var(--yellow);
  color: var(--navy);
}

.purpose-card .eyebrow {
  margin-top: 65px;
}

.purpose-card.yellow .eyebrow span {
  background: var(--blue);
}

.purpose-card h2 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.purpose-card p {
  max-width: 500px;
  line-height: 1.75;
  opacity: .8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.values-grid article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.values-grid article > span {
  color: #aab2c8;
  font: 700 12px var(--font-heading);
}

.values-grid h3 {
  margin-top: 70px;
  font-size: 21px;
}

.values-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.timeline-section {
  background: var(--navy);
  color: white;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.timeline > div {
  position: relative;
}

.timeline b {
  color: var(--yellow);
  font-size: 30px;
}

.timeline span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 22px 0;
  background: #46517a;
}

.timeline span::before {
  display: block;
  width: 10px;
  height: 10px;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  background: var(--navy);
  content: "";
  transform: translateY(-5px);
}

.timeline p {
  max-width: 200px;
  color: #bdc6e2;
  font-size: 14px;
  line-height: 1.6;
}

.leadership {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 80px;
}

.leadership-copy .section-heading {
  margin-bottom: 28px;
}

.quote-card {
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--soft);
}

.quote-card svg {
  color: var(--blue);
}

.quote-card blockquote {
  margin: 35px 0 25px;
  font: 600 28px/1.4 var(--font-heading);
  letter-spacing: -.03em;
}

.quote-card p {
  margin: 0;
  color: var(--muted);
}

/* ==========================================================================
   SERVICIOS CATÁLOGO Y PROCESO
   ========================================================================== */

.service-intro {
  display: grid;
  grid-template-columns: .5fr 1fr .5fr;
  align-items: center;
  gap: 60px;
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
}

.service-intro div {
  display: grid;
}

.service-intro div:last-child {
  text-align: right;
}

.service-intro b {
  color: var(--blue);
  font-size: 34px;
}

.service-intro span {
  color: var(--muted);
  font-size: 12px;
}

.service-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.detail-card {
  display: flex;
  min-height: 470px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: transform .2s ease, box-shadow .2s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #adb5c9;
  font: 700 12px var(--font-heading);
}

.detail-card h3 {
  margin: 40px 0 13px;
  font-size: 24px;
}

.detail-card > p {
  color: var(--muted);
  line-height: 1.65;
}

.detail-card ul {
  display: grid;
  gap: 11px;
  margin: 15px 0 25px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.detail-card li {
  display: flex;
  gap: 9px;
  color: #4f5972;
  font-size: 13px;
}

.detail-card li svg {
  color: var(--blue);
  flex-shrink: 0;
}

.detail-card > button, .detail-card > a.btn-link {
  margin-top: auto;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}

.process {
  background: var(--soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.process-grid article {
  position: relative;
  min-height: 260px;
  padding: 30px;
  border-radius: var(--radius);
  background: white;
}

.process-grid article > b {
  position: absolute;
  top: 28px;
  right: 28px;
  color: #c0c6d5;
}

.process-grid h3 {
  margin: 38px 0 10px;
  font-size: 22px;
}

.process-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.membership {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: white;
}

.membership-copy {
  padding: 65px;
}

.membership-copy h2 {
  margin-bottom: 15px;
  font-size: 48px;
  letter-spacing: -.04em;
}

.membership-copy > p {
  max-width: 660px;
  color: #c8d0e8;
  line-height: 1.7;
}

.membership-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  margin: 28px 0;
}

.membership-checks span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.membership-checks svg {
  color: var(--yellow);
  flex-shrink: 0;
}

.membership-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  background: var(--yellow);
  color: var(--navy);
}

.membership-visual div {
  display: grid;
}

.membership-visual span {
  font-weight: 700;
  text-transform: uppercase;
}

.membership-visual b {
  font-size: 80px;
  letter-spacing: -.07em;
  line-height: 1;
}

.membership-visual small {
  font-size: 18px;
  font-weight: 700;
}

.membership-visual > p {
  margin: 45px 0 0;
  font-size: 11px;
  opacity: .7;
}

.faq {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 80px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 0;
  font: 600 16px var(--font-heading);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  font-size: 22px;
  transition: transform .2s ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  padding-right: 40px;
  padding-bottom: 20px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   MÓDULO DE CONVENIOS (LISTADO & INDIVIDUAL)
   ========================================================================== */

.agreements-intro {
  display: grid;
  grid-template-columns: .5fr 1fr .5fr;
  align-items: center;
  gap: 60px;
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
}

.agreements-intro div {
  display: grid;
}

.agreements-intro div:last-child {
  text-align: right;
}

.agreements-intro b {
  color: var(--blue);
  font-size: 34px;
}

.agreements-intro span {
  color: var(--muted);
  font-size: 12px;
}

.agreements-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.agreements-directory {
  background: var(--soft);
}

.agreements-directory-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 44px;
}

.agreements-directory-heading .section-heading {
  margin-bottom: 0;
}

.agreements-directory-heading > span {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.agreements-toolbar {
  margin-bottom: 48px;
}

.agreement-groups {
  display: grid;
  gap: 13px;
}

.agreement-group {
  overflow: hidden;
  scroll-margin-top: 110px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.agreement-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

.agreement-group-heading::-webkit-details-marker {
  display: none;
}

.agreement-group[open] .agreement-group-heading {
  border-bottom: 1px solid var(--line);
}

.agreement-group-heading > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.agreement-group-heading .icon-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.agreement-group-heading h3 {
  margin: 0 0 3px;
  font-size: 23px;
  letter-spacing: -.03em;
}

.agreement-group-heading small {
  color: var(--muted);
}

.agreement-group-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--soft);
  color: var(--navy);
  transition: transform .2s ease, background .2s ease;
}

.agreement-group[open] .agreement-group-toggle {
  background: var(--yellow);
  transform: rotate(90deg);
}

.agreement-group-cards {
  padding: 22px;
  background: var(--soft);
}

.agreements-search-results {
  padding-top: 4px;
}

.agreements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.agreement-card {
  display: flex;
  min-height: 355px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}

.agreement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.agreement-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 25px;
}

.agreement-card-top > span.agreement-logo, .agreement-card-top > span.agreement-initials {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--yellow);
  font: 800 13px var(--font-heading);
  overflow: hidden;
}

.agreement-card-top > span.agreement-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.agreement-card-top > small {
  color: #b4bbcc;
  font-weight: 700;
}

.agreement-category {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.agreement-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.agreement-card > b {
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 14px;
}

.agreement-card > p {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.agreement-validity {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.agreement-validity svg {
  color: var(--blue);
  flex-shrink: 0;
}

.agreements-disclaimer {
  max-width: 780px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

/* Plantilla individual de convenio (single-convenio.php) */
.single-agreement-wrap {
  padding-block: 80px 110px;
}

.single-agreement-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}

.single-agreement-main {
  background: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.single-agreement-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.single-agreement-logo {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: var(--navy);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font: 800 24px var(--font-heading);
  overflow: hidden;
  flex-shrink: 0;
}

.single-agreement-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.single-agreement-benefit-tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 9px;
  background: #ebeffb;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 24px;
}

.single-agreement-conditions {
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.single-agreement-conditions h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.single-agreement-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 20px;
}

.single-agreement-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
}

.single-agreement-card h3 {
  color: var(--yellow);
  font-size: 22px;
  margin-bottom: 12px;
}

.single-agreement-card p {
  color: #bdc6e2;
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   DIRECTORIO COMERCIAL
   ========================================================================== */

.directory-intro {
  display: grid;
  grid-template-columns: .5fr 1fr .5fr;
  align-items: center;
  gap: 60px;
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
}

.directory-intro div {
  display: grid;
}

.directory-intro div:last-child {
  text-align: right;
}

.directory-intro b {
  color: var(--blue);
  font-size: 34px;
}

.directory-intro span {
  color: var(--muted);
  font-size: 12px;
}

.directory-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.directory-section {
  background: var(--soft);
}

.directory-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 38px;
}

.directory-heading .section-heading {
  margin-bottom: 0;
}

.directory-heading > span {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.directory-toolbar {
  margin-bottom: 36px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.directory-search {
  position: relative;
  display: flex;
  align-items: center;
}

.directory-search > svg {
  position: absolute;
  left: 17px;
  color: var(--blue);
  pointer-events: none;
}

.directory-search input {
  height: 58px;
  padding-right: 125px;
  padding-left: 50px;
  border-radius: 14px;
  background: var(--soft);
  font-size: 15px;
}

.directory-search small {
  position: absolute;
  right: 17px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

/* ==========================================================================
   CONVENIOS Y ALIANZAS (DISEÑO EXACTO PROTOTIPO FIGMA MAKE)
   ========================================================================== */
.agreements-intro {
  display: grid;
  grid-template-columns: .5fr 1fr .5fr;
  align-items: center;
  gap: 60px;
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
}
.agreements-intro div { display: grid; }
.agreements-intro div:last-child { text-align: right; }
.agreements-intro b { color: var(--blue); font-size: 34px; font-weight: 800; font-family: var(--font-heading); }
.agreements-intro span { color: var(--muted); font-size: 12px; font-weight: 600; }
.agreements-intro p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }

.agreements-directory { background: var(--soft); }
.agreements-directory-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 44px;
}
.agreements-directory-heading .section-heading { margin-bottom: 0; }
.agreements-directory-heading > span {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.agreements-toolbar { margin-bottom: 48px; }

.agreement-groups { display: grid; gap: 13px; }
.agreement-group {
  overflow: hidden;
  scroll-margin-top: 110px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.agreement-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}
.agreement-group-heading::-webkit-details-marker { display: none; }
.agreement-group[open] .agreement-group-heading { border-bottom: 1px solid var(--line); }
.agreement-group-heading > div { display: flex; align-items: center; gap: 13px; }
.agreement-group-heading .icon-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--blue);
}
.agreement-group-heading h3 {
  margin: 0 0 3px;
  font-size: 23px;
  letter-spacing: -.03em;
  font-family: var(--font-heading);
}
.agreement-group-heading small { color: var(--muted); font-size: 13px; }
.agreement-group-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--soft);
  color: var(--navy);
  transition: transform .2s ease, background .2s ease;
}
.agreement-group[open] .agreement-group-toggle {
  background: var(--yellow);
  transform: rotate(90deg);
}

.agreement-group-cards { padding: 22px; background: var(--soft); }
.agreements-search-results { padding-top: 4px; }
.agreements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.agreement-card {
  display: flex;
  min-height: 355px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.agreement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.agreement-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 25px;
}
.agreement-card-top > span,
.agreement-card-top .agreement-initials {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--yellow);
  font: 800 13px var(--font-heading);
  letter-spacing: -.02em;
}
.agreement-card-top .agreement-logo {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  background: var(--soft);
  overflow: hidden;
}
.agreement-card-top .agreement-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.agreement-card-top > small {
  color: #b4bbcc;
  font-weight: 700;
  font-size: 13px;
}
.agreement-category {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.agreement-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.025em;
  font-family: var(--font-heading);
}
.agreement-card > b {
  display: block;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
.agreement-card > p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.agreement-validity {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.agreement-validity svg {
  color: var(--blue);
  flex: 0 0 auto;
}
.agreements-disclaimer {
  max-width: 780px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}
.agreements-join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 55px;
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: white;
}
.agreements-join > div { max-width: 760px; }
.agreements-join h2 {
  margin-bottom: 15px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.agreements-join p {
  margin: 0;
  color: #c4cce4;
  font-size: 16px;
  line-height: 1.7;
}
.agreements-join .btn { flex: 0 0 auto; }

.directory-categories {
  display: flex;
  gap: 7px;
  margin-top: 13px;
  overflow-x: auto;
  padding-bottom: 2px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.directory-categories::-webkit-scrollbar, .news-filters::-webkit-scrollbar {
  display: none;
}

.directory-categories button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 10px;
  background: white;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.directory-categories button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.directory-categories button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.directory-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.business-card {
  display: grid;
  min-height: auto;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 23px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: transform .25s ease, box-shadow .25s ease;
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.business-logo {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 20px 20px 20px 7px;
  color: white;
  font: 800 18px var(--font-heading);
  letter-spacing: -.03em;
  overflow: hidden;
}

.business-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.logo-tone-1 { background: var(--navy); color: var(--yellow); }
.logo-tone-2 { background: var(--blue-bright); color: white; }
.logo-tone-3 { background: var(--yellow); color: var(--navy); }
.logo-tone-4 { background: var(--line); color: var(--blue); }

.business-card-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.business-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.business-card-heading > div > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.business-card-heading h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.business-card-heading > small {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
}

.business-card-content > p {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.business-details {
  display: grid;
  gap: 9px;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.business-details span {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.business-details svg {
  flex: 0 0 auto;
  color: var(--blue);
  margin-top: 2px;
}

.business-socials {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.business-socials a {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--navy);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}

.business-socials a:hover {
  border-color: var(--yellow);
  background: var(--yellow);
}

.business-socials .whatsapp-link {
  display: flex;
  width: auto;
  margin-left: auto;
  padding-inline: 12px;
  border-color: var(--success-line);
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
  gap: 6px;
}

.business-socials .whatsapp-link:hover {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.directory-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 38px;
}

.directory-pagination button, .directory-pagination a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.directory-pagination button.active, .directory-pagination span.current {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.directory-pagination button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.directory-empty {
  display: flex;
  min-height: 360px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 45px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  text-align: center;
}

.directory-empty h3 {
  margin: 22px 0 9px;
  font-size: 25px;
}

.directory-empty p {
  margin-bottom: 24px;
  color: var(--muted);
}

/* ==========================================================================
   NOTICIAS / BLOG / ARTÍCULO
   ========================================================================== */

.featured-post {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 70px;
}

.featured-image {
  position: relative;
}

.featured-image img {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.featured-image > span, .news-image > span {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--yellow);
  color: var(--navy);
  font: 700 11px var(--font-heading);
  text-transform: uppercase;
}

.featured-copy > small {
  color: var(--muted);
  font-size: 12px;
}

.featured-copy h2 {
  margin: 18px 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.featured-copy > p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.news-section {
  background: var(--soft);
}

.news-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 45px;
}

.news-heading .section-heading {
  margin-bottom: 0;
}

.news-filters {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.news-filters button, .news-filters a {
  border: 0;
  padding: 10px 13px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.news-filters button.active, .news-filters a.active {
  background: var(--navy);
  color: white;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.news-image {
  position: relative;
  display: block;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--soft);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.04);
}

.news-card-copy {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-copy > small {
  color: #8790a6;
  font-size: 11px;
}

.news-card-copy h3 {
  margin: 14px 0 11px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.news-card-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}

.text-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 10px 0 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.article-header {
  padding-block: 75px 95px;
  background: var(--navy);
  color: white;
}

.article-header-inner {
  max-width: 940px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  margin-bottom: 60px;
  padding: 0;
  background: transparent;
  color: #bdc6e2;
  font-weight: 600;
  text-decoration: none;
}

.back-link svg {
  transform: rotate(180deg);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.article-meta span {
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--navy);
  font: 700 11px var(--font-heading);
  text-transform: uppercase;
}

.article-meta small {
  color: #aeb8d7;
}

.article-header h1 {
  max-width: 920px;
  margin-bottom: 25px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.article-header-inner > p {
  max-width: 760px;
  color: #c1cae2;
  font-size: 19px;
  line-height: 1.75;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 35px;
}

.article-author > span {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
}

.article-author p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.article-author small {
  color: #9faacb;
}

.article-cover {
  margin-top: -55px;
}

.article-cover img {
  width: 100%;
  height: 610px;
  border: 8px solid white;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article-layout {
  display: grid;
  max-width: 980px;
  grid-template-columns: 90px minmax(0, 760px);
  justify-content: center;
  gap: 45px;
  padding-block: 90px 115px;
}

.share-panel {
  position: sticky;
  top: 120px;
  display: flex;
  height: max-content;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.share-panel > span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.share-panel button, .share-panel a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.share-panel button:hover, .share-panel a:hover {
  background: var(--soft);
}

.article-body {
  color: #404962;
  font-size: 17px;
  line-height: 1.85;
}

.article-body .lead {
  color: var(--ink);
  font: 500 23px/1.65 var(--font-heading);
  letter-spacing: -.02em;
}

.article-body h2 {
  margin: 55px 0 18px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.article-body blockquote {
  margin: 50px 0;
  padding: 35px 38px;
  border-left: 5px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--soft);
  color: var(--navy);
  font: 600 25px/1.55 var(--font-heading);
}

.article-note {
  display: flex;
  gap: 18px;
  margin: 45px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
}

.article-note p {
  margin: 6px 0 0;
  color: #bdc6e2;
  font-size: 14px;
  line-height: 1.65;
}

.related-posts {
  background: var(--soft);
}

/* ==========================================================================
   PÁGINAS LEGALES (PRIVACIDAD, TÉRMINOS, TRANSPARENCIA)
   ========================================================================== */

.legal-hero {
  padding-block: 90px;
  background: var(--navy);
  color: white;
}

.legal-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -.055em;
}

.legal-hero p {
  max-width: 670px;
  color: #bdc6e2;
  font-size: 18px;
  line-height: 1.7;
}

.legal-hero small {
  color: #929fc8;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  justify-content: center;
  gap: 90px;
  padding-block: 95px 120px;
}

.legal-index {
  position: sticky;
  top: 115px;
  display: flex;
  height: max-content;
  flex-direction: column;
  gap: 14px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.legal-index b {
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 13px;
}

.legal-index a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.legal-index a:hover {
  color: var(--blue);
}

.legal-content {
  color: #404962;
  font-size: 16px;
  line-height: 1.8;
}

.legal-lead {
  margin-bottom: 55px;
  color: var(--ink);
  font: 500 22px/1.65 var(--font-heading);
  letter-spacing: -.02em;
}

.legal-content section {
  padding-block: 38px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.legal-content section > span {
  color: var(--blue);
  font: 800 11px var(--font-heading);
  letter-spacing: .08em;
}

.legal-content h2 {
  margin: 10px 0 20px;
  color: var(--ink);
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.legal-content a {
  color: var(--blue);
  font-weight: 700;
}

.legal-content li {
  margin-bottom: 8px;
}

.transparency-empty {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--navy);
}

.transparency-empty svg {
  flex: 0 0 auto;
  color: var(--blue);
}

.transparency-empty p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================================================
   POPUP PUBLICITARIO (ADVERTISEMENT MODAL)
   ========================================================================== */

.ad-modal-backdrop {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 48px 28px 64px;
  background: rgba(8, 15, 44, 0.76);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.ad-modal {
  position: relative;
  width: min(88vw, 1280px);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 90px rgba(5, 12, 38, 0.35);
}

.ad-modal-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(18, 32, 87, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: 0 7px 20px rgba(18, 32, 87, 0.14);
  cursor: pointer;
}

.ad-modal-close:hover {
  background: var(--yellow);
}

.ad-modal-close:focus-visible, .ad-whatsapp-button:focus-visible {
  outline: 3px solid rgba(248, 210, 72, 0.65);
  outline-offset: 3px;
}

.ad-modal-media {
  max-height: 82vh;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
}

.ad-modal-media img {
  width: 100%;
  height: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.ad-whatsapp-button {
  position: absolute;
  z-index: 2;
  bottom: -24px;
  left: 50%;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-inline: 24px;
  border: 4px solid white;
  border-radius: 15px;
  background: var(--success);
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(8, 15, 44, 0.3);
  transition: transform .2s ease, box-shadow .2s ease;
  transform: translateX(-50%);
}

.ad-whatsapp-button:hover {
  box-shadow: 0 15px 32px rgba(25, 120, 75, 0.36);
  transform: translate(-50%, -2px);
}

/* ==========================================================================
   MODAL DE AFILIACIÓN (MEMBERSHIP MODAL)
   ========================================================================== */

.membership-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: hidden;
  background: var(--soft);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

.membership-modal[hidden] {
  display: none !important;
}

.membership-modal-header {
  position: relative;
  z-index: 2;
  display: flex;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  flex-shrink: 0;
}

.membership-modal-brand {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.membership-modal-brand img {
  width: 225px;
  height: auto;
}

.modal-close {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--navy);
  transition: background .2s ease, transform .2s ease;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--yellow);
  transform: rotate(5deg);
}

.modal-close:focus-visible, .membership-modal button:focus-visible {
  outline: 3px solid rgba(22, 42, 113, 0.25);
  outline-offset: 3px;
}

.membership-modal-main {
  height: calc(100dvh - 82px);
  overflow-y: auto;
}

.membership-plans {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 66px 80px;
}

.membership-modal-intro {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.membership-modal-intro .eyebrow {
  justify-content: center;
}

.membership-modal-intro h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.membership-modal-intro > p {
  margin: 0 auto;
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.plan-card {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow);
}

.plan-juridica {
  background: var(--navy);
  color: white;
}

.plan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.plan-card-top > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: var(--yellow);
  color: var(--navy);
  font: 800 13px var(--font-heading);
}

.plan-card-top small {
  padding: 7px 10px;
  border-radius: 20px;
  background: var(--soft);
  color: var(--blue);
  font-weight: 700;
}

.plan-juridica .plan-card-top small {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
}

.plan-card h2 {
  margin-bottom: 12px;
  font-size: 31px;
  letter-spacing: -.035em;
}

.plan-card > p {
  min-height: 54px;
  color: var(--muted);
  line-height: 1.65;
}

.plan-juridica > p {
  color: #bec7e2;
}

.plan-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 28px;
}

.plan-pricing > div {
  display: grid;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.plan-juridica .plan-pricing > div {
  background: rgba(255, 255, 255, 0.08);
}

.plan-pricing small, .plan-pricing span {
  color: var(--muted);
  font-size: 11px;
}

.plan-juridica .plan-pricing small, .plan-juridica .plan-pricing span {
  color: #aeb9dc;
}

.plan-pricing b {
  margin: 5px 0 2px;
  color: var(--navy);
  font-size: 27px;
}

.plan-juridica .plan-pricing b {
  color: var(--yellow);
}

.plan-requirements {
  flex: 1;
}

.plan-requirements > b {
  font-size: 13px;
}

.plan-requirements ul {
  display: grid;
  gap: 12px;
  margin: 17px 0 28px;
  padding: 0;
  list-style: none;
}

.plan-requirements li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plan-juridica .plan-requirements li {
  color: #c7cee3;
}

.plan-requirements li svg {
  flex: 0 0 auto;
  color: var(--blue);
}

.plan-juridica .plan-requirements li svg {
  color: var(--yellow);
}

.plan-card .btn {
  align-self: stretch;
}

.membership-note {
  max-width: 780px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.membership-form-shell {
  display: grid;
  min-height: 100%;
  grid-template-columns: 330px minmax(0, 760px);
  justify-content: center;
  gap: 70px;
  padding: 58px 48px 80px;
}

.membership-form-summary {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
}

.back-to-plans {
  margin-bottom: 42px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #c5cce2;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.back-to-plans:hover {
  color: var(--yellow);
}

.plan-code {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 23px;
  border-radius: 13px;
  background: var(--yellow);
  color: var(--navy);
  font: 800 13px var(--font-heading);
}

.membership-form-summary > p {
  margin-bottom: 6px;
  color: #abb5d4;
  font-size: 12px;
}

.membership-form-summary h2 {
  margin-bottom: 28px;
  font-size: 29px;
}

.membership-form-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.membership-form-summary > div small {
  color: #abb5d4;
}

.membership-form-summary > div b {
  color: var(--yellow);
}

.membership-form-summary .summary-help {
  margin: 24px 0 0;
  color: #929fc8;
  line-height: 1.55;
}

.membership-form-content {
  min-width: 0;
}

.form-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.form-heading .eyebrow {
  margin-bottom: 13px;
}

.form-heading h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.form-heading > span {
  flex: 0 0 auto;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.form-progress {
  height: 5px;
  margin: 27px 0 38px;
  overflow: hidden;
  border-radius: 5px;
  background: #dfe3ed;
}

.form-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  transition: width .25s ease;
}

.membership-form fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.membership-form fieldset[hidden] {
  display: none;
}

.membership-form legend {
  margin-bottom: 8px;
  padding: 0;
  font: 700 21px var(--font-heading);
}

.membership-form fieldset > p {
  margin-bottom: 25px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
}

.modal-field-grid .field-wide {
  grid-column: 1 / -1;
}

.modal-field-grid label, .document-grid label {
  align-content: start;
}

.modal-field-grid label > small, .document-grid label > small {
  color: var(--muted);
  font-weight: 500;
}

.modal-field-grid select {
  appearance: auto;
}

.beneficiary-card {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
}

.beneficiary-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.beneficiary-card > div:first-child small {
  color: var(--muted);
}

.document-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
}

.document-grid label {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
}

.document-grid input[type="file"] {
  padding: 10px;
  background: var(--soft);
  font-size: 12px;
}

.document-grid .payment-file {
  grid-column: 1 / -1;
  border-color: #c8d1eb;
  background: #f8f9fd;
}

.selected-file {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.file-error {
  color: #a52a2a;
  font-size: 11px;
  font-weight: 700;
}

.directory-permission {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: flex-start;
  gap: 15px;
  padding: 24px;
  border: 1px solid #c8d1eb;
  border-radius: var(--radius-sm);
  background: white;
}

.directory-permission input {
  width: 21px;
  height: 21px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.directory-permission > span {
  display: grid;
  gap: 7px;
}

.directory-permission b {
  font-size: 15px;
  line-height: 1.4;
}

.directory-permission small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
}

.directory-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 17px;
  border-radius: var(--radius-sm);
  background: #e9edf7;
  color: var(--blue);
}

.directory-status > span {
  display: grid;
  gap: 3px;
}

.directory-status small {
  color: var(--muted);
}

.official-privacy-copy {
  max-height: 330px;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: #4f5972;
  font-size: 13px;
  line-height: 1.7;
}

.official-privacy-copy p:last-child {
  margin-bottom: 0;
}

.review-card {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
}

.review-card > div {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 17px;
  background: white;
}

.review-card span {
  color: var(--muted);
}

.review-card b {
  text-align: right;
  overflow-wrap: anywhere;
}

.consent-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 17px;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.membership-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-back {
  border: 0;
  padding: 13px 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.form-back:hover {
  color: var(--navy);
}

.membership-success {
  display: flex;
  width: min(680px, calc(100% - 48px));
  min-height: calc(100% - 80px);
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  padding-block: 60px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
}

.membership-success .eyebrow {
  justify-content: center;
}

.membership-success h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -.05em;
}

.membership-success > p {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  z-index: 1050;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  max-width: 1180px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 20px 60px rgba(8, 15, 44, 0.24);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: var(--soft);
  color: var(--blue);
}

.cookie-copy b {
  color: var(--navy);
  font-size: 14px;
}

.cookie-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.cookie-copy a, .cookie-copy button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 8px;
}

.cookie-legal-links a, .cookie-legal-links button {
  font-size: 11px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-necessary {
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 0 16px;
  border-radius: 12px;
  background: white;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */

footer {
  padding-top: 70px;
  background: #0b143b;
  color: white;
}

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 25px 28px;
  border-radius: var(--radius);
  background: var(--blue);
}

.newsletter > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.newsletter p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.newsletter small {
  color: #bdc6e2;
}

.newsletter form {
  display: flex;
  width: min(430px, 100%);
  gap: 8px;
}

.newsletter input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.newsletter input::placeholder {
  color: #abb6d8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 55px;
  padding-block: 70px 55px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-grid > div > p {
  max-width: 300px;
  margin-top: 12px;
  color: #9da8ca;
  line-height: 1.7;
}

.footer-logo {
  width: 255px;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.footer-grid > div > b {
  margin-bottom: 9px;
  color: var(--yellow);
  font-size: 13px;
}

.footer-grid a, .footer-grid button, .footer-grid span {
  border: 0;
  padding: 0;
  background: transparent;
  color: #aeb7d2;
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-grid a:hover, .footer-grid button:hover {
  color: white;
}

.socials {
  display: flex;
  flex-direction: row !important;
  gap: 8px;
}

.socials span, .socials a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: white !important;
  font-weight: 700;
  text-decoration: none;
}

.socials span:hover, .socials a:hover {
  background: var(--yellow);
  color: var(--navy) !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #7783aa;
  font-size: 11px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS ORIGINALES DE FIGMA MAKE)
   ========================================================================== */

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 79px;
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav-list,
  .main-nav ul,
  .main-nav .menu {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 2px !important;
  }

  .main-nav-list li,
  .main-nav li {
    width: 100% !important;
  }

  .main-nav .nav-link,
  .main-nav-list li a,
  .main-nav li a {
    text-align: left;
    padding: 12px 14px;
    width: 100%;
  }

  .nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 14px;
    margin-left: 0;
    gap: 8px;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }

  .experience {
    min-height: 100px;
  }

  .three-cards, .program-grid, .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-split {
    gap: 45px;
  }

  .edu-banner {
    grid-template-columns: 1fr 1fr;
  }

  .edu-photo {
    grid-row: span 2;
  }

  .edu-title, .edu-copy {
    padding: 35px;
  }

  .business-banner {
    grid-template-columns: .8fr 1.2fr;
  }

  .business-content {
    padding: 45px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leadership-message-copy {
    padding: 45px;
  }

  .page-hero-inner {
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr .75fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agreements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .business-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 23px;
  }

  .business-logo {
    width: 72px;
    height: 72px;
    border-radius: 17px 17px 17px 6px;
    font-size: 15px;
  }

  .business-card-heading {
    display: block;
  }

  .business-card-heading > small {
    display: inline-block;
    margin-top: 8px;
  }

  .business-socials .whatsapp-link {
    overflow: hidden;
    width: 37px;
    padding: 0;
    font-size: 0;
  }

  .featured-post {
    gap: 45px;
  }

  .membership-form-shell {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 30px;
    padding-inline: 24px;
  }

  .membership-form-summary {
    padding: 24px;
  }

  .main-nav .btn {
    width: 100%;
    margin-top: 6px;
  }

  .single-agreement-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 30px, 1180px);
  }

  .section {
    padding-block: 76px;
  }

  .agreements-preview, .soft-section:has(.center-action) {
    padding-bottom: 40px;
  }

  .agreements-preview-action, .center-action {
    margin-top: 40px;
  }

  .logo-copy b {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    gap: 35px;
    padding-block: 54px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 410px;
  }

  .hero-visual > img {
    width: 96%;
    height: 92%;
    border-radius: 70px 22px 22px;
  }

  .hero-shape {
    right: 0;
    width: 150px;
    height: 150px;
  }

  .floating-card {
    top: 16px;
    left: 0;
  }

  .floating-stat {
    right: 5px;
    bottom: 15px;
  }

  .quick-grid, .three-cards, .program-grid, .benefits-grid, .purpose-grid, .process-grid, .detail-grid {
    grid-template-columns: 1fr;
  }

  .quick-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .service-card {
    min-height: 290px;
  }

  .story-split, .business-banner, .contact-grid, .page-hero-inner, .intro-grid, .leadership, .leadership-message, .leadership-message-reverse, .faq, .membership, .featured-post {
    grid-template-columns: 1fr;
  }

  .leadership-message-reverse .leadership-portrait, .leadership-message-reverse .leadership-message-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .leadership-portrait {
    min-height: 430px;
  }

  .leadership-message-copy {
    padding: 40px 28px;
  }

  .story-split {
    gap: 65px;
  }

  .story-image img {
    height: 430px;
  }

  .story-badge {
    right: 15px;
  }

  .values-mini {
    grid-template-columns: 1fr;
  }

  .edu-banner {
    grid-template-columns: 1fr;
  }

  .edu-photo {
    min-height: 320px;
    grid-row: auto;
  }

  .business-photo {
    min-height: 320px;
  }

  .business-content, .membership-copy {
    padding: 40px 30px;
  }

  .benefit-column {
    padding: 35px 28px;
  }

  .logo-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form, .contact-info {
    padding: 38px 25px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .newsletter {
    align-items: stretch;
    flex-direction: column;
  }

  .newsletter form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 25px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 9px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 65px 85px;
  }

  .legal-index {
    position: static;
  }

  .ad-modal-backdrop {
    padding: 24px 15px 55px;
  }

  .ad-modal {
    width: 94vw;
  }

  .ad-modal-media {
    max-height: 84vh;
    border-radius: var(--radius);
  }

  .ad-modal-media img {
    max-height: 84vh;
  }

  .promotional-wrap {
    padding-block: 48px;
  }

  .promotional-carousel.has-image {
    grid-template-columns: 1fr;
  }

  .promotional-copy {
    padding: 28px 25px 72px;
  }

  .promotional-image {
    min-height: 168px;
    grid-row: 1;
  }

  .cookie-banner {
    right: 15px;
    bottom: 15px;
    left: 15px;
    grid-template-columns: auto 1fr;
    padding: 17px;
  }

  .cookie-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .page-hero-inner {
    padding-block: 60px;
  }

  .page-hero h1 {
    font-size: 45px;
  }

  .page-hero-image img {
    height: 330px;
  }

  .intro-grid {
    gap: 25px;
  }

  .purpose-card {
    min-height: 400px;
    padding: 35px 28px;
  }

  .purpose-card h2 {
    font-size: 29px;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 40px 0;
  }

  .membership-visual {
    padding: 40px 30px;
  }

  .service-intro {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .service-intro p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .faq {
    gap: 20px;
  }

  .home-benefit-grid {
    grid-template-columns: 1fr;
  }

  .agreements-intro {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .agreements-intro p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .agreements-directory-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .agreement-group-heading {
    align-items: flex-start;
  }

  .agreements-grid {
    grid-template-columns: 1fr;
  }

  .directory-intro {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .directory-intro p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .directory-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .directory-results {
    grid-template-columns: 1fr;
  }

  .business-card {
    min-height: auto;
  }

  .location-section {
    padding-top: 76px;
  }

  .location-header {
    padding-bottom: 38px;
  }

  .location-intro > h2 {
    font-size: 34px;
  }

  .map-frame {
    min-height: 380px;
  }

  .map-frame iframe {
    height: 380px;
  }

  .featured-image img {
    height: 390px;
  }

  .news-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-filters {
    width: 100%;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .article-header {
    padding-block: 55px 80px;
  }

  .back-link {
    margin-bottom: 40px;
  }

  .article-header h1 {
    font-size: 44px;
  }

  .article-cover img {
    height: 390px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    padding-block: 65px 85px;
  }

  .share-panel {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
  }

  .share-panel > span {
    margin-right: 5px;
    writing-mode: initial;
  }

  .article-body .lead {
    font-size: 20px;
  }

  .article-body h2 {
    font-size: 29px;
  }

  .article-body blockquote {
    padding: 28px 25px;
    font-size: 21px;
  }

  .membership-modal-header {
    height: 72px;
    padding-inline: 15px;
  }

  .membership-modal-brand img {
    width: 190px;
  }

  .modal-close {
    width: 44px;
    height: 44px;
  }

  .membership-modal-main {
    height: calc(100dvh - 72px);
  }

  .membership-plans {
    width: min(100% - 30px, 620px);
    padding-block: 45px 60px;
  }

  .membership-modal-intro {
    margin-bottom: 30px;
    text-align: left;
  }

  .membership-modal-intro .eyebrow {
    justify-content: flex-start;
  }

  .membership-modal-intro h1 {
    font-size: 42px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: auto;
    padding: 27px;
  }

  .plan-card > p {
    min-height: auto;
  }

  .membership-form-shell {
    display: block;
    padding: 28px 15px 60px;
  }

  .membership-form-summary {
    position: static;
    margin-bottom: 38px;
    padding: 23px;
  }

  .back-to-plans {
    margin-bottom: 25px;
  }

  .plan-code {
    float: left;
    margin: 0 15px 18px 0;
  }

  .membership-form-summary h2 {
    margin-bottom: 22px;
  }

  .membership-form-summary .summary-help {
    display: none;
  }

  .form-heading {
    align-items: flex-start;
  }

  .form-heading h1 {
    font-size: 35px;
  }

  .form-progress {
    margin-bottom: 30px;
  }

  .modal-field-grid, .document-grid {
    grid-template-columns: 1fr;
  }

  .modal-field-grid .field-wide {
    grid-column: auto;
  }

  .document-grid .payment-file {
    grid-column: auto;
  }

  .beneficiary-card {
    padding: 19px;
  }

  .membership-form-actions {
    position: sticky;
    z-index: 2;
    bottom: 0;
    margin-inline: -15px;
    padding: 16px 15px;
    background: rgba(244, 246, 250, 0.96);
    backdrop-filter: blur(12px);
  }
}

@media (max-width: 420px) {
  .header-logo {
    width: 190px;
  }

  .logo-copy {
    display: none;
  }

  .hero-copy h1 {
    font-size: 41px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .stats-row {
    gap: 28px;
  }

  .logo-row, .values-grid, .timeline, .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .membership-modal-brand img {
    width: 165px;
  }

  .membership-modal-intro h1 {
    font-size: 36px;
  }

  .plan-pricing {
    grid-template-columns: 1fr;
  }

  .form-heading {
    display: block;
  }

  .form-heading > span {
    display: block;
    margin-top: 12px;
  }

  .membership-form-actions .btn {
    padding-inline: 17px;
  }

  .directory-toolbar {
    padding: 13px;
  }

  .directory-search {
    align-items: stretch;
    flex-direction: column;
  }

  .directory-search input {
    padding-right: 16px;
  }

  .directory-search small {
    position: static;
    padding: 9px 3px 0;
  }

  .business-card {
    grid-template-columns: 1fr;
  }

  .business-logo {
    width: 64px;
    height: 64px;
  }

  .business-socials .whatsapp-link {
    width: auto;
    padding-inline: 11px;
    font-size: 9px;
  }
}

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