/* ============================================================
   hero.css — Sección hero con efectos 3D inmersivos
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-hero);
}

/* ─── Fondo 3D animado ────────────────────────────────────────── */
.hero-bg-3d {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Grid metálico perspectiva */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 93, 4, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 93, 4, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(800px) rotateX(25deg) scale(1.6);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, transparent, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.2));
  -webkit-mask-image: linear-gradient(to top, transparent, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.2));
}

/* Gradiente de color atmosférico */
.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(232,93,4,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(255,154,60,0.10) 0%, transparent 70%),
    linear-gradient(180deg, #0d0a06 0%, #1a0e04 50%, #0d0a06 100%);
}

/* Vigas metálicas decorativas (líneas diagonales) */
.hero-beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-beams::before,
.hero-beams::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 140%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,154,60,0.15),
    transparent
  );
  transform-origin: top center;
  animation: beam-sweep 8s ease-in-out infinite;
}
.hero-beams::before {
  top: -20%;
  left: 35%;
  transform: rotate(-15deg);
}
.hero-beams::after {
  top: -20%;
  right: 30%;
  transform: rotate(20deg);
  animation-delay: 4s;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(232,93,4,0.10),
    transparent
  );
}

@keyframes beam-sweep {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1;   }
}

/* Canvas de partículas flotantes */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ─── Contenido del hero ──────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(var(--space-24), 15vh, var(--space-32));
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: hero-enter 0.8s ease 0.2s forwards;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

/* ─── Título principal ────────────────────────────────────────── */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-6xl), 12vw, var(--text-9xl));
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: #ffffff;
  margin-bottom: var(--space-8);
}

.hero-title-line1 {
  display: block;
  opacity: 0;
  animation: hero-enter 0.9s ease 0.35s forwards;
}
.hero-title-line2 {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(232, 93, 4, 0.5);
  opacity: 0;
  animation: hero-enter 0.9s ease 0.5s forwards;
}

/* ─── Subtítulo ───────────────────────────────────────────────── */
.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: hero-enter 0.9s ease 0.65s forwards;
}

/* ─── CTAs ────────────────────────────────────────────────────── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  opacity: 0;
  animation: hero-enter 0.9s ease 0.8s forwards;
}

/* ─── Ciudad / badge ──────────────────────────────────────────── */
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: var(--space-10);
  opacity: 0;
  animation: hero-enter 0.9s ease 1s forwards;
}
.hero-location::before {
  content: "📍";
  font-size: 0.9em;
}

/* ─── Animación de entrada ────────────────────────────────────── */
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ─── Scroll indicator ────────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce-fade 2.5s ease-in-out infinite 1.5s;
  z-index: 2;
}
.hero-scroll-hint::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

@keyframes bounce-fade {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.8; transform: translateX(-50%) translateY(8px); }
}

/* ─── Elemento 3D decorativo (marco metálico) ─────────────────── */
.hero-3d-frame {
  position: absolute;
  right: clamp(-40px, 5vw, 0px);
  top: 50%;
  transform: translateY(-50%);
  width: min(500px, 45vw);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: hero-enter 1.2s ease 0.9s forwards;
}

/* Hexágonos SVG giratorios */
.hex-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(232, 93, 4, 0.15);
}
.hex-ring-1 {
  animation: ring-rotate 12s linear infinite;
  border-color: rgba(232, 93, 4, 0.2);
}
.hex-ring-2 {
  inset: 15%;
  animation: ring-rotate 8s linear infinite reverse;
  border-color: rgba(255, 154, 60, 0.15);
  border-style: dashed;
}
.hex-ring-3 {
  inset: 30%;
  animation: ring-rotate 15s linear infinite;
  border-color: rgba(232, 93, 4, 0.25);
}
.hex-center-glow {
  position: absolute;
  inset: 40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,4,0.35), transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.3); }
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-3d-frame { display: none; }

  .hero-title {
    font-size: clamp(var(--text-5xl), 18vw, var(--text-7xl));
  }
}
