/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #111;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.ex-hero {
  min-height: 100svh;
  padding: 60px 6% 80px;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 2rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 81, 155, .07), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(201, 28, 82, .07), transparent 40%),
    #fff;
}

.ex-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #F8F8F6;
  border: 1px solid #E0E0E0;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6B6B6B;
  margin-bottom: 1.75rem;
}

.ex-hero-eyebrow span {
  width: 6px;
  height: 6px;
  background: #1BAF65;
  border-radius: 50%;
  display: inline-block;
}

.ex-hero h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 1.75rem;
}

.ex-grad {
  background: linear-gradient(90deg, #C91C52, #00519B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ex-hero h1 em {
  font-style: normal;
  color: #1BAF65;
}

.ex-hero-desc {
  font-size: 1.05rem;
  font-weight: 400;
  color: #6B6B6B;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.ex-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   BOTONES
══════════════════════════════════════════ */
.ex-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .25s;
}

.ex-btn-dark {
  background: #C91C52;
  color: #fff;
  box-shadow: 0 10px 28px rgba(201, 28, 82, 0.25);
}

.ex-btn-dark .ex-btn-text { color: #fff; }

.ex-btn-dark:hover {
  background: #a8163f;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(201, 28, 82, 0.3);
}

.ex-btn-outline {
  background: transparent;
  color: #0D0D0D;
  border: 1.5px solid #CECECE;
}

.ex-btn-outline:hover { border-color: #0D0D0D; }

/* ══════════════════════════════════════════
   HERO RIGHT / METRIC CARDS
══════════════════════════════════════════ */
.ex-hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* FIX: par de minis en grid 2 columnas */
.ex-mc-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* FIX: layout split (número + tags a la derecha) */
.ex-mc-inner-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Tags */
.ex-mc-tags-wrap {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-top: .5rem;
}

.ex-mc-tags-right {
  margin-top: 0;
  text-align: right;
}

.ex-mc-tag {
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
}

.ex-metric-card {
  border-radius: 20px;
  padding: 2rem 2.25rem;
  position: relative;
  overflow: hidden;
}

.ex-mc-dark  { background: #F8F8F6; color: #0D0D0D; }
.ex-mc-green { background: #1BAF65; color: #fff; }
.ex-mc-light { background: #F8F8F6; color: #0D0D0D; }

.ex-mc-black            { background: #0D0D0D; color: #fff; }
.ex-mc-black .ex-num    { color: #fff; }
.ex-mc-black .ex-label  { color: rgba(255,255,255,.6); }

.ex-mc-green .ex-label  { color: rgba(255,255,255,.75); }

.ex-mc-mini         { padding: 1.5rem 2rem; }
.ex-mc-mini .ex-num { font-size: 2.25rem; }

.ex-metric-card .ex-num {
  font-size: 3.25rem;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: .35rem;
}

.ex-metric-card .ex-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .6;
}

/* ══════════════════════════════════════════
   TICKER
══════════════════════════════════════════ */
.ex-ticker-section {
  padding: 1.1rem 0;
  overflow: hidden;
  background: #0D0D0D;
}

.ex-ticker-track {
  display: flex;
  width: max-content;
  animation: scroll 32s linear infinite;
}

.ex-ticker-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 2rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: inherit;
  opacity: .85;
  white-space: nowrap;
}

.ex-ticker-item::after {
  content: '';
  width: 4px;
  height: 4px;
  background: #1BAF65;
  border-radius: 50%;
  margin-left: .6rem;
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════ */
.ex-stats-bar {
  background: #fff;
  padding: 3rem 6%;
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.ex-stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ex-stat-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  overflow: hidden;
  border: 1.5px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

.ex-stat-card.ex-visible {
  opacity: 1;
  transform: translateY(0);
}

.ex-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
}

.ex-stat-label {
  font-size: .8rem;
  font-weight: 500;
  color: #666;
  margin-top: .25rem;
}

.ex-stat-line {
  margin-top: 1.25rem;
  height: 4px;
  border-radius: 2px;
  width: 0%;
  transition: width 1s cubic-bezier(.22,1,.36,1);
}

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.ex-section { padding: 7rem 6%; }
.ex-section-alt { background: #F8F8F6; }

.ex-eyebrow {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #1BAF65;
  margin-bottom: .9rem;
  display: block;
}

.ex-section-h {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1rem;
}

.ex-section-h em {
  font-style: normal;
  color: #1BAF65;
}

.ex-section-p {
  font-size: 1rem;
  color: #6B6B6B;
  line-height: 1.75;
  max-width: 540px;
  margin-top: .75rem;
}

/* ══════════════════════════════════════════
   CASOS / TABS
══════════════════════════════════════════ */
.ex-logos-strip {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.ex-client-tab {
  padding: .6rem 1.5rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1.5px solid #EBEBEB;
  cursor: pointer;
  background: #fff;
  color: #666;
  transition: all .2s;
}

.ex-client-tab.ex-active {
  background: #0D0D0D;
  color: #fff;
  border-color: #0D0D0D;
}

.ex-client-tab:hover:not(.ex-active) {
  border-color: #999;
  color: #333;
}

/* ══════════════════════════════════════════
   CASO CARD
══════════════════════════════════════════ */
.ex-caso-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0,0,0,.08);
  margin-top: 2rem;
  height: 560px;
}

.ex-caso-visual {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ex-caso-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ex-caso-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 55%);
  pointer-events: none;
}

.ex-caso-body {
  background: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100%;
}

.ex-caso-body h2 {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.ex-caso-blocks {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-bottom: 1.5rem;
}

.ex-caso-block-label {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6B6B6B;
  margin-bottom: .2rem;
}

.ex-caso-block-text {
  font-size: .82rem;
  color: #444;
  line-height: 1.65;
}

.ex-solucion-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.ex-solucion-list li {
  font-size: .8rem;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  line-height: 1.5;
}

.ex-solucion-list li::before {
  content: '→';
  color: #1BAF65;
  font-weight: 700;
  font-size: .78rem;
  flex-shrink: 0;
  margin-top: .05rem;
}

.ex-caso-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  padding-top: 1.25rem;
  border-top: 1px solid #EBEBEB;
  margin-top: auto;
}

.ex-caso-stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.ex-caso-stat-label {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #6B6B6B;
  text-transform: uppercase;
  margin-top: .15rem;
}

/* ══════════════════════════════════════════
   PROCESO
══════════════════════════════════════════ */
.ex-proceso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.ex-proceso-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  border: 1.5px solid #EBEBEB;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}

.ex-proceso-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.09);
  transform: translateY(-3px);
}

.ex-proceso-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.ex-proceso-card:nth-child(1)::before { background: #C91C52; }
.ex-proceso-card:nth-child(2)::before { background: #00519B; }
.ex-proceso-card:nth-child(3)::before { background: #1BAF65; }

.ex-proceso-num {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: .75rem;
}

.ex-proceso-card:nth-child(1) .ex-proceso-num { color: rgba(201,28,82,.12); }
.ex-proceso-card:nth-child(2) .ex-proceso-num { color: rgba(0,81,155,.12); }
.ex-proceso-card:nth-child(3) .ex-proceso-num { color: rgba(27,175,101,.12); }

.ex-proceso-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .35rem;
  color: #0D0D0D;
}

.ex-proceso-sub {
  font-size: .75rem;
  font-weight: 700;
  color: #6B6B6B;
  margin-bottom: .75rem;
  letter-spacing: .04em;
}

.ex-proceso-desc {
  font-size: .85rem;
  color: #6B6B6B;
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   DIFERENCIADORES
══════════════════════════════════════════ */
.ex-diff-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-top: 3.5rem;
}

.ex-diff-items {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.ex-diff-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.ex-diff-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F8F8F6;
  border: 1px solid #EBEBEB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 900;
  color: #6B6B6B;
  flex-shrink: 0;
  margin-top: .15rem;
}

.ex-diff-item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .4rem;
}

.ex-diff-item p {
  font-size: .875rem;
  color: #6B6B6B;
  line-height: 1.7;
}

.ex-diff-card {
  background: #0D0D0D;
  border-radius: 28px;
  padding: 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ex-diff-card-deco {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: #1BAF65;
  opacity: .08;
  top: -80px; right: -80px;
}

.ex-diff-card-deco2 {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: #C91C52;
  opacity: .08;
  bottom: -30px; left: -30px;
}

.ex-diff-big {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -4px;
  color: #1BAF65;
  line-height: 1;
  margin-bottom: .25rem;
}

.ex-diff-big-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  opacity: .5;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.ex-bar-row { margin-bottom: 1.25rem; }

.ex-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.ex-bar-top span:last-child { opacity: .5; }

.ex-bar-bg {
  background: rgba(255,255,255,.1);
  border-radius: 50px;
  height: 7px;
  overflow: hidden;
}

.ex-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: #1BAF65;
}

/* ══════════════════════════════════════════
   CTA FINAL
   FIX: los colores vienen del PHP inline,
   el CSS solo define la estructura y fallback
══════════════════════════════════════════ */
.ex-cta-section {
  /* Fallback si no hay inline style desde PHP */
  background: linear-gradient(135deg, #C91C52 0%, #a8163f 55%, #d91679 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ex-cta-section .ex-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ex-cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 680px; height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  pointer-events: none;
}

.ex-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ex-cta-section h2 {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.ex-cta-section .ex-cta-desc {
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 26px;
}

.ex-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ex-btn-cta-primary,
.ex-btn-cta-outline {
  min-height: 52px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ex-btn-cta-primary {
  background: #fff;
  color: #C91C52;
  padding: 14px 26px;
  font-weight: 800;
  border: none;
}

.ex-btn-cta-primary .ex-btn-text-grad {
  color: #C91C52;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.ex-btn-cta-primary svg { stroke: #C91C52; }

.ex-btn-cta-primary:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
}

.ex-btn-cta-outline {
  background: transparent;
  color: #fff;
  padding: 14px 26px;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.26);
}

.ex-btn-cta-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.42);
  transform: translateY(-2px);
}

.ex-cta-small {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
  .ex-hero {
    grid-template-columns: 1fr;
    padding: 60px 5% 4rem;
    min-height: auto;
  }

  .ex-hero-right { display: none; }

  .ex-diff-layout { grid-template-columns: 1fr; gap: 3rem; }

  .ex-caso-wrap { grid-template-columns: 1fr; height: auto; }
  .ex-caso-visual { height: 300px; }
  .ex-caso-body { height: auto; padding: 2.5rem 2rem; }

  .ex-stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .ex-proceso-grid { grid-template-columns: 1fr; }

  .ex-logos-strip { gap: .5rem; }
  .ex-client-tab { font-size: .72rem; padding: .5rem 1.1rem; }
  .ex-diff-card { padding: 2rem; }
}

@media (max-width: 640px) {
  .ex-hero { padding: 48px 5% 3rem; }
  .ex-stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .ex-caso-stats { grid-template-columns: 1fr 1fr; }
  .ex-caso-visual { height: 240px; }
  .ex-caso-body { padding: 1.75rem 1.25rem; }
  .ex-caso-body h2 { font-size: 1.35rem; }
  .ex-diff-layout { gap: 2rem; }
  .ex-cta-buttons { flex-direction: column; align-items: stretch; }
  .ex-cta-section { padding: 72px 0; }
  .ex-section { padding: 5rem 5%; }
  .ex-stats-bar { padding: 2.5rem 5%; }
}