/* ===========================
   HERO – AquiEmprendeChile
   =========================== */

/* Importamos una tipografía linda solo para el hero */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Poppins:wght@400;600&display=swap');

.hero-section {
  width: 100%;
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at top left, #0039a6, #001b4d 55%, #d30000 110%);
  color: #ffffff;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}

/* ===== COLUMNA VIDEO ===== */

.hero-media {
  flex: 1 1 320px;
  min-width: 280px;
}

.hero-video-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  background: #000;
  aspect-ratio: 16 / 9;
}

/* Si usas <video>, se verá full dentro del marco */
.hero-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder mientras no haya video real */
.hero-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 60%);
}

/* ===== COLUMNA TEXTO ===== */

.hero-content {
  flex: 1 1 320px;
  min-width: 280px;
}

/* ÓVALO CON TEXTO – EFECTO HOVER */

.hero-pill {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  cursor: default;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.25s ease-out,
    background 0.25s ease-out,
    border-color 0.25s ease-out;
}

/* Efecto de cambio de color y luz al pasar el mouse */
.hero-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #ffffff, #ffb3b3, #ff6969, #ffffff);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 0.38s ease, transform 0.6s ease;
  z-index: -1;
}

.hero-pill:hover,
.hero-pill:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.18);
}

.hero-pill:hover::before,
.hero-pill:focus::before {
  opacity: 0.85;
  transform: translateX(40%);
}

/* BLOQUE DE TEXTO DEL HERO */

.hero-text-block {
  margin-top: 1.5rem;
  margin-bottom: 1.8rem;
}

/* Texto principal justificado */

.hero-subtitle {
  margin: 0 0 1rem;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
  text-align: justify;
  text-justify: inter-word;
}

/* Línea separadora */

.hero-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, #ff6969);
  margin: 0.4rem 0 0.7rem;
  border-radius: 999px;
}

/* Frase final independiente */

.hero-tagline {
  margin: 0;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
}

/* Botón "Explorar emprendimientos" */

.hero-btn-explorar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d30000, #ff5c5c);
  border: 2px solid rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.18s ease,
    box-shadow 0.25s ease,
    filter 0.22s ease;
}

.hero-btn-explorar::after {
  content: "→";
  font-size: 1.05rem;
}

.hero-btn-explorar:hover,
.hero-btn-explorar:focus {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .hero-section {
    padding: 2.5rem 0 2.5rem;
  }

  .hero-inner {
    gap: 2rem;
  }

  .hero-content {
    order: -1; /* Texto arriba, video abajo en móvil */
  }

  .hero-pill {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .hero-tagline {
    font-size: 1rem;
  }
}
