/* ============================================
   THE CREATIVE BRAIN HAMMOCK™ — Landing Page
   Shinesty job application by Sebastián Vizzo
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f4ede0;       /* off-white / cream — Shinesty base */
  color: #1e1208;            /* dark brown */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Recoleta: for all hero headlines and product name */
.recoleta {
  font-family: 'Recoleta', Georgia, serif;
}

/* --- HERO SCROLL --- */

/* Outer container: tall enough for 3 viewports of scroll */
.hero-scroll {
  position: relative;
}

.hero-spacer {
  height: 200vh; /* calibrado: face → he had no idea → ball line → specs */
}

/* Sticky wrapper: stays in viewport while spacer scrolls */
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Image: fills viewport, object-position + opacity controlled by JS */
.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0%;
  will-change: object-position;
}

/* Text zones: overlaid on the sticky image */
.text-zone {
  position: absolute;
  left: 0;
  right: 0;
  padding: 0 3rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.text-zone.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hook: product name, lives in sky zone */
.zone-hook {
  top: 2.5rem;
}

.zone-hook .tag {
  display: inline-block;
  background: #c8102e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}

.hook-title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 0.75rem;
}

.hook-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
}

/* Face zone: setup line — sits over face/torso (~25% into image) */
.zone-face {
  top: 30%;
}

.zone-face.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Resolution: punchline — same vertical position as face text */
.zone-resolution {
  top: 30%;
}

/* Shared headline style — caja roja, Recoleta */
.zone-face .main,
.zone-resolution .main {
  font-family: 'Recoleta', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.04em;
  background: #c8102e;
  display: inline;
  padding: 0.05em 0.2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* --- SPECS --- */
.specs {
  padding: 3rem 2rem 4rem;
  max-width: 640px;
  margin: 3rem auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.08);
}

.product-header {
  margin-bottom: 2.5rem;
}

.tag {
  display: inline-block;
  background: #c8102e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.2rem;
}

h1 {
  font-family: 'Recoleta', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 0.8rem;
}

.role {
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.divider {
  height: 2px;
  background: #1e1208;
  width: 100%;
}

/* Specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0 1.5rem;
}

.specs-table tr {
  border-bottom: 1px solid rgba(30,18,8,0.12);
}

.specs-table td {
  padding: 0.8rem 0;
  font-size: 0.95rem;
}

.specs-table .label {
  color: #666;
}

.specs-table .value {
  text-align: right;
  font-weight: 700;
}

.specs-table .check {
  color: #2a8040;
  font-size: 1rem;
}

.specs-table .price-row td {
  padding-top: 1.5rem;
  font-size: 1.05rem;
  font-weight: 800;
}

/* Tercera columna: asteriscos alineados */
.specs-table td.fn {
  width: 2.5rem;
  padding: 0.8rem 0 0.8rem 0.75rem;
  font-size: 0.9rem !important;  /* evita que .price-row td lo pise */
  font-weight: 600 !important;   /* peso uniforme en todos los asteriscos */
  color: #888;
  vertical-align: middle;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.footnotes {
  font-size: 0.82rem;
  color: #3a3020;
  line-height: 2;
  margin-bottom: 3rem;
}

/* CTA button */
.cta {
  display: block;
  width: 100%;
  background: #c8102e;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.2rem 2rem;
  transition: background 0.15s ease, transform 0.1s ease;
}

.cta:hover {
  background: #a00d26;
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(0);
}

/* --- REVIEWS --- */
.reviews-wrap {
  padding: 3rem 0 5rem;
  border-top: 1px solid rgba(30,18,8,0.12);
  max-width: 960px;
  margin: 0 auto;
}

.reviews-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  padding: 0 2rem;
  margin-bottom: 1.5rem;
}

.reviews {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 2rem 1.5rem;
  scrollbar-width: none;
}

.reviews::-webkit-scrollbar {
  display: none;
}

.review {
  flex: 0 0 280px;
  max-width: 320px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.stars {
  font-size: 1rem;
  color: #c8102e;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.review-text {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 0.5rem;
  color: #1e1208;
}

.reviewer {
  font-size: 0.82rem;
  color: #aaa;
  letter-spacing: 0.04em;
}

/* --- CLOSING HERO --- */
.closing-hero {
  position: relative;
  min-height: 80vh;
  background: #1e1208;
  background-image: url('hero2.jpg');
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.closing-inner {
  position: absolute;
  top: 12%;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  padding: 0 2rem;
}

/* Pill: siempre al pie de la foto */
.closing-stat {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Botón: 3x su altura desde el fondo */
.closing-cta-inner {
  position: absolute;
  bottom: 18rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 100%;
  max-width: 480px;
  padding: 0 2rem;
}

.closing-cta-wrap {
  display: none;
}

.cta-closing {
  width: 100%;
  font-size: 1.5rem;
  padding: 1.8rem 2rem;
}

.closing-headline {
  font-family: 'Recoleta', Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 2rem;
}

.closing-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  background: rgba(0,0,0,0.4);
  padding: 0.6rem 1.1rem;
  border-radius: 100px;
}

.closing-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.closing-time {
  font-family: 'Recoleta', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.closing-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
}

.closing-cta-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 3rem 2rem 4rem;
  border-top: 1px solid rgba(30,18,8,0.12);
}

.sign {
  font-size: 1rem;
  font-weight: 600;
  color: #1e1208;
  margin-bottom: 0.75rem;
}

.disclaimer {
  font-size: 0.7rem;
  color: #bbb;
  letter-spacing: 0.04em;
}

/* --- Mobile --- */
@media (max-width: 600px) {

  /* Specs card: aire en los lados */
  .specs {
    margin: 1.5rem 1rem;
    padding: 2rem 1.25rem 2.5rem;
  }

  .reviews-wrap {
    padding-bottom: 3rem;
  }

  /* Hero: flyer estático en mobile */
  .hero-spacer {
    display: none;
  }

  .hero-sticky {
    position: relative;
    height: 100vh;
  }

  .hero-img {
    object-position: center 30%;
  }

  /* Textos: absolute, todos visibles, reposicionados */
  .text-zone {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
    pointer-events: auto;
  }

  /* Reviews: card ancho fijo en mobile para forzar scroll lateral */
  .review {
    flex: 0 0 80vw;
  }

  /* Safari bug: padding-left ignorado en overflow-x: auto — usar margin en primera card */
  .reviews > .review:first-child {
    margin-left: 1.25rem;
  }

  /* Closing hero mobile */
  .closing-inner {
    top: 8%;
  }

  .closing-hero {
    background-position: center 15%;
  }

  .closing-cta-inner {
    bottom: 16rem !important;
    padding: 0 3rem;
    max-width: 100%;
  }

  .closing-stat {
    bottom: 2rem;
  }

  .cta-closing {
    font-size: 1rem;
    padding: 1.2rem 2rem;
  }

  /* Hook: se queda arriba */
  .zone-hook {
    top: 2rem;
    padding: 0 1.25rem;
  }

  .hook-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    margin-bottom: 0;
  }

  .hook-sub {
    display: none;
  }

  /* Face: zona media */
  .zone-face {
    top: 40%;
    bottom: auto;
    padding: 0 1.25rem;
  }

  /* Resolution: debajo de face */
  .zone-resolution {
    top: 58%;
    bottom: auto;
    padding: 0 1.25rem;
  }

  .zone-face .main,
  .zone-resolution .main {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
}
