@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-deep: #1B0E2B;        /* Subtono más oscuro de #2E1A47 para dar profundidad */
  --bg-primary: #2E1A47;     /* Color principal de marca */
  --bg-surface: #392257;     /* Superficie elevada para tarjetas */
  --bg-glass: rgba(46, 26, 71, 0.78);
  --text-light: #FFFFFF;
  --text-Lavender: #CFC6DD;  /* Color secundario suave */
  --text-muted: rgba(207, 198, 221, 0.68);
  --accent-gold: #F5C443;    /* Color de acento y contraste */
  --accent-gold-hover: #FFCE52;
  --border-subtle: rgba(207, 198, 221, 0.14);
  --border-gold: rgba(245, 196, 67, 0.35);
  --shadow-lg: 0 24px 60px rgba(10, 4, 18, 0.55);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-light);
}

body {
  background: radial-gradient(circle at 15% 10%, #412564 0%, var(--bg-primary) 42%, var(--bg-deep) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 6%;
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.brand-icon {
  height: 38px;
  width: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.6px;
}

.brand-text span {
  color: var(--text-ligh);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-Lavender);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
}

.nav-cta {
  background: rgba(245, 196, 67, 0.12);
  color: var(--accent-gold) !important;
  border: 1px solid var(--border-gold);
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 13.5px !important;
  transition: all 0.25s ease !important;
}

.nav-cta:hover {
  background: var(--accent-gold);
  color: var(--bg-deep) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

/* ================= HERO SECTION ================= */
.hero {
  padding: 140px 6% 80px;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(207, 198, 221, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-Lavender);
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-gold);
}

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

.hero h1 .highlight {
  color: var(--accent-gold);
  position: relative;
  display: inline-block;
}

.hero-lead {
  font-size: 18px;
  color: var(--text-Lavender);
  max-width: 540px;
  margin-bottom: 36px;
  font-weight: 400;
}

/* Botones de Tiendas Oficiales */
.store-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border: none;
  text-align: left;
}

.store-btn.primary {
  background-color: var(--accent-gold);
  color: var(--bg-deep);
  box-shadow: 0 12px 28px rgba(245, 196, 67, 0.22);
}

.store-btn.primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(245, 196, 67, 0.32);
}

.store-btn.secondary {
  background-color: var(--bg-surface);
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
}

.store-btn.secondary:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn-meta {
  display: flex;
  flex-direction: column;
}

.store-btn-sub {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.8;
}

.store-btn-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-metrics {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-gold);
}

.metric-item span {
  font-size: 13px;
  color: var(--text-Lavender);
}

/* ================= MOCKUP INTERACTIVO DEL TELÉFONO ================= */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-orb {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(245, 196, 67, 0.22) 0%, rgba(114, 62, 195, 0) 70%);
  filter: blur(30px);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 310px;
  height: 620px;
  background: #0B0711;
  border-radius: 44px;
  padding: 12px;
  border: 2px solid rgba(207, 198, 221, 0.22);
  box-shadow: var(--shadow-lg), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #140B20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phone-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.4s ease-in-out, transform 0.4s ease;
}

.phone-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,14,43,0.45) 0%, transparent 35%, rgba(15,8,24,0.95) 100%);
}

.phone-top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 16px;
}

.glass-pill {
  background: rgba(27, 14, 43, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
}

.phone-right-actions {
  position: absolute;
  right: 14px;
  bottom: 135px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.action-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(46, 26, 71, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.action-circle:hover, .action-circle.liked {
  background: var(--accent-gold);
  color: var(--bg-deep);
  border-color: var(--accent-gold);
}

.phone-bottom-info {
  position: relative;
  z-index: 2;
  padding: 20px 16px;
}

.car-tag {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--bg-deep);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.car-title {
  font-size: 19px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 4px;
}

.car-meta {
  font-size: 13px;
  color: var(--text-Lavender);
  margin-bottom: 14px;
}

.phone-next-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFF;
  padding: 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.phone-next-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-deep);
}

/* ================= BENTO GRID (CARACTERÍSTICAS) ================= */
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 90px 6%;
}

.section-header {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-header h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-Lavender);
  font-size: 17px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: linear-gradient(145deg, rgba(57, 34, 87, 0.72) 0%, rgba(27, 14, 43, 0.88) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(245, 196, 67, 0.14);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.bento-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-light);
}

.bento-card p {
  color: var(--text-Lavender);
  font-size: 15.5px;
  line-height: 1.65;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  background: rgba(207, 198, 221, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-Lavender);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

.chip.gold {
  background: rgba(245, 196, 67, 0.15);
  border-color: var(--border-gold);
  color: var(--accent-gold);
}

/* ================= PÁGINAS LEGALES (PRIVACIDAD / POLÍTICAS / ELIMINAR) ================= */
.page-hero {
  padding: 130px 6% 40px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-Lavender);
  font-size: 16px;
}

.legal-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 6% 90px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.legal-nav-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  font-weight: 800;
  margin-bottom: 14px;
}

.legal-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-nav a {
  color: var(--text-Lavender);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  display: block;
}

.legal-nav a:hover {
  color: var(--accent-gold);
}

.legal-content {
  background: rgba(57, 34, 87, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.legal-block {
  margin-bottom: 36px;
  scroll-margin-top: 110px;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h2 {
  font-size: 21px;
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-weight: 700;
}

.legal-block p, .legal-block li {
  color: var(--text-Lavender);
  font-size: 15.5px;
  margin-bottom: 12px;
}

.legal-block ul, .legal-block ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.alert-box {
  background: rgba(245, 196, 67, 0.1);
  border-left: 4px solid var(--accent-gold);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(16, 8, 26, 0.85);
  padding: 64px 6% 40px;
}

.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  color: var(--text-Lavender);
  max-width: 340px;
  margin-top: 14px;
  font-size: 14.5px;
}

.footer-col h4 {
  color: var(--accent-gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-Lavender);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-light);
}

.footer-bottom {
  max-width: 1320px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ================= TOAST NOTIFICATION ================= */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--accent-gold);
  color: var(--text-light);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  transform: translateY(140%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
  }
  .hero-lead { margin: 0 auto 32px; }
  .store-group, .hero-metrics { justify-content: center; }
  .span-7, .span-5, .span-4, .span-8 { grid-column: span 12; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.open { display: flex; }
}