/* =========================================================
   HERO VARIANTS — controlado por [data-hero-variant]
   orb (default) | cinematic | portrait | mosaic
   ========================================================= */

/* Por defecto sólo se ve la orb. Las otras se ocultan. */
.hero-portrait,
.hero-mosaic,
.hero-cinematic-bg { display: none; }

/* ---------- VARIANTE A · CINEMATIC (full-bleed) ---------- */
.hero[data-hero-variant="cinematic"][data-hero-media="video"] .hero-cinematic-bg img {
  display: none;
}
.hero[data-hero-variant="cinematic"] {
  /* Reset del grid 2-col del hero — texto centrado sobre fondo */
  grid-template-columns: 1fr;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #0E1418;
  color: #FAFAF7;
}
.hero[data-hero-variant="cinematic"] .hero-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  width: 100%;
  z-index: 3;
  text-align: left;
}
.hero[data-hero-variant="cinematic"] .hero-headline,
.hero[data-hero-variant="cinematic"] .hero-eyebrow span {
  color: #FAFAF7;
}
.hero[data-hero-variant="cinematic"] .hero-headline em {
  color: var(--cyan);
  font-style: italic;
}
.hero[data-hero-variant="cinematic"] .hero-subheadline {
  color: rgba(250, 250, 247, 0.78);
  max-width: 620px;
}
.hero[data-hero-variant="cinematic"] .hero-eyebrow .bracket {
  color: var(--cyan);
}
.hero[data-hero-variant="cinematic"] .hero-visual { display: none; }
.hero[data-hero-variant="cinematic"] .hero-cinematic-bg {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-cinematic-bg img,
.hero-cinematic-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-cinematic-video { display: none; }
.hero[data-hero-variant="cinematic"][data-hero-media="video"] .hero-cinematic-video {
  display: block;
  z-index: 2;
}
.hero-cinematic-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image:
    linear-gradient(to right, rgba(216,216,206,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(216,216,206,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-cinematic-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(105deg, rgba(14,20,24,0.92) 0%, rgba(14,20,24,0.65) 38%, rgba(14,20,24,0.15) 70%, rgba(14,20,24,0.55) 100%);
  pointer-events: none;
}
.hero-cinematic-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    radial-gradient(ellipse at 70% 50%, transparent 0%, transparent 40%, rgba(14,20,24,0.55) 100%),
    linear-gradient(to bottom, transparent 60%, rgba(14,20,24,0.85) 100%);
  pointer-events: none;
}
.hero[data-hero-variant="cinematic"] .scroll-hint {
  color: rgba(250,250,247,0.6);
  z-index: 6;
}
.hero[data-hero-variant="cinematic"] .btn-outline {
  color: #FAFAF7;
  border-color: rgba(250,250,247,0.4);
}
.hero[data-hero-variant="cinematic"] .btn-outline:hover {
  background: rgba(250,250,247,0.08);
  border-color: var(--cyan);
}

/* ---------- VARIANTE B · PORTRAIT (vertical editorial) ---------- */
.hero[data-hero-variant="portrait"] .hero-visual { display: none; }
.hero[data-hero-variant="portrait"] .hero-portrait {
  display: block;
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: .5s;
}
.hero-portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: #0E1418;
  box-shadow: 0 30px 80px -20px rgba(14, 20, 24, 0.35);
  border: 1px solid var(--line);
}
.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) saturate(0.95);
}
.hero-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,20,24,0.6) 100%);
  pointer-events: none;
}
.hero-portrait-meta {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FAFAF7;
  z-index: 2;
}
.hero-portrait-tag {
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-portrait-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
.hero-portrait-loc {
  color: rgba(250,250,247,0.6);
}
.badge-portrait {
  position: absolute;
  z-index: 4;
}
.badge-p1 { top: 8%; left: -32px; animation: float 6s ease-in-out infinite; }
.badge-p2 { bottom: 18%; right: -28px; animation: float 6s ease-in-out infinite; animation-delay: -3s; }

@media (max-width: 1024px) {
  .hero[data-hero-variant="portrait"] .hero-portrait {
    max-width: 380px;
    margin: 0 auto;
  }
  .badge-p1 { left: -16px; }
  .badge-p2 { right: -16px; }
}

/* ---------- VARIANTE C · MOSAIC (3 imágenes asimétricas) ---------- */
.hero[data-hero-variant="mosaic"] .hero-visual { display: none; }
.hero[data-hero-variant="mosaic"] .hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-width: 560px;
  margin-left: auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: .5s;
}
.hero-mosaic-cell {
  position: relative;
  margin: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #0E1418;
  border: 1px solid var(--line);
  transition: transform .5s ease;
}
.hero-mosaic-cell:hover { transform: translateY(-3px); }
.hero-mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02);
}
.hero-mosaic-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14,20,24,0.75) 100%);
  pointer-events: none;
}
.hero-mosaic-cell figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FAFAF7;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.hero-mosaic-cell figcaption .num {
  color: var(--cyan);
  font-weight: 600;
}
/* Asymmetric layout: 1 grande a la izq toma 2 filas, 2 pequeñas a la der */
.hero-mosaic-1 { grid-row: 1 / span 2; grid-column: 1; }
.hero-mosaic-2 { grid-row: 1; grid-column: 2; }
.hero-mosaic-3 { grid-row: 2; grid-column: 2; }

@media (max-width: 1024px) {
  .hero[data-hero-variant="mosaic"] .hero-mosaic {
    margin: 0 auto;
    max-width: 480px;
  }
}

/* ---------- TWEAK PANEL — file upload UI ---------- */
.tweak-upload-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tweak-upload-row label {
  flex: 0 0 90px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tweak-upload-row input[type="file"] {
  flex: 1;
  font-size: 11px;
  font-family: var(--font-mono);
}
.tweak-upload-row button.clear-img {
  background: none;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 3px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  color: var(--text-dim);
}
.tweak-upload-row button.clear-img:hover { color: var(--text); }
