/* ==========================================================================
   CÁMARA DE COMERCIO PRO - THEME STYLESHEET
   ========================================================================== */

: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;
  --font-weight-heading: 600;
  --font-weight-hero: 500;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html {
    overflow-x: hidden;
  }
}

body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@supports not (overflow-x: clip) {
  body {
    overflow-x: hidden;
  }
}

.app-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@supports not (overflow-x: clip) {
  .app-shell {
    overflow-x: hidden;
  }
}

.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,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

iframe,
embed,
object,
video {
  height: auto;
}

table {
  max-width: 100%;
  border-collapse: collapse;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  letter-spacing: -.025em;
}

b,
strong {
  font-family: var(--font-heading);
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
blockquote {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.container {
  width: min(1320px, 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;
  gap: 36px;
  min-height: 64px;
}

.logo-link,
.logo-button {
  display: flex;
  flex: 0 0 auto;
  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;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.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;
}

.site-header .main-nav .nav-link:hover,
.site-header .main-nav .nav-link.active,
.site-header .main-nav li.current-menu-item>a,
.site-header .main-nav li.active>a {
  color: var(--navy);
}

.site-header .main-nav .nav-link.active::after,
.site-header .main-nav li.current-menu-item>a.active::after,
.site-header .main-nav li.active>a.active::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.1;
  letter-spacing: -.025em;
  font-weight: var(--font-weight-heading);
}

.section-heading h2 em,
.section-heading h2 .highlight-line {
  color: var(--blue);
  font-style: normal;
  font-weight: inherit;
}

.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: 1.02;
  letter-spacing: -.03em;
  font-weight: var(--font-weight-hero);
}

.hero-copy h1 em,
.hero-copy h1 .highlight-line {
  color: var(--blue);
  font-style: normal;
  font-weight: inherit;
}

.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,
.hero-dots {
  display: none !important;
}

/* Forzar estilos tipográficos independientes de mayúsculas/minúsculas ingresadas */
.eyebrow,
.eyebrow-light,
.photo-label,
.agreement-category,
.news-image span,
.article-meta span,
.service-number,
.quick-item small {
  text-transform: uppercase !important;
}

/* ==========================================================================
   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.5;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 24px;
}

.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;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 62.4px;
}

.home-benefit-blue {
  border-color: var(--blue);
  background: var(--blue);
  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);
  overflow: hidden;
}

.benefit-column p .benefit-item-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.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);
}

/* Carrusel de Aliados Estratégicos (cuando hay más de 5 aliados) */
.allies-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.allies-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-sm);
}

.allies-track {
  display: flex;
  gap: 14px;
  transition: transform 0.4s ease;
  scroll-behavior: smooth;
}

.allies-track .ally-item {
  flex: 0 0 calc((100% - (14px * 4)) / 5);
  min-width: calc((100% - (14px * 4)) / 5);
  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;
  box-sizing: border-box;
  transition: filter .2s ease, box-shadow .2s ease;
}

.allies-track .ally-item:hover {
  filter: grayscale(0);
  box-shadow: var(--shadow-sm);
}

.allies-track .ally-item b {
  font-weight: 700;
  color: inherit;
}

.allies-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(18, 32, 87, 0.08);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.allies-nav-btn:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .allies-track .ally-item {
    flex: 0 0 calc((100% - (14px * 2)) / 3);
    min-width: calc((100% - (14px * 2)) / 3);
  }
}

@media (max-width: 640px) {
  .allies-track .ally-item {
    flex: 0 0 calc((100% - 14px) / 2);
    min-width: calc((100% - 14px) / 2);
  }
}

@media (max-width: 480px) {
  .allies-carousel-container {
    gap: 8px;
  }

  .allies-nav-btn {
    width: 34px;
    height: 34px;
  }

  .allies-track .ally-item {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

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

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

.promotional-carousel {
  position: relative;
  display: block;
  min-height: 231px;
  height: 231px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: white;
}

.promotional-slide {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 231px;
  display: none;
}

.promotional-slide.is-active {
  display: flex;
}

.promotional-slide.is-banner-image {
  min-height: 231px;
  height: 231px;
  background: #0b1437;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.promotional-slide.is-banner-image.is-active {
  display: flex;
}

.promotional-banner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.promotional-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

.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-slide.is-campaign {
  background: var(--blue);
  min-height: 231px;
  height: 231px;
  display: none;
  align-items: center;
}

.promotional-slide.is-campaign.is-active {
  display: flex;
}

.promotional-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 44px;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.promotional-text-block {
  flex: 1;
  min-width: 0;
  max-width: 760px;
}

.promotional-text-block .eyebrow {
  margin-bottom: 8px;
}

.promotional-text-block h2 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(24px, 2.7vw, 32px);
  line-height: 1.12;
  letter-spacing: -.035em;
  color: white;
}

.promotional-text-block p {
  max-width: 680px;
  margin: 0;
  color: #c4cce4;
  font-size: 13px;
  line-height: 1.5;
}

.promotional-action-block {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  pointer-events: auto;
  padding-right: 90px;
}

.promotional-action-block .btn {
  min-height: 44px;
  white-space: nowrap;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.promotional-slide.is-placeholder {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  min-height: 231px;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.promotional-slide.is-placeholder.is-active {
  display: flex;
}

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

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

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

.promotional-slide.is-placeholder .promotional-copy {
  align-items: center;
  text-align: center;
  width: 100%;
}

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

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

.promotional-controls button {
  background: transparent;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, opacity 0.2s;
  opacity: 0.85;
}

.promotional-controls button:hover {
  background: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

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

@media (max-width: 900px) {

  .promotional-carousel,
  .promotional-slide,
  .promotional-slide.is-campaign,
  .promotional-slide.is-banner-image {
    height: auto;
    min-height: 231px;
  }

  .promotional-copy {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding: 26px 28px 65px;
  }

  .promotional-action-block {
    padding-right: 0;
  }
}

@media (max-width: 480px) {

  .promotional-carousel,
  .promotional-slide,
  .promotional-slide.is-banner-image {
    min-height: 160px;
  }

  .promotional-copy {
    padding: 20px 20px 58px;
  }

  .promotional-text-block h2 {
    font-size: 20px;
  }
}

/* ==========================================================================
   CENTRO DE MEDIACIÓN 
   ========================================================================== */

.mediation-services {
  background: white;
}

.mediation-services .section-heading {
  max-width: 820px;
}

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

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

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

.mediation-service-card>div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.mediation-service-card>div small {
  color: #aab2c8;
  font: 800 11px/1 var(--font-heading);
}

.mediation-service-card h3 {
  margin: 38px 0 14px;
  font-size: 24px;
  letter-spacing: -.03em;
}

.mediation-service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.mediation-service-1,
.mediation-service-7 {
  background: var(--blue);
  color: white;
}

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

.mediation-service-1>div small,
.mediation-service-7>div small {
  color: var(--yellow);
}

.mediation-service-1 p,
.mediation-service-7 p {
  color: #c8d0ea;
}

.mediation-service-4 {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--navy);
}

.mediation-service-4 .icon-box {
  background: rgba(255, 255, 255, 0.55);
}

.mediation-service-7 {
  min-height: 250px;
  grid-column: 1 / -1;
}

.mediation-service-7 p {
  max-width: 880px;
}

.mediation-team {
  overflow: hidden;
  background: var(--navy);
  color: white;
}

.mediation-team .section-heading p {
  color: #bdc6e2;
}

.mediation-team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.mediation-member {
  display: flex;
  min-height: 360px;
  grid-column: span 2;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.mediation-member:nth-child(4) {
  grid-column: 2 / span 2;
}

.mediation-member>span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 18px 18px 18px 5px;
  background: var(--yellow);
  color: var(--navy);
  font: 800 16px/1 var(--font-heading);
}

.mediation-member small {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mediation-member h3 {
  margin: 9px 0 0;
  font-size: 20px;
  line-height: 1.3;
}

.mediation-member.has-photo {
  background: transparent;
}

.mediation-member-photo {
  position: relative;
  min-height: 265px;
  flex: 1;
  overflow: hidden;
  border-radius: 18px 18px 18px 5px;
  background: transparent;
}

.mediation-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .35s ease;
  display: block;
}

.mediation-member-photo:hover img {
  transform: scale(1.05);
}

.mediation-member-bio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
  background: linear-gradient(180deg, rgba(18, 32, 87, 0) 10%, rgba(18, 32, 87, 0.94) 75%);
  color: white;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}

.mediation-member-photo:hover .mediation-member-bio-overlay {
  opacity: 1;
  visibility: visible;
}

.mediation-member-bio-overlay p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #f1f5f9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.mediation-member-no-photo-bio {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #c8d0ea;
  opacity: 0.9;
}

.mediation-member.has-photo .mediation-member-info {
  margin-top: 18px;
}

.mediation-member.has-photo h3 {
  margin-top: 4px;
}

/* ==========================================================================
   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.04;
  letter-spacing: -.03em;
  font-weight: var(--font-weight-hero);
}

.page-hero h1 em,
.page-hero h1 .highlight-line {
  color: var(--blue);
  font-style: normal;
  font-weight: inherit;
}

.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: 28px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.page-hero-dot {
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--yellow);
  z-index: 1;
}

.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)
   ========================================================================== */
.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,
.ccl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 38px;
}

.directory-pagination button,
.directory-pagination a,
.ccl-pagination a,
.ccl-pagination span.page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.directory-pagination a:hover,
.ccl-pagination a:hover {
  border-color: var(--navy);
  background: #f1f5f9;
}

.directory-pagination button.active,
.directory-pagination span.current,
.ccl-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,
.article-body .article-note,
.article-body .is-style-article-note,
.article-body div.wp-block-group.is-style-article-note,
.article-body blockquote.wp-block-quote.is-style-article-note {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 45px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
  border-left: 0;
  box-shadow: 0 10px 25px rgba(11, 27, 61, 0.08);
}

.article-note .icon-box,
.article-body .article-note .icon-box,
.article-body .is-style-article-note>.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.article-body .is-style-article-note:not(:has(.icon-box))::before {
  content: "✦";
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.article-note b,
.article-note strong,
.article-note h3,
.article-note h4,
.article-note .article-note-title,
.is-style-article-note b,
.is-style-article-note strong,
.is-style-article-note h3,
.is-style-article-note h4 {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.article-note p,
.is-style-article-note p {
  margin: 0;
  color: #bdc6e2;
  font-size: 14.5px;
  line-height: 1.65;
}

.article-note p+p,
.is-style-article-note p+p {
  margin-top: 10px;
}

.article-body table,
.article-body .wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
}

.article-body pre,
.article-body .wp-block-preformatted,
.article-body .wp-block-code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 18px;
  background: var(--soft);
  border-radius: var(--radius-sm);
}

.article-body iframe,
.article-body video,
.article-body .wp-block-embed {
  max-width: 100%;
  height: auto;
}

.featured-post.featured-no-thumb {
  grid-template-columns: 1fr;
  max-width: 850px;
  margin-inline: auto;
}

.news-card.news-card-noimg {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  margin-bottom: 14px;
}

.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: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 20px;
  background: rgba(8, 15, 44, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: adModalFadeIn 0.25s ease-out;
}

.ad-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: -moz-fit-content;
  width: fit-content;
  max-width: min(94vw, 1020px);
  margin: auto;
  border-radius: 28px;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.65), 0 12px 32px rgba(8, 15, 44, 0.4);
  animation: adModalPop 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ad-modal-close {
  position: absolute;
  z-index: 20;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 2.5px solid #cca344;
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ad-modal-close:hover {
  transform: scale(1.08);
  border-color: #f8d248;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

.ad-modal-close:active {
  transform: scale(0.96);
}

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

.ad-modal-media {
  position: relative;
  width: 100%;
  max-height: 86vh;
  border-radius: 28px;
  overflow: hidden;
  line-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.ad-modal-media img {
  display: block;
  width: 100%;
  max-width: 1020px;
  height: auto;
  max-height: 86vh;
  border-radius: 28px;
  object-fit: contain;
}

.ad-whatsapp-button {
  position: absolute;
  z-index: 10;
  bottom: -22px;
  left: 50%;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-inline: 26px;
  border: 3.5px solid #ffffff;
  border-radius: 16px;
  background: var(--success);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(8, 15, 44, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  transform: translateX(-50%);
}

.ad-whatsapp-button:hover {
  background: #15663f;
  box-shadow: 0 16px 34px rgba(25, 120, 75, 0.42);
  transform: translate(-50%, -2px);
}

@keyframes adModalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes adModalPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   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: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  height: 72px;
  min-height: 72px;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.membership-modal-header-inner {
  width: min(1140px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.membership-modal-brand {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.membership-modal-brand img {
  width: 220px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

/* ==========================================================================
   BARRA DE ACCIONES FLOTANTES (FUERA DE LA BARRA BLANCA - A LA ALTURA DE LAS X)
   ========================================================================== */
.membership-floating-nav {
  position: absolute;
  top: 96px;
  /* 72px header + 24px al nivel de las X */
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4.5vw, 60px);
  pointer-events: none;
  z-index: 110;
}

.membership-floating-nav .btn-return-home,
.membership-floating-nav .modal-close {
  pointer-events: auto;
}

.membership-floating-nav .modal-close {
  margin-left: auto;
}

.membership-modal.is-form-active .membership-floating-nav {
  justify-content: flex-end;
}

.membership-modal.is-form-active .membership-floating-nav .btn-return-home {
  display: none;
}

/* Botón Volver al home / inicio: estilo corporativo idéntico a la página 404 (Amarillo con sombra dorada y flecha) */
.btn-return-home,
.back-to-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn-return-home:hover,
.back-to-home:hover {
  background: #ffdc59;
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6);
}

.btn-return-home svg,
.back-to-home svg {
  transition: transform .2s ease;
  stroke: var(--navy);
}

.btn-return-home:hover svg,
.back-to-home:hover svg {
  transform: translateX(-3px);
}

/* Botón cerrar modal: Estilo unificado con la X del pop-up (borde dorado, circular, fondo blanco y sombra) */
.modal-close,
.membership-modal .modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 2.5px solid #cca344;
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.modal-close:hover,
.membership-modal .modal-close:hover {
  transform: scale(1.08);
  border-color: #f8d248;
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.modal-close:active,
.membership-modal .modal-close:active {
  transform: scale(0.96);
}

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

.membership-modal-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.membership-plans {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 96px 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: min(320px, 30%) minmax(0, 1fr);
  max-width: 1160px;
  margin-inline: auto;
  justify-content: center;
  gap: clamp(24px, 4vw, 60px);
  padding: 96px clamp(20px, 3.5vw, 48px) 80px;
  box-sizing: border-box;
}


.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);
}

.summary-top-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.back-to-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  width: fit-content;
}

.back-to-home:hover {
  background: #ffdc59;
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6);
}

.back-to-plans {
  border: 0;
  padding: 0;
  background: transparent;
  color: #c5cce2;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  transition: color .2s ease;
}

.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,
.form-heading .step-counter {
  flex: 0 0 auto;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.membership-bank-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 22px;
  color: #1e293b;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-line;
}

.membership-bank-box strong,
.membership-bank-box b {
  color: var(--navy);
}

.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: repeat(auto-fit, minmax(200px, 1fr));
  gap: 55px;
  padding-block: 70px 55px;
}

.footer-grid.footer-cols-4 {
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
}

.footer-grid.footer-cols-3.has-brand-col {
  grid-template-columns: 1.7fr 1fr 1fr;
}

.footer-grid.footer-cols-2.has-brand-col {
  grid-template-columns: 1.5fr 1fr;
}

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

.footer-grid ul.footer-nav-list,
.footer-grid ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
}

.footer-grid ul.footer-nav-list li,
.footer-grid ul.menu li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: static;
}

.footer-grid ul.footer-nav-list li a,
.footer-grid ul.menu li a,
.footer-col a {
  border: 0;
  padding: 0;
  background: transparent;
  color: #aeb7d2;
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
  display: inline-block;
  position: static;
}

.footer-grid ul.footer-nav-list li a:hover,
.footer-grid ul.menu li a:hover,
.footer-col a:hover {
  color: white;
}

/* RESET ABSOLUTO: Ningún elemento del footer debe tener puntos indicadores */
footer a::after,
footer button::after,
footer li::after,
footer li a::after,
.footer-grid a::after,
.footer-grid button::after,
.footer-grid li::after,
.footer-grid li a::after,
.footer-grid ul li::after,
.footer-grid ul li a::after,
.footer-nav-list a::after,
.footer-nav-list li::after,
.footer-nav-list li a::after,
.footer-bottom a::after {
  display: none !important;
  content: none !important;
  position: static !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
  border: none !important;
}

.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;
}

/* Acordeón / menú móvil del footer: oculto en versión de escritorio */
.footer-mobile-nav {
  display: none;
}

.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
   ========================================================================== */

@media (max-width: 1320px) {
  .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);
    max-height: calc(100vh - 95px);
    max-height: calc(100dvh - 95px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 100;
  }

  .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;
  }
}

@media (max-width: 980px) {
  .hero-shape {
    right: 0;
  }

  .floating-card {
    left: 0;
  }

  .floating-stat {
    right: 10px;
  }

  .story-badge {
    right: 15px;
  }

  .story-image::before {
    right: 0;
    bottom: 0;
  }

  .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);
  }

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

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

  .mediation-member,
  .mediation-member:nth-child(4) {
    grid-column: auto;
  }

  .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-modal-header {
    height: 64px;
    min-height: 64px;
    padding: 0 16px;
    position: relative;
    z-index: 120;
  }

  .membership-modal-brand img {
    width: 170px;
    max-height: 40px;
  }

  .membership-floating-nav {
    position: absolute;
    top: 10px;
    right: 16px;
    left: auto;
    width: auto;
    padding: 0;
    pointer-events: none;
    z-index: 150;
  }

  .membership-floating-nav .btn-return-home {
    display: none !important;
  }

  .membership-floating-nav .modal-close {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
  }

  .membership-plans {
    width: min(100% - 32px, 720px);
    padding: 32px 16px 60px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 560px;
    margin-inline: auto;
  }

  .plan-card {
    min-height: auto;
    padding: clamp(22px, 3.5vw, 30px);
  }

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

  .membership-form-shell {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 680px !important;
    margin-inline: auto !important;
    padding: 24px 18px 60px !important;
    gap: 24px !important;
    box-sizing: border-box !important;
  }

  .membership-form-summary {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    padding: 20px 22px !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
  }

  .summary-top-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
  }

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

  .form-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .form-heading .eyebrow {
    margin-bottom: 4px !important;
  }

  .form-heading h1,
  .membership-form-content .step-title {
    font-size: clamp(24px, 4.5vw, 32px) !important;
    line-height: 1.15 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    margin: 0 !important;
  }

  .form-heading .step-counter {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 12px !important;
    background: #e2e8f0 !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--blue) !important;
  }

  .form-progress {
    height: 6px !important;
    margin: 16px 0 26px !important;
    border-radius: 6px !important;
  }

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

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

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

  .mediation-services-grid,
  .mediation-team-grid {
    grid-template-columns: 1fr;
  }

  .mediation-service-7 {
    grid-column: auto;
  }

  .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: clamp(30px, 7vw, 44px);
  }

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

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

  .hero-visual>img {
    width: 100%;
    height: auto;
    min-height: 340px;
    border-radius: 70px 22px 22px;
  }

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

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

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

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

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

  .quick-item:last-child {
    border-bottom: none;
  }

  .quick-item b {
    white-space: normal;
  }

  .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-image::before {
    right: 0;
    bottom: 0;
    width: 60%;
    height: 60%;
  }

  .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;
  }

  .benefit-column p {
    align-items: flex-start;
  }

  .benefit-column p .benefit-item-text {
    white-space: normal;
    text-overflow: clip;
  }

  .benefit-column p svg {
    margin-top: 4px;
  }

  .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 14px 60px;
  }

  .ad-modal {
    width: -moz-fit-content;
    width: fit-content;
    max-width: 94vw;
    border-radius: 22px;
  }

  .ad-modal-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-width: 2px;
  }

  .ad-modal-media {
    max-height: 80vh;
    border-radius: 22px;
  }

  .ad-modal-media img {
    max-height: 80vh;
    border-radius: 22px;
  }

  .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: clamp(28px, 6.5vw, 40px);
  }

  .mediation-member-photo.is-active .mediation-member-bio-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .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: 60px;
    min-height: 60px;
    padding: 0 16px;
    position: relative;
    z-index: 120;
  }

  .membership-modal-brand img {
    width: 155px;
    max-height: 36px;
  }

  .membership-floating-nav {
    position: absolute;
    top: 8px;
    right: 14px;
    left: auto;
    width: auto;
    padding: 0;
    pointer-events: none;
    z-index: 150;
  }

  .membership-floating-nav .btn-return-home {
    display: none !important;
  }

  .membership-floating-nav .modal-close {
    pointer-events: auto;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    margin: 0;
  }

  .membership-modal.is-form-active .membership-floating-nav {
    justify-content: flex-end;
  }

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

  .membership-modal-main {
    flex: 1;
    min-height: 0;
  }

  .membership-plans {
    width: min(100% - 24px, 560px);
    padding-block: 24px 44px;
  }

  .membership-modal-intro {
    margin-bottom: 24px;
    text-align: center;
  }

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

  .membership-modal-intro h1 {
    font-size: clamp(26px, 6vw, 36px);
    line-height: 1.15;
  }

  .membership-modal-intro > p {
    font-size: 14px;
    line-height: 1.55;
  }

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

  .plan-card {
    min-height: auto;
    padding: 22px 20px;
    border-radius: 18px;
  }

  .plan-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .plan-card > p {
    min-height: auto;
    font-size: 13.5px;
  }

  .plan-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 20px;
  }

  .plan-pricing > div {
    padding: 12px 14px;
  }

  .plan-pricing b {
    font-size: 22px;
  }

  .membership-form-shell {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    padding: 18px 14px 40px !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
  }

  .membership-form-summary {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    padding: 16px 16px !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 4px 16px rgba(18, 32, 87, 0.12) !important;
    box-sizing: border-box !important;
  }

  .summary-top-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .summary-top-actions .back-to-home {
    padding: 6px 14px !important;
    font-size: 11.5px !important;
  }

  .summary-top-actions .back-to-plans {
    font-size: 11.5px !important;
  }

  .membership-form-summary .plan-code {
    width: 36px !important;
    height: 36px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    margin: 0 10px 10px 0 !important;
    float: left !important;
  }

  .membership-form-summary > p {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }

  .membership-form-summary h2 {
    font-size: 18px !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
  }

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

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

  .membership-form-content {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .form-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .form-heading .eyebrow {
    margin-bottom: 2px !important;
  }

  .form-heading h1,
  .membership-form-content .step-title {
    font-size: clamp(21px, 5vw, 26px) !important;
    line-height: 1.15 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: manual !important;
    margin: 0 !important;
  }

  .form-heading .step-counter {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 10px !important;
    background: #e2e8f0 !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: var(--blue) !important;
  }

  .form-progress {
    height: 5px !important;
    margin: 12px 0 20px !important;
    border-radius: 5px !important;
  }

  .modal-field-grid,
  .document-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

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

  .modal-field-grid label,
  .document-grid label {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .modal-field-grid label > span {
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
    display: block !important;
  }

  .modal-field-grid input,
  .modal-field-grid select,
  .modal-field-grid textarea,
  .membership-form input,
  .membership-form select,
  .membership-form textarea {
    font-size: 16px !important;
    padding: 12px 14px !important;
    border-radius: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .modal-field-grid select {
    background-color: white !important;
    height: 48px !important;
  }

  .modal-field-grid input[type="file"],
  .document-grid input[type="file"] {
    font-size: 13px !important;
    padding: 10px !important;
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 9px !important;
    background: var(--soft) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .membership-bank-box {
    padding: 13px 15px !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
    border-radius: 8px !important;
    word-break: break-word !important;
  }

  .directory-permission {
    padding: 14px !important;
    gap: 10px !important;
  }

  .consent-field {
    display: grid !important;
    grid-template-columns: 20px 1fr !important;
    gap: 10px !important;
    padding: 13px 14px !important;
    font-size: 12.5px !important;
    border-radius: 9px !important;
  }

  .beneficiary-card {
    padding: 16px !important;
  }

  .official-privacy-copy {
    padding: 14px !important;
    font-size: 12px !important;
    max-height: 220px !important;
  }

  .review-card > div {
    flex-direction: column !important;
    gap: 3px !important;
    padding: 11px 13px !important;
  }

  .review-card b {
    text-align: left !important;
  }

  .membership-form-actions {
    position: sticky !important;
    z-index: 10 !important;
    bottom: 0 !important;
    margin-top: 20px !important;
    margin-inline: -14px !important;
    padding: 12px 14px !important;
    background: rgba(244, 246, 250, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid var(--line) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    box-shadow: 0 -4px 16px rgba(18, 32, 87, 0.08) !important;
  }

  .form-back {
    padding: 10px 16px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    background: #e2e8f0 !important;
    color: var(--ink) !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .membership-form-actions .btn {
    flex: 1 !important;
    min-height: 44px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   FOOTER EN VERSIÓN MÓVIL: LIMPIEZA COMPLETA Y MENÚ PRINCIPAL DESPLEGABLE
   ========================================================================== */
@media (max-width: 768px) {
  /* Cuadrícula del pie de página a 1 sola columna centrada */
  .footer-grid,
  .footer-grid.footer-cols-4,
  .footer-grid.footer-cols-3,
  .footer-grid.footer-cols-2 {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 22px !important;
    padding-block: 45px 35px !important;
    justify-items: center !important;
  }

  /* Ocultar las columnas de menús saturadas para una experiencia móvil limpia */
  .footer-col-nav,
  .footer-col-services,
  .footer-col-legal {
    display: none !important;
  }

  /* Columna de Marca (Logo, texto de contenido y redes sociales) */
  .footer-col-brand {
    align-items: center !important;
    text-align: center !important;
    max-width: 420px !important;
    margin-inline: auto !important;
    width: 100% !important;
  }

  .footer-col-brand .footer-logo,
  .footer-col-brand .logo {
    margin-inline: auto !important;
  }

  .footer-col-brand p {
    margin: 0 auto !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #9aa9cf !important;
    max-width: 350px !important;
  }

  .footer-col-brand .socials {
    justify-content: center !important;
    margin-top: 4px !important;
  }

  /* Menú desplegable institucional para móvil en pie de página */
  .footer-mobile-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 300px !important;
    margin-top: 14px !important;
  }

  .footer-mobile-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease !important;
  }

  .footer-mobile-toggle:hover,
  .footer-mobile-toggle:active {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(248, 210, 72, 0.6) !important;
    color: var(--yellow) !important;
  }

  .footer-mobile-toggle .footer-mobile-toggle-arrow {
    margin-left: auto !important;
    display: inline-flex !important;
    transition: transform 0.25s ease !important;
  }

  .footer-mobile-toggle.is-active .footer-mobile-toggle-arrow {
    transform: rotate(180deg) !important;
  }

  .footer-mobile-drawer {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    background: rgba(14, 25, 68, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
    gap: 3px !important;
  }

  .footer-mobile-drawer[hidden] {
    display: none !important;
  }

  .footer-mobile-drawer a {
    display: block !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    color: #e2e8f0 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: background 0.15s ease, color 0.15s ease !important;
  }

  .footer-mobile-drawer a:hover,
  .footer-mobile-drawer a:active {
    background: rgba(248, 210, 72, 0.15) !important;
    color: var(--yellow) !important;
  }

  .footer-bottom {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }

  .section {
    padding-block: 54px;
  }

  .header-logo {
    width: 175px;
  }

  .logo-copy {
    display: none;
  }

  .main-nav {
    left: 12px;
    right: 12px;
    top: 68px;
    padding: 14px;
    border-radius: 18px;
  }

  .main-nav .nav-link,
  .main-nav-list li a,
  .main-nav li a {
    padding: 10px 12px;
    font-size: 14px;
  }

  .hero {
    padding-block: 36px 44px;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 7.5vw, 34px);
  }

  .hero-copy p {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-actions {
    gap: 10px;
  }

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

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

  .hero-visual>img {
    width: 100%;
    height: auto;
    min-height: 310px;
    border-radius: 40px 18px 18px;
  }

  .hero-visual::after {
    inset: auto 0 0 0;
    border-radius: 0 0 18px 18px;
  }

  .hero-shape {
    width: 100px;
    height: 100px;
    top: -10px;
    right: 0;
  }

  .floating-card {
    top: 10px;
    left: 8px;
    padding: 8px 12px;
    border-radius: 14px;
    gap: 8px;
  }

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

  .floating-card small {
    font-size: 10px;
  }

  .hero-carousel-controls {
    left: 8px;
    bottom: 10px;
    padding: 6px 10px;
    gap: 6px;
  }

  .hero-arrow-btn {
    width: 24px;
    height: 24px;
  }

  .floating-stat {
    right: 8px;
    bottom: 10px;
    padding: 8px 12px;
    max-width: 120px;
    border-radius: 14px;
  }

  .floating-stat span {
    font-size: 18px;
    line-height: 1.2;
  }

  .floating-stat small {
    font-size: 10px;
    line-height: 1.25;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 12px;
  }

  .section-heading p {
    font-size: 14px;
    line-height: 1.6;
  }

  .stats-row {
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0 24px;
  }

  .stats-row b {
    font-size: 24px;
  }

  .stats-row span {
    font-size: 11px;
  }

  .quick-item {
    padding: 16px 14px;
  }

  .quick-item b {
    font-size: 12px;
  }

  .experience {
    padding: 16px 18px;
  }

  .experience strong {
    font-size: 36px;
  }

  .experience span {
    font-size: 12px;
  }

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

  .footer-grid {
    gap: 28px;
  }

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

  .business-content,
  .leadership-message-copy,
  .purpose-card,
  .benefit-column {
    padding: 22px 16px;
  }

  .service-card {
    padding: 22px 16px;
    min-height: auto;
  }

  .service-card h3 {
    margin: 35px 0 12px;
    font-size: 20px;
  }

  .business-photo,
  .edu-photo {
    min-height: 220px;
  }

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

  .story-badge {
    right: 10px;
    bottom: 15px;
    padding: 12px 14px;
    border-radius: 14px;
    gap: 8px;
  }

  .story-badge span {
    font-size: 18px;
  }

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

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

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

  .page-hero h1 {
    font-size: clamp(24px, 6.5vw, 32px);
  }

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

  .directory-toolbar {
    padding: 12px;
    margin-bottom: 24px;
  }

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

  .directory-search input {
    height: 48px;
    padding-left: 42px;
    padding-right: 12px;
    font-size: 14px;
  }

  .directory-search>svg {
    left: 14px;
  }

  .directory-search small {
    position: static;
    padding: 0 4px;
    font-size: 11px;
  }

  .directory-categories {
    gap: 6px;
    padding-bottom: 8px;
  }

  .directory-categories button {
    padding: 8px 14px;
    font-size: 12px;
  }

  .business-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .business-logo {
    width: 56px;
    height: 56px;
    font-size: 13px;
  }

  .business-socials {
    gap: 8px;
    flex-wrap: wrap;
  }

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

  .business-socials .icon-link {
    width: 36px;
    height: 36px;
  }

  .news-filters button {
    padding: 8px 14px;
    font-size: 12px;
  }

  .news-heading {
    margin-bottom: 24px;
  }

  .article-header {
    padding-block: 36px 45px;
  }

  .article-header h1 {
    font-size: clamp(24px, 6.5vw, 32px);
  }

  .article-cover img {
    height: 240px;
    border-radius: 18px;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.75;
  }

  .article-body h2 {
    font-size: 22px;
    margin: 30px 0 12px;
  }

  .article-body blockquote {
    padding: 18px 16px;
    font-size: 17px;
    margin: 26px 0;
  }

  .article-note,
  .article-body .article-note {
    padding: 16px 14px;
    gap: 10px;
    flex-direction: column;
  }

  .share-panel {
    flex-wrap: wrap;
    gap: 8px;
  }

  .promotional-carousel {
    min-height: 180px;
  }

  .promotional-copy {
    padding: 18px 14px 50px;
  }

  .promotional-text-block h2 {
    font-size: 18px;
  }

  .promotional-text-block p {
    font-size: 13px;
  }

  .promotional-controls {
    bottom: 10px;
    left: 14px;
  }

  .promotional-action-block {
    width: 100%;
  }

  .promotional-action-block .btn {
    width: 100%;
    font-size: 13px;
  }

  .membership-modal-header {
    height: 60px;
    min-height: 60px;
    padding: 0 14px;
  }

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

  .membership-floating-nav {
    position: static;
    top: auto;
    padding: 12px 14px 0;
    margin-bottom: -10px;
    pointer-events: auto;
  }

  .btn-return-home {
    padding: 7px 14px;
    font-size: 12.5px;
  }

  .modal-close {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  .membership-modal-main {
    flex: 1;
    min-height: 0;
  }

  .membership-plans {
    width: 100%;
    padding: 86px 14px 45px;
  }

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

  .plan-card {
    padding: 18px 14px;
  }

  .plan-card h2 {
    font-size: 20px;
  }

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

  .form-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .form-heading > span,
  .form-heading .step-counter {
    display: inline-flex !important;
    align-items: center !important;
    margin-top: 2px !important;
    font-size: 11px !important;
    padding: 3px 10px !important;
  }

  .form-heading h1 {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .membership-form-shell {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    padding: 14px 12px 40px !important;
    gap: 16px !important;
    box-sizing: border-box !important;
  }

  .membership-form-summary {
    padding: 14px 12px !important;
    margin-bottom: 0 !important;
  }

  .membership-form-summary h2 {
    font-size: 16px !important;
  }

  .membership-form-actions {
    margin-inline: -12px !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  .membership-form-actions .btn {
    padding-inline: 14px !important;
    font-size: 12.5px !important;
    min-height: 42px !important;
  }

  .form-back {
    padding: 8px 14px !important;
    font-size: 12.5px !important;
    min-height: 42px !important;
  }

  .contact-form,
  .contact-info {
    padding: 22px 16px;
  }

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

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

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 14px;
    grid-template-columns: 1fr;
  }

  .cookie-icon {
    display: none;
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .cookie-actions button {
    width: 100%;
  }

  .btn {
    min-height: 44px;
    padding: 0 16px;
  }

  .newsletter form button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .hero-visual {
    min-height: 290px;
  }

  .hero-shape {
    display: none;
  }

  .floating-card {
    display: none;
  }

  .floating-stat {
    max-width: 105px;
    padding: 6px 10px;
    font-size: 9px;
    right: 6px;
    bottom: 8px;
  }

  .floating-stat span {
    font-size: 16px;
  }

  .hero-carousel-controls {
    padding: 4px 8px;
    left: 6px;
    bottom: 8px;
    gap: 4px;
  }

  .hero-arrow-btn {
    width: 22px;
    height: 22px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ==========================================================================
   PROTECCIÓN DE ENCUADRE Y LÍMITE DE LÍNEAS VISUALES
   ========================================================================== */
.hero-copy h1 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eyebrow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.quick-item h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quick-item p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plan-card h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promotional-text-block h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promotional-text-block p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.newsletter p b {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.newsletter p small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   LIGHTBOX MODAL DE FOTOGRAFÍA / SALUDO DE PRESIDENCIA (PÁGINA NOSOTROS)
   ========================================================================== */
.ccl-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.ccl-image-lightbox .ccl-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.ccl-image-lightbox .ccl-lightbox-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  max-width: min(94vw, 880px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 2;
  animation: cclLightboxIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cclLightboxIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ccl-image-lightbox .ccl-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.ccl-image-lightbox .ccl-lightbox-close:hover {
  background: #0f172a;
  transform: rotate(90deg) scale(1.05);
}

.ccl-image-lightbox .ccl-lightbox-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0f24;
  overflow: hidden;
  max-height: calc(88vh - 65px);
}

.ccl-image-lightbox .ccl-lightbox-image-wrap img {
  max-width: 100%;
  max-height: calc(88vh - 65px);
  object-fit: contain;
  display: block;
}

.ccl-image-lightbox .ccl-lightbox-caption {
  padding: 14px 22px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #1e293b;
  font-weight: 600;
}

.ccl-image-lightbox .ccl-lightbox-badge {
  background: #f8d248;
  color: #122057;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: .04em;
  flex-shrink: 0;
}