/* =============================================
   TECH ZONE – iPhone & Tecnología
   Premium CSS Design System
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  --accent: #ffffff;
  --accent-light: #f5f5f7;
  --accent-dark: #e5e5e5;
  --accent-muted: rgba(255, 255, 255, 0.15);
  --accent-glow: rgba(255, 255, 255, 0.3);

  --black: #000000;
  --black-soft: #0a0a0a;
  --black-card: #111111;
  --black-border: #1a1a1a;
  --black-hover: #161616;

  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-05: rgba(255, 255, 255, 0.05);

  --green-wa: #25D366;
  --green-wa-dark: #1DA851;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-gold: 0 0 40px rgba(255, 255, 255, 0.15);
  --shadow-card: 0 4px 40px rgba(0, 0, 0, 0.4);
  --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.6);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --section-pad: 5rem 0;
  --container-max: 1200px;
}

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

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

body {
  font-family: var(--font);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

/* --- CONTAINER --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- SECTION HEADER --- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-muted);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--accent);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--white-70);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--black);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.35);
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-xl {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: var(--white) !important;
  padding: 0.75rem 1.5rem;
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(253, 29, 29, 0.4);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--black-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  flex-shrink: 0;
}

.logo-icon svg {
  width: 20px; height: 20px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Specific Logo Image Style */
.logo-img {
  height: auto;
  width: auto;
  max-height: 40px; /* Standard navbar size */
  object-fit: contain;
}

.footer-logo .logo-img {
  max-height: 50px; /* Slightly larger in footer */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-70);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--white);
  background: var(--white-05);
}

.nav-cta {
  padding: 0.55rem 1.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--black) !important;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-left: 0.5rem;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.3);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.5);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  top: -100px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  bottom: 50px; left: -100px;
  animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 20px) scale(1.1); }
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-muted);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--white-70);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-subtitle strong {
  color: var(--accent);
  font-weight: 700;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.2rem 1.8rem;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--white-50);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 35px;
  background: var(--white-20);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.phone-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-glow {
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from { opacity: 0.4; transform: scale(0.9); }
  to { opacity: 0.7; transform: scale(1.1); }
}

.phone-frame {
  width: 240px;
  height: 480px;
  background: linear-gradient(180deg, #1a1a1a 0%, #111 40%, #0d0d0d 100%);
  border-radius: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 30px 80px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: phoneFloat 4s ease-in-out infinite alternate;
}

@keyframes phoneFloat {
  from { transform: translateY(0px) rotate(-2deg); }
  to { transform: translateY(-15px) rotate(2deg); }
}

.phone-notch {
  width: 100px; height: 28px;
  background: var(--black);
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0f0f1a 0%, #0a0a12 50%, #050510 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
}

.screen-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.5rem;
  background: black;
  color: white;
  position: relative;
  text-align: center;
}

.screen-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0 0.5rem;
  margin-top: -0.25rem;
  margin-bottom: 2.2rem;
}

.screen-indicators {
  display: flex;
  gap: 4px;
}

.screen-indicators svg {
  width: 12px; height: 12px;
}

.screen-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screen-logo {
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.screen-product-cycle {
  position: relative;
  width: 100%;
}

.cycle-item {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeInCycle 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cycle-item.active {
  display: flex;
}

.cycle-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.cycle-name {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: white;
}

.cycle-price {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

.screen-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: auto;
  padding-bottom: 0.5rem;
}

.screen-app {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

@keyframes fadeInCycle {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.phone-reflection {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border-radius: 40px 40px 0 0;
  pointer-events: none;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  box-shadow: var(--shadow-float);
}

.floating-badge svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

.badge-top {
  top: 30px; right: -60px;
  animation: badgeFloat 3s ease-in-out infinite alternate;
}

.badge-bottom {
  bottom: 60px; left: -70px;
  animation: badgeFloat 4s ease-in-out infinite alternate-reverse;
}

@keyframes badgeFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-50);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1.5s both;
}

.scroll-arrow {
  width: 28px; height: 28px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
  width: 100%; height: 100%;
}

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

/* =============================================
   ANIMATIONS
   ============================================= */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s ease forwards;
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeInRight 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* AOS animations — only activate when AOS library is loaded & initialized */
.aos-initialized [data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.aos-initialized [data-aos].aos-animate {
  opacity: 1 !important;
  transform: none !important;
}

/* Without AOS (e.g. index.html) — elements are always visible */
[data-aos] {
  opacity: 1;
  transform: none;
}

.aos-initialized [data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
.aos-initialized [data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
.aos-initialized [data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
.aos-initialized [data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }
.aos-initialized [data-aos][data-aos-delay="500"] { transition-delay: 0.5s; }

/* =============================================
   TRUST SECTION
   ============================================= */
.trust-section {
  padding: var(--section-pad);
  background: var(--black-soft);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.trust-card {
  background: linear-gradient(145deg, #111 0%, #0d0d0d 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.4s;
}

.trust-card:nth-child(1)::before { background: linear-gradient(90deg, #FFD700, #FF8C00); }
.trust-card:nth-child(2)::before { background: linear-gradient(90deg, #00ff80, #00e0ff); }
.trust-card:nth-child(3)::before { background: linear-gradient(90deg, #A78BFA, #6366F1); }
.trust-card:nth-child(4)::before { background: linear-gradient(90deg, #F97316, #EF4444); }
.trust-card:nth-child(5)::before { background: linear-gradient(90deg, #EC4899, #F43F5E); }
.trust-card:nth-child(6)::before { background: linear-gradient(90deg, #22D3EE, #3B82F6); }

.trust-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

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

.trust-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.trust-icon svg { width: 26px; height: 26px; }

.trust-card:nth-child(1) .trust-icon { background: rgba(255,215,0,0.1); color: #FFD700; border: 1px solid rgba(255,215,0,0.2); }
.trust-card:nth-child(2) .trust-icon { background: rgba(0,255,128,0.08); color: #00ff80; border: 1px solid rgba(0,255,128,0.2); }
.trust-card:nth-child(3) .trust-icon { background: rgba(167,139,250,0.1); color: #A78BFA; border: 1px solid rgba(167,139,250,0.2); }
.trust-card:nth-child(4) .trust-icon { background: rgba(249,115,22,0.1); color: #F97316; border: 1px solid rgba(249,115,22,0.2); }
.trust-card:nth-child(5) .trust-icon { background: rgba(236,72,153,0.1); color: #EC4899; border: 1px solid rgba(236,72,153,0.2); }
.trust-card:nth-child(6) .trust-icon { background: rgba(34,211,238,0.1); color: #22D3EE; border: 1px solid rgba(34,211,238,0.2); }

.trust-icon-gold {
  /* kept for backward compat, overridden by nth-child */
  background: rgba(255,215,0,0.1);
  color: #FFD700;
  border: 1px solid rgba(255,215,0,0.2);
}

.trust-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.trust-desc {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* =============================================
   CATALOG SECTION
   ============================================= */
.catalog-section {
  padding: var(--section-pad);
  background: var(--black);
}

.catalog-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.catalog-tabs::-webkit-scrollbar {
  display: none;
}

/* ─── COLOR DOTS ────────────────────────────────────────────── */
.color-dots-wrapper {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  align-items: center;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-dot:hover {
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.color-dot.selected {
  transform: scale(1.3);
  border: 2px solid var(--gold) !important;
  box-shadow: 0 0 12px var(--gold);
}

.product-card .color-dots-wrapper {
  justify-content: flex-start;
  padding: 0 1.2rem;
  margin-top: -0.5rem;
  margin-bottom: 0.8rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  background: var(--black-card);
  border: 1.5px solid var(--black-border);
  border-radius: var(--radius-full);
  color: var(--white-70);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn svg {
  width: 16px; height: 16px;
}

.tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: var(--accent);
  color: var(--black);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Product Card */
.product-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Search Bar */
.catalog-search-wrap {
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-group svg {
  position: absolute;
  left: 1.25rem;
  width: 18px;
  height: 18px;
  color: var(--white-40);
  pointer-events: none;
}

.search-input-group input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.25rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.search-input-group input:focus {
  outline: none;
  border-color: var(--white-40);
  background: #161616;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

/* Condition Filters */
.condition-filters {
  display: none; /* Hidden by default, shown via JS for iPhones */
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.cond-btn {
  padding: 0.5rem 1.1rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-full);
  color: var(--white-50);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cond-btn:hover {
  border-color: var(--white-20);
  color: var(--white);
  transform: translateY(-1px);
}

.cond-btn.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  box-shadow: 0 8px 15px rgba(255, 255, 255, 0.1);
}

.search-input-group input::placeholder {
  color: var(--white-30);
}

.product-image-wrap {
  position: relative;
  background: linear-gradient(180deg, #161616 0%, #0f0f0f 100%);
  aspect-ratio: 3/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-emoji {
  font-size: 5rem;
  transition: transform 0.4s ease;
}

.product-card:hover .product-emoji {
  transform: scale(1.1) rotate(-3deg);
}

.product-card:hover .product-real-img {
  transform: scale(1.08); /* Efecto zoom suave en imágenes reales */
}

.product-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--black);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.product-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-category {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--white-50);
  line-height: 1.5;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 0.5rem;
}

.product-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white-50);
}

.product-cta {
  margin-top: auto;
  padding: 0 1.25rem 1.25rem;
}

.product-btn {
  width: 100%;
  padding: 0.7rem;
  background: var(--green-wa);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
}

.product-btn svg {
  width: 15px; height: 15px;
}

.product-btn:hover {
  background: var(--green-wa-dark);
  transform: translateY(-1px);
}

/* =============================================
   TRADE-IN SECTION
   ============================================= */
.tradein-section {
  padding: var(--section-pad);
  background: var(--black-soft);
  position: relative;
  overflow: hidden;
}

.tradein-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.tradein-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tradein-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 1rem;
}

.tradein-desc {
  font-size: 1rem;
  color: var(--white-70);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.tradein-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.tradein-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--white-70);
  line-height: 1.5;
}

/* Trade-In Visual */
.tradein-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.tradein-phones {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.phone-mini {
  width: 110px;
  background: var(--black-card);
  border: 1.5px solid var(--black-border);
  border-radius: 20px;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: var(--transition);
}

.phone-mini-new {
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, var(--black-card) 100%);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.phone-mini-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.phone-mini-icon {
  font-size: 2rem;
}

.phone-mini-label {
  font-size: 0.65rem;
  color: var(--white-70);
  font-weight: 600;
}

.phone-mini-badge {
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.phone-mini-badge.old {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-70);
}

.phone-mini-badge.new {
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.exchange-arrow {
  width: 40px; height: 40px;
  flex-shrink: 0;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

.tradein-saving {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  width: 100%;
  max-width: 280px;
}

.saving-icon {
  font-size: 2rem;
}

.saving-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.saving-label {
  font-size: 0.7rem;
  color: var(--white-50);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.saving-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.saving-sub {
  font-size: 0.72rem;
  color: var(--white-70);
}

/* =============================================
   SERVICE SECTION
   ============================================= */
.service-section {
  padding: var(--section-pad);
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.service-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,255,128,0.03), transparent 70%);
  pointer-events: none;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.service-card {
  background: linear-gradient(145deg, #111 0%, #0d0d0d 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:nth-child(1)::after { background: linear-gradient(90deg, transparent, #00ff80, transparent); }
.service-card:nth-child(2)::after { background: linear-gradient(90deg, transparent, #22D3EE, transparent); }
.service-card:nth-child(3)::after { background: linear-gradient(90deg, transparent, #F97316, transparent); }
.service-card:nth-child(4)::after { background: linear-gradient(90deg, transparent, #A78BFA, transparent); }

.service-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  min-width: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg { width: 24px; height: 24px; }

.service-card:nth-child(1) .service-icon { background: rgba(0,255,128,0.08); color: #00ff80; border: 1px solid rgba(0,255,128,0.2); }
.service-card:nth-child(2) .service-icon { background: rgba(34,211,238,0.08); color: #22D3EE; border: 1px solid rgba(34,211,238,0.2); }
.service-card:nth-child(3) .service-icon { background: rgba(249,115,22,0.08); color: #F97316; border: 1px solid rgba(249,115,22,0.2); }
.service-card:nth-child(4) .service-icon { background: rgba(167,139,250,0.08); color: #A78BFA; border: 1px solid rgba(167,139,250,0.2); }

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.service-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

.service-cta {
  text-align: center;
}

/* =============================================
   TESTIMONIALS SECTION — CAROUSEL
   ============================================= */
.testimonials-section {
  padding: var(--section-pad);
  background: var(--black-soft);
}

/* Carousel Layout */
.testimonials-carousel {
  margin-bottom: 3rem;
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
  /* Fade edges for infinite feel */
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  padding: 0.5rem 0 1rem;
  /* transition injected dynamically by JS */
}

/* Each slide inside the track */
.carousel-slide {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
  cursor: grab;
  user-select: none;
}

.carousel-slide:active {
  cursor: grabbing;
}

/* Card inside slide */
.testimonial-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  height: 100%;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.carousel-slide:hover .testimonial-card {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 50px rgba(0,0,0,0.4), 0 0 20px rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
}

/* Stars */
.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 16px; height: 16px;
  color: var(--accent);
  fill: var(--accent);
}

/* Text & Author */
.testimonial-text {
  font-size: 0.9rem;
  color: var(--white-70);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.author-location {
  font-size: 0.75rem;
  color: var(--white-50);
}

.author-verified {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.15rem;
}

.author-verified svg {
  width: 12px; height: 12px;
}

/* --- Carousel Controls --- */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--black-card);
  border: 1.5px solid var(--black-border);
  color: var(--white-70);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.carousel-btn svg {
  width: 20px; height: 20px;
}

.carousel-btn:hover {
  background: var(--accent-muted);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--accent);
  transform: scale(1.05);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* Dots */
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.carousel-dot:hover:not(.active) {
  background: var(--white-50);
}

/* Instagram CTA */
.instagram-cta {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.15), rgba(253, 29, 29, 0.1), rgba(252, 176, 69, 0.15));
  border: 1px solid rgba(131, 58, 180, 0.3);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.instagram-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  flex-wrap: wrap;
}

.instagram-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.instagram-icon svg {
  width: 28px; height: 28px;
}

.instagram-text {
  flex: 1;
}

.instagram-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.instagram-text p {
  font-size: 0.88rem;
  color: var(--white-70);
}

/* =============================================
   LOCATION SECTION
   ============================================= */
.location-section {
  padding: var(--section-pad);
  background: var(--black);
}

.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}

.location-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.location-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  background: var(--accent-muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.location-icon svg {
  width: 20px; height: 20px;
}

.location-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.location-card p {
  font-size: 0.88rem;
  color: var(--white-70);
  line-height: 1.5;
}

.location-card a {
  font-size: 0.88rem;
  color: var(--white-70);
}

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

.service-area {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.service-area-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.service-area-title svg {
  width: 18px; height: 18px;
}

.service-area p {
  font-size: 0.85rem;
  color: var(--white-70);
  line-height: 1.6;
}

.service-area strong {
  color: var(--white);
}

.location-map {
  position: relative;
}

.map-container {
  width: 100%;
  height: 460px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--black-border);
  box-shadow: var(--shadow-card);
}

/* =============================================
   FINAL CTA SECTION
   ============================================= */
.final-cta {
  padding: 5rem 0;
  background: var(--black-soft);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.cta-orb-1 {
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, var(--accent), transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.cta-orb-2 {
  width: 300px; height: 200px;
  background: radial-gradient(ellipse, var(--accent-dark), transparent 70%);
  bottom: -50px; left: 50%;
  transform: translateX(-50%);
  animation: orbFloat 6s ease-in-out infinite alternate-reverse;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-muted);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--accent);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--white), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--white-70);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--white-70);
  font-weight: 500;
}

.cta-feature svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

/* =========================================
   TOP PROMO BANNER
========================================= */
.top-promo-banner {
  background: var(--gold);
  color: var(--black);
  text-align: center;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  z-index: 1000;
  animation: slideDown 0.5s ease;
  box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.top-promo-banner a {
  transition: opacity 0.2s;
}
.top-promo-banner a:hover {
  opacity: 0.8;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================================
   HEADER
========================================= */

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--black-soft);
  border-top: 1px solid var(--black-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--white-50);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px; height: 40px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-50);
  transition: var(--transition);
}

.social-link svg {
  width: 18px; height: 18px;
}

.social-link:hover {
  background: var(--accent-muted);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--accent);
}

.footer-links-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col ul li,
.footer-links-col ul li a {
  font-size: 0.85rem;
  color: var(--white-50);
  transition: var(--transition);
}

.footer-links-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--black-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--white-50);
}

.footer-sub {
  color: var(--accent) !important;
  opacity: 0.7;
}

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.whatsapp-icon {
  width: 60px; height: 60px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.whatsapp-icon svg {
  width: 32px; height: 32px;
}

.whatsapp-float:hover .whatsapp-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  bottom: 0; right: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-wa);
  opacity: 0;
  animation: waPulse 2.5s ease-out infinite;
  z-index: 1;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

.whatsapp-tooltip {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Carousel: show 2 slides on tablet */
  .carousel-slide {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .tradein-wrapper,
  .location-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    padding-top: 2rem;
  }

  .hero-badge {
    justify-content: center;
    display: inline-flex;
  }

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    width: 200px;
    height: 400px;
  }

  .badge-top { right: -30px; }
  .badge-bottom { left: -40px; }

  .hero-stats {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 3.5rem 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--black-border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-cta {
    margin: 0.5rem 0 0;
    width: 100%;
    justify-content: center;
  }

  .nav-hamburger {
    display: flex;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  /* Carousel: show 1 slide on mobile */
  .carousel-slide {
    flex: 0 0 calc(85% - 0.75rem);
  }

  .carousel-viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .carousel-controls {
    margin-top: 1.25rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .instagram-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.75rem;
  }

  .cta-features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .tradein-phones {
    gap: 1.25rem;
  }

  .location-wrapper {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 300px;
  }
}

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

  /* Carousel: full-width single slide on small phones */
  .carousel-slide {
    flex: 0 0 calc(100% - 0.75rem);
  }

  .hero-title {
    font-size: 2rem;
  }

  .phone-frame {
    width: 180px;
    height: 360px;
  }

  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .stat-divider {
    display: none;
  }

  .tradein-phones {
    flex-direction: column;
    gap: 1rem;
  }

  .exchange-arrow {
    transform: rotate(90deg);
  }

  .hero-container {
    padding-top: 1rem;
  }
}

/* =============================================
   CHECKOUT MODAL
   ============================================= */
.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.checkout-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal-content {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem 2rem;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-float);
}

.checkout-modal.active .checkout-modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--white-50);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--white);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--white-70);
  line-height: 1.5;
}

.modal-price {
  color: var(--accent);
  font-weight: 700;
}

#checkoutForm .form-group {
  margin-bottom: 1.25rem;
}

#checkoutForm label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-70);
  margin-bottom: 0.5rem;
}

#checkoutForm input,
#checkoutForm select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--black);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

#checkoutForm input:focus,
#checkoutForm select:focus {
  outline: none;
  border-color: var(--accent);
}

.payment-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--white-70);
  line-height: 1.5;
}

.payment-info strong {
  color: var(--white);
}

.payment-info ul {
  margin-top: 0.5rem;
  margin-left: 1.5rem;
}

.payment-info .small-text {
  font-size: 0.75rem;
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.modal-submit-btn {
  background: var(--white);
  color: var(--black);
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.modal-submit-btn:hover {
  background: var(--white-90);
  transform: translateY(-2px);
}

/* =============================================
   MOBILE POLISH — centrado, balance y dinámica
   ============================================= */

/* ── 768px: tablets pequeñas y móviles grandes ── */
@media (max-width: 768px) {

  /* HERO --------------------------------------------------- */
  .hero {
    padding: 5.5rem 0 2.5rem;
    min-height: auto;
  }

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

  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.4rem);
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .hero-stats {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Phone showcase ----------------------------------------- */
  .phone-showcase {
    margin: 0 auto;
  }

  .badge-top {
    top: 15px;
    right: -20px;
    font-size: 0.68rem;
    padding: 0.45rem 0.75rem;
  }

  .badge-bottom {
    bottom: 40px;
    left: -20px;
    font-size: 0.68rem;
    padding: 0.45rem 0.75rem;
  }

  /* SECTION HEADERS ---------------------------------------- */
  .section-header {
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: clamp(1.55rem, 5.5vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.93rem;
  }

  /* TRUST -------------------------------------------------- */
  .trust-card {
    padding: 1.5rem;
    text-align: center;
  }

  .trust-icon {
    margin: 0 auto 1rem;
  }

  /* CATALOG ------------------------------------------------ */
  .catalog-tabs {
    justify-content: flex-start;
    padding-bottom: 0.75rem;
  }

  .tab-btn {
    font-size: 0.82rem;
    padding: 0.55rem 1rem;
  }

  .product-body {
    padding: 1rem;
  }

  .product-cta {
    padding: 0 1rem 1rem;
  }

  /* TRADE-IN ----------------------------------------------- */
  .tradein-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tradein-steps {
    text-align: left;
    width: 100%;
    max-width: 360px;
  }

  .tradein-visual {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tradein-saving {
    max-width: 100%;
    justify-content: center;
  }

  /* SERVICE ------------------------------------------------ */
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-cta {
    padding: 0 1rem;
  }

  .service-cta .btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  /* CAROUSEL / TESTIMONIALS -------------------------------- */
  .testimonials-carousel {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }

  .carousel-controls {
    gap: 1rem;
  }

  /* INSTAGRAM CTA ------------------------------------------ */
  .instagram-text h3 {
    font-size: 1rem;
  }

  .instagram-text p {
    font-size: 0.83rem;
  }

  /* LOCATION ----------------------------------------------- */
  .location-info {
    gap: 0.75rem;
  }

  .location-card {
    padding: 1rem 1.25rem;
  }

  .location-info .btn {
    width: 100%;
    justify-content: center;
  }

  /* FINAL CTA ---------------------------------------------- */
  .cta-title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .final-cta .btn-xl {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  /* FOOTER ------------------------------------------------- */
  .footer {
    padding: 3rem 0 2rem;
  }

  .footer-brand,
  .footer-links-col {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links-col ul {
    align-items: center;
  }
}

/* ── 480px: móviles estándar (Android, iPhone SE…) ── */
@media (max-width: 480px) {

  :root {
    --section-pad: 3rem 0;
  }

  /* Container padding cómodo */
  .container {
    padding: 0 1.1rem;
  }

  /* HERO --------------------------------------------------- */
  .hero-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.85rem;
  }

  .hero-title {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 0.93rem;
  }

  .hero-stats {
    padding: 0.9rem 1rem;
    gap: 0.6rem;
    border-radius: var(--radius-md);
    align-items: center;
  }

  .hero-stat {
    align-items: center;
    text-align: center;
  }

  .stat-number {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  /* TRUST CARDS -------------------------------------------- */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .trust-card {
    padding: 1.35rem 1.25rem;
  }

  .trust-title {
    font-size: 1rem;
  }

  .trust-desc {
    font-size: 0.84rem;
  }

  /* CATALOG ------------------------------------------------ */
  .products-grid {
    gap: 1rem;
  }

  .product-image-wrap {
    aspect-ratio: 4/3;
  }

  .product-emoji {
    font-size: 4rem;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .product-price {
    font-size: 1rem;
  }

  /* TRADE-IN ----------------------------------------------- */
  .tradein-title {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
    text-align: center;
  }

  .tradein-desc {
    font-size: 0.9rem;
    text-align: center;
  }

  .step-content h4 {
    font-size: 0.9rem;
  }

  .step-content p {
    font-size: 0.82rem;
  }

  .tradein-saving {
    padding: 1rem 1.25rem;
  }

  .saving-amount {
    font-size: 1.15rem;
  }

  /* SERVICE ------------------------------------------------ */
  .service-card {
    gap: 1rem;
    padding: 1.25rem;
  }

  .service-card h3 {
    font-size: 0.95rem;
  }

  .service-card p {
    font-size: 0.82rem;
  }

  /* CAROUSEL ----------------------------------------------- */
  .carousel-slide {
    flex: 0 0 calc(100% - 1.5rem);
  }

  .testimonial-card {
    padding: 1.35rem;
  }

  .testimonial-text {
    font-size: 0.87rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  /* FINAL CTA ---------------------------------------------- */
  .cta-badge {
    font-size: 0.72rem;
    text-align: center;
  }

  .cta-subtitle {
    font-size: 0.93rem;
  }

  .cta-feature {
    font-size: 0.84rem;
  }

  /* LOCATION ----------------------------------------------- */
  .map-container {
    height: 260px;
    border-radius: var(--radius-lg);
  }

  .service-area p {
    font-size: 0.83rem;
  }

  /* FOOTER ------------------------------------------------- */
  .footer-desc {
    font-size: 0.83rem;
  }

  .footer-links-col h4 {
    font-size: 0.78rem;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }

  /* WhatsApp float ----------------------------------------- */
  .whatsapp-icon {
    width: 54px;
    height: 54px;
  }

  .whatsapp-icon svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-pulse {
    width: 54px;
    height: 54px;
  }
}

/* ── 390px: iPhone 14/15 Pro y similares ── */
@media (max-width: 390px) {

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-buttons .btn {
    font-size: 0.88rem;
    padding: 0.78rem 1.2rem;
  }

  .phone-frame {
    width: 155px;
    height: 310px;
    border-radius: 30px;
  }

  .phone-notch {
    width: 80px;
    height: 22px;
  }

  .screen-time {
    font-size: 2.2rem;
  }

  .badge-top,
  .badge-bottom {
    display: none; /* ocultar en pantallas muy pequeñas para no solapar */
  }

  .section-title {
    font-size: 1.45rem;
  }

  .trust-card {
    padding: 1.2rem 1rem;
  }

  .tradein-title {
    font-size: 1.45rem;
  }

  .step-number {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .tab-btn {
    font-size: 0.78rem;
    padding: 0.5rem 0.85rem;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  /* NUEVOS COMPONENTES (PROMO Y COLORES) ----------------- */
  .top-promo-banner {
    font-size: 0.75rem;
    padding: 0.7rem 0.5rem;
    line-height: 1.3;
  }
}

/* ── BALANCE Y CENTRADO DE MODAL CHECKOUT PARA IPHONE ── */
@media (max-width: 768px) {
  .checkout-modal-content {
    width: 95%;
    padding: 1.5rem 1.2rem;
    border-radius: 20px;
  }
  
  #catPromoSec, /* Input promo global */
  #promoCodeSec {
    padding: 1rem 0 0 0 !important;
    text-align: center;
  }
  
  #catPromoSec > div,
  #promoCodeSec > div {
    flex-direction: column;
    width: 100%;
  }

  #catPromoInput, #promoInput {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 0.8rem;
  }

  .btn-outline, button[onclick^="apply"] {
    width: 100%;
    padding: 0.8rem !important;
    margin-top: 0.5rem;
  }

  .color-dots-wrapper {
    justify-content: center !important;
    margin-bottom: 1rem !important;
    margin-top: 0.8rem !important;
  }
  
  .pd-title, .product-price, .product-name {
    text-align: center;
  }
  
  .product-category {
    text-align: center;
    display: block;
  }
}
