/* ============================================
   HOOKIA — Home Page Specific Styles
   ============================================ */

/* ── HERO ── */
.hero-video-section {
  position: relative;
  background: #ffffff;
  display: flex;
  align-items: center;
}

.hero-video-overlay { display: none; }

.hero-video-content {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-video-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--text-100);
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.25s forwards;
  text-wrap: balance;
}

.hero-video-sub {
  font-size: 17px;
  color: var(--text-45);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.4s forwards;
}

.hero-video-sub strong { color: var(--text-100); }

.hero-video-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.55s forwards;
}

/* Scroll indicator */
.scroll-indicator { display: none; }
.scroll-indicator-hidden {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── HERO YOUTUBE EMBED ── */
.hero-yt-embed {
  display: block;
  margin-top: 52px;
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(74,86,128,0.18);
  box-shadow: 0 12px 48px rgba(74,86,128,0.13), 0 2px 8px rgba(74,86,128,0.07);
  cursor: pointer;
  text-decoration: none;
}

.hero-yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.hero-yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
  transition: transform 0.2s ease;
  z-index: 2;
}

.hero-yt-embed:hover .hero-yt-thumb { filter: brightness(0.7); }
.hero-yt-embed:hover .hero-yt-play  { transform: scale(1.1); }

/* ── PROBLEM SECTION ── */
.problem-section {
  padding: 120px 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}

.problem-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 100px;
}

.problem-intro .section-sub {
  margin: 0 auto;
  font-size: 18px;
}

/* ── PROBLEMS UNIFIED LAYOUT ── */
.problems-unified {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

.problem-unified-img {
  position: sticky;
  top: 120px;
  display: flex;
  justify-content: center;
}

.prob-main-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) contrast(1.2) brightness(1.2)
          drop-shadow(0 0 10px rgba(255,255,255,0.95))
          drop-shadow(0 0 28px rgba(255,255,255,0.55))
          drop-shadow(0 0 60px rgba(255,255,255,0.3));
}

.problems-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.problem-card {
  padding: 32px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, background 0.3s;
}

.problem-card:hover {
  border-color: var(--border-a);
  background: rgba(158,168,204,0.05);
}

.problem-card-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.problem-card h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.problem-card p {
  font-size: 15px;
  color: var(--text-45);
  line-height: 1.8;
  margin-bottom: 0;
}

.problem-card .problem-callout {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .problems-unified {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .problem-unified-img { position: static; }
  .prob-main-img { max-width: 220px; margin: 0 auto; }
}

/* Problem block: alternating image/text */
.problem-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 100px;
}

.problem-block-reverse {
  direction: rtl;
}
.problem-block-reverse > * {
  direction: ltr;
}

.problem-media { position: relative; }

.problem-img-wrap {
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.problem-img-wrap:hover {
  transform: translateY(-8px) scale(1.02);
}

.problem-img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) contrast(1.2) brightness(1.2)
          drop-shadow(0 0 10px rgba(255,255,255,0.95))
          drop-shadow(0 0 24px rgba(255,255,255,0.6))
          drop-shadow(0 0 50px rgba(255,255,255,0.35));
  transition: filter 0.5s, transform 0.5s;
}

.problem-img-wrap:hover .problem-img {
  filter: grayscale(80%) contrast(1.3) brightness(1.4)
          drop-shadow(0 0 16px rgba(255,255,255,1))
          drop-shadow(0 0 40px rgba(255,255,255,0.75))
          drop-shadow(0 0 80px rgba(255,255,255,0.45));
  transform: scale(1.04);
}

.problem-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 24px;
}

.problem-img-stat {
  display: flex;
  flex-direction: column;
}

.problem-img-num {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text-100), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.problem-img-label {
  font-size: 13px;
  color: var(--text-45);
}

/* Problem text */
.problem-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.problem-text h3 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.problem-text p {
  font-size: 16px;
  color: var(--text-45);
  line-height: 1.8;
  margin-bottom: 16px;
}

.problem-callout {
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 15px;
  font-style: italic;
  color: var(--text-70);
  line-height: 1.6;
}

/* Video interlude */
.video-interlude {
  margin: 0 0 100px;
}

.video-interlude-inner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  max-height: 400px;
}

.interlude-video {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  filter: brightness(0.75) saturate(0.8);
}

.interlude-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 28px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* Pain stats */
.pain-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.pain-stat {
  flex: 1;
  padding: 40px 36px;
  text-align: center;
}

.pain-stat-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}

.pain-stat-num {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text-100), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  display: block;
}

.pain-stat-label {
  font-size: 13px;
  color: var(--text-45);
  line-height: 1.55;
  max-width: 220px;
  margin: 0 auto;
}

/* ── EMPATHY SECTION ── */
.empathy-section {
  padding: 120px 0;
  background: var(--bg-0);
  border-top: 1px solid var(--border);
}

.empathy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.empathy-img {
  width: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.2) brightness(1.2)
          drop-shadow(0 0 10px rgba(255,255,255,0.95))
          drop-shadow(0 0 28px rgba(255,255,255,0.6))
          drop-shadow(0 0 55px rgba(255,255,255,0.35));
  transition: filter 0.4s, transform 0.4s;
}

.empathy-image:hover .empathy-img {
  filter: grayscale(70%) contrast(1.3) brightness(1.35)
          drop-shadow(0 0 18px rgba(255,255,255,1))
          drop-shadow(0 0 44px rgba(255,255,255,0.75))
          drop-shadow(0 0 80px rgba(255,255,255,0.45));
}

/* ── SOLUTION SECTION ── */
.solution-section {
  padding: 120px 0;
  background: var(--bg-1);
}

.solution-header {
  text-align: center;
  margin-bottom: 72px;
}

.solution-video-block {
  display: none;
}

.solution-video {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8) saturate(0.85);
}

.solution-video-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 32px;
  background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, transparent 100%);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* Collab block */
.collab-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.collab-images {
  position: relative;
  padding-bottom: 80px;
}

.collab-img-main {
}

.collab-img-main img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) contrast(1.2) brightness(1.15)
          drop-shadow(0 0 10px rgba(255,255,255,0.95))
          drop-shadow(0 0 28px rgba(255,255,255,0.6))
          drop-shadow(0 0 55px rgba(255,255,255,0.35));
  transition: filter 0.4s, transform 0.5s;
}

.collab-img-main:hover img {
  filter: grayscale(70%) contrast(1.3) brightness(1.3)
          drop-shadow(0 0 18px rgba(255,255,255,1))
          drop-shadow(0 0 44px rgba(255,255,255,0.75))
          drop-shadow(0 0 80px rgba(255,255,255,0.45));
  transform: scale(1.03);
}

.collab-img-secondary {
  position: absolute;
  bottom: 0;
  right: -24px;
  width: 55%;
}

.collab-img-secondary img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) contrast(1.2) brightness(1.15)
          drop-shadow(0 0 10px rgba(255,255,255,0.95))
          drop-shadow(0 0 28px rgba(255,255,255,0.6))
          drop-shadow(0 0 55px rgba(255,255,255,0.35));
  transition: filter 0.4s;
}

.collab-img-secondary:hover img {
  filter: grayscale(70%) contrast(1.3) brightness(1.3)
          drop-shadow(0 0 18px rgba(255,255,255,1))
          drop-shadow(0 0 44px rgba(255,255,255,0.75))
          drop-shadow(0 0 80px rgba(255,255,255,0.45));
}

.collab-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.collab-list li {
  font-size: 15px;
  color: var(--text-70);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── BENEFIT IMAGE ── */
.benefit-img-block {
  position: relative;
  display: inline-block;
  margin-top: 8px;
}

.benefit-ref-img {
  width: 100%;
  max-width: 380px;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.2) brightness(1.2)
          drop-shadow(0 0 10px rgba(255,255,255,0.95))
          drop-shadow(0 0 28px rgba(255,255,255,0.6))
          drop-shadow(0 0 55px rgba(255,255,255,0.35));
  transition: filter 0.4s;
}

.benefit-ref-img:hover {
  filter: grayscale(70%) contrast(1.3) brightness(1.35)
          drop-shadow(0 0 18px rgba(255,255,255,1))
          drop-shadow(0 0 44px rgba(255,255,255,0.75))
          drop-shadow(0 0 80px rgba(255,255,255,0.45));
}

.benefit-img-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.85);
  border: 1px solid var(--border-a);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* ── SPLINE 3D HERO BACKGROUND ── */
.hero-spline-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
  pointer-events: all;
  overflow: hidden;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, transparent 100%);
}

.hero-spline-bg canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Loader centrado en el área del robot */
.spline-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.spline-loader-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(158,168,204,0.2);
  border-top-color: var(--accent);
  animation: spinLoader 0.9s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

/* En mobile el robot ocupa toda la base con más opacidad */
@media (max-width: 768px) {
  .hero-spline-bg {
    width: 100%;
    opacity: 0.35;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 80%);
  }
}

/* ── ADAPT GRID ── */
.adapt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 80px;
}

.adapt-item {
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background 0.3s;
}

.adapt-item:hover {
  background: rgba(158,168,204,0.06);
}

.adapt-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.adapt-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.adapt-item p {
  font-size: 14px;
  color: var(--text-45);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .adapt-grid { grid-template-columns: 1fr; }
}

/* ── CTA EXTRAS ── */
.cta-guarantee {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-25);
  flex-wrap: wrap;
  position: relative;
}

/* ── ANIMATIONS ── */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes floatYSlow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.float-anim      { animation: floatY 5s ease-in-out infinite; }
.float-anim-slow { animation: floatYSlow 7s ease-in-out infinite; }

/* Tilt on hover (desktop) */
.tilt-on-scroll {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .problem-block { grid-template-columns: 1fr; gap: 40px; }
  .problem-block-reverse { direction: ltr; }
  .empathy-inner { grid-template-columns: 1fr; }
  .collab-block  { grid-template-columns: 1fr; }
  .collab-images { padding-bottom: 60px; }
  .collab-img-secondary { right: -12px; }
  .pain-stats { flex-direction: column; }
  .pain-stat-divider { width: 80%; height: 1px; }
}

@media (max-width: 768px) {
  .hero-video-section { padding: 118px 0 60px; }
  .hero-video-title { font-size: 34px; line-height: 1.08; }
  .hero-video-sub   { font-size: 16px; max-width: 100%; }
  .hero-video-content { padding: 0 20px; }
  .problem-section  { padding: 60px 0; }
  .problem-img      { height: 260px; }
  .solution-section { padding: 80px 0; }
  .solution-video   { height: 280px; }
  .interlude-video  { height: 260px; }
  .video-interlude-inner { max-height: 260px; }
  .pain-stats       { border-radius: var(--radius-lg); }
  .pain-stat        { padding: 28px 20px; }
  .empathy-section  { padding: 80px 0; }
  .collab-img-main img { height: 260px; }
  .collab-img-secondary { position: static; width: 100%; margin-top: 16px; border: none; }
  .collab-img-secondary img { height: 180px; }
  .collab-images { padding-bottom: 0; }
  .hero-video-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-video-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-yt-embed { margin-top: 36px; border-radius: 10px; }
  .cta-guarantee { flex-direction: column; align-items: center; gap: 8px; }
  .benefit-ref-img { max-width: 100%; }
}
