<template>
  <section class="stats-section" aria-labelledby="stats-title">
    <div class="section-container">
      <div class="section-header">
        <h2 id="stats-title" class="section-title">LA UNA PUNO EN CIFRAS</h2>
        <p class="section-subtitle">
          Indicadores institucionales que reflejan nuestro compromiso académico
        </p>
      </div>

      <div class="stats-grid">
        <div class="stat-card">
                    <p class="stat-label">Fundada en</p>
          <div class="stat-top">
            <span class="stat-number">1856</span>
          </div>

        </div>

        <div class="stat-card">
                    <p class="stat-label">Facultades</p>
          <div class="stat-top">
            <span class="stat-number">20</span>
          </div>

        </div>

        <div class="stat-card">
          <p class="stat-label">Escuelas Profesionales</p>
          <div class="stat-top">
            <span class="stat-number">39</span>
          </div>

        </div>

        <div class="stat-card">
                    <p class="stat-label">Estudiantes Matriculados</p>
          <div class="stat-top">
            <span class="stat-number">19,160</span>
          </div>

        </div>
      </div>
    </div>
  </section>
</template>

<style scoped>
.stats-section {
  position: relative;
  padding: 70px 0;
  font-family: "Times New Roman", Times, serif;
  color: #fff;
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;

  background-image:
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.10) 0,
      rgba(255, 255, 255, 0.10) 1px,
      transparent 1px,
      transparent 26px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.10) 0,
      rgba(255, 255, 255, 0.10) 1px,
      transparent 1px,
      transparent 26px
    );
}

.stats-section::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.18), transparent 60%);
  top: -220px;
  right: -220px;
  z-index: 0;
  pointer-events: none;
}

.section-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 34px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.section-subtitle {
  margin: 0 auto;
  max-width: 720px;
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  padding: 22px 18px;
  border-radius: 16px;
  text-align: center;

  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, background 0.18s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}

.stat-top {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;

  background: linear-gradient(45deg, #ffd700, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  margin: 10px 0 0;
  font-size: 1.02rem;
  opacity: 0.92;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .stats-section {
    padding: 54px 0;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 2.4rem;
  }
}
</style>
