/* ════════════════════════════════════════════════════════════
   SANGHELIOS · inicio.css
   Vista Inicio: hero con logo, tagline y preview del mapa 3D.
   ════════════════════════════════════════════════════════════ */

/* Hero a viewport completo: la página de inicio no tiene scroll. */
#hero {
  background: var(--white);
  height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: calc(var(--nav-h) + 22px) 48px 26px;
  position: relative; overflow: hidden;
}
/* ── Entrada escalonada del hero ── */
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-eyebrow, #hero .logo-word, .hero-subtitle, .hero-actions, .preview-wrap {
  animation: hero-rise .7s cubic-bezier(.22,.9,.3,1) both;
}
.hero-eyebrow    { animation-delay: .05s; }
#hero .logo-word { animation-delay: .18s; }
.hero-subtitle   { animation-delay: .34s; }
.hero-actions    { animation-delay: .5s; }
.preview-wrap    { animation-delay: .66s; }

/* Latido de la gota del logo (solo en el hero) */
@keyframes drop-beat {
  0%, 30%, 100% { transform: translateY(-3%) scale(1); }
  8%            { transform: translateY(-3%) scale(1.08); }
  15%           { transform: translateY(-3%) scale(1); }
  22%           { transform: translateY(-3%) scale(1.05); }
}
#hero .lw-drop { transform-origin: 50% 62%; animation: drop-beat 2.6s ease-in-out 1.4s infinite; }

.hero-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--red);
  border: 1px solid rgba(191,18,18,0.25);
  border-radius: 20px; padding: 5px 14px; margin-bottom: 16px;
}
.hero-eyebrow::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--red);
  margin-right: 8px; vertical-align: 1px;
  animation: eyebrow-pulse 2.2s ease-out infinite;
}
@keyframes eyebrow-pulse {
  0%       { box-shadow: 0 0 0 0 rgba(191,18,18,0.35); }
  70%,100% { box-shadow: 0 0 0 6px rgba(191,18,18,0); }
}
.hero-subtitle {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 400; line-height: 1.75; color: var(--text-secondary);
  text-align: center; max-width: 580px; margin-bottom: 20px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 26px; }

.btn-primary {
  font-size: 14px; font-weight: 600;
  background: var(--red); color: white;
  border: none; border-radius: 8px; padding: 13px 28px;
  cursor: pointer; text-decoration: none;
  transition: background .2s, transform .15s;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }
/* Pulso suave que invita al click (solo el CTA del hero) */
@keyframes btn-glow {
  0%       { box-shadow: 0 0 0 0 rgba(191,18,18,0.32); }
  60%,100% { box-shadow: 0 0 0 10px rgba(191,18,18,0); }
}
.hero-actions .btn-primary { animation: btn-glow 2.6s ease-out 1.6s infinite; }
.btn-outline {
  font-size: 14px; font-weight: 600;
  background: white; color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 13px 24px;
  cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
}
.btn-outline:hover { border-color: var(--text-secondary); }

/* Preview del mapa 3D en el hero */
.preview-wrap {
  position: relative; width: 100%; max-width: 1080px;
  flex: 1 1 auto; min-height: 240px;
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  cursor: pointer; z-index: 1;
}
#map-preview { position: absolute; inset: 0; }
.preview-overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, transparent 52%, rgba(17,24,39,0.5));
  pointer-events: none;
  transition: background .25s;
}
.preview-wrap:hover .preview-overlay { background: linear-gradient(180deg, transparent 42%, rgba(17,24,39,0.58)); }
.preview-cta {
  pointer-events: auto;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,0.97); color: var(--text-primary);
  border: none; border-radius: 50px; padding: 12px 24px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  transition: transform .2s;
}
.preview-wrap:hover .preview-cta { transform: translateY(-2px); }
.preview-cta svg { flex-shrink: 0; }
.preview-chips {
  position: absolute; top: 16px; left: 16px; z-index: 11;
  display: flex; flex-direction: column; gap: 7px; pointer-events: none;
}
.preview-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 600; color: var(--text-primary);
  background: rgba(255,255,255,0.94); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 5px 12px; width: fit-content;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  animation: chip-in .5s ease-out both;
}
@keyframes chip-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.preview-chip:nth-child(1) { animation-delay: 1.1s; }
.preview-chip:nth-child(2) { animation-delay: 1.25s; }
.pc-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid white; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

@media (max-width: 880px) {
  #hero { padding: calc(var(--nav-h) + 30px) 22px 40px; }
  .preview-wrap { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, #hero .logo-word, .hero-subtitle, .hero-actions, .preview-wrap,
  .preview-chip, .hero-actions .btn-primary, #hero .lw-drop, .hero-eyebrow::before {
    animation: none;
  }
}
