/* ==================== VARIABLES Y RESET ==================== */

:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #252525;
  --border: #2a2a2a;
  --accent: #ff4444;
  --accent-hover: #ff6666;
  --secondary: #c0c0c0;
  --secondary-hover: #d4d4d4;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-muted: #808080;
  
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==================== LAYOUT BASE ==================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-hover);
}

code {
  background-color: var(--bg-tertiary);
  color: var(--secondary);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

/* ==================== NAVBAR ==================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

.nav-brand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Mobile navbar */
@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
  }
  
  .nav-links a {
    font-size: 13px;
  }
}

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(255, 68, 68, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.btn-secondary:hover {
  background-color: rgba(0, 217, 255, 0.1);
  border-color: var(--secondary-hover);
  color: var(--secondary-hover);
}

/* ==================== HERO ==================== */

.hero {
  padding: 80px 0 120px;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  border-bottom: 1px solid var(--border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.accent-text {
  color: var(--text-primary);
  display: block;
  margin-top: 8px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-description {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-footer {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---- Device carousel ---- */

.device-carousel {
  position: relative;
  width: 420px;
  height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  gap: 12px;
}

.device-slide.active {
  opacity: 1;
  pointer-events: auto;
  animation: float 3.5s ease-in-out infinite;
}

.device-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Phone */
.phone-frame {
  width: 180px;
  background: #111;
  border: 9px solid #1c1c1c;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255, 68, 68, 0.2), 0 4px 16px rgba(0,0,0,0.6);
}

.phone-notch {
  height: 18px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch::after {
  content: '';
  width: 52px;
  height: 5px;
  background: #2a2a2a;
  border-radius: 3px;
}

.phone-screen img {
  width: 100%;
  display: block;
}

/* Tablet */
.tablet-frame {
  width: 360px;
  background: #111;
  border: 10px solid #1c1c1c;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255, 68, 68, 0.2), 0 4px 16px rgba(0,0,0,0.6);
}

.tablet-camera {
  height: 16px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tablet-camera::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a2a2a;
}

.tablet-screen img {
  width: 100%;
  display: block;
}

/* Desktop monitor */
.desktop-frame {
  width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.desktop-screen {
  width: 100%;
  background: #111;
  border: 10px solid #1c1c1c;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(255, 68, 68, 0.15), 0 4px 16px rgba(0,0,0,0.6);
}

.desktop-screen img {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
  object-position: top;
}

.desktop-chin {
  width: 100%;
  height: 7px;
  background: #1c1c1c;
  border-radius: 0 0 3px 3px;
}

.desktop-stand {
  width: 28px;
  height: 16px;
  background: #181818;
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.desktop-base {
  width: 80px;
  height: 5px;
  background: #1c1c1c;
  border-radius: 3px;
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  opacity: 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

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

/* Mobile hero */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 80px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-visual {
    order: -1;
  }

  .device-carousel {
    width: 100%;
    max-width: 340px;
    height: 400px;
  }

  .phone-frame { width: 150px; }
  .tablet-frame { width: 300px; }
  .desktop-frame { width: 320px; }
}

/* ==================== FEATURES ==================== */

.features {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.features > .container > h2 {
  font-size: 36px;
  margin-bottom: 60px;
  text-align: center;
  letter-spacing: -0.5px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.feature-card {
  background-color: var(--bg-secondary);
  padding: 32px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1 1 300px;
  max-width: 365px;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--secondary));
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 68, 68, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.95;
}

@media (max-width: 640px) {
  .features {
    padding: 60px 0;
  }

  .features > .container > h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .features-grid {
    gap: 20px;
  }

  .feature-card {
    padding: 24px;
  }
}

/* ==================== HOW IT WORKS ==================== */

.how-it-works {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.how-it-works > .container > h2 {
  font-size: 36px;
  margin-bottom: 60px;
  text-align: center;
  letter-spacing: -0.5px;
}

.steps {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 60px;
  gap: 20px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.step:hover {
  border-color: var(--accent);
  background-color: var(--bg-tertiary);
}

.step-number {
  display: inline-block;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.step p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.step-arrow {
  color: var(--accent);
  font-size: 24px;
  flex-shrink: 0;
  animation: pulse-arrow 1.5s ease-in-out infinite;
}

@keyframes pulse-arrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Technical Stack */
.technical-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  background-color: var(--bg-secondary);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stack-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.stack-item:last-child {
  border-bottom: none;
}

.stack-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stack-value {
  color: var(--secondary);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 768px) {
  .how-it-works {
    padding: 60px 0;
  }

  .steps {
    flex-direction: column;
    gap: 0;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 8px 0;
  }

  .technical-stack {
    padding: 24px;
    gap: 16px;
  }

  .stack-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==================== SPECS ==================== */

.specs {
  padding: 100px 0;
}

/* ==================== CTA ==================== */

.cta-section {
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.05), rgba(192, 192, 192, 0.03));
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 36px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.cta-text {
  max-width: 680px;
  margin: 0 auto 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
}

.cta-text strong {
  color: var(--text-primary);
}

.cta-section .download-buttons {
  margin-top: 40px;
}

.specs > .container > h2 {
  font-size: 36px;
  margin-bottom: 60px;
  text-align: center;
  letter-spacing: -0.5px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.spec-column {
  background-color: var(--bg-secondary);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.spec-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--accent);
  letter-spacing: -0.3px;
}

.spec-column ul {
  list-style: none;
}

.spec-column li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.spec-column li:last-child {
  border-bottom: none;
}

.spec-column strong {
  color: var(--text-primary);
}

/* Download Section */
.download-section {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.05), rgba(0, 217, 255, 0.05));
  border: 1px solid var(--border);
  padding: 48px;
  border-radius: var(--radius);
  text-align: center;
}

.download-section h3 {
  font-size: 28px;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-text .download-buttons {
  justify-content: flex-start;
  margin-top: 32px;
}

.download-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 24px;
}

@media (max-width: 768px) {
  .specs {
    padding: 60px 0;
  }

  .specs-grid {
    gap: 20px;
  }

  .spec-column {
    padding: 24px;
  }

  .download-section {
    padding: 32px;
  }

  .download-buttons {
    flex-direction: column;
  }

  .download-buttons .btn {
    width: 100%;
  }
}

/* ==================== FOOTER ==================== */

.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .footer-content {
    gap: 24px;
  }

  .footer {
    padding: 40px 0 20px;
  }
}

/* ==================== UTILIDADES ==================== */

h2 {
  color: var(--text-primary);
}

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