/* ViralShotAI — hero fotográfico + galería antes/después (complementa styles.css) */

/* ---------- Hero: resultados como protagonistas ---------- */

.hero-visual.hero-shots {
  width: min(100%, 520px);
  margin-inline: auto;
  padding-bottom: 34px;
}

.hero-visual.hero-shots::before {
  inset: 18px -8px 10px;
  transform: rotate(-2deg);
}

.shots {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(228, 185, 28, 0.35);
  border-radius: 22px;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.shot > img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.shot-a { transform: rotate(-2.5deg); }

.shot-b { margin-top: 92px; transform: rotate(2.5deg); }

.shot-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  width: max-content;
  max-width: calc(100% - 20px);
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.shot-before {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34%;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #111;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.shot-before img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.shot-before span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.5625rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

/* Página real de la guía: elemento secundario */
.guide-mini {
  position: absolute;
  left: -6px;
  bottom: 0;
  z-index: 2;
  width: 26%;
  max-width: 124px;
  overflow: hidden;
  border: 4px solid #171717;
  border-radius: 12px;
  background: #fff;
  transform: rotate(-5deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.guide-mini figcaption {
  padding: 5px 6px;
  background: var(--ink);
  color: var(--gold);
  font-size: 0.5625rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.hero-shots .stat-card {
  top: 0;
  right: -4px;
  bottom: auto;
  left: auto;
  z-index: 2;
}

@media (max-width: 479px) {
  .shots { gap: 10px; }
  .shot { border-radius: 16px; }
  .shot-b { margin-top: 74px; }
  .shot-chip { top: 8px; left: 8px; padding: 5px 8px; font-size: 0.5625rem; letter-spacing: 0.05em; }
  .shot-before { right: 8px; bottom: 8px; border-radius: 9px; }
  .guide-mini { width: 24%; border-width: 3px; border-radius: 9px; }
  .guide-mini figcaption { font-size: 0.5rem; padding: 4px; }
  .hero-shots .stat-card { padding: 9px 12px; }
  .hero-shots .stat-card .stat-value { font-size: 0.9375rem; }
}

/* Móvil / tablet: las fotos aparecen justo después del titular */
@media (max-width: 1023px) {
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > * { order: 4; }
  .hero-copy > .badge { order: 1; justify-self: start; }
  .hero-copy > .hero-title { order: 2; }
  .hero-visual.hero-shots { order: 3; margin-block: 30px 6px; }
  .hero-copy > .hero-sub,
  .hero-copy > .price-row,
  .hero-copy > .hero-cta,
  .hero-copy > .trust,
  .hero-copy > .compat { max-width: 40rem; }
}

@media (min-width: 1024px) {
  .hero-visual.hero-shots { width: min(100%, 500px); margin-right: 0; }
  .shots { gap: 18px; }
}

/* ---------- Galería antes / después ---------- */

.gallery {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(228, 185, 28, 0.1), transparent),
    var(--ink-2);
}

.looks {
  display: grid;
  gap: 20px;
  margin-top: 44px;
}

@media (min-width: 640px) {
  .looks { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 1024px) {
  .looks { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.look {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #171717, #0e0e0e);
}

.look-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.look-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.look-name {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.look-desc {
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-3);
}

/* Sin JavaScript: antes y después lado a lado */
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.ba-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
}

.ba-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.ba .tag {
  top: 8px;
  left: 8px;
  padding: 5px 9px;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
}

/* Con JavaScript: comparador deslizante */
.ba.is-slider {
  cursor: ew-resize;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 9 / 16;
  background: #111;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ba.is-slider .ba-item {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.ba.is-slider .ba-item img {
  height: 100%;
  aspect-ratio: auto;
  pointer-events: none;
}

.ba.is-slider .ba-before {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.ba.is-slider .tag-after { left: auto; right: 8px; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%23090909' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 22px 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.ba-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.ba.is-slider:focus-within .ba-handle::after {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.gallery-note {
  max-width: 40rem;
  margin: 28px auto 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--text-3);
}

.gallery-cta {
  max-width: 28rem;
  margin: 20px auto 0;
}
