/* ============ 05 · GEMELO DIGITAL ============ */
.gemelo { height: 800vh; position: relative; }
.gemelo-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0a0705; }
.gemelo-sticky video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
}
.gemelo-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 75% at 50% 50%, transparent 40%, rgba(8,5,3,.75) 100%),
    linear-gradient(transparent 70%, rgba(8,5,3,.8));
}
.gemelo-head { position: absolute; left: clamp(20px, 6vw, 96px); top: clamp(28px, 8vh, 80px); }
.gemelo-head .eyebrow {
  font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.gemelo-head .eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.gemelo-head h2 {
  font-family: "Zodiak", Georgia, serif; font-style: italic; font-weight: 300;
  font-size: clamp(36px, 4.4vw, 62px); line-height: 1;
}
.gemelo-head h2 em { font-style: normal; color: var(--gold); }

.gemelo-hud {
  position: absolute; right: clamp(20px, 6vw, 96px); top: clamp(32px, 8.5vh, 86px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  font: 500 11px/1 "Satoshi", sans-serif; letter-spacing: .3em; color: rgba(242,232,213,.5);
  font-variant-numeric: tabular-nums;
}
.gemelo-hud span:nth-child(2) { color: var(--gold); font-size: 13px; }
.gemelo-hud span:nth-child(3)::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px;
  background: var(--warm); box-shadow: 0 0 10px var(--warm); animation: gblink 1.6s infinite;
}
@keyframes gblink { 50% { opacity: .25; } }

/* Fases de tarjetas */
.gemelo-cards { position: absolute; inset: 0; pointer-events: none; }
.gfase { position: absolute; opacity: 0; }
.gfase.izq { left: clamp(20px, 6vw, 96px); top: 50%; transform: translateY(-40%); width: min(320px, 26vw); }
.gfase.der { right: clamp(20px, 6vw, 96px); top: 50%; transform: translateY(-40%); width: min(320px, 26vw); }
.gfase.abajo { left: 50%; bottom: clamp(40px, 8vh, 80px); transform: translateX(-50%); text-align: center; }
.gfase-t {
  font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.gfase-t b { font-weight: 500; color: var(--paper); margin-left: 6px; }
.gcard {
  position: relative; display: grid; gap: 4px; margin-bottom: 10px; padding: 14px 16px 14px 34px;
  background: rgba(20,14,10,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(210,167,95,.28); border-radius: 12px;
}
.gcard strong { font-weight: 500; font-size: 15px; }
.gcard small { font-size: 13px; color: rgba(242,232,213,.6); line-height: 1.4; }
.gdot {
  position: absolute; left: 14px; top: 20px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px rgba(255,183,96,.7);
}
.gfase.der .gcard { text-align: right; padding: 14px 34px 14px 16px; }
.gfase.der .gdot { left: auto; right: 14px; }
.gfase.der .gfase-t { text-align: right; }

.glogos { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; pointer-events: auto; }
.glogo {
  all: unset; cursor: pointer; width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
  background: #0d0a07; border: 1px solid rgba(210,167,95,.4); box-shadow: 0 10px 24px rgba(0,0,0,.5);
  transition: border-color .3s, box-shadow .3s;
}
.glogo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.glogo.contain img { object-fit: contain; padding: 6px; }
.glogo.light { background: var(--paper); }
.glogo:hover { border-color: var(--warm); box-shadow: 0 0 24px rgba(255,183,96,.4); }

.gemelo-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(210,167,95,.12); }
.gemelo-progress i { display: block; height: 100%; width: 0; background: var(--gold); }

@media (max-width: 900px) {
  .gemelo-sticky video { top: 17vh; height: 83vh; object-position: 50% 0%; }
  .gemelo-vignette { background: linear-gradient(#0a0705 17vh, transparent 32vh), linear-gradient(transparent 60%, rgba(8,5,3,.9)); }
  .gfase.izq, .gfase.der {
    left: 16px; right: 16px; width: auto; top: auto; bottom: 28px; transform: none;
  }
  .gfase.der .gcard, .gfase.der .gfase-t { text-align: left; }
  .gfase.der .gcard { padding: 12px 16px 12px 34px; }
  .gfase.der .gdot { left: 14px; right: auto; }
  .gcard { padding: 10px 14px 10px 32px; margin-bottom: 6px; }
  .gcard small { display: none; }
  .gdot { top: 15px; }
  .glogo { width: 48px; height: 48px; }
  .gemelo-hud { display: none; }
}

/* ---------- Botón: habla con mi gemelo ---------- */
.ghablar {
  all: unset; cursor: pointer; pointer-events: auto; box-sizing: border-box;
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px;
  padding: 15px 26px; border-radius: 40px;
  background: linear-gradient(135deg, rgba(210,167,95,.95), rgba(160,118,58,.95));
  color: #120d09; font: 500 13px/1 "Satoshi", sans-serif; letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 0 0 0 0 rgba(255,183,96,.5), 0 14px 34px rgba(0,0,0,.5);
  animation: ghPulse 2.4s infinite;
}
.ghablar b { font-weight: 400; transition: transform .3s; }
.ghablar:hover b { transform: translateX(5px); }
.ghablar-dot { width: 8px; height: 8px; border-radius: 50%; background: #120d09; animation: gblink 1.2s infinite; }
@keyframes ghPulse { 70% { box-shadow: 0 0 0 16px rgba(255,183,96,0), 0 14px 34px rgba(0,0,0,.5); } 100% { box-shadow: 0 0 0 0 rgba(255,183,96,0), 0 14px 34px rgba(0,0,0,.5); } }

/* ---------- Panel de voz ---------- */
.voz { position: fixed; inset: 0; z-index: 60; visibility: hidden; opacity: 0; transition: opacity .6s, visibility 0s .6s; }
.voz.open { visibility: visible; opacity: 1; transition: opacity .6s; }
.voz-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(40,28,18,.86), rgba(6,4,3,.97) 70%), url(../assets/gemelo/pedestal.jpg) center/cover;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.voz-x {
  all: unset; cursor: pointer; position: absolute; top: 22px; right: 26px; z-index: 2;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(210,167,95,.4); color: var(--paper); transition: border-color .3s, transform .3s;
}
.voz-x:hover { border-color: var(--warm); transform: rotate(90deg); }
.voz-in {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
}
.voz-eyebrow { font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-bottom: 6vh; }
.voz-orb { --v: 0; position: relative; width: min(220px, 50vw); aspect-ratio: 1; margin-bottom: 5vh; }
.voz-orb i {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6dca6, var(--gold) 45%, #6e4f27 100%);
  box-shadow: 0 0 80px rgba(255,183,96,.35);
  transform: scale(calc(.82 + var(--v) * .25)); transition: transform .08s linear;
}
.voz-orb i:nth-child(2), .voz-orb i:nth-child(3) {
  background: none; border: 1px solid rgba(255,183,96,.35); box-shadow: none;
  animation: vozRing 2.8s infinite ease-out;
}
.voz-orb i:nth-child(3) { animation-delay: 1.4s; }
@keyframes vozRing { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.voz[data-modo="off"] .voz-orb i { filter: grayscale(.6) brightness(.6); }
.voz[data-modo="off"] .voz-orb i:nth-child(n+2), .voz[data-modo="con"] .voz-orb i:nth-child(n+2) { animation-play-state: paused; opacity: 0; }
.voz[data-modo="con"] .voz-orb i:first-child { animation: vozCon 1.4s infinite ease-in-out; }
@keyframes vozCon { 50% { transform: scale(.75); opacity: .7; } }
.voz-estado { font: italic 300 clamp(26px, 3vw, 40px)/1.1 "Zodiak", Georgia, serif; color: var(--paper); }
.voz-texto { margin-top: 16px; max-width: 560px; min-height: 3em; font-size: 16px; line-height: 1.55; color: rgba(242,232,213,.65); }
.voz-acciones { margin-top: 4vh; }
.voz-colgar {
  all: unset; cursor: pointer; padding: 14px 26px; border-radius: 40px; border: 1px solid var(--gold);
  color: var(--paper); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; transition: background .3s, color .3s;
}
.voz-colgar:hover { background: var(--gold); color: #120d09; }
.voz-nota { position: absolute; bottom: 24px; left: 24px; right: 24px; font-size: 12px; color: rgba(242,232,213,.35); }

@media (max-width: 900px) {
  .ghablar { margin-top: 14px; padding: 13px 20px; font-size: 11px; }
}
