/* ============================================================
   Nuestra Historia — estilos específicos de la página
   ============================================================ */

/* ── Historia principal (texto + imagen) ── */
.historia-section {
  background: #f4f4f4;
  overflow: hidden;
}

.historia-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem 4rem 4rem;
}

.historia-right {
  padding: 0;
  position: relative;
  min-height: 460px;
}

.historia-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.historia-img-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #f6f6f7 0%, transparent 20%);
  pointer-events: none;
  z-index: 1;
}

.historia-tag {
  display: inline-block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  background: #042656;
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.historia-text {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.85;
  color: #4b5563;
  margin-bottom: 2rem;
}

/* ── Timeline / Hitos ── */
.hitos-section {
  background: #042656;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}


.hito-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.hito-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.hito-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #042656;
  border: 2px solid rgba(252,213,0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.hito-icon i {
  color: #fcd500;
  font-size: 1.4rem;
}

.hito-year {
  font-family: 'Big Shoulders', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #fcd500;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hito-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.hito-desc {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255,255,255);
  line-height: 1.6;
}

/* ── Valores ── */
.valores-section {
  padding: 100px 0 0;
  background: #ffffff;
  overflow: hidden;
}

.valores-intro {
  margin-bottom: 60px;
}

.valor-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.valor-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f0f4ff;
  border: 2px solid #e8edf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  transition: background 0.3s, border-color 0.3s;
}

.valor-icon i {
  color: #1f3e82;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.valor-card:hover .valor-icon {
  background: #1f3e82;
  border-color: #1f3e82;
}

.valor-card:hover .valor-icon i {
  color: #fcd500;
}

.valor-name {
  font-family: 'Big Shoulders', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #030523;
  margin-bottom: 0.5rem;
}

.valor-desc {
  font-size: 0.83rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.7;
}

.valores-image-strip {
  margin-top: 70px;
  height: 340px;
  overflow: hidden;
  position: relative;
}

.valores-image-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.valores-image-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #ffffff 0%, transparent 30%, rgba(3,5,35,0.5) 100%);
}

/* ── Logros / Stats ── */
.logros-section {
  background: #042656;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.logros-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 3rem;
}

.logros-intro {
  margin-bottom: 2.5rem;
}

.logros-intro .partido-intro__tag {
  margin-bottom: 1rem;
}

.logros-intro h2 {
  font-family: "Suissnord";
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.logros-intro h2 span {
  color: #fcd500;
}

.logros-intro p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-top: 1rem;
}

.logros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.logro-item {
  background: rgba(31, 62, 130, 0.35);
  border: 1px solid rgba(31, 62, 130, 0.5);
  border-top: 3px solid #fcd500;
  padding: 1.8rem 1.5rem;
  transition: background 0.3s;
}

.logro-item:hover {
  background: rgba(31, 62, 130, 0.55);
}

.logro-number {
  font-family: 'Big Shoulders', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: #fcd500;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.logro-number i {
  font-size: 2rem;
  vertical-align: middle;
  margin-right: 0.3rem;
}

.logro-label {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.logros-right {
  position: relative;
  min-height: 420px;
}

.logros-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 25px;
}

.logros-img-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #030523 0%, transparent 25%);
  pointer-events: none;
  z-index: 1;
  border-radius: 4px;
}

/* ── Estadio / Palmarés ── */
.estadio-section {
  background: #f6f6f7;
  padding: 100px 0;
  overflow: hidden;
}

.estadio-left {
  position: relative;
  min-height: 460px;
}

.estadio-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 25px;
}

.estadio-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 3.5rem;
}

.estadio-right .historia-tag {
  margin-bottom: 1rem;
}

.estadio-right h2 {
  font-family: 'Suissnord', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #042656;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.estadio-right h2 span {
  color: #fcd500;
}

.estadio-text {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ── Palmarés list ── */
.palmares-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.palmares-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e5e8f0;
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.5;
}

.palmares-list li:last-child {
  border-bottom: none;
}

.palmares-list .trophy-icon {
  color: #fcd500;
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.palmares-list .trophy-year {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  color: #1f3e82;
  font-size: 0.82rem;
}

.palmares-category {
  font-family: 'Big Shoulders', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #030523;
  margin-bottom: 0.5rem;
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.palmares-category::before {
  content: '';
  display: block;
  width: 3px;
  height: 18px;
  background: #fcd500;
  border-radius: 2px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .historia-left {
    padding: 3rem 2rem;
  }

  .historia-right {
    min-height: 320px;
  }

  .historia-img-fade {
    background: linear-gradient(to bottom, #f6f6f7 0%, transparent 20%);
  }

  .hito-card:not(:last-child)::after {
    display: none;
  }

  .logros-left {
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .logros-right {
    min-height: 320px;
  }

  .estadio-right {
    padding-left: 0;
    padding-top: 2.5rem;
  }

  .estadio-left {
    min-height: 320px;
  }
}

@media (max-width: 767px) {
  .hito-year {
    font-size: 2.2rem;
  }

  .logros-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .logro-number {
    font-size: 2.5rem;
  }

  .valores-image-strip {
    height: 220px;
  }

  .estadio-section {
    padding: 60px 0;
  }

  .estadio-left {
    min-height: 260px;
    margin-bottom: 2rem;
  }

  .estadio-right {
    padding: 0 1rem;
    text-align: center;
  }

  .estadio-right .historia-tag {
    display: block;
    text-align: center;
  }

  .estadio-right h2 {
    font-size: 2rem;
  }

  .estadio-text {
    font-size: 0.88rem;
    text-align: left;
  }
}

@media (max-width: 575px) {
  .historia-left {
    padding: 2.5rem 1.5rem;
  }

  .hitos-section {
    padding: 60px 0;
  }

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

  .estadio-section {
    padding: 50px 0;
  }

  .estadio-left {
    min-height: 220px;
  }

  .estadio-right {
    padding: 0 1rem;
  }
}
