/* ============================================
   Incógnita - Estilos Globales
   Negro + Amarillo | Concepto misterioso
   Diseño mobile-first, responsivo
   ============================================ */

/* Animaciones globales */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
  50%      { text-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.3); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-15px) rotate(2deg); }
  66%      { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Reset y variables */
:root {
  --color-primary: #0a0a0a;
  --color-secondary: #1a1a1a;
  --color-accent: #ffd700;
  --color-accent-soft: #ffed4a;
  --color-highlight: #ffd700;
  --color-text: #ffffff;
  --color-text-light: #b0b0b0;
  --color-text-muted: #666666;
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-bg-card: #1a1a1a;
  --color-border: rgba(255, 215, 0, 0.15);
  --color-success: #44ff88;
  --color-error: #ff4444;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1200px;
  --border-radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Partículas decorativas de fondo */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
body::after {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-soft);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ============================================
   Header
   ============================================ */
.header {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo h1 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: glowPulse 4s ease-in-out infinite;
}

.header__logo h1 span {
  color: var(--color-accent);
}

.header__tagline {
  display: block;
  font-size: 0.65rem;
  opacity: 0.5;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.header__nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ============================================
   Botones
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1.5px solid transparent;
  text-decoration: none;
  gap: 0.5rem;
  letter-spacing: 0.5px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-soft));
  color: #0a0a0a;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
  color: #0a0a0a;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: rgba(255, 215, 0, 0.3);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(255, 215, 0, 0.05);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero__content {
  animation: fadeInScale 0.8s ease-out;
}

.hero__logo {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: white;
  margin-bottom: 0.3rem;
  animation: glowPulse 3s ease-in-out infinite;
  line-height: 1.2;
}

.hero__logo span {
  color: var(--color-accent);
}

.hero__tagline {
  font-size: 0.85rem;
  color: rgba(255, 215, 0, 0.5);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero__title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero__title .highlight {
  color: var(--color-accent);
}

.hero__description {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__description strong {
  color: white;
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-bg-card);
  padding: 1.5rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.2);
  background: rgba(255, 215, 0, 0.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: white;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================
   How it Works
   ============================================ */
.how-it-works {
  padding: 3rem 0;
}

.section__title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.section__subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.section__title .highlight {
  color: var(--color-accent);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out both;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

.step:hover {
  border-color: rgba(255, 215, 0, 0.15);
  transform: translateX(4px);
}

.step__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: white;
  font-weight: 700;
}

.step p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 3rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.8rem;
}

.cta-section p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.cta-section .btn--primary {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

/* ============================================
   Formularios
   ============================================ */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #cccccc;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-family);
  color: white;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-error {
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ============================================
   Cards y paneles
   ============================================ */
.card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.card__subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ============================================
   Alertas
   ============================================ */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert--success {
  background-color: rgba(68, 255, 136, 0.1);
  color: #44ff88;
  border: 1px solid rgba(68, 255, 136, 0.2);
}

.alert--error {
  background-color: rgba(255, 68, 68, 0.1);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.2);
}

.alert--info {
  background-color: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* ============================================
   Loading spinner
   ============================================ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 215, 0, 0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: rgba(10, 10, 10, 0.8);
  border-top: 1px solid rgba(255, 215, 0, 0.06);
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 2rem 0;
  margin-top: auto;
  font-size: 0.8rem;
}

.footer__logo {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.footer__logo span {
  color: var(--color-accent);
}

.footer__tagline {
  color: rgba(255, 215, 0, 0.3);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-accent);
}

/* ============================================
   Divider
   ============================================ */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: 2rem auto;
  border-radius: 2px;
}

/* ============================================
   Responsive - Tablets y Desktop
   ============================================ */
@media (min-width: 768px) {
  .hero__logo {
    font-size: 4rem;
  }

  .hero__title {
    font-size: 2.8rem;
  }

  .hero__features {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }

  .header__logo h1 {
    font-size: 1.8rem;
  }

  .section__title {
    font-size: 2.2rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0 4rem;
  }

  .hero__logo {
    font-size: 5rem;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1000px;
  }

  .how-it-works {
    padding: 5rem 0;
  }

  .cta-section {
    padding: 5rem 0;
  }
}

/* ============================================
   Utilidades
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none; }
