/* ============================================================
   REXLabs.mx — Global Design System
   Estilo: Apple/Tesla · Paleta: Blanco, Gris, Naranja-Ámbar, Azul Neón
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- Variables ---------- */
:root {
  /* Colores base */
  --white:       #FFFFFF;
  --gray-50:     #F7F8FA;
  --gray-100:    #F0F2F5;
  --gray-200:    #E4E7ED;
  --gray-300:    #CBD0D8;
  --gray-400:    #9BA3AF;
  --gray-500:    #6B7280;
  --gray-700:    #374151;
  --gray-900:    #111318;
  --black:       #0A0B0D;

  /* Naranja-Ámbar (acento principal) */
  --amber:       #F59E0B;
  --orange:      #FF6B00;
  --orange-soft: #FF8C35;
  --orange-dim:  rgba(255, 107, 0, 0.10);
  --orange-glow: rgba(245, 158, 11, 0.15);

  /* Azul Neón (seguridad + tech) */
  --neon:        #00D4FF;
  --neon-mid:    #0EA5E9;
  --neon-dim:    rgba(0, 212, 255, 0.10);
  --neon-glow:   rgba(0, 212, 255, 0.18);

  /* Semánticos */
  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-500);
  --text-tertiary:  var(--gray-400);
  --bg-page:        var(--gray-50);
  --bg-card:        var(--white);
  --border:         var(--gray-200);
  --border-strong:  var(--gray-300);

  /* Tipografía */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Espaciado */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Tipografía ---------- */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}
h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.body-lg { font-size: 1.05rem; line-height: 1.7; color: var(--text-secondary); }
.body-sm { font-size: 0.875rem; line-height: 1.6; color: var(--text-secondary); }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--text-primary);
}
.nav-logo-mark {
  width: 32px; height: 32px; background: var(--orange);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 0.7rem; font-weight: 700;
  color: #fff; letter-spacing: 0.5px;
}
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--text-secondary);
  transition: all 0.15s; cursor: pointer; font-weight: 400;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--gray-100); }
.nav-cta {
  background: var(--orange); color: #fff; border: none;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  font-family: var(--font-body); transition: background 0.15s;
}
.nav-cta:hover { background: var(--orange-soft); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 0.8rem; color: var(--text-tertiary);
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--text-tertiary); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--gray-300); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s; border: none; font-family: var(--font-body);
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { color: var(--text-primary); border-color: var(--gray-400); background: var(--gray-100); }
.btn-neon { background: var(--neon-dim); color: var(--neon-mid); border: 1px solid rgba(0,212,255,0.25); }
.btn-neon:hover { background: rgba(0,212,255,0.18); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-orange { border-color: rgba(255,107,0,0.2); background: linear-gradient(135deg, rgba(255,107,0,0.03) 0%, var(--white) 60%); }
.card-neon { border-color: rgba(0,212,255,0.2); background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, var(--white) 60%); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 500;
}
.badge-orange { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(255,107,0,0.2); }
.badge-neon { background: var(--neon-dim); color: var(--neon-mid); border: 1px solid rgba(0,212,255,0.25); }
.badge-gray { background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--border); }
.badge-amber { background: rgba(245,158,11,0.1); color: #B45309; border: 1px solid rgba(245,158,11,0.2); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse-dot 2s infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Stats ---------- */
.stats-row { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-item { }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  color: var(--text-primary); line-height: 1;
}
.stat-num .accent { color: var(--orange); }
.stat-label { font-size: 0.78rem; color: var(--text-tertiary); margin-top: 4px; }

/* ---------- Media block ---------- */
.media-block { margin-top: 48px; }
.media-block-title { font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: 14px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.photo-slot {
  background: var(--gray-100); border: 1px dashed var(--gray-300);
  border-radius: var(--radius-md); aspect-ratio: 4/3;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; cursor: pointer;
  transition: border-color 0.2s; overflow: hidden;
}
.photo-slot:hover { border-color: var(--orange); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.photo-slot-placeholder { text-align: center; color: var(--text-tertiary); font-size: 0.78rem; }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.media-embed {
  background: var(--gray-50); border: 1px dashed var(--gray-300);
  border-radius: var(--radius-md); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: border-color 0.2s;
}
.media-embed:hover { border-color: var(--orange); }
.media-embed-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.media-embed-icon.yt { background: rgba(255,0,0,0.1); }
.media-embed-icon.pod { background: rgba(139,92,246,0.1); }
.media-embed-title { font-size: 0.85rem; font-weight: 500; color: var(--text-primary); }
.media-embed-sub { font-size: 0.76rem; color: var(--text-tertiary); }

/* ---------- Process steps ---------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--orange); color: #fff;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700; margin-top: 2px;
}
.step-content h4 { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.step-content p { font-size: 0.875rem; color: var(--text-secondary); }

/* ---------- Specs table ---------- */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th {
  background: var(--gray-100); font-size: 0.78rem;
  color: var(--text-tertiary); text-align: left;
  padding: 10px 14px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; border-bottom: 1px solid var(--border);
}
.specs-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); font-size: 0.875rem; }
.specs-table td:first-child { color: var(--text-secondary); }
.specs-table td:last-child { font-weight: 500; color: var(--text-primary); }
.specs-table tr:last-child td { border-bottom: none; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1a1d24 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
.cta-banner p { color: rgba(255,255,255,0.6); font-size: 0.95rem; margin-top: 8px; }
.cta-banner .email-link { color: var(--amber); }

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900); color: rgba(255,255,255,0.5);
  padding: 48px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-brand h3 span { color: var(--orange); }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 { font-size: 0.78rem; color: rgba(255,255,255,0.8); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.45); margin-bottom: 8px; transition: color 0.15s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; }
.footer-email { color: var(--amber); font-size: 0.85rem; }

/* ---------- Formulario ---------- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.form-label .req { color: var(--orange); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text-primary); background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-dim);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.78rem; color: var(--text-tertiary); margin-top: 4px; }
.form-required-note { font-size: 0.78rem; color: var(--text-tertiary); margin-bottom: 20px; }

/* ---------- Sección oscura (Seguridad) ---------- */
.dark-section {
  background: var(--gray-900);
  color: #fff;
}
.dark-section .eyebrow { color: var(--neon); }
.dark-section .display-lg, .dark-section .display-md, .dark-section h3 { color: #fff; }
.dark-section .body-lg, .dark-section .body-sm { color: rgba(255,255,255,0.6); }
.dark-section .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.dark-section .card:hover { background: rgba(255,255,255,0.07); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.dark-section .card h3 { color: #fff; }
.dark-section .card p, .dark-section .card li { color: rgba(255,255,255,0.6); }
.dark-section .step-num { background: var(--neon-mid); }
.dark-section .badge-neon { background: rgba(0,212,255,0.12); }
.dark-section .border-t { border-color: rgba(255,255,255,0.08); }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* ---------- Divider ---------- */
.divider { height: 1px; background: var(--border); margin: 48px 0; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-secondary); }
.checklist li::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.checklist.neon li::before { background: var(--neon-mid); }

/* ---------- Price cards ---------- */
.price-card { border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--border); background: var(--white); }
.price-card.featured { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), var(--shadow-lg); }
.price-tier { font-size: 0.75rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 8px; }
.price-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.price-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.price-from { font-size: 0.85rem; color: var(--text-tertiary); margin-bottom: 4px; }
.price-divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-banner { padding: 40px 28px; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .media-row { grid-template-columns: 1fr; }
  .stats-row { gap: 20px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 20px; text-align: center; justify-content: center; }
}
