body {
  padding-top: 108px;
}

@media screen and (max-width: 782px) {
  body {
    padding-top: calc(108px - 46px);
  }
}

/* Home sections: hero, areas, news, team */

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-slide--active {
  transform: translateX(0);
  z-index: 2;
}

.hero-slide--leaving {
  transform: translateX(-100%);
  z-index: 1;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 58, 120, 0.58);
}

.hero-slide-content {
  position: absolute;
  bottom: 80px;
  left: 240px;
  z-index: 2;
  max-width: 580px;
}

.hero-slide-category {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}

.hero-slide-title {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hero-slide-btn {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  height: 44px;
  text-decoration: none;
  background: transparent;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.hero-slide-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.hero-slide-btn-label {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 0 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-slide-btn-divider {
  width: 1.5px;
  height: 24px;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.hero-slide-btn-arrow {
  font-size: 16px;
  color: #fff;
  padding: 0 16px;
}

/* Hero logo — esquina inferior izquierda */
.hero-logo {
  position: absolute;
  bottom: 28px;
  left: 80px;
  z-index: 4;
  opacity: 0.92;
  width: 127px;
  height: 127px;
  display: block;
  transition: opacity 0.2s;
}

.hero-logo img,
.hero-logo svg {
  width: 127px;
  height: 127px;
  display: block;
}

.hero-logo:hover {
  opacity: 1;
}

/* Cuadrados decorativos — lado derecho */
.hero-decor {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.hero-decor--1 {
  top: 110px;
  right: 80px;
  width: 20px;
  height: 20px;
  background: var(--blue);
  opacity: 0.85;
}

.hero-decor--2 {
  top: 134px;
  right: 106px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-decor--3 {
  top: 118px;
  right: 118px;
  width: 14px;
  height: 14px;
  background: var(--blue-md);
  opacity: 0.55;
}

/* Hero controls */
.hero-controls {
  position: absolute;
  bottom: 34px;
  right: 80px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.hero-dots {
  display: flex;
  gap: 5px;
}

.hero-dot {
  width: 24px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s;
}

.hero-dot--active {
  background: #fff;
}

.hero-nav {
  display: flex;
  gap: 20px;
}

.hero-nav-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  border: none;
  background: transparent;
  transition:
    background 0.2s,
    transform 0.15s;
}

.hero-nav-btn:hover {
  transform: scale(1.1);
}

.hero-nav-btn--prev {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-nav-btn--prev:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-nav-btn--next {
  background: var(--blue);
}

.hero-nav-btn--next:hover {
  background: var(--blue-dk);
}

/* ══════════════════════════════════════
   ÁREAS DE PRÁCTICA — mosaico asimétrico
   ══════════════════════════════════════ */
.areas-section {
  background: var(--blue-xdk);
  padding: 52px 0 0;
}
.areas-container {
  padding: 0 48px 0;
}
.areas-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.areas-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.areas-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 20px;
}
.areas-cta-link {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  text-decoration: none;
  transition: all 0.2s;
}
.areas-cta-link:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Grilla principal — jerarquía por tamaño */
.areas-main-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr 1fr;
  grid-template-rows: 200px 160px;
  gap: 3px;
}
.area-cell {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}
.area-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.22;
  transition: opacity 0.3s;
}
.area-cell:hover img {
  opacity: 0.15;
}

.area-cell-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  z-index: 1;
}
.area-cell-content {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
}
.area-cell-num {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.area-cell-name {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* número grande decorativo */
.area-cell-bignum {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

/* Hover overlay */
.area-cell-hover {
  position: absolute;
  inset: 0;
  background: rgba(27, 100, 200, 0.9);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  z-index: 4;
}
.area-cell:hover .area-cell-hover {
  opacity: 1;
}
.area-cell-hover-name {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.area-cell-hover-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.55;
}
.area-cell-hover-btn {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 5px 12px;
  margin-top: 4px;
}

/* Grid positions */
.area-cell--01 {
  grid-column: 1/2;
  grid-row: 1/3;
}
.area-cell--02 {
  grid-column: 2/4;
  grid-row: 1/2;
}
.area-cell--03 {
  grid-column: 4/5;
  grid-row: 1/2;
}
.area-cell--04 {
  grid-column: 2/3;
  grid-row: 2/3;
}
.area-cell--05 {
  grid-column: 3/4;
  grid-row: 2/3;
}
.area-cell--06 {
  grid-column: 4/5;
  grid-row: 2/3;
}

/* Colores de fondo — oscuros para jerarquía principal */
.ac-xdk {
  background: var(--blue-xdk);
}
.ac-xdk .area-cell-num {
  color: rgba(255, 255, 255, 0.4);
}
.ac-xdk .area-cell-name {
  color: #fff;
}
.ac-xdk .area-cell-fade {
  background: linear-gradient(
    to top,
    rgba(5, 15, 40, 0.75) 0%,
    transparent 100%
  );
}
.ac-xdk .area-cell-bignum {
  color: rgba(255, 255, 255, 0.04);
}

.ac-blue {
  background: var(--blue);
}
.ac-blue .area-cell-num {
  color: rgba(255, 255, 255, 0.45);
}
.ac-blue .area-cell-name {
  color: #fff;
}
.ac-blue .area-cell-fade {
  background: linear-gradient(
    to top,
    rgba(10, 26, 62, 0.65) 0%,
    transparent 100%
  );
}
.ac-blue .area-cell-bignum {
  color: rgba(255, 255, 255, 0.05);
}

.ac-navy {
  background: #1450a8;
}
.ac-navy .area-cell-num {
  color: rgba(255, 255, 255, 0.4);
}
.ac-navy .area-cell-name {
  color: #fff;
}
.ac-navy .area-cell-fade {
  background: linear-gradient(
    to top,
    rgba(10, 26, 62, 0.6) 0%,
    transparent 100%
  );
}
.ac-navy .area-cell-bignum {
  color: rgba(255, 255, 255, 0.04);
}

.ac-md {
  background: var(--blue-md);
}
.ac-md .area-cell-num {
  color: rgba(255, 255, 255, 0.45);
}
.ac-md .area-cell-name {
  color: #fff;
}
.ac-md .area-cell-fade {
  background: linear-gradient(
    to top,
    rgba(10, 26, 62, 0.55) 0%,
    transparent 100%
  );
}
.ac-md .area-cell-bignum {
  color: rgba(255, 255, 255, 0.05);
}

.ac-pale {
  background: #1b3e78;
}
.ac-pale .area-cell-num {
  color: rgba(255, 255, 255, 0.4);
}
.ac-pale .area-cell-name {
  color: #fff;
}
.ac-pale .area-cell-fade {
  background: linear-gradient(
    to top,
    rgba(10, 26, 62, 0.55) 0%,
    transparent 100%
  );
}
.ac-pale .area-cell-bignum {
  color: rgba(255, 255, 255, 0.04);
}

.ac-lt {
  background: #2a5090;
}
.ac-lt .area-cell-num {
  color: rgba(255, 255, 255, 0.4);
}
.ac-lt .area-cell-name {
  color: #fff;
}
.ac-lt .area-cell-fade {
  background: linear-gradient(
    to top,
    rgba(10, 26, 62, 0.5) 0%,
    transparent 100%
  );
}
.ac-lt .area-cell-bignum {
  color: rgba(255, 255, 255, 0.04);
}

/* Fila inferior — 4 celdas más grandes que antes */
.areas-bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 3px;
}
.area-cell--bottom {
  height: 150px;
}

.ac-b1 {
  background: #0d3070;
}
.ac-b1 .area-cell-num {
  color: rgba(255, 255, 255, 0.4);
}
.ac-b1 .area-cell-name {
  color: #fff;
}
.ac-b1 .area-cell-fade {
  background: linear-gradient(
    to top,
    rgba(5, 15, 40, 0.6) 0%,
    transparent 100%
  );
}

.ac-b2 {
  background: #153880;
}
.ac-b2 .area-cell-num {
  color: rgba(255, 255, 255, 0.4);
}
.ac-b2 .area-cell-name {
  color: #fff;
}
.ac-b2 .area-cell-fade {
  background: linear-gradient(
    to top,
    rgba(10, 26, 62, 0.55) 0%,
    transparent 100%
  );
}

.ac-b3 {
  background: #1c4898;
}
.ac-b3 .area-cell-num {
  color: rgba(255, 255, 255, 0.42);
}
.ac-b3 .area-cell-name {
  color: #fff;
}
.ac-b3 .area-cell-fade {
  background: linear-gradient(
    to top,
    rgba(10, 26, 62, 0.5) 0%,
    transparent 100%
  );
}

.ac-b4 {
  background: #234fa8;
}
.ac-b4 .area-cell-num {
  color: rgba(255, 255, 255, 0.42);
}
.ac-b4 .area-cell-name {
  color: #fff;
}
.ac-b4 .area-cell-fade {
  background: linear-gradient(
    to top,
    rgba(10, 26, 62, 0.48) 0%,
    transparent 100%
  );
}

/* ── Hero responsive ── */
@media (max-width: 1179px) {
  .hero-logo {
    left: 32px;
  }
  .hero-slide-content {
    left: 180px;
  }
  .hero-controls {
    right: 32px;
  }
}

@media (max-width: 767px) {
  .hero-slide-content {
    left: 20px;
    bottom: 60px;
  }
  .hero-controls {
    right: 16px;
    bottom: 16px;
  }
  .hero-logo {
    left: 16px;
    bottom: 16px;
    width: 80px;
    height: 80px;
  }
  .hero-logo img,
  .hero-logo svg {
    width: 80px;
    height: 80px;
  }
}

/* Bajo 760px el logo queda encima del botón "Ver área"/"Ver asesoría": se oculta */
@media (max-width: 760px) {
  .hero-logo {
    display: none;
  }
}

/* Responsive adjustments */
@media (max-width: 1179px) {
  .areas-main-grid {
    grid-template-rows: 170px 140px;
  }
}

@media (max-width: 767px) {
  .areas-section {
    padding: 36px 0 0;
  }
  .areas-container {
    padding: 0 20px;
  }
  .areas-main-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .area-cell--01 {
    grid-column: 1/2;
    grid-row: 1/2;
    min-height: 140px;
  }
  .area-cell--02 {
    grid-column: 2/3;
    grid-row: 1/2;
  }
  .area-cell--03 {
    grid-column: 1/2;
    grid-row: 2/3;
  }
  .area-cell--04 {
    grid-column: 2/3;
    grid-row: 2/3;
  }
  .area-cell--05 {
    grid-column: 1/2;
    grid-row: 3/4;
  }
  .area-cell--06 {
    grid-column: 2/3;
    grid-row: 3/4;
  }
  .area-cell {
    min-height: 110px;
  }
  .areas-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .area-cell--bottom {
    height: 115px;
  }
}

/* Animación de entrada de áreas */
.area-cell {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.area-cell.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Delays en orden 01→10 */
.area-cell--01 {
  transition-delay: 0ms;
}
.area-cell--02 {
  transition-delay: 80ms;
}
.area-cell--03 {
  transition-delay: 160ms;
}
.area-cell--04 {
  transition-delay: 200ms;
}
.area-cell--05 {
  transition-delay: 240ms;
}
.area-cell--06 {
  transition-delay: 280ms;
}
/* Fila inferior por índice data-delay (asignado por JS) */
.area-cell--bottom {
  transition-delay: var(--delay, 320ms);
}

.areas-cta-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 0;
  background: var(--blue-xdk);
}

.news-section {
  background: white;
  padding: 48px 0;
}
.news-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 24px;
}
.news-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 280px;
  background: #ddd;
}
.news-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.news-card:hover .news-img {
  transform: scale(1.05);
}
.news-box {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  background: white;
  padding: 18px;
  border-top: 3px solid transparent;
  transition:
    border-color 0.3s ease,
    opacity 0.3s ease;
}
.news-card:hover .news-box {
  opacity: 0;
}
.news-cat {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.news-title {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-xdk);
  line-height: 1.35;
  margin-bottom: 7px;
}
.news-desc {
  font-size: 11px;
  color: var(--gray-mid);
  line-height: 1.55;
}
.news-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 79, 160, 0.78);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.news-card:hover .news-overlay {
  transform: translateY(0);
}
.no-cat {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.no-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  color: white;
  line-height: 1.25;
  margin-bottom: 8px;
}
.no-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin-bottom: 12px;
}
.no-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.no-date {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
}
.no-link {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-sq1 {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  background: var(--blue);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}
.news-sq2 {
  position: absolute;
  top: 26px;
  left: 26px;
  width: 8px;
  height: 8px;
  background: white;
  border: 1px solid var(--gray-lt);
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}
.news-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.team-section {
  background: white;
  padding: 52px 0 0;
  overflow-x: clip;
}
.team-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width: 400px) {
  .team-container {
    padding: 0 50px;
  }
}
.team-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.team-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-xdk);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

/* Carrusel socios */
.socios-carousel {
  position: relative;
  overflow: hidden;
}
.socios-track {
  display: flex;
  gap: 32px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.socio {
  flex: 0 0 calc((100% - 32px) / 2);
  height: 340px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-lt);
}
.socio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}
.socio:hover img {
  transform: scale(1.04);
}
.socio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 79, 160, 0.82);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.socio:hover .socio-overlay {
  transform: translateY(0);
}
.socio-name {
  font-size: 18px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 6px;
}
.socio-role {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.socio-spec {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 15px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}
.socio-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 7px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: auto;
}
.socio-linkedin:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Indicadores carrusel socios */
.socios-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 28px;
}
.socios-dot {
  width: 28px;
  height: 3px;
  background: var(--gray-lt);
  cursor: pointer;
  transition: background 0.25s;
}
.socios-dot--active {
  background: var(--blue);
}

/* Bajo 600px la tarjeta de socio queda muy angosta con 2 por fila: pasa a 1 por vista */
@media (max-width: 600px) {
  .socio {
    flex: 0 0 100%;
    height: 420px;
  }
}

@media (max-width: 400px) {
  .socio {
    height: 340px;
  }
}

/* Grilla asociados full-width, columnas dinámicas según el ancho de pantalla (7 / 5 / 3),
   filas dinámicas según el total del equipo. El escalonado de columnas y los cuadros de
   relleno para completar la última fila los recalcula team-grid en script.js. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: calc(100vw / 7 * 0.8);
  gap: 0;
  width: 100%;
}

@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: calc(100vw / 5 * 0.8);
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: calc(100vw / 3 * 0.8);
  }
}
.team-cell {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.team-cell--filler {
  cursor: default;
  pointer-events: none;
}
.team-cell--filler-1 {
  background: var(--blue-lt);
}
.team-cell--filler-2 {
  background: var(--blue-md);
}
.team-cell--filler-3 {
  background: var(--blue);
}
.team-cell--filler-4 {
  background: var(--blue-dk);
}
.team-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}
.team-cell:hover img {
  transform: scale(1.05);
}
.team-cell-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 79, 160, 0.82);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 11px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.team-cell:hover .team-cell-overlay {
  transform: translateY(0);
}
.team-cell-name {
  font-size: 11px;
  font-weight: 800;
  color: white;
  line-height: 1.3;
}
.team-cell-area {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.team-cta-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 0;
  background: white;
}

/* ══════════════════════════════════════
   BOTÓN SPLIT — reutilizable
══════════════════════════════════════ */
.btn-split {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 1.5px solid var(--blue);
  height: 40px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-split:hover {
  background: var(--blue);
}
.btn-split:hover .btn-split-label {
  color: white;
}
.btn-split:hover .btn-split-divider {
  background: rgba(255, 255, 255, 0.4);
}
.btn-split:hover .btn-split-arrow {
  color: white;
}
.btn-split-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-xdk);
  padding: 0 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.btn-split-divider {
  width: 1.5px;
  height: 20px;
  background: var(--blue);
  transition: background 0.2s;
}
.btn-split-arrow {
  font-size: 13px;
  color: var(--blue);
  padding: 0 14px;
  transition: color 0.2s;
}

/* btn-split version blanca para fondo oscuro */
.btn-split--white {
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-split--white:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-split--white .btn-split-label {
  color: #fff;
}
.btn-split--white .btn-split-divider {
  background: rgba(255, 255, 255, 0.35);
}
.btn-split--white .btn-split-arrow {
  color: rgba(255, 255, 255, 0.7);
}

/* SECTION HEADER STYLES (sync template) */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.section-header::before {
  content: "";
  width: 34px;
  height: 3px;
  background: #e7c77e;
  display: block;
  flex-shrink: 0;
}

.section-header span {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-header--light span {
  color: #fff;
}

.section-header--dark span {
  color: var(--blue-dk);
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
  margin-bottom: 32px;
  overflow-wrap: break-word;
}

.section-title--dark {
  color: #0e2342;
}

.section-title--light {
  color: #fff;
}

/* LOGROS E HITOS SECTION */
.logros-section {
  background: #eae7de;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.logros-container {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.logros-diagonal {
  display: flex;
  position: relative;
  flex: 1;
  min-height: 420px;
  background: #eae7de;
}

.logros-col-left {
  width: 62%;
  flex-shrink: 0;
  padding: 55px 100px 55px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.logros-col-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(61, 127, 212);
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
  z-index: -1;
}

.logros-col-right {
  flex: 1;
  padding: 60px 48px 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.logros-stat {
  font-size: 88px;
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  margin-top: 12px;
}

.logros-col-left .logros-stat {
  color: #fff;
}

.logros-col-left .logros-stat.in {
  opacity: 1;
  transform: translateY(0);
}

.logros-col-left .logros-stat em {
  font-style: normal;
  font-size: 44px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

.logros-col-right .logros-stat {
  color: var(--blue-xdk);
  transition:
    opacity 0.7s ease 0.12s,
    transform 0.7s ease 0.12s;
}

.logros-col-right .logros-stat.in {
  opacity: 1;
  transform: translateY(0);
}

.logros-col-right .logros-stat em {
  font-style: normal;
  font-size: 44px;
  font-weight: 500;
  color: #c89b3c;
}

.logros-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 10px;
}

.logros-col-left .logros-label {
  color: rgba(255, 255, 255, 0.5);
}

.logros-col-right .logros-label {
  color: var(--blue);
}

.logros-text {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 8px;
  max-width: 380px;
}

.logros-col-left .logros-text {
  color: rgba(255, 255, 255, 0.65);
}

.logros-col-right .logros-text {
  color: #555;
  max-width: 380px;
}

.logros-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  color: #c89b3c;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  margin-top: 14px;
  transition: color 0.2s;
}

.logros-link:hover {
  color: var(--blue);
}

.logros-news {
  background: var(--blue-dk);
  display: flex;
  gap: 0;
}

.logros-news-item {
  flex: 1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: background 0.2s;
}

.logros-news-item:first-child {
  padding-left: 60px;
}

.logros-news-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.logros-news-item:last-child {
  border-right: none;
}

.logros-news-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  color: #e7c77e;
  flex-shrink: 0;
  padding-top: 1px;
}

.logros-news-txt {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
}

.logros-news-cta {
  display: flex;
  align-items: center;
  padding: 18px 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--blue-lt);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s;
}

.logros-news-cta:hover {
  color: #fff;
}

.count-up {
  display: inline;
}

/* INFORMACIONES DEL ESTUDIO - CARRUSEL RESKIN */
.estudio-reskin-section {
  background: var(--gray-bg);
  padding: 72px 0;
  border-top: 1px solid #e4e1d6;
}

.estudio-reskin-container {
  padding: 0 80px;
}

.estudio-reskin-header {
  margin-bottom: 32px;
  position: relative;
}

.estudio-reskin-title-group {
  padding-right: 100px;
}

.estudio-reskin-controls {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  gap: 0;
}

.estudio-reskin-desc {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #5c6b82;
  margin: 0;
  max-width: 560px;
}

.estudio-reskin-btn {
  width: 44px;
  height: 40px;
  border: 1.5px solid #0e2342;
  background: #fff;
  color: #0e2342;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.estudio-reskin-btn:hover {
  background: #0e2342;
  color: #fff;
}

.estudio-reskin-divider {
  width: 1.5px;
  height: 40px;
  background: #0e2342;
}

.estudio-reskin-carousel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: #fff;
  border: 1px solid #e4e1d6;
  min-height: 300px;
  margin-bottom: 20px;
}

.estudio-reskin-content {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.estudio-reskin-badge {
  align-self: flex-start;
  background: #1b5fc9;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  margin-bottom: 22px;
}

.estudio-reskin-item-title {
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0e2342;
  margin: 0 0 16px;
  line-height: 1.15;
}

.estudio-reskin-item-desc {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #5c6b82;
  margin: 0;
}

.estudio-reskin-stats {
  background: #1b5fc9;
  color: #fff;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.estudio-reskin-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: auto;
}

.estudio-reskin-number {
  font-family: "Montserrat", sans-serif;
  font-size: 108px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.82;
  margin-top: 22px;
}

.estudio-reskin-total {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 6px;
}

.estudio-reskin-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.estudio-reskin-pill {
  padding: 10px 18px;
  background: #fff;
  color: #0e2342;
  border: 1px solid #0e2342;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.estudio-reskin-pill:hover {
  background: #f4f2ec;
}

.estudio-reskin-pill--active {
  background: #0e2342;
  color: #fff;
}

@media (max-width: 1179px) {
  .estudio-reskin-container {
    padding: 0 32px;
  }

  .estudio-reskin-item-title {
    font-size: 26px;
  }

  .estudio-reskin-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  /* Los controles ya no están superpuestos en absoluto sobre el título (ver .estudio-reskin-header
     más arriba), así que el hueco reservado en desktop ya no aplica y solo generaba overflow. */
  .estudio-reskin-title-group {
    padding-right: 0;
    width: 100%;
  }

  .estudio-reskin-controls {
    position: static;
    align-self: flex-end;
  }

  .logros-col-left {
    width: 65%;
    padding: 48px 60px 48px 32px;
  }

  .logros-col-left::before {
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  }

  .logros-col-right {
    padding: 52px 32px 48px 32px;
  }

  .logros-stat {
    font-size: 72px;
  }

  .logros-col-left .logros-stat em,
  .logros-col-right .logros-stat em {
    font-size: 34px;
  }

  .logros-news-item:first-child {
    padding-left: 32px;
  }
}

@media (max-width: 767px) {
  .estudio-reskin-container {
    padding: 0 20px;
  }

  .estudio-reskin-section {
    padding: 32px 0;
  }

  .estudio-reskin-header {
    margin-bottom: 24px;
  }

  .estudio-reskin-carousel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .estudio-reskin-content {
    padding: 32px 24px;
  }

  .estudio-reskin-stats {
    padding: 24px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .estudio-reskin-item-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .estudio-reskin-item-desc {
    font-size: 14px;
  }

  .estudio-reskin-number {
    font-size: 52px;
    margin-top: 0;
  }

  .estudio-reskin-label {
    order: 2;
  }

  .estudio-reskin-desc {
    font-size: 14px;
  }

  .estudio-reskin-pills {
    justify-content: center;
  }

  .logros-diagonal {
    flex-direction: column;
    min-height: auto;
  }

  .logros-col-left {
    width: 100%;
    padding: 40px 24px;
  }

  .logros-col-left::before {
    clip-path: none;
    background: var(--blue-xdk);
  }

  .logros-col-right {
    width: 100%;
    padding: 40px 24px;
    background: #eae7de;
  }

  .logros-stat {
    font-size: 56px;
  }

  .logros-col-left .logros-stat em,
  .logros-col-right .logros-stat em {
    font-size: 28px;
  }

  .logros-text {
    font-size: 13px;
    max-width: 100%;
  }

  .logros-news {
    flex-direction: column;
  }

  .logros-news-item,
  .logros-news-cta {
    flex: 1;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-left: none;
    border-right: none;
  }

  .logros-news-item:first-child {
    padding-left: 16px;
    border-top: none;
  }

  .logros-news-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
}
