/* ═══════════════════════════════════════════════════════════════════
   BUFATTY · LANDING v23 · hero full-screen
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.lp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  isolation: isolate;
}

/* ─── Fondo de posts ─── */
.lp-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: scale(1.08);
}

/* ─── Post ─── */
.lp-bg-post {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color-soft);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
  min-width: 70px;
  min-height: 50px;
}

html[data-theme="light"] .lp-bg-post {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

/* ─── Media ─── */
.lp-bg-post-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.12) contrast(1.05);
}

/* ─── Overlay top: avatar + nombre ─── */
.lp-bg-post-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    transparent 100%);
  transition: opacity 0.3s ease;
  z-index: 2;
}

.lp-bg-post-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lp-bg-post-avatar > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.lp-bg-post-avatar > span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.lp-bg-post-avatar--a > span { background: linear-gradient(135deg, #7c5cff, #a78bfa); }
.lp-bg-post-avatar--b > span { background: linear-gradient(135deg, #ff6ba8, #f472b6); }
.lp-bg-post-avatar--c > span { background: linear-gradient(135deg, #10b981, #34d399); }
.lp-bg-post-avatar--d > span { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.lp-bg-post-avatar--e > span { background: linear-gradient(135deg, #3b82f6, #60a5fa); }

.lp-bg-post-name {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ─── Overlay bottom: likes + comentarios ─── */
.lp-bg-post-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 10px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(0deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 55%,
    transparent 100%);
  transition: opacity 0.3s ease;
  z-index: 2;
}

.lp-bg-post-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}

.lp-bg-post-stat svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.lp-bg-post-stat span {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  font-variant-numeric: tabular-nums;
}

/* ─── Badge tipo ─── */
.lp-bg-post-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  z-index: 3;
  line-height: 1;
}
.lp-bg-post-badge svg {
  width: 8px;
  height: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   OVERLAY OSCURO
   ═══════════════════════════════════════════════════════════════════ */
.lp-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg-page) 85%, transparent) 0%,
      color-mix(in srgb, var(--bg-page) 40%, transparent) 12%,
      transparent 25%),
    linear-gradient(0deg,
      color-mix(in srgb, var(--bg-page) 60%, transparent) 0%,
      transparent 15%),
    radial-gradient(ellipse 70% 65% at 50% 50%,
      color-mix(in srgb, var(--bg-page) 70%, transparent) 0%,
      color-mix(in srgb, var(--bg-page) 45%, transparent) 35%,
      color-mix(in srgb, var(--bg-page) 15%, transparent) 65%,
      transparent 100%);
}

/* ═══════════════════════════════════════════════════════════════════
   CONTENIDO DEL HERO
   ═══════════════════════════════════════════════════════════════════ */
.lp-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 40px 32px;
}

.lp-hero-inner::before {
  content: '';
  position: absolute;
  inset: -60px -100px;
  z-index: -1;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--bg-page) 72%, transparent) 0%,
    color-mix(in srgb, var(--bg-page) 42%, transparent) 45%,
    transparent 75%);
  pointer-events: none;
}

/* ─── Badge arriba del título ─── */
.lp-hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 4px;
}

/* ─── Título ─── */
.lp-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6.2vw, 78px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--text-primary);
  margin: 0;
  max-width: 780px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

/* ─── Sub destacado ─── */
.lp-hero-lead {
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  margin: 8px 0 0;
  max-width: 600px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

/* ─── Sub secundario ─── */
.lp-hero-subtitle {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  max-width: 560px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* ─── Acciones (CTAs) ─── */
.lp-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.lp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1.2;
  min-height: 52px;
}

.lp-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.lp-cta:hover svg { transform: translateX(3px); }

.lp-cta--primary {
  background: #ffffff;
  color: #0a0b0f;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 0 rgba(124, 92, 255, 0);
}
.lp-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.5),
    0 0 0 8px rgba(124, 92, 255, 0.12);
}

.lp-cta--ghost {
  background: color-mix(in srgb, var(--bg-card) 55%, transparent);
  color: var(--text-primary);
  border: 1px solid color-mix(in srgb, var(--text-primary) 20%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lp-cta--ghost:hover {
  background: color-mix(in srgb, var(--bg-card) 85%, transparent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  transform: translateY(-2px);
}

/* ─── Trust line con checks ─── */
.lp-hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.lp-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lp-hero-trust svg {
  width: 14px;
  height: 14px;
  color: #6ee7a0;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .lp-hero {
    padding: 100px 20px 60px;
  }
  .lp-hero-title {
    letter-spacing: -0.02em;
  }
  .lp-hero-inner {
    gap: 16px;
    padding: 32px 24px;
  }
  .lp-hero-inner::before {
    inset: -40px -60px;
  }
  .lp-hero-badge {
    font-size: 10px;
    letter-spacing: 1.2px;
  }
  .lp-bg {
    transform: scale(1.25);
  }
}

@media (max-width: 480px) {
  .lp-hero {
    padding: 88px 16px 48px;
  }
  .lp-bg {
    transform: scale(1.35);
  }
  .lp-hero-inner {
    padding: 24px 16px;
    gap: 14px;
  }
  .lp-hero-inner::before {
    inset: -24px -40px;
  }
  .lp-hero-actions {
    width: 100%;
    flex-direction: column;
  }
  .lp-cta {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }
  .lp-hero-trust {
    gap: 12px 18px;
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-bg-post,
  .lp-cta {
    transition: none;
  }
  .lp-cta:hover {
    transform: none;
  }
}