/* =========================================
   JM Celulares — Landing Page Styles
   Mobile-first, dark theme
   ========================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0b0b12;
  --bg-2:        #111118;
  --bg-card:     #16161f;
  --bg-card-h:   #1c1c28;
  --primary:     #3b82f6;
  --primary-d:   #2563eb;
  --primary-glow:rgba(59,130,246,.18);
  --accent:      #8b5cf6;
  --accent-glow: rgba(139,92,246,.15);
  --wa:          #25d366;
  --wa-d:        #1ebe5d;
  --ig:          #e1306c;
  --fb:          #1877f2;
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;
  --border:      rgba(255,255,255,.07);
  --border-b:    rgba(255,255,255,.13);
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   22px;
  --shadow:      0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:   0 8px 48px rgba(0,0,0,.5);
  --transition:  .2s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: .82rem; }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 0 var(--primary-glow);
}
.btn--primary:hover {
  background: var(--primary-d);
  box-shadow: 0 0 20px 4px var(--primary-glow);
  transform: translateY(-1px);
}

.btn--wa {
  background: var(--wa);
  color: #fff;
}
.btn--wa:hover { background: var(--wa-d); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-b);
}
.btn--outline:hover {
  background: var(--bg-card-h);
  border-color: var(--primary);
  color: var(--primary);
}

/* ---- Text gradient ---- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav--scrolled {
  background: rgba(11,11,18,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  color: var(--text);
}
.nav__logo-img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.nav__logo-text strong { color: var(--primary); }

.nav__links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: .9rem;
  color: var(--text-muted);
}
.nav__links a:hover { color: var(--text); }
.nav__cta-link {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
}
.nav__cta-link:hover { background: var(--primary-d); }

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.nav__mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  background: rgba(11,11,18,.97);
  backdrop-filter: blur(16px);
  transition: max-height .35s ease, padding .35s ease;
}
.nav__mobile--open {
  max-height: 320px;
  padding: 12px 20px 20px;
  border-bottom: 1px solid var(--border);
}
.nav__mobile a {
  padding: 12px 0;
  color: var(--text-muted);
  font-size: .95rem;
  border-bottom: 1px solid var(--border);
}
.nav__mobile a:last-child { border: none; }
.nav__mobile a:hover { color: var(--text); }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero__bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(59,130,246,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(139,92,246,.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-block: 48px 64px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  color: #93c5fd;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Phone mock ---- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 280px;
}

.phone-mock {
  width: 140px;
  height: 240px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-b);
  border-radius: 22px;
  padding: 14px 10px;
  box-shadow: 0 0 60px rgba(59,130,246,.12), var(--shadow-lg);
  position: relative;
}
.phone-mock::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 4px;
  background: var(--border-b);
  border-radius: 4px;
}

.phone-mock__screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.phone-mock__bar {
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  opacity: .7;
}
.phone-mock__item {
  height: 8px;
  background: var(--border-b);
  border-radius: 4px;
}
.phone-mock__item--sm { width: 60%; height: 6px; }

.phone-mock__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-block: 4px;
}
.phone-mock__chip {
  height: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.phone-mock__chip:first-child { border-color: rgba(59,130,246,.3); background: rgba(59,130,246,.07); }
.phone-mock__chip:nth-child(3) { border-color: rgba(139,92,246,.3); background: rgba(139,92,246,.07); }

/* ---- Floating tags ---- */
.hero__floating-tag {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-b);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: float 3s ease-in-out infinite;
}
.hero__floating-tag--1 { top: 10%; left: 0; animation-delay: 0s; }
.hero__floating-tag--2 { bottom: 20%; right: 0; animation-delay: .8s; }
.hero__floating-tag--3 { top: 55%; left: 2%; animation-delay: 1.6s; }

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

.hero__scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .hero__visual { height: 360px; }
  .phone-mock { width: 170px; height: 300px; }
}

/* ============ SECTIONS ============ */
.section {
  padding-block: 72px 80px;
}
.section--dark {
  background: var(--bg-2);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}
.section__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section__subtitle {
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--border-b);
  background: var(--bg-card-h);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--icon-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--icon-color) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color);
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.service-card__link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap .2s;
}
.service-card__link:hover { opacity: .8; }

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ CATALOG CTA ============ */
.catalog-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.catalog-cta__content .section__header { text-align: left; }
.catalog-cta__content .section__title { text-align: left; }
.catalog-cta__content .section__subtitle { text-align: left; margin-inline: 0; margin-bottom: 24px; }
.catalog-cta__content .section__eyebrow { display: block; margin-bottom: 10px; }

.catalog-cta__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.brand-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-b);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .8rem;
  color: var(--text-muted);
}

/* Catalog preview card */
.catalog-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-b);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  margin-inline: auto;
}

.cpc__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.cpc__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.cpc__dot--red   { background: #ef4444; }
.cpc__dot--amber { background: #f59e0b; }
.cpc__dot--green { background: #10b981; }
.cpc__title {
  margin-left: 6px;
  font-size: .8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.cpc__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px;
  padding: 9px 14px;
  background: var(--bg);
  border: 1px solid var(--border-b);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: .82rem;
}

.cpc__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
}
.cpc__item:last-child { border: none; }
.cpc__model { color: var(--text-muted); }
.cpc__stock { font-size: .75rem; font-weight: 600; }
.cpc__stock--ok  { color: #34d399; }
.cpc__stock--low { color: #fbbf24; }

@media (min-width: 900px) {
  .catalog-cta { grid-template-columns: 1fr 1fr; }
}

/* ============ SHIPPING BANNER ============ */
.shipping-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: .88rem;
}
.shipping-banner svg { color: var(--primary); flex-shrink: 0; }
.shipping-banner span { flex: 1; }
.shipping-banner strong { color: var(--text); }

/* ============ LOCATIONS ============ */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}

.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.location-card:hover {
  border-color: var(--border-b);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.location-card__badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 50px;
}
.location-card__badge--blue  { background: rgba(59,130,246,.15); color: #93c5fd; border: 1px solid rgba(59,130,246,.25); }
.location-card__badge--purple { background: rgba(139,92,246,.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,.25); }

.location-card__icon {
  width: 64px; height: 64px;
  background: var(--bg-2);
  border: 1px solid var(--border-b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 16px;
}

.location-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.location-card__address {
  font-size: .85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 12px;
}
.location-card__desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .locations-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 700px;
  margin-inline: auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: var(--transition);
  cursor: pointer;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.contact-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card__label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.contact-card__value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.contact-card--wa  { border-color: rgba(37,211,102,.2); }
.contact-card--wa  .contact-card__icon { background: rgba(37,211,102,.1); color: var(--wa); }
.contact-card--wa:hover { border-color: var(--wa); }

.contact-card--ig  { border-color: rgba(225,48,108,.2); }
.contact-card--ig  .contact-card__icon {
  background: rgba(225,48,108,.1);
  color: var(--ig);
}
.contact-card--ig:hover { border-color: var(--ig); }

.contact-card--fb  { border-color: rgba(24,119,242,.2); }
.contact-card--fb  .contact-card__icon { background: rgba(24,119,242,.1); color: var(--fb); }
.contact-card--fb:hover { border-color: var(--fb); }

.contact-card--phone .contact-card__icon { background: var(--bg-2); color: var(--text-muted); }

@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.7;
}
.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  font-size: .85rem;
}
.footer__links > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__links strong {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.footer__links a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--primary); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: 16px;
  text-align: center;
  font-size: .8rem;
  color: var(--text-dim);
}

@media (min-width: 640px) {
  .footer__inner { grid-template-columns: 1fr 2fr; }
}

/* ============ FLOATING BUTTONS ============ */
.floating-btns {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.floating-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.floating-btn--wa {
  background: linear-gradient(135deg, var(--wa), var(--wa-d));
}
.floating-btn--ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Pulse on WA button */
.floating-btn--wa::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: pulse 2.5s ease-out infinite;
  opacity: 0;
}
@keyframes pulse {
  0%   { transform: scale(.9); opacity: .5; }
  80%  { transform: scale(1.4); opacity: 0; }
  100% { opacity: 0; }
}
