/* ===================================================
   SubasTap — Landing Page Oficial
   Paleta oficial del Manual de Identidad:
     Púrpura  #6E2367
     Dorado   #F9BC30
     Crema    #F3F0DE
   Tipografía: Montserrat (fuente oficial)
   =================================================== */

/* ── TOKENS ────────────────────────────────────────── */
:root {
  --purple: #6E2367;
  --purple-dark: #4A1645;
  --purple-light: #8B2E84;
  --gold: #F9BC30;
  --gold-light: #FFDA6B;
  --gold-dark: #C9950A;
  --cream: #F3F0DE;
  --white: #FFFFFF;
  --black: #0D0D0D;

  --w80: rgba(255, 255, 255, 0.80);
  --w60: rgba(255, 255, 255, 0.60);
  --w30: rgba(255, 255, 255, 0.30);
  --w12: rgba(255, 255, 255, 0.12);
  --w06: rgba(255, 255, 255, 0.06);
  --p20: rgba(110, 35, 103, 0.20);

  --font: 'Montserrat', sans-serif;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 40px;
  --r-full: 100px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-btn: 0 6px 24px rgba(249, 188, 48, 0.45);
  --shadow-purple: 0 12px 48px rgba(110, 35, 103, 0.50);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
  --gutter: clamp(16px, 5vw, 80px);
}

/* ── RESET & BASE ───────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--purple-dark);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  outline: none;
}

/* ── PARTÍCULAS ─────────────────────────────────────── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0.2);
    opacity: 0;
  }

  8% {
    opacity: 0.5;
  }

  85% {
    opacity: 0.25;
  }

  100% {
    transform: translateY(-8vh) scale(1);
    opacity: 0;
  }
}

/* ── TOPBAR ─────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(74, 22, 69, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--w12);
}

.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--w80);
}

.topbar-status strong {
  color: var(--gold);
}

.status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse-g 2s ease-in-out infinite;
}

@keyframes pulse-g {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.10);
  }
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w60);
  transition: color var(--transition), transform var(--transition);
}

.topbar-link:hover {
  color: var(--gold);
  transform: scale(1.15);
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(90px, 14vw, 140px) var(--gutter) 80px;
  overflow: hidden;
}

/* Fondo con imagen real de subasta */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.7);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(74, 22, 69, 0.78) 0%, rgba(74, 22, 69, 0.65) 50%, rgba(74, 22, 69, 0.95) 100%);
}

/* Contenido hero por encima del fondo */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
}

/* Logo real */
.logo-container {
  animation: floatLogo 5s ease-in-out infinite;
}

@keyframes floatLogo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-logo {
  width: clamp(220px, 55vw, 480px);
  filter: drop-shadow(0 8px 32px rgba(249, 188, 48, 0.35));
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--w12);
  border: 1px solid var(--w30);
  border-radius: var(--r-full);
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--gold-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-transform: uppercase;
}

.badge-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Título */
.hero-title {
  font-size: clamp(40px, 9vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-title-highlight {
  color: var(--gold);
  display: inline-block;
  position: relative;
  text-shadow: 0 0 60px rgba(249, 188, 48, 0.4);
}

.hero-title-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 3px;
  animation: lineShimmer 2.4s ease-in-out infinite;
}

@keyframes lineShimmer {

  0%,
  100% {
    opacity: 0.5;
    width: 50%;
    left: 25%;
  }

  50% {
    opacity: 1;
    width: 90%;
    left: 5%;
  }
}

/* Descripción */
.hero-desc {
  font-size: clamp(15px, 2.5vw, 19px);
  font-weight: 400;
  color: var(--w80);
  max-width: 600px;
  line-height: 1.75;
}

.hero-desc strong {
  color: var(--white);
  font-weight: 700;
}

.hide-sm {
  display: none;
}

@media (min-width: 768px) {
  .hide-sm {
    display: block;
  }
}

/* ── BARRA DE PROGRESO ──────────────────────────────── */
.progress-wrap {
  width: 100%;
  max-width: 520px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
}

.progress-label {
  color: var(--w60);
  letter-spacing: 0.5px;
}

.progress-value {
  color: var(--gold);
}

.progress-track {
  width: 100%;
  height: 10px;
  background: var(--w12);
  border-radius: var(--r-full);
  overflow: hidden;
  border: 1px solid var(--w30);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 60%, var(--gold-light) 100%);
  border-radius: var(--r-full);
  transition: width 2.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  animation: sweepShine 2s ease-in-out infinite;
}

@keyframes sweepShine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(250%);
  }
}

/* ── NOTIFY FORM ────────────────────────────────────── */
.notify-box {
  width: 100%;
  max-width: 540px;
  text-align: center;
}

.notify-title {
  font-size: clamp(14px, 2.5vw, 17px);
  font-weight: 700;
  color: var(--w80);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.notify-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.field-wrap {
  flex: 1 1 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  color: var(--w30);
  display: flex;
  pointer-events: none;
}

.notify-input {
  width: 100%;
  padding: 15px 16px 15px 46px;
  background: var(--w12);
  border: 1.5px solid var(--w30);
  border-radius: var(--r-md);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}

.notify-input::placeholder {
  color: var(--w30);
}

.notify-input:focus {
  border-color: var(--gold);
  background: rgba(249, 188, 48, 0.08);
  box-shadow: 0 0 0 4px rgba(249, 188, 48, 0.18);
}

.notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--purple-dark);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-btn);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.notify-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 36px rgba(249, 188, 48, 0.55);
  filter: brightness(1.08);
}

.notify-btn:active {
  transform: translateY(0) scale(0.98);
}

.notify-btn svg {
  transition: transform var(--transition);
}

.notify-btn:hover svg {
  transform: translateX(4px);
}

.notify-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--w30);
  letter-spacing: 0.2px;
}

.notify-success {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--r-md);
  color: #4ade80;
  font-weight: 700;
  font-size: 15px;
  animation: fadeinup 0.5s ease;
}

@keyframes fadeinup {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SCROLL INDICATOR ───────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.scroll-hint span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: scrollBob 1.5s ease-in-out infinite;
}

.scroll-hint span:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0.6;
}

.scroll-hint span:nth-child(3) {
  animation-delay: 0.4s;
  opacity: 0.35;
}

@keyframes scrollBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ── FEATURES SECTION ───────────────────────────────── */
.features {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 10vw, 120px) var(--gutter);
  background: linear-gradient(180deg, var(--purple-dark) 0%, var(--purple) 100%);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(249, 188, 48, 0.15);
  border: 1px solid rgba(249, 188, 48, 0.4);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-title .accent {
  color: var(--gold);
}

.section-desc {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--w60);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* Grid de features: 1 col mobile → 2 col tablet → 4 col desktop */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: left;
}

.feat-card {
  background: var(--w06);
  border: 1px solid var(--w12);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 36px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}

.feat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 188, 48, 0.5);
  box-shadow: 0 16px 48px rgba(249, 188, 48, 0.12), var(--shadow-card);
}

.feat-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  background: rgba(249, 188, 48, 0.15);
  border: 1px solid rgba(249, 188, 48, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
  transition: background var(--transition);
}

.feat-card:hover .feat-icon-wrap {
  background: rgba(249, 188, 48, 0.25);
}

.feat-title {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--white);
}

.feat-desc {
  font-size: clamp(13px, 1.8vw, 15px);
  color: var(--w60);
  line-height: 1.65;
}

/* ── COMING SOON BANNER ─────────────────────────────── */
.coming-soon {
  position: relative;
  z-index: 2;
  background: var(--gold);
  padding: clamp(50px, 8vw, 90px) var(--gutter);
  overflow: hidden;
}

/* Decoración de fondo del banner */
.coming-soon::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: rgba(110, 35, 103, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.cs-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  flex-wrap: wrap;
}

.cs-logo {
  width: clamp(180px, 30vw, 320px);
  flex-shrink: 0;
  filter: brightness(0) invert(0.15);
  opacity: 0.15;
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: none;
}

@media (min-width: 900px) {
  .cs-logo {
    display: block;
  }
}

.cs-text {
  position: relative;
  z-index: 1;
  flex: 1 1 300px;
}

.cs-title {
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 900;
  color: var(--purple-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.cs-desc {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(74, 22, 69, 0.75);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 28px;
}

.cs-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cs-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--purple);
  color: var(--white);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(74, 22, 69, 0.25);
}

.cs-social-btn:hover {
  background: var(--purple-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74, 22, 69, 0.35);
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  background: var(--purple-dark);
  border-top: 1px solid var(--w12);
  padding: clamp(30px, 5vw, 50px) var(--gutter);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-logo {
  width: clamp(140px, 25vw, 200px);
  opacity: 0.9;
}

.footer-tagline {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}

.footer-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse-g 2s ease-in-out infinite;
}

.footer-copy {
  font-size: 12px;
  color: var(--w30);
}

/* ── RESPONSIVE BREAKPOINTS ─────────────────────────── */

/* ·· Mínimo: 320px ·· */
@media (max-width: 399px) {
  .notify-form {
    flex-direction: column;
  }

  .notify-btn {
    width: 100%;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ·· Mobile landscape ·· */
@media (min-width: 400px) and (max-width: 599px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ·· Tablet ·· */
@media (min-width: 600px) and (max-width: 899px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .notify-form {
    flex-direction: row;
  }
}

/* ·· Desktop ·· */
@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ·· Wide screens ·· */
@media (min-width: 1400px) {
  :root {
    --gutter: 120px;
  }
}

/* ── UTILIDADES: ANIMACIONES DE ENTRADA ─────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}