<!-- components/hero/HeroSection.vue -->
<template>
  <section
    class="hero"
    :style="{ backgroundImage: `url(${heroImg})` }"
    aria-label="Sección principal de admisión"
  >
    <div class="hero-overlay"></div>

    <div class="hero-container">

      <div class="hero-content">
        <div class="hero-badges">
          <a-tag class="hero-tag">Convocatoria 2026</a-tag>
          <span class="hero-pill">
            <CheckCircleOutlined />
            Inscripciones abiertas
          </span>
        </div>
        <div class="glass-cardtitle">
          <h1 class="hero-title">
            Admisión <span class="hero-year">2026</span>
          </h1>
        </div>


        <p class="hero-subtitle">
          Forma parte de una comunidad académica de excelencia.
          <span class="hero-subtitle-muted">
            Postula, infórmate y conoce el proceso.
          </span>
        </p>

        <div class="hero-actions">
          <a-button
            type="primary"
            size="large"
            class="cta-button"
            @click="$emit('scroll-to-convocatoria')"
          >
            <template #icon><RightCircleOutlined /></template>
            Postular ahora
          </a-button>

        </div>
      </div>

      <!-- CARD -->
      <!-- <div class="hero-visual">
        <div class="glass-card">
          <div class="card-header">
            <CalendarOutlined />
            <span>Próximo evento</span>
          </div>

          <h3>Charla informativa</h3>

          <p class="card-date">
            <ClockCircleOutlined />
            25 Nov • 4:00 PM • Virtual
          </p>

          <a-button
            size="large"
            class="secondary-button"
            @click="$emit('virtual-tour')"
          >
            <template #icon><PlayCircleOutlined /></template>
            Tour virtual
          </a-button>
        </div>
      </div> -->

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

<script setup>
const heroImg = "/PORTADA.jpg.jpeg";

import {
  RightCircleOutlined,
  PlayCircleOutlined,
  CalendarOutlined,
  CheckCircleOutlined,
  ClockCircleOutlined
} from "@ant-design/icons-vue";

defineEmits(["scroll-to-convocatoria", "virtual-tour"]);
</script>

<style scoped>

.hero,
.hero * {
  font-family: "Times New Roman", Times, serif;
}

.hero {
  position: relative;
  padding: 110px 0;
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
    --text: rgba(245, 247, 255, 0.92);   
  --muted: rgba(229, 235, 255, 0.72); 
}
.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

/* BADGES */
.hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgb(255, 255, 255);
  font-weight: bold;
}

.hero-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: bold;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin: 0 0 20px;
    color: rgba(245, 247, 255, 0.96);
}

.hero-year {
  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;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 550px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* BOTONES */
.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cta-button {
  font-weight: bold;
  border-radius: 8px;
}

.secondary-button {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: white;
  border-radius: 8px;
  font-weight: bold;
}

/* CARD */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.glass-card {
  background: rgba(106, 136, 219, 0.55);
  padding: 28px;
  border-radius: 16px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}
.glass-cardtitle {
  background: rgba(190, 200, 228, 0.55);
  padding: 12px 24px;
  border-radius: 16px;
  width: fit-content;   
  max-width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
}

.card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    justify-content: center;
    margin-top: 40px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-actions {
    justify-content: center;
  }
}
</style>
