/* ============================================================
   Tienda Nuvo CR — Minimalista Editorial
   Negro puro · Tipografía gigante · Líneas finas · Espacio
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --text: #fafafa;
  --text-mute: rgba(250, 250, 250, 0.5);
  --text-dim: rgba(250, 250, 250, 0.35);
  --line: rgba(250, 250, 250, 0.1);
  --line-soft: rgba(250, 250, 250, 0.06);
  --accent: #0078d7;
  --success: #4ade80;
  --error: #f87171;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv01';
}

/* ---------- Barra superior ---------- */
.top-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, #4fc3f7 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Navegación ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem clamp(1.5rem, 5vw, 4rem);
  position: relative;
  background: var(--bg);
}

/* Línea glow blanco-azul en el borde inferior del navbar */
.nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 20%,
    rgba(79, 195, 247, 0.7) 50%,
    rgba(255, 255, 255, 0.25) 80%,
    transparent 100%);
  box-shadow: 0 0 12px rgba(79, 195, 247, 0.5),
              0 0 24px rgba(0, 120, 215, 0.25);
}

.nav-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 1;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 120, 215, 0.5);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(0, 120, 215, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 120, 215, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 120, 215, 0); }
}

/* ---------- Layout ---------- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(3rem, 10vh, 7rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.title {
  font-size: clamp(2.75rem, 11vw, 6.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

.title .dot {
  color: var(--accent);
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--line);
  margin: 0 auto 2rem;
}

.lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 460px;
  margin: 0 auto;
}

/* ---------- Formulario ---------- */
.notify {
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  width: 100%;
  max-width: 420px;
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.notify-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.notify-form:focus-within {
  border-color: var(--text);
}

.email-input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  font-family: inherit;
}

.email-input::placeholder {
  color: var(--text-dim);
}

.email-input:focus {
  outline: none;
}

.btn-notify {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0 0.55rem 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: gap 0.3s ease, color 0.3s ease;
}

.btn-notify:hover {
  gap: 0.75rem;
  color: var(--accent);
}

.btn-notify svg {
  transition: transform 0.3s ease;
}

.btn-notify:hover svg {
  transform: translateX(2px);
}

.form-message {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 400;
  min-height: 1.2em;
  text-align: left;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  color: var(--success);
}

.form-message.error,
.form-message.invalid {
  color: var(--error);
}

.form-message.duplicate {
  color: #fbbf24;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(3rem, 8vh, 4.5rem);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg);
  position: relative;
  transition: background 0.4s ease;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  background: var(--bg-soft);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-mute);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-icon {
  color: var(--accent);
  border-color: rgba(0, 120, 215, 0.4);
  background: rgba(0, 120, 215, 0.08);
}

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature-num {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.feature-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-mute);
  margin-top: 0.15rem;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.75rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-dim);
  border-top: 1px solid var(--line-soft);
}

.footer-icon {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

/* ---------- Animaciones ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .countdown {
    gap: clamp(0.6rem, 4vw, 1rem);
  }

  .count-sep {
    display: none;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Selección y scrollbar ---------- */
::selection {
  background: var(--accent);
  color: white;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}
