/* Sección Metodología de Datos — Mendoza Insights */

.methodology-section {
  position: relative;
  overflow: hidden;
  padding: 3.75rem 0 4rem;
  background: var(--primary-logo, #1f3575);
  color: #fff;
}

.methodology-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(47, 164, 134, 0.08),
      transparent 32%
    );
  pointer-events: none;
}

.methodology-section__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 74rem);
  margin: 0 auto;
}

.methodology-header {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.methodology-header__eyebrow {
  margin: 0 0 0.65rem;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #69d1b7;
}

.methodology-header__title {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: none;
}

h2.methodology-header__title {
  text-transform: none;
  letter-spacing: -0.02em;
}

.methodology-header__subtitle {
  margin: 0.75rem 0 0;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.methodology-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 2.5vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Centro del ícono: número (1.25rem) + margen (0.65rem) + mitad del ícono (24px) */
.methodology-steps::before {
  content: '';
  position: absolute;
  top: calc(1.25rem + 0.65rem + 24px);
  left: 24px;
  right: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.methodology-step {
  position: relative;
  min-width: 0;
}

.methodology-step:last-child {
  padding-right: 0.25rem;
}

.methodology-step__top {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 92px;
  margin-bottom: 1rem;
}

.methodology-step__number {
  display: block;
  margin-bottom: 0.65rem;
  font-family: Merriweather, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.32);
}

.methodology-step__icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #69d1b7;
  backdrop-filter: blur(6px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.methodology-step__icon::after {
  display: none;
}

.methodology-step__icon svg {
  width: 22px;
  height: 22px;
}

.methodology-step:last-child .methodology-step__icon {
  color: #fff;
  border-color: rgba(235, 115, 0, 0.35);
  background: rgba(235, 115, 0, 0.12);
}

@media (hover: hover) {
  .methodology-step__icon:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
  }

  .methodology-step:last-child .methodology-step__icon:hover {
    border-color: rgba(235, 115, 0, 0.5);
    background: rgba(235, 115, 0, 0.18);
  }
}

.methodology-step__title {
  min-height: 2.65rem;
  margin: 0 0 0.5rem;
  font-family: Inter, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}

h3.methodology-step__title {
  text-transform: none;
  letter-spacing: 0;
}

.methodology-step__description {
  margin: 0;
  max-width: none;
  font-family: Inter, sans-serif;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .methodology-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 2rem;
  }

  .methodology-steps::before {
    display: none;
  }

  .methodology-step {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
  }

  .methodology-step__top {
    min-height: auto;
    margin-bottom: 0.9rem;
  }

  .methodology-step__title {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .methodology-section {
    padding: 3.25rem 0 3.5rem;
  }

  .methodology-section__inner {
    width: min(100% - 3rem, 74rem);
  }

  .methodology-header {
    margin-bottom: 2rem;
  }

  .methodology-steps {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding-left: 0;
  }

  .methodology-steps::before {
    top: 26px;
    bottom: 26px;
    left: 25px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .methodology-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
      'icon number'
      'icon title'
      'icon description';
    column-gap: 1rem;
    padding-bottom: 1.75rem;
    padding-right: 0;
  }

  .methodology-step:last-child {
    padding-bottom: 0;
    padding-right: 0;
  }

  .methodology-step__top {
    display: contents;
    min-height: 0;
    margin-bottom: 0;
  }

  .methodology-step__number {
    grid-area: number;
    align-self: end;
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }

  .methodology-step__icon {
    grid-area: icon;
    align-self: start;
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .methodology-step__title {
    grid-area: title;
    min-height: auto;
    margin-bottom: 0.35rem;
  }

  .methodology-step__description {
    grid-area: description;
    max-width: none;
  }
}
