/* =============================================
   HOME - TU TALLER
   Cinematic Scroll System
============================================= */

/* ── PIN WRAPPER ─────────────────────────────
   Altura total = espacio de scroll disponible.
   El JS lee este valor para mapear el progreso.
──────────────────────────────────────────── */
.sc-pin {
  /* Lee --scroll-height de style.css y lo convierte a vh */
  height: calc(var(--scroll-height) * 1vh);
  position: relative;
}

/* ── STAGE (sticky) ──────────────────────── */
.sc-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--negro);
}

/* ── CANVAS ──────────────────────────────── */
.sc-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── OVERLAY ─────────────────────────────── */
.sc-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(8, 8, 8, 0.88) 0%,
      rgba(8, 8, 8, 0.55) 50%,
      rgba(8, 8, 8, 0.30) 100%),
    linear-gradient(to top, rgba(8, 8, 8, 0.65) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

/* ── LÍNEA DIAGONAL DE MARCA ─────────────── */
.sc-line {
  position: absolute;
  top: 0;
  left: 38%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(230, 0, 0, 0.9) 30%,
      rgba(230, 0, 0, 0.9) 70%,
      transparent 100%);
  opacity: 0.28;
  transform: skewX(-8deg);
  z-index: 2;
  pointer-events: none;
  /* Glow lateral de la línea de marca */
  box-shadow:
    0 0 8px rgba(230, 0, 0, 0.6),
    0 0 20px rgba(230, 0, 0, 0.3),
    0 0 40px rgba(230, 0, 0, 0.1);
}

/* ── LAYERS (elementos animados) ─────────── */
.sc-layer {
  position: absolute;
  z-index: 3;
  will-change: transform, opacity;
  pointer-events: none;
}

.sc-layer a,
.sc-layer button {
  pointer-events: auto;
}

/* ── SCROLL HINT ─────────────────────────── */
.sc-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 128px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  will-change: opacity;
  opacity: 1;
}

.sc-scroll-hint span {
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gris-texto);
  font-weight: 600;
}

.sc-scroll-hint::before {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--rojo), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }

  50% {
    transform: scaleY(0.5);
    opacity: 0.4;
  }
}

/* ── HERO TAG ────────────────────────────── */
#sc-tag {
  top: 140px;
  left: 128px;
}

/* ── HERO TITLE ──────────────────────────── */
.sc-title {
  top: 170px;
  left: 128px;
}

.hero__title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.hero__title .line-outline {
  display: block;
  -webkit-text-stroke: 2px var(--blanco);
  color: transparent;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

.hero__title .line-solid {
  display: block;
  color: var(--blanco);
  text-shadow:
    0 0 40px rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero__title .line-red {
  display: block;
  color: var(--rojo);
  font-style: italic;
  letter-spacing: -0.04em;
  text-shadow:
    0 0 20px rgba(230, 0, 0, 0.7),
    0 0 50px rgba(230, 0, 0, 0.35),
    0 0 80px rgba(230, 0, 0, 0.15);
}

/* ── HERO TAG text ───────────────────────── */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rojo);
  font-weight: 700;
  margin: 0;
}

.hero__tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rojo);
  flex-shrink: 0;
}

/* ── HERO SUBTITLE ───────────────────────── */
#sc-subtitle {
  top: 520px;
  left: 128px;
}

.hero__subtitle {
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gris-texto);
  margin: 0;
}

/* ── HERO BUTTONS ────────────────────────── */
#sc-btns {
  top: 560px;
  left: 128px;
  /* z-index explícito para que quede sobre el canvas */
  z-index: 4;
}

.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Pulso cuando los botones están anclados abajo */
#sc-btns.btns-docked .btn--rojo {
  animation: btn-pulse-red 1.8s ease-in-out infinite;
}

#sc-btns.btns-docked .btn--outline {
  animation: btn-pulse-white 1.8s ease-in-out infinite;
  animation-delay: 0.9s;
}

@keyframes btn-pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.8), 0 0 0 0 rgba(230, 0, 0, 0.4);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(230, 0, 0, 0), 0 0 0 28px rgba(230, 0, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(230, 0, 0, 0), 0 0 0 0 rgba(230, 0, 0, 0);
  }
}

@keyframes btn-pulse-white {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5), 0 0 0 0 rgba(255, 255, 255, 0.2);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(255, 255, 255, 0), 0 0 0 28px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* ── STATS ───────────────────────────────── */
.sc-stats {
  bottom: 0;
  left: 0;
  right: 0;
  overflow: visible;
}

.sc-stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--rojo);
  position: relative;
  overflow: visible;
}

.sc-stats__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.06) 0,
      rgba(0, 0, 0, 0.06) 1px,
      transparent 1px,
      transparent 12px);
  pointer-events: none;
}

.sc-stats__item {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.sc-stats__item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.sc-stats__item:last-child::after {
  display: none;
}

.sc-stats__item strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--blanco);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.sc-stats__item span {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}


/* ── SECTION TITLES ──────────────────────── */
.sc-section-title {
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.sc-section-title .section-title__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rojo);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  padding: 0 24px;
  /* Glow en el texto del eyebrow */
  text-shadow: 0 0 16px rgba(230, 0, 0, 0.6), 0 0 32px rgba(230, 0, 0, 0.25);
}

.sc-section-title .section-title__eyebrow::before,
.sc-section-title .section-title__eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--rojo);
  opacity: 0.6;
  box-shadow: 0 0 6px rgba(230, 0, 0, 0.8);
}

.sc-section-title .section-title__eyebrow::before {
  right: calc(100% + 24px);
}

.sc-section-title .section-title__eyebrow::after {
  left: calc(100% + 24px);
}

.sc-section-title h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  /* Halo blanco difuso para dar profundidad al título */
  text-shadow:
    0 0 60px rgba(255, 255, 255, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.8);
}

.sc-section-title h2 em {
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--blanco);
  color: transparent;
  /* Glow outline */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

/* ── SERVICE CARDS ───────────────────────── */
.sc-cards {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1140px, 92vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: transparent;
  border: none;
  /* Necesario para contener la línea global */
  position: relative;
  overflow: hidden;
}

/* Línea de luz única que barre todo el grid en bucle */
.sc-cards::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -25%;
  width: 18%;
  height: 140%;
  background: linear-gradient(105deg,
      transparent 20%,
      rgba(255, 255, 255, 0.07) 45%,
      rgba(255, 255, 255, 0.13) 50%,
      rgba(255, 255, 255, 0.07) 55%,
      transparent 80%);
  transform: skewX(-12deg);
  pointer-events: none;
  z-index: 10;
  /* Empieza parada y fuera de la vista */
  animation: none;
}

/* Arranca solo cuando JS añade la clase */
.sc-cards.sweep-active::after {
  animation: grid-sweep 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes grid-sweep {
  0% {
    left: -25%;
  }

  100% {
    left: 115%;
  }
}

.sc-card {
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 32px 28px;
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition:
    background 0.35s var(--ease-out),
    border-color 0.35s,
    box-shadow 0.35s;
  /* Luz ambiental base: sutil destello superior */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 24px rgba(0, 0, 0, 0.55);
}

/* Borde izquierdo rojo animado */
.sc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, #ff2020, #e60000, #8a0000);
  box-shadow: 0 0 12px rgba(230, 0, 0, 0.8), 0 0 24px rgba(230, 0, 0, 0.4);
  transition: height 0.4s var(--ease-snappy);
  z-index: 2;
}


/* Spot de luz rojo en la esquina superior izquierda — aparece en hover */
.sc-card .card-glow {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(230, 0, 0, 0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.sc-card:hover {
  background: rgba(22, 22, 22, 0.97);
  border-color: rgba(230, 0, 0, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(230, 0, 0, 0.15),
    0 8px 40px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(230, 0, 0, 0.08);
}

.sc-card:hover::before {
  height: 100%;
}

.sc-card:hover .card-glow {
  opacity: 1;
}

.sc-card .service-card__num {
  position: absolute;
  top: calc(-1 * var(--s4));
  right: var(--s4);
  font-size: 7rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  line-height: 1;
  pointer-events: none;
  transition: -webkit-text-stroke 0.35s, text-shadow 0.35s;
}

.sc-card:hover .service-card__num {
  -webkit-text-stroke: 1px rgba(230, 0, 0, 0.2);
  text-shadow: 0 0 40px rgba(230, 0, 0, 0.12);
}

.sc-card .service-card__icon {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--rojo);
  margin-bottom: 16px;
  transition:
    transform 0.3s var(--ease-spring),
    color 0.25s,
    filter 0.3s;
  filter: drop-shadow(0 0 0px rgba(230, 0, 0, 0));
  position: relative;
  z-index: 2;
}

.sc-card .service-card__icon svg {
  width: 100%;
  height: 100%;
}

.sc-card:hover .service-card__icon {
  transform: scale(1.15) translateY(-2px);
  color: #ff3030;
  filter: drop-shadow(0 0 8px rgba(230, 0, 0, 0.75)) drop-shadow(0 0 16px rgba(230, 0, 0, 0.35));
}

.sc-card h3 {
  font-size: var(--text-base);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: var(--blanco);
  transition: color 0.25s, text-shadow 0.25s;
  position: relative;
  z-index: 2;
}

.sc-card:hover h3 {
  color: #fff;
  text-shadow: 0 0 20px rgba(230, 0, 0, 0.4), 0 0 40px rgba(230, 0, 0, 0.15);
}

.sc-card p {
  font-size: var(--text-sm);
  color: var(--gris-texto);
  line-height: 1.65;
  position: relative;
  z-index: 2;
}

.sc-card .service-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-top: 16px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s, transform 0.25s var(--ease-snappy), text-shadow 0.25s;
  position: relative;
  z-index: 2;
}

.sc-card:hover .service-card__arrow {
  opacity: 1;
  transform: translateX(0);
  text-shadow: 0 0 12px rgba(230, 0, 0, 0.6);
}

.sc-card .service-card__arrow::after {
  content: '→';
  transition: transform 0.2s var(--ease-spring);
}

.sc-card:hover .service-card__arrow::after {
  transform: translateX(4px);
}

/* ── PORQUE ──────────────────────────────── */
.sc-porque {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 92vw);
  display: flex;
  align-items: center;
  gap: 64px;
}

.sc-porque__img {
  flex-shrink: 0;
  width: 320px;
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: visible;
  outline: 3px solid var(--rojo);
  outline-offset: 8px;
  box-shadow:
    0 0 0 11px var(--negro),
    0 0 0 14px rgba(230, 0, 0, 0.25),
    /* Halo rojo exterior difuso */
    0 0 40px rgba(230, 0, 0, 0.22),
    0 0 80px rgba(230, 0, 0, 0.10),
    0 32px 80px rgba(0, 0, 0, 0.85);
}

.sc-porque__img>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1) brightness(0.95);
}

/* Esquinas decorativas con glow */
.sc-porque__img::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 52px;
  height: 5px;
  background: var(--blanco);
  z-index: 3;
  box-shadow: 0 0 8px rgba(230, 0, 0, 0.8), 0 0 0 1px var(--rojo);
}

.sc-porque__img::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 5px;
  height: 52px;
  background: var(--blanco);
  z-index: 3;
  box-shadow: 0 0 8px rgba(230, 0, 0, 0.8), 0 0 0 1px var(--rojo);
}


.sc-porque__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.sc-porque__content .porque__tag {
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rojo);
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-porque__content .porque__tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--rojo);
}

.sc-porque__content h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
}

.sc-porque__content h2 em {
  font-style: normal;
  color: var(--rojo);
}

.sc-porque__content p {
  color: var(--gris-texto);
  line-height: 1.85;
  margin-bottom: 24px;
  font-size: var(--text-base);
  max-width: 440px;
}

.sc-porque__content .porque__list {
  margin: 0;
}

.sc-porque__content .porque__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  font-size: var(--text-sm);
  color: var(--gris-texto);
  border-bottom: 1px solid var(--gris-4);
}

.sc-porque__content .porque__list .check {
  width: 18px;
  height: 18px;
  background: var(--rojo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 0 8px rgba(230, 0, 0, 0.7), 0 0 16px rgba(230, 0, 0, 0.3);
}

/* ── ORBE CENTRAL RESEÑAS ────────────────── */
.resenas-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.10) 25%,
      rgba(255, 255, 255, 0.04) 55%,
      transparent 70%);
  pointer-events: none;
  /* JS controla opacity — la animación NO toca opacity */
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  /* Por encima de las cards */
  z-index: 10;
  /* mix-blend-mode para que se mezcle con el fondo oscuro */
  mix-blend-mode: screen;
  animation: orb-breathe 3s ease-in-out infinite;
}

@keyframes orb-breathe {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.18);
  }
}

.resenas-corner-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(230, 0, 0, 0.6) 0%,
      rgba(230, 0, 0, 0.25) 35%,
      rgba(230, 0, 0, 0.06) 65%,
      transparent 75%);
  pointer-events: none;
  /* opacity gestionada solo por JS */
  opacity: 0;
  z-index: 10;
  mix-blend-mode: screen;
  animation: corner-orb-breathe 2.4s ease-in-out infinite;
}

/* Cada variante se ancla a su esquina interior de la card.
   El orbe (200px) sobresale hacia dentro de la card — overflow:hidden lo recorta */
/* Centro del orbe = esquina interior de la card que da al centro del grid.
   El orbe mide 200px, con el centro en la esquina la mitad (100px) queda dentro. */
.corner-br {
  bottom: -100px;
  right: -100px;
}

/* card-0 top-left  → esquina bottom-right */
.corner-bl {
  bottom: -100px;
  left: -100px;
}

/* card-1 top-right → esquina bottom-left  */
.corner-tr {
  top: -100px;
  right: -100px;
}

/* card-2 bot-left  → esquina top-right    */
.corner-tl {
  top: -100px;
  left: -100px;
}

/* card-3 bot-right → esquina top-left     */

/* Desfase para que no pulsen todos a la vez */
#resenas-corner-1 {
  animation-delay: 0.6s;
}

#resenas-corner-2 {
  animation-delay: 1.2s;
}

#resenas-corner-3 {
  animation-delay: 1.8s;
}

@keyframes corner-orb-breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }
}

/* ── ORBES BLANCOS EN ESQUINAS DE CARDS ─── */
.resenas-corner-orb-white {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.45) 20%,
      rgba(255, 255, 255, 0.15) 45%,
      rgba(255, 255, 255, 0.04) 65%,
      transparent 75%);
  filter: blur(18px);
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  mix-blend-mode: screen;
  animation: none;
}

/* ── RESEÑAS ─────────────────────────────── */
.sc-resenas {
  /* top/left/transform los gestiona JS completamente */
  width: min(1140px, 92vw);
  position: absolute;
  overflow: visible;
  background: transparent;
  border: none;
}

.sc-resena {
  position: absolute;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  box-sizing: border-box;
  transition:
    background 0.35s var(--ease-out),
    border-color 0.35s,
    box-shadow 0.35s;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 20px rgba(0, 0, 0, 0.5);
}

.sc-resena::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, #ff2020, #e60000, #8a0000);
  box-shadow: 0 0 10px rgba(230, 0, 0, 0.7), 0 0 20px rgba(230, 0, 0, 0.3);
  transition: height 0.4s var(--ease-snappy);
  z-index: 2;
}

.sc-resena:hover {
  background: rgba(20, 20, 20, 0.98);
  border-color: rgba(230, 0, 0, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(230, 0, 0, 0.12),
    0 8px 40px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(230, 0, 0, 0.06);
}

.sc-resena:hover::before {
  height: 100%;
}

.sc-resena .resena-card__stars {
  color: var(--rojo);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(230, 0, 0, 0.7), 0 0 20px rgba(230, 0, 0, 0.3);
}

.sc-resena blockquote {
  color: var(--gris-texto);
  font-size: var(--text-sm);
  line-height: 1.75;
  flex: 1;
  font-style: normal;
  position: relative;
  padding-top: 20px;
}

.sc-resena blockquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 0;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(230, 0, 0, 0.2);
  font-style: italic;
  text-shadow: 0 0 20px rgba(230, 0, 0, 0.3);
}

.sc-resena .resena-card__autor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gris-4);
}

.sc-resena .resena-card__avatar {
  width: 38px;
  height: 38px;
  background: var(--gris-3);
  border: 1px solid var(--gris-5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--gris-texto);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sc-resena:hover .resena-card__avatar {
  background: var(--rojo);
  border-color: var(--rojo);
  color: var(--blanco);
}

.sc-resena .resena-card__info strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--blanco);
}

.sc-resena .resena-card__info span {
  font-size: var(--text-xs);
  color: var(--gris-texto);
}

/* ── COCHE TOP-VIEW EN BORDE DE RESEÑA ────── */
.resena-car {
  display: none;
}

@keyframes car-lap {
  from {
    offset-distance: 0%;
  }

  to {
    offset-distance: 100%;
  }
}

/* ── CARD BADGES (icono+título sobre barra roja) ─ */
.sc-card-badge {
  position: absolute;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s;
}

.sc-card-badge:hover {
  filter: brightness(1.4) drop-shadow(0 0 6px rgba(230, 0, 0, 0.6));
}

.sc-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--rojo);
  filter: drop-shadow(0 0 6px rgba(230, 0, 0, 0.7));
}

.sc-badge__icon svg {
  width: 100%;
  height: 100%;
}

.sc-badge__label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  text-align: center;
}

/* Ocultar en móvil junto con el resto del cinematic scroll */
@media (max-width: 1024px) {
  .sc-card-badge {
    display: none;
  }
}

/* ── PROGRESS BAR ────────────────────────── */
.sc-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gris-4);
  z-index: 10;
}

.sc-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--rojo);
  transition: width 0.08s linear;
}

/* ── MÓVIL: sin efecto, layout normal ────── */
@media (max-width: 1024px) {
  .sc-pin {
    height: auto;
  }

  .sc-stage {
    position: relative;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: var(--negro);
  }

  .sc-canvas,
  .sc-overlay,
  .sc-line,
  .sc-progress,
  .sc-scroll-hint {
    display: none;
  }

  /* Resetear todos los layers a flujo normal */
  .sc-layer {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    opacity: 1 !important;
    will-change: auto;
    pointer-events: auto;
    z-index: auto;
  }

  /* Hero móvil */
  #sc-tag {
    padding: 100px 24px 0;
  }

  .sc-title {
    padding: 12px 24px 0;
  }

  #sc-subtitle {
    padding: 16px 24px 0;
  }

  #sc-btns {
    padding: 24px 24px 40px;
  }

  /* Stats móvil */
  .sc-stats {
    position: relative;
  }

  .sc-stats__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .sc-stats__item::after {
    display: none;
  }

  /* Section titles */
  .sc-section-title {
    text-align: center;
    padding: 60px 24px 32px;
  }

  /* Cards móvil */
  .sc-cards {
    position: relative;
    width: 100%;
    grid-template-columns: 1fr;
    margin: 0;
  }

  /* Porque móvil */
  .sc-porque {
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    transform: none;
    width: 100%;
    padding: 40px 24px;
  }

  .sc-porque__img {
    width: min(280px, 80vw);
    aspect-ratio: 3 / 4;
  }

  .sc-porque__content {
    padding: 0;
    background: transparent;
  }

  /* Reseñas móvil */
  .sc-resenas {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .sc-resena {
    position: relative !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
  }
}

@media (max-width: 600px) {
  .sc-stats__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================================
   BLOQUE ANTES/DESPUÉS (SC-LAYER)
   ========================================================================= */
.sc-antes-despues {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  padding: 0 2rem 180px 2rem; /* Push content up to avoid bottom badges */
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
}

.sc-antes__header {
  text-align: center;
  transform: translateY(30px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.sc-antes__eyebrow {
  display: block;
  font-family: var(--font-display);
  color: var(--rojo);
  font-size: var(--text-sm);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sc-antes__heading {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--blanco);
  margin: 0;
  line-height: 1.1;
}

.sc-antes__heading em {
  font-style: italic;
  color: var(--gris-claro);
  font-weight: 300;
}

.sc-antes__images {
  display: flex;
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
  justify-content: center;
}

.sc-antes__img-wrapper {
  position: relative;
  flex: 1;
  border-radius: 40px; /* Esquinas bastante más redondeadas */
  transform: scale(0.9);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  
  /* Estética base de la web (estilo .sc-card) */
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 8px; /* Un poco de respiro antes de la imagen */
}

/* Pseudo-elemento para hacer la línea fina roja por encima de la imagen */
.sc-antes__img-wrapper::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(230, 0, 0, 0.5); /* Línea roja interior (marco) */
  border-radius: 28px; /* Debe ser menor que el radius de la imagen para cuadrar */
  pointer-events: none; /* Que no moleste al pasar el ratón */
  transition: border-color 0.4s ease;
}

.sc-antes__img-wrapper:hover {
  background: rgba(15, 15, 15, 0.6);
  border-color: rgba(230, 0, 0, 0.4);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(230, 0, 0, 0.15),
    inset 0 0 0 1px rgba(230, 0, 0, 0.2);
}

.sc-antes__img-wrapper:hover::after {
  border-color: rgba(230, 0, 0, 0.9); /* Más intensa al hacer hover */
}

.sc-antes__img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px; /* Esquinas de la imagen redondeadas, a juego con el wrapper */
}

.sc-antes__label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(10, 10, 10, 0.6);
  color: var(--blanco);
  padding: 0.4rem 1.2rem;
  border-radius: 30px; /* Esquinas más redondeadas */
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Marco fino interior rojo */
  border: 1px solid rgba(230, 0, 0, 0.6);
  box-shadow: 
    inset 0 0 0 1px rgba(230, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sc-antes__label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--rojo);
  box-shadow: 0 0 8px var(--rojo);
}

/* Animaciones controladas por JS */
.sc-antes-despues.active .sc-antes__header {
  transform: translateY(0);
  opacity: 1;
}

.sc-antes-despues.active .sc-antes__img-wrapper {
  transform: scale(1);
  opacity: 1;
}

.sc-antes__images .sc-antes__img-wrapper:nth-child(1) {
  transition-delay: 0.1s;
}

.sc-antes__images .sc-antes__img-wrapper:nth-child(2) {
  transition-delay: 0.2s;
}

@media (max-width: 1024px) {
  .sc-antes__images {
    flex-direction: column;
    gap: 1rem;
  }
}