/* ============================================================
   Manzana Shop — Public Site Styles
   Premium Apple-inspired design system
   ============================================================ */

/* ─── DESIGN TOKENS ─── */
:root {
  --bg:           #08080a;
  --bg-2:         #161617;
  --bg-card:      #121214;
  --text:         #ffffff;
  --text-2:       #86868b;
  --text-3:       #515154;
  --green:        #0f969c; /* Brand Cyan Accent */
  --green-dim:    rgba(15, 150, 156, 0.12);
  --blue:         #0066cc;
  --white:        #ffffff;
  --border:       #1c1c1e;
  --border-2:     #0f969c;
  --red:          #ff3b30; /* Red Accent */
  --red-dim:      rgba(255, 59, 48, 0.12);
  --nav-h:        52px;
  --radius:       16px;
  --radius-sm:    10px;
  --transition:   0.3s cubic-bezier(0.16,1,0.3,1);
  /* Premium Easing Curves (Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; overflow-x: clip; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ─── LOADER ─── */
#loader-wrap {
  position: fixed;
  inset: 0;
  background: #040406;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: all;
  overflow: hidden;
}
#loader-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, rgba(0,0,0,0) 80%);
  pointer-events: none;
}
#loader-wrap.hidden {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none !important;
}
.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.loader-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 32px;
  display: block;
  opacity: 0.7;
  animation: fadeInDown 1s var(--ease-out) both;
}
.loader-logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.loader-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(0,0,0,0) 72%);
  filter: blur(15px);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: auraPulse 3.5s ease-in-out infinite;
}
.loader-svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}
.loader-bar-wrap {
  width: 240px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin: 24px auto 16px;
  overflow: hidden;
  position: relative;
  animation: fadeInUp 1s var(--ease-out) 0.3s both;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 10px;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.loader-title-clean {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 18px;
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  animation: fadeInUp 1s var(--ease-out) 0.4s both;
}

@keyframes auraPulse {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.35; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.65; filter: blur(18px); }
  100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.35; }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 0.7; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── NAV ─── */
#apple-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;
  height: var(--nav-h);
  border-radius: 40px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: relative;
}
.nav-logo {
  display: flex !important;
  align-items: center;
  color: #1d1d1f;
  text-decoration: none;
  transition: opacity var(--transition);
  z-index: 10;
}
.nav-logo:hover {
  opacity: 0.88;
}
.nav-brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
}
.nav-brand-img {
  height: 56px;
  min-height: 40px;
  width: auto;
  border-radius: 0;
  object-fit: contain;
  border: none;
  display: block !important;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-logo:hover .nav-brand-img {
  transform: scale(1.05);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6e6e73;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
}
.nav-link:hover { color: #1d1d1f; }
.nav-link:active { transform: scale(0.96); }
.nav-link.active {
  color: var(--green);
  font-weight: 600;
}
.nav-link.highlighted {
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
  font-weight: 600;
  padding: 6px 16px;
}
#apple-nav.scrolled .nav-link.highlighted {
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
}
.nav-link.highlighted:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #000;
}
#apple-nav.scrolled .nav-link.highlighted:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #000;
}
.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  z-index: 10;
}
.nav-social a {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  color: #6e6e73 !important;
  opacity: 0.9;
}

.nav-social a:hover { 
  transform: scale(1.1);
  opacity: 1;
  color: var(--green) !important;
}
.nav-social a:active {
  transform: scale(0.96);
}

/* ─── MOBILE NAV ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1d1d1f;
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  padding: 20px 24px 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 499;
  flex-direction: column;
  gap: 4px;
  animation: slideDown 0.25s ease;
}
.nav-mobile-menu.open { display: flex; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile-link {
  font-size: 1rem;
  font-weight: 500;
  color: #1d1d1f;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: color var(--transition);
}
.nav-mobile-link:hover { color: var(--green); }
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link.highlighted {
  color: var(--green);
  font-weight: 700;
}

/* ─── PAGES ─── */
#app-content { padding-top: var(--nav-h); }
.web-page { display: none; }
.web-page.active { display: block; }

/* ─── TRADE-IN BANNER ─── */
.tradein-banner {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--text-2);
}
.tradein-banner a {
  color: var(--blue);
  font-weight: 600;
  transition: color var(--transition);
}
.tradein-banner a:hover { color: var(--text); }

/* ─── SUBNAV ─── */
.apple-subnav-section {
  border-bottom: 1px solid #e5e5e7;
  background: #ffffff;
  padding: 12px 24px;
  overflow: visible; /* Allow horizontal scroll inside subnav-list */
  position: relative;
}
.apple-subnav-section::-webkit-scrollbar { display: none; }
.subnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 0 0 0;
}
.subnav-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: #1d1d1f;
  margin-bottom: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.subnav-scroll-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  /* Swipe hint: fade on right edge to signal more content */
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
  mask-image: linear-gradient(to right, black 80%, transparent 100%);
}
.subnav-list {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none; /* hide scrollbar on desktop too */
  width: 100%;
  padding-bottom: 4px;
  touch-action: pan-x; /* allow horizontal swipe on mobile */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  flex: 1;
}
.subnav-list::-webkit-scrollbar { display: none; }
/* Arrow buttons for subnav */
.scroll-arrow {
  display: none; /* hidden by default, shown on mobile */
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e5;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #1d1d1f;
  transition: background 0.18s, box-shadow 0.18s;
  z-index: 2;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.scroll-arrow:active {
  background: #f0f0f5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
@media (max-width: 768px) {
  .scroll-arrow { display: flex; }
}
/* Catalog arrows: dark variant to match black pill */
.catalog-arrow {
  background: #1a1a1e;
  border-color: #333;
  color: #fff;
}
.catalog-arrow:active {
  background: #2a2a2e;
}
.subnav-list::-webkit-scrollbar {
  height: 5px;
}
.subnav-list::-webkit-scrollbar-track {
  background: transparent;
}
.subnav-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}
.subnav-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}
.subnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 12px 10px;
  border-radius: 14px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition);
  flex-shrink: 0;
  text-align: center;
  position: relative;
}
.subnav-item:hover {
  background: rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
}
.subnav-item::after {
  display: none;
}
.subnav-img-wrap {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: #ffffff;
  border-radius: 12px;
  border: none;
  transition: all var(--transition);
}
.subnav-item:hover .subnav-img-wrap {
  background: transparent;
  border-color: transparent;
}
.subnav-icon {
  height: 64px;
  width: auto;
  max-width: 74px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
  /* Fallback to blend white backgrounds of iPad, AirPods, and Accesorios with the white page background */
  mix-blend-mode: multiply;
}
.subnav-item:hover .subnav-icon {
  animation: subnavFloat 1.8s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(15, 150, 156, 0.25));
}
@keyframes subnavFloat {
  0%   { transform: scale(1.1) translateY(0); }
  50%  { transform: scale(1.1) translateY(-6px); }
  100% { transform: scale(1.1) translateY(0); }
}
.subnav-emoji-wrap {
  font-size: 1.8rem;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subnav-ios-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 12px;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 10px rgba(15, 150, 156, 0.2);
  transition: all var(--transition);
}
.subnav-item:hover .subnav-ios-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(15, 150, 156, 0.3);
}
.subnav-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: #6e6e73;
  white-space: nowrap;
  line-height: 1.3;
  margin-top: 4px;
  transition: color var(--transition);
}
.subnav-item:hover .subnav-label {
  color: var(--green);
}
.subnav-badge-new {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--green);
  text-align: center;
  margin-top: 2px;
  display: block;
  background: rgba(15, 150, 156, 0.15);
  padding: 1px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── iPHONE 17 PRO MAX FEATURE SECTION ─── */
.iphone17-feature-section {
  position: relative;
  background: linear-gradient(135deg, #0a0a0f 0%, #12121a 40%, #1a0d08 70%, #0d0a00 100%);
  overflow: hidden;
  padding: 100px 40px;
}
.iphone17-glow-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(255, 94, 0, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 20% 30%, rgba(255, 140, 0, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(15, 150, 156, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.iphone17-feature-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}
.iphone17-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ff6b35;
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 20px;
}
.iphone17-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -2px;
  line-height: 1;
  color: #f5f5f7;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 40px rgba(255, 94, 0, 0.15));
}
.iphone17-title-accent {
  background: linear-gradient(90deg, #ff6b35 0%, #ffb347 50%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.iphone17-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin-bottom: 36px;
}
.iphone17-specs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}
.iphone17-spec-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.3s ease;
}
.iphone17-spec-pill:hover {
  background: rgba(255, 107, 53, 0.08);
  border-color: rgba(255, 107, 53, 0.25);
  transform: translateY(-2px);
}
.iphone17-spec-icon { font-size: 1.3rem; flex-shrink: 0; }
.iphone17-spec-pill strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f5f5f7;
  line-height: 1.2;
}
.iphone17-spec-pill small {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
}
.iphone17-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #ff6b35, #ff8c00);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}
.iphone17-cta:hover {
  background: linear-gradient(90deg, #ff8c00, #ffb347);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.5);
  color: #fff;
}
.iphone17-img-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iphone17-img-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite;
}
.iphone17-phone-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(255, 107, 53, 0.12));
  animation: heroFloat 7s ease-in-out infinite;
  will-change: transform;
}

@media (max-width: 1024px) {
  .iphone17-feature-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .iphone17-desc { max-width: 100%; }
  .iphone17-img-side { order: -1; }
  .iphone17-specs-row { max-width: 480px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) {
  .iphone17-feature-section { padding: 60px 20px; }
  .iphone17-specs-row { grid-template-columns: 1fr; max-width: 300px; }
}

/* ─── SCROLL CANVAS SECTIONS ─── */
.canvas-intro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-h) - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  perspective: 1200px;
}
.canvas-intro-content {
  text-align: center;
  z-index: 5;
  will-change: transform;
}
.canvas-intro-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -2px;
  background: linear-gradient(to bottom, #111111 30%, #555555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  /* El transform inicial se manejará desde JS para efectos más locos */
}
.canvas-intro-desc {
  font-size: 1.2rem;
  color: #333333;
  margin-top: 10px;
  font-weight: 500;
  opacity: 0;
}

/* ─── HERO PARALLAX SHOWCASE ─── */
.hero-parallax-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(134, 134, 139, 0.12) 0%, transparent 70%);
  margin-left: -30vw;
  margin-top: -30vw;
  pointer-events: none;
  z-index: 2;
  filter: blur(40px);
  will-change: transform;
}

.hero-floating-phone {
  position: absolute;
  height: 65vh;
  max-height: 520px;
  pointer-events: none;
  z-index: 4;
  will-change: transform;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.12));
  opacity: 0;
}

.hero-floating-phone img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.hero-phone-left {
  left: 12%;
  top: 18%;
  transform-style: preserve-3d;
}

.hero-phone-right {
  right: 10%;
  top: 15%;
  transform-style: preserve-3d;
}

/* Responsividad para móviles y tabletas */
@media (max-width: 991px) {
  .hero-floating-phone {
    height: 40vh;
    max-height: 300px;
  }
  .hero-phone-left {
    left: 4%;
    top: 52%;
  }
  .hero-phone-right {
    right: 4%;
    top: 48%;
  }
}

@media (max-width: 768px) {
  .hero-floating-phone {
    display: block;
    height: 18vh;
    max-height: 140px;
    z-index: 2; /* Para que destaquen si hace falta */
    bottom: 16%;
    top: auto;
  }
  .hero-phone-left {
    left: 4%;
  }
  .hero-phone-right {
    right: 4%;
  }
}
.canvas-scroll-indicator {
  position: absolute;
  top: 35px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.3px;
  opacity: 0;
  z-index: 15;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: pulsePillGlow 2.5s infinite ease-in-out;
}

.scroll-pill-icon {
  width: 14px;
  height: 22px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  position: relative;
  display: inline-block;
}

.scroll-pill-dot {
  width: 3px;
  height: 5px;
  background: #ffffff;
  border-radius: 1.5px;
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollPillWheel 1.5s infinite ease-in-out;
}

@keyframes scrollPillWheel {
  0% { top: 3px; opacity: 1; }
  60% { top: 11px; opacity: 0.2; }
  100% { top: 3px; opacity: 1; }
}

@keyframes pulsePillGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 0px rgba(255, 255, 255, 0.15); }
  50% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(255, 255, 255, 0); }
}


#canvas-scroll-section {
  position: relative;
  width: 100%;
  --mouse-x: 0;
  --mouse-y: 0;
}
.canvas-wrap {
  position: sticky;
  top: var(--nav-h);
  width: 100%;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
#scroll-canvas, #scroll-video {
  position: absolute;
  top: -3%;
  left: -4%;
  width: 108%;
  height: 118%;
  object-fit: cover;
  will-change: transform, opacity;
  transform-origin: center bottom;
}
#scroll-container {
  position: relative;
  height: 480vh;
  margin-top: -100vh;
}

/* ─────────────────────────────────────────────────────────
   GSAP INTERACTIVE TEXTS FOR CANVAS
   ───────────────────────────────────────────────────────── */
.scroll-feat {
  position: absolute;
  opacity: 0;
  z-index: 20;
  pointer-events: none;
  max-width: 340px;
  text-shadow: 0 4px 20px rgba(255,255,255,0.7); /* Para asegurar contraste en cualquier fondo */
}
.scroll-feat h3 { 
  font-size: 2.5rem; 
  font-weight: 900; 
  margin-bottom: 0.5rem; 
  letter-spacing: -0.04em; 
  color: #000 !important; 
}
.scroll-feat p { 
  font-size: 1.3rem; 
  font-weight: 700; 
  opacity: 1; 
  color: #000 !important; 
  line-height: 1.4;
}

.sf-1 { top: 25%; left: 10%; transform: translateX(-50px); }
.sf-2 { top: 45%; right: 10%; text-align: right; transform: translateX(50px); }
.sf-3 { top: 65%; left: 10%; transform: translateX(-50px); }

@media (max-width: 768px) {
  #scroll-canvas, #scroll-video {
    top: -6% !important;
    height: 112% !important;
  }
  .scroll-feat {
    left: 8% !important;
    right: 8% !important;
    width: auto !important;
    max-width: 84% !important;
    text-align: center !important;
    transform: none;
    text-shadow: 0 2px 12px rgba(255,255,255,0.95);
  }
  .scroll-feat h3 {
    font-size: 1.8rem;
    font-weight: 900;
  }
  .scroll-feat p {
    font-size: 1.1rem;
    font-weight: 800; /* Mas gordito */
  }
  .sf-1, .sf-2, .sf-3 {
    top: auto !important;
    bottom: 5% !important;
  }
}

.scroll-dark-overlay {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  background: #000000; /* Fondo negro sólido para fundirse en oscuridad total */
  pointer-events: none;
  z-index: 1;
}
.marquee-scroll-wrap {
  position: sticky;
  top: 45%;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

.scroll-section .section-title {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.scroll-section .section-desc {
  color: #a1a1aa !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.scroll-section .section-tag {
  color: #0f969c !important; /* Verde neón brillante */
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.scroll-section .stat-num {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.scroll-section .stat-lbl {
  color: #71717a !important;
}
.marquee-scroll-text {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 10vw;
  color: rgba(255,255,255,0.04);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@keyframes marqueeMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.scroll-section {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.scroll-section.visible {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
.scroll-section.align-left {
  padding-left: 5vw;
  padding-right: 55vw;
  align-items: flex-start;
  text-align: left;
}
.scroll-section.align-right {
  padding-left: 55vw;
  padding-right: 5vw;
  align-items: flex-start;
  text-align: left;
}
.scroll-section.align-center {
  padding-left: 10vw;
  padding-right: 10vw;
  align-items: center;
  text-align: center;
}
.section-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 4.5rem);
  letter-spacing: -2px;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 16px;
}
.section-desc {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 440px;
}
.align-right .section-desc { margin-left: auto; }
.align-center .section-desc { margin: 0 auto; }
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.stat-box { text-align: center; }
.stat-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--text);
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-top: 4px;
  display: block;
}
.quote-cta-btn {
  display: inline-block;
  background: var(--green);
  color: #000;
  padding: 16px 36px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 24px;
  transition: all var(--transition);
  cursor: pointer;
}
.quote-cta-btn:hover {
  background: #0c7075;
  box-shadow: 0 8px 30px rgba(15, 150, 156,0.4);
  transform: translateY(-2px);
}


/* ─── NUEVAS SECCIONES APPLE-STYLE ─── */

/* ══════════════════════════════════════════════════
   APPLE DUAL PANEL  (Sección familia iPhones)
   ══════════════════════════════════════════════════ */
.apple-dual-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 75vh; /* Shortened vertically */
  position: relative;
}

/* Individual panels */
.adp-panel {
  display: flex;
  flex-direction: column-reverse; /* Put media at the top, text at the bottom */
  justify-content: center; /* Center content vertically */
  align-items: center;
  overflow: visible; /* must be visible so 3D rotateY doesn't get clipped */
  position: relative;
  padding: 40px 24px 30px; /* Shorter padding from top and bottom */
  text-align: center;
  min-height: 75vh; /* Shortened vertically */
  will-change: transform;
}

.adp-panel--dark  { background: #000000; }
.adp-panel--light { background: #f5f5f7; }

/* Thin separator between panels */
.adp-panel--left::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}

/* ── Media (floats in upper area) ── */
.adp-media {
  position: relative; /* Relative position so it doesn't overlap text flow */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Padding cleared */
  margin-bottom: 18px; /* Shortened: letters are now right below the iPhones */
  width: 100%;
  pointer-events: none;
}

.adp-img {
  max-width: 88%;
  max-height: 55vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.22));
  transition: filter 0.6s ease;
  will-change: transform;
  transform-style: preserve-3d;
}

.adp-panel--light .adp-img {
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.14));
}

/* GSAP handles hover 3D tilt — removing CSS hover overrides that would conflict */

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

/* ── Text content at bottom ── */
.adp-content {
  position: relative;
  z-index: 2;
  max-width: 380px;
  padding: 0 32px;
}

.adp-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.adp-eyebrow--accent {
  color: var(--green);
}

.adp-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -2.5px;
  color: #ffffff;
  margin: 0 0 18px;
}

.adp-title--dark {
  color: #1d1d1f;
}

.adp-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
  font-weight: 400;
}

.adp-desc--dark {
  color: #6e6e73;
}

.adp-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  transition: gap 0.25s ease, opacity 0.25s ease;
  letter-spacing: 0.1px;
}

.adp-cta--dark {
  color: var(--green);
}

.adp-cta:hover {
  gap: 8px;
  opacity: 0.8;
}

/* ── Scroll-entrance animation ── */
/* Animaciones manejadas enteramente por GSAP en app.js */

/* ── Responsive ── */
@media (max-width: 900px) {
  .apple-dual-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .adp-panel {
    min-height: 65vh; /* Shortened vertically for mobile */
    padding: 30px 24px 30px;
    justify-content: center;
  }
  .adp-panel--left::after { display: none; }
  .adp-media { padding: 0; margin-bottom: 15px; }
  .adp-img { max-height: 38vh; }
}

@media (max-width: 480px) {
  .adp-panel { min-height: 60vh; padding: 24px 16px 24px; }
  .adp-title { font-size: 2.2rem; letter-spacing: -1.5px; }
  .adp-img { max-height: 32vh; }
  .adp-media { margin-bottom: 12px; }
  .adp-content { padding: 0 20px; }
}





/* ══════════════════════════════════════════════════
   IPHONE 13 — STACKING CARDS
   ══════════════════════════════════════════════════ */
.i13-stack-section {
  padding: 100px 20px 80px; /* Smooth bottom padding for the pinned transition space */
  background: #fbfbfd;
  position: relative;
  z-index: 1;
  text-align: center;
}
.i13-header {
  max-width: 600px;
  margin: 0 auto 60px;
}
.i13-super {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.i13-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

/* Stacking Container */
.i13-stack-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  height: 100%;
  display: flow-root; /* Establishes BFC to prevent margin collapsing */
}

/* Stacking Cards */
.i13-stack-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-radius: 40px;
  padding: 80px 60px;
  min-height: 500px;
  position: sticky;
  top: 15vh;
  box-shadow: 0 40px 80px rgba(0,0,0,0.06);
  overflow: visible; /* Allow 3D transforms to extend beyond card bounds */
  clip-path: none;
  margin-bottom: 40vh;
  transform-origin: top center;
}
.i13-stack-card:last-child {
  margin-bottom: 0;
}

.i13-stack-card--light {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.04);
  color: #000000;
  margin-bottom: 45vh; /* Standard scroll space for sticky stacking */
  z-index: 1;
}
.i13-stack-card--dark {
  background: #000000;
  color: #ffffff;
  margin-bottom: 0 !important; /* Spacing handled by ScrollTrigger pin */
  z-index: 2;
}

.i13-stack-content {
  flex: 1;
  max-width: 420px;
  text-align: left;
  z-index: 2;
}

.i13-stack-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.i13-stack-desc {
  font-size: 1.25rem;
  opacity: 0.8;
  margin-bottom: 30px;
  line-height: 1.4;
}

.i13-specs-list {
  list-style: none;
  padding: 0;
}
.i13-specs-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.i13-stack-cta {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 16px 36px;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
}
.i13-stack-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.i13-stack-cta--white {
  background: #fff;
  color: #000;
}
.i13-stack-cta--white:hover {
  box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

.i13-stack-media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
}
.i13-stack-img {
  max-width: 108%;
  max-height: 490px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: visible;
}
.i13-stack-card--light .i13-stack-img {
  max-width: 118%; /* Enlarge white card image even more as requested */
  max-height: 520px;
}
@media (max-width: 768px) {
  .i13-stack-card {
    flex-direction: column-reverse; /* Imagen arriba, texto abajo */
    padding: 32px 20px;
    gap: 24px;
    min-height: auto;
    margin-bottom: 30vh;
  }
  .i13-stack-content {
    text-align: center;
    width: 100%;
    padding-right: 0;
  }
  .i13-specs-list {
    display: inline-block;
    text-align: left;
  }
  .i13-stack-media {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .i13-stack-img {
    max-height: 280px; /* Imagen mucho más grande y visible en móvil */
    width: auto;
    object-fit: contain;
  }
  .i13-stack-card--light .i13-stack-img {
    max-height: 310px; /* Enlarge white card image on mobile as well */
  }
  .i13-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .i13-vs-col {
    display: none;
  }
}

/* ── Footer ── */
.i13-footer {
  text-align: center;
}
.i13-footer-text {
  font-size: 0.9rem;
  color: #6e6e73;
  margin-bottom: 16px;
}
.i13-footer-text strong { color: #1d1d1f; }
.i13-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  transition: gap 0.25s ease;
}
.i13-footer-cta:hover { gap: 8px; }

/* ── Scroll-entrance ── */
.js-i13-fade {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1),
              transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.js-i13-fade:nth-child(2) { transition-delay: 0.1s; }
.js-i13-fade:nth-child(3) { transition-delay: 0.2s; }
.js-i13-fade:nth-child(4) { transition-delay: 0.3s; }
.js-i13-fade.i13-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .i13-cards-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 24px 0;
    max-width: 480px;
  }
  .i13-vs-col {
    flex-direction: row;
    padding: 0 20px;
    gap: 12px;
  }
  .i13-vs-line {
    flex: 1;
    height: 2px;
    width: auto;
    min-height: unset;
    background: linear-gradient(to right, transparent, rgba(15,150,156,0.25), transparent);
  }
  .i13-card-img-wrap { min-height: 200px; }
}
@media (max-width: 480px) {
  .i13-showcase { padding: 64px 20px 60px; }
  .i13-title { letter-spacing: -1.5px; }
  .i13-card-body { padding: 20px 20px 24px; }
}


/* ══════════════════════════════════════════════════
   AirPods CLEAN BANNER REDESIGN
   ══════════════════════════════════════════════════ */
.airpods-section-wrapper {
  background: #000000;
  position: relative;
  z-index: 10;
  padding: 0px 24px 0px; /* Padding para integrar al scroll natural */
}

.airpods-banner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 65vh;
  min-height: 450px;
  background: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.airpods-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.05);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.airpods-banner:hover .airpods-banner-img {
  transform: scale(1.08); /* Sutil zoom de la imagen al hover */
}

/* Text — center, huge cinematic typography */
.airpods-banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  opacity: 0;
  margin-top: 0; /* Centrado perfecto */
}

.airpods-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -2px;
  color: #ffffff;
  margin: 0 0 24px;
  text-shadow: 0 10px 45px rgba(0,0,0,0.85);
}

.airpods-cta {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #000000;
  padding: 16px 40px;
  border-radius: 40px;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.airpods-cta:hover {
  transform: scale(1.05);
  background: #f0f0f0;
}

/* Responsive */
@media (max-width: 900px) {
  .airpods-section-wrapper {
    padding: 0px 16px 0px;
  }
  .airpods-banner {
    height: 55vh;
    border-radius: 20px;
  }
  .airpods-title {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
  }
}

@media (max-width: 600px) {
  .airpods-section-wrapper {
    padding: 0px 12px 0px;
  }
  .airpods-banner {
    height: auto;
    aspect-ratio: 2752 / 1536; /* Relación de aspecto nativa de la imagen para evitar cortes */
    min-height: auto;
    border-radius: 16px;
  }
  .airpods-banner-img {
    object-fit: cover;
  }
  .airpods-banner-text {
    width: 90%;
  }
  .airpods-title { 
    font-size: clamp(1.4rem, 5.5vw, 1.8rem); 
    letter-spacing: -1px; 
    margin-bottom: 12px;
  }
  .airpods-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}




/* ══════════════════════════════════════════════════
   SECCIÓN 4: FUNDAS Y ACCESORIOS (Sticky Sidebar)
   ══════════════════════════════════════════════════ */
.cases-section {
  width: 100%;
  background: #f5f5f7;
  padding: 100px 24px;
}

.cases-sticky-container {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 0 auto;
  gap: 80px;
  align-items: flex-start;
}

/* ── Left Sidebar (Sticky) ── */
.cases-sidebar {
  flex: 0 0 35%;
  position: sticky;
  top: 15vh; /* Se pega al scrollear */
  text-align: left;
}
.cases-super {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cases-super::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--green);
  border-radius: 2px;
}
.cases-main-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -2px;
  color: #1d1d1f;
  margin-bottom: 28px;
}
.cases-main-accent {
  color: var(--green);
  display: block;
  font-style: italic;
  letter-spacing: -2.5px;
}
.cases-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: #6e6e73;
  max-width: 88%;
  font-weight: 400;
}

/* ── Right Content (Scrollable Cards) ── */
.cases-scroll-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Base Card */
.cases-card {
  border-radius: 32px;
  overflow: visible; /* Let 3D elements pop out */
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform-style: preserve-3d;
  perspective: 1000px; /* Perspective context for child layers */
  transition: box-shadow 0.5s var(--ease-out);
}

.cases-card--dark {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.cases-card--light {
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

/* GSAP handles hover 3D tilt for cases-card */
.cases-card--dark:hover { box-shadow: 0 30px 80px rgba(0,0,0,0.3); }
.cases-card--light:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.1); }

/* Images */
.cases-card-img-wrap {
  padding: 40px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px; /* Increased size from 320px */
  transform-style: preserve-3d;
  perspective: 1000px;
}
.cases-phone-img {
  max-width: 95%; /* Increased from 80% */
  max-height: 390px; /* Increased from 280px */
  object-fit: contain;
  transform: translateZ(30px); /* Stand out from card background */
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}
.cases-card:hover .cases-phone-img {
  transform: scale(1.04) translateY(-4px) translateZ(55px); /* Pop out even more on hover */
}

/* Card Body */
.cases-card-body {
  padding: 32px 32px 40px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cases-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.cases-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.65;
  margin-bottom: 32px;
  font-weight: 400;
  max-width: 94%;
}

.cases-card-footer {
  margin-top: auto;
}

/* CTAs */
.cases-cta {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.cases-cta--dark {
  background: #ffffff;
  color: #000000;
}
.cases-cta--dark:hover {
  background: #e5e5e5;
}

.cases-cta--light {
  background: #1d1d1f;
  color: #ffffff;
}
.cases-cta--light:hover {
  background: #3a3a3c;
}

/* Animaciones de entrada (GSAP handles these, no CSS transition conflict) */
.js-case-fade {
  will-change: transform, opacity;
}

/* Responsive */
@media (max-width: 900px) {
  .cases-section {
    padding: 64px 16px;
  }
  .cases-sticky-container {
    flex-direction: column;
    gap: 40px;
  }
  .cases-sidebar {
    position: static; /* Quitar sticky en móvil */
    text-align: center;
  }
  .cases-desc {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Premium Component Feedback (Emil Kowalski) */
[class*="-cta"]:active,
.btn:active,
.quote-cta-btn:active {
  transform: scale(0.97) !important;
  transition: transform 160ms var(--ease-out) !important;
}

/* ═══════════════════════════════════════════════════════════════
   CATALOG — White Surface Edition
   Design Read: Premium consumer e-commerce, mobile-first, Apple-y
   Dials: DESIGN_VARIANCE:7 / MOTION_INTENSITY:6 / VISUAL_DENSITY:3
   Skills applied: design-taste-frontend · emil-design-eng · impeccable
   Brand accent: #0f969c (teal/cyan)
   ═══════════════════════════════════════════════════════════════ */

/* ── Page wrapper — white canvas ── */
#page-catalog {
  background: #f7f7f7;
  min-height: 100vh;
}

/* ── Header ── */
.catalog-header-section {
  padding: 64px 56px 0;
  max-width: 1280px;
  margin: 0 auto;
}

.catalog-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

/* Outfit 900 — big editorial headline, black on white */
.page-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.03em;  /* impeccable floor: ≥ -0.04em */
  color: #111111;
  line-height: 1;
  text-wrap: balance;
}

.page-subtitle {
  font-size: 0.9rem;
  color: #6e6e73;
  margin-top: 10px;
  max-width: 480px;
  line-height: 1.65;
}

.catalog-compare-link {
  font-size: 0.8rem;
  color: #0066cc;
  font-weight: 600;
  transition: color 180ms cubic-bezier(0.23,1,0.32,1);
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.catalog-compare-link:hover { color: #0044b3; }

/* ── Generation filter pills ── */
.catalog-filters-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 28px;
}
.catalog-filters {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: #08080a;
  padding: 6px;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-behavior: smooth;
  flex: 1;
}
.catalog-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 180ms cubic-bezier(0.23,1,0.32,1);
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn:hover {
  color: #ffffff;
}
.filter-btn.active {
  background: #ffffff;  /* Selected brand active is white */
  color: #08080a;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}
/* Emil: physical press */
.filter-btn:active { transform: scale(0.97); }

/* ── Grid section ── */
.catalog-grid-section {
  padding: 32px 56px 100px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Product grid — 2 columns desktop, 1 on mobile ── */
/* impeccable: cards only when elevation = real hierarchy → white cards on grey bg = clear elevation */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Product card ── */
.catalog-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid #e5e5e5;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 420ms cubic-bezier(0.23,1,0.32,1),
              box-shadow 300ms cubic-bezier(0.23,1,0.32,1),
              border-color 200ms cubic-bezier(0.23,1,0.32,1);
}

/* Acento inferior negro — línea de identidad */
.catalog-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #1d1d1f;
  border-radius: 0 0 16px 16px;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 280ms cubic-bezier(0.23,1,0.32,1),
              transform 320ms cubic-bezier(0.23,1,0.32,1);
}
.catalog-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.catalog-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  border-color: #c8c8c8;
  transform: translateY(-3px);
}
.catalog-card:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 80ms ease-out;
}

/* ── Image stage ── */
.catalog-card-img-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 20px 16px;
  background: #f7f7f7;
  height: auto;
  overflow: hidden;
  border-bottom: 1px solid #efefef;
}

@keyframes neonBreath {
  0% {
    opacity: 0.20;
    filter: blur(38px);
    transform: translate(-50%, -50%) scale(0.92);
  }
  100% {
    opacity: 0.30;
    filter: blur(32px);
    transform: translate(-50%, -50%) scale(1.10);
  }
}

/* Vibrant soft metallic glow behind the phone */
.catalog-card-img-wrap::before {
  content: '';
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  background: #a1a1a6;  /* Sleek silver-metallic */
  filter: blur(36px);
  opacity: 0.16;
  border-radius: 50%;
  pointer-events: none;
  animation: neonBreath 5s ease-in-out infinite alternate;
  transition: all 450ms cubic-bezier(0.23,1,0.32,1);
}
.catalog-card:hover .catalog-card-img-wrap::before {
  animation: none;
  width: 135px;
  height: 135px;
  opacity: 0.3;
  filter: blur(30px);
  transform: translate(-50%, -50%) scale(1);
}
.catalog-card:active .catalog-card-img-wrap::before {
  animation: none;
  width: 140px;
  height: 140px;
  opacity: 0.45;
  filter: blur(24px);
  transform: translate(-50%, -50%) scale(1);
}

/* The phone image with physical scaling */
.catalog-card-img {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.12));
  transform: scale(var(--phone-scale, 1));
  transition: transform 480ms cubic-bezier(0.23,1,0.32,1),
              filter 380ms cubic-bezier(0.23,1,0.32,1);
  position: relative;
  z-index: 1;
}
.catalog-card:hover .catalog-card-img {
  filter: drop-shadow(0 20px 48px rgba(0,0,0,0.18));
}
.catalog-card:active .catalog-card-img {
  transform: scale(calc(var(--phone-scale, 1) * 0.98));
  transition: transform 80ms ease-out;
}

/* Glare shine layer */
.catalog-card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.05) 55%,
    transparent 80%
  );
  opacity: var(--glare-opacity, 0);
  transition: opacity 300ms ease;
  border-radius: inherit; /* Clip to card border radius */
}

/* ── Stock badge — top-left of image stage ── */
.catalog-stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  z-index: 2;
  border: 1.5px solid;
}

/* Brand-consistent badge colors (light mode) */
.catalog-stock-badge.disponible {
  background: rgba(15,150,156,0.1);
  color: #0a7b80;
  border-color: rgba(15,150,156,0.25);
}
.catalog-stock-badge.pocas {
  background: rgba(255,149,0,0.1);
  color: #b86e00;
  border-color: rgba(255,149,0,0.25);
}
.catalog-stock-badge.agotado {
  background: rgba(200,200,200,0.15);
  color: #888888;
  border-color: rgba(0,0,0,0.1);
}

/* ── Condition badge (Nuevo / Seminuevo) — top-right ── */
.catalog-condition-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.catalog-condition-badges .catalog-condition-badge {
  position: static;
  top: auto;
  right: auto;
}
.catalog-condition-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  border: 1.5px solid;
}
.catalog-condition-badge.nuevo {
  background: rgba(0,0,0,0.04);
  color: #1d1d1f;
  border-color: rgba(0,0,0,0.08);
}
.catalog-condition-badge.seminuevo {
  background: rgba(0,0,0,0.04);
  color: #1d1d1f;
  border-color: rgba(0,0,0,0.08);
}

/* ── Card body ── */
.catalog-card-body {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 14px;
  flex: 1;
}

/* Specs pills compactas — chip + pantalla + cámara + batería */
.catalog-card-specs {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.catalog-card-specs li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 500;
  color: #444;
  background: #f2f2f2;
  border-radius: 100px;
  padding: 3px 9px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.catalog-card-specs .spec-bullet {
  color: #0f969c;
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* Product name — Outfit 800, dark charcoal */
.catalog-card-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: -0.025em;
  color: #111111;
  line-height: 1.1;
}

.catalog-card-tagline {
  font-size: 0.8rem;
  color: #8e8e93;
  margin-top: 4px;
  line-height: 1.45;
  font-weight: 400;
}

/* ── Color picker row ── */
.catalog-card-footer {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.catalog-card-footer .color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23,1,0.32,1),
              outline-color 160ms cubic-bezier(0.23,1,0.32,1),
              outline-offset 160ms cubic-bezier(0.23,1,0.32,1);
  flex-shrink: 0;
  outline: 2px solid transparent;
  outline-offset: 0px;
}
.catalog-card-footer .color-dot:hover { transform: scale(1.2); }
.catalog-card-footer .color-dot:active { transform: scale(0.95); }
.catalog-card-footer .color-dot.active-dot {
  outline-color: #0f969c;   /* brand teal ring on active */
  outline-offset: 3px;
}

/* ── Price block ── */
.catalog-card-price {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

/* Outfit 900, large — black number */
.catalog-price-bob {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  letter-spacing: -0.025em;
  color: #111111;
  line-height: 1;
}

.catalog-price-usd {
  font-size: 0.82rem;
  color: #8e8e93;
  font-weight: 400;
}

/* ── CTA button — premium Apple-style dark button ── */
.catalog-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  width: 100%;
  letter-spacing: 0.05px;
  transition: background 180ms cubic-bezier(0.23,1,0.32,1),
              transform 160ms cubic-bezier(0.23,1,0.32,1);
  cursor: pointer;
}
.catalog-card-cta:hover {
  background: #000000;
}
/* Emil: physical press */
.catalog-card-cta:active { transform: scale(0.97); }

/* ── Loading skeleton ── */
.catalog-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  color: #8e8e93;
  font-size: 0.88rem;
  gap: 12px;
}

/* ── Empty state ── */
.catalog-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  text-align: center;
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #ebebeb;
}
.catalog-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}
.catalog-empty-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 8px;
}
.catalog-empty-desc {
  font-size: 0.85rem;
  color: #999;
  max-width: 340px;
  line-height: 1.6;
}
/* ── Search Bar ── */
.catalog-search-wrap {
  position: relative;
  margin: 32px auto 16px;
  max-width: 620px;
  width: 100%;
}
#catalog-search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: 14px;
  border: 1px solid #d2d2d7;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 200ms cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
#catalog-search-input:hover {
  background: #e8e8ed;
  border-color: #86868b;
}
#catalog-search-input:focus {
  background: #ffffff;
  border-color: #1d1d1f;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08), 0 4px 20px rgba(0, 0, 0, 0.04);
}
.catalog-search-wrap .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #86868b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease;
}
#catalog-search-input:focus + .search-icon {
  color: #1d1d1f;
}

/* ─── COMPARE REDESIGN ─── */
#page-compare {
  background: #ffffff !important;
  color: #1d1d1f !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.compare-header-section {
  padding: 80px 48px 32px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.compare-header-section .page-title {
  color: #1d1d1f !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
}
.compare-header-section .page-subtitle {
  color: #86868b !important;
  font-weight: 500;
}
.compare-selector-section {
  padding: 0 48px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.compare-selectors-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
}
.compare-selector-card {
  padding: 32px !important;
  border-radius: 28px !important;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 380px;
  background: #f5f5f7 !important;
  border: 1.5px solid #e8e8ed !important;
  transition: border-color var(--transition), transform 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}
.compare-selector-card:hover {
  border-color: rgba(15, 150, 156, 0.35) !important;
}
.compare-card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #86868b !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.compare-select-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin-bottom: 24px;
}
.compare-select {
  width: 100%;
  padding: 14px 20px;
  background: #ffffff !important;
  border: 1.5px solid #d2d2d7 !important;
  border-radius: 50px;
  color: #1d1d1f !important;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  outline: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
}
.compare-select:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 4px rgba(15, 150, 156, 0.15) !important;
}
/* Dropdown arrow */
.compare-select-wrapper::after {
  content: '▼';
  font-size: 0.65rem;
  color: #86868b !important;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.compare-device-preview {
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  width: 100%;
  margin-top: auto;
}
/* Glow stage behind phone */
.compare-device-preview::before {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(15, 150, 156, 0.06) 0%, transparent 70%);
  filter: blur(12px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.compare-device-preview img {
  max-height: 210px;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.15));
  transition: transform 450ms cubic-bezier(0.23, 1, 0.32, 1), filter 0.3s ease;
  transform-origin: bottom center;
  z-index: 1;
  position: relative;
}

/* Relative Physical Scaling */
.compare-device-preview.size-mini img {
  transform: scale(0.74);
}
.compare-device-preview.size-normal img {
  transform: scale(0.84);
}
.compare-device-preview.size-pro img {
  transform: scale(0.92);
}
.compare-device-preview.size-promax img {
  transform: scale(1.16);
}

.compare-vs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-vs-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff !important;
  border: 1.5px solid #e8e8ed !important;
  color: var(--green) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04) !important;
}

.compare-results-section {
  padding: 0 48px 100px;
  max-width: 1200px;
  margin: 0 auto;
}
#compare-results-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-cat-header {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #1d1d1f !important;
  padding: 32px 0 12px;
  border-bottom: 1.5px solid #f5f5f7 !important;
  margin-top: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.compare-spec-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid #f5f5f7 !important;
  align-items: start;
}
/* Highlight row if specs differ */
.compare-spec-row.highlight-diff {
  border-left: 4px solid var(--green) !important;
  padding-left: 16px;
}
.compare-spec-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
}
.compare-spec-icon {
  font-size: 1.25rem;
  opacity: 0.9;
}
.compare-spec-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1d1d1f !important;
}
.compare-spec-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.compare-value-card {
  padding: 20px;
  background: #f5f5f7 !important;
  border: 1.5px solid #e8e8ed !important;
  border-radius: 18px;
  transition: all 0.25s ease;
}
.compare-value-card:hover {
  background: #e8e8ed !important;
  border-color: #d2d2d7 !important;
}
.compare-value-model-name {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #86868b !important;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
}
.compare-value-text {
  font-size: 0.85rem;
  color: #1d1d1f !important;
  line-height: 1.6;
}
.compare-value-text strong {
  font-size: 1.1rem;
  color: var(--green) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  display: block;
  margin-bottom: 2px;
}
.compare-value-text .usd-price {
  font-size: 0.76rem;
  color: #86868b !important;
}

/* ─── Responsive Compare ─── */
@media (max-width: 992px) {
  .compare-spec-row {
    grid-template-columns: 180px 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .compare-selectors-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .compare-vs-wrapper {
    margin: 8px 0;
  }
  .compare-spec-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }
  .compare-spec-meta {
    padding-top: 0;
    margin-bottom: 4px;
  }
  .compare-spec-cards {
    gap: 12px;
  }
  .compare-value-card {
    padding: 16px;
  }
  .compare-selector-card {
    min-height: auto;
    padding: 24px !important;
  }
  .compare-device-preview {
    height: 180px;
    margin-top: 16px;
  }
}

@media (max-width: 576px) {
  .compare-spec-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* CORREGIDO: selector duplicado eliminado */
.compare-value-card:hover {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}
.compare-value-model-name {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
}
.compare-value-text {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}
.compare-value-text strong {
  font-size: 1.1rem;
  color: var(--green);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  display: block;
  margin-bottom: 2px;
}
.compare-value-text .usd-price {
  font-size: 0.76rem;
  color: var(--text-3);
}

/* ─── Responsive Compare ─── */
@media (max-width: 992px) {
  .compare-spec-row {
    grid-template-columns: 180px 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .compare-selectors-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .compare-vs-wrapper {
    margin: 8px 0;
  }
  .compare-spec-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }
  .compare-spec-meta {
    padding-top: 0;
    margin-bottom: 4px;
  }
  .compare-spec-cards {
    gap: 12px;
  }
  .compare-value-card {
    padding: 16px;
  }
  .compare-selector-card {
    min-height: auto;
    padding: 24px !important;
  }
  .compare-device-preview {
    height: 180px;
    margin-top: 16px;
  }
}

@media (max-width: 576px) {
  .compare-spec-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ─── BRANCHES ─── */
.branches-header-section { padding: 64px 48px 24px; max-width: 1200px; margin: 0 auto; }
.branches-cards-section { padding: 0 48px 80px; max-width: 1200px; margin: 0 auto; }

/* Tabs Navigation */
.branches-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.branch-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 20px;
  transition: all 0.3s var(--ease-out);
}
.branch-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.branch-tab-btn.active {
  color: var(--text);
  background: var(--green-dim);
  border: 1px solid rgba(15, 150, 156, 0.25);
  box-shadow: 0 4px 12px rgba(15, 150, 156, 0.05);
}
.branch-tab-btn:active {
  transform: scale(0.97);
}

/* Panel Layout */
.branch-content-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  min-height: 480px;
}
.branch-detail-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.branch-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.branch-detail-icon {
  font-size: 2.2rem;
}
.branch-detail-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text);
}
.branch-detail-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.branch-detail-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.branch-detail-label-icon {
  font-size: 1.1rem;
  color: var(--green);
  margin-top: 2px;
}
.branch-detail-desc {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.6;
}
.branch-detail-desc strong {
  color: var(--text);
  font-weight: 600;
}
.branch-detail-desc a {
  color: var(--green);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}
.branch-detail-desc a:hover {
  border-color: var(--green);
}

/* TikTok Promo card */
.branch-promo-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(15, 150, 156, 0.3);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 10px;
}
.branch-promo-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.branch-promo-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* Set local store button */
.btn-set-local-branch {
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.3s var(--ease-out);
  width: 100%;
}
.btn-set-local-branch:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}
.btn-set-local-branch.selected {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(15, 150, 156, 0.4);
  pointer-events: none;
}

/* Google Maps Action Button */
.btn-google-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  width: 100%;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.25);
  cursor: pointer;
}
.btn-google-maps:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
  background: linear-gradient(135deg, #357ae8, #2c9047);
}
.btn-google-maps:active {
  transform: translateY(0);
}

/* Map Col styling */
.branch-map-col {
  width: 100%;
  height: 100%;
}
.map-iframe-wrapper {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  filter: grayscale(1) invert(0.92) contrast(1.08); /* Dark Map effect for Apple-y style */
  transition: filter 0.3s ease;
}
.map-iframe-wrapper:hover {
  filter: none;
}

/* Shipping section */
.shipping-section-branch {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 48px;
}
.shipping-inner {
  background: linear-gradient(135deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.shipping-inner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(15, 150, 156, 0.03) 0%, transparent 60%);
  pointer-events: none;
}
.shipping-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.shipping-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.shipping-icon-wrap {
  font-size: 3rem;
  margin-bottom: 20px;
}
.shipping-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text);
  margin-top: 0;
}
.shipping-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}
.shipping-calculator-col {
  display: flex;
  justify-content: center;
  width: 100%;
}
.shipping-calc-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.calc-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 24px 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.calc-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.calc-form-group label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.calc-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 8px;
  padding: 14px 40px 14px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  transition: all 0.25s var(--ease-out);
}
.calc-select:focus {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.calc-select option {
  background: #121214;
  color: var(--text);
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
  font-size: 0.85rem;
}
.result-label {
  color: var(--text-2);
}
.result-value {
  color: var(--text);
  font-weight: 700;
}
.result-value.cost-free {
  color: var(--green);
}
.calc-note {
  font-size: 0.72rem;
  color: var(--text-2);
  opacity: 0.6;
  line-height: 1.5;
  margin: 20px 0;
  text-align: left;
}
.shipping-calc-cta-btn {
  width: 100%;
  padding: 14px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}
.shipping-calc-cta-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12);
}
.shipping-calc-cta-btn:active {
  transform: scale(0.97) translateY(0);
}

/* Modal Option Pickers */
#modal-product-options-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
#modal-color-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.modal-color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  outline: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.modal-color-btn:hover {
  transform: scale(1.1);
}
.modal-color-btn.active {
  border-color: #ffffff;
  outline-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}
/* ─── Modal Option Labels ─── */
.modal-option-label {
  font-weight: 700;
  color: var(--text-2);
  margin: 14px 0 8px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-option-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: 0.6;
}

/* ─── Storage Picker ─── */
#modal-storage-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.modal-storage-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  user-select: none;
  letter-spacing: 0.2px;
}
.modal-storage-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}
.modal-storage-btn.active {
  border-color: var(--green);
  background: var(--green-dim);
  color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 150, 156, 0.15), 0 2px 12px rgba(15,150,156,0.2);
  transform: translateY(-1px);
}
.modal-storage-btn.active:hover {
  box-shadow: 0 0 0 3px rgba(15, 150, 156, 0.2), 0 4px 16px rgba(15,150,156,0.3);
}
.storage-upgrade {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.75;
  margin-left: 2px;
}

/* ─── Condition Buttons ─── */
.modal-cond-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  user-select: none;
}
.modal-cond-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255, 255, 255, 0.06);
}
.modal-cond-btn.active {
  border-color: var(--green);
  background: var(--green-dim);
  color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 150, 156, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}


@media (max-width: 768px) {
  .shipping-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .shipping-inner {
    padding: 32px 24px;
  }
}
.shipping-cta-btn:hover {
  background: linear-gradient(90deg, #6da5c0, #0f969c);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(15, 150, 156, 0.4);
}

/* ─── QUOTE CONFIGURATOR ─── */
.quote-container-section { max-width: 1200px; margin: 0 auto; padding: 40px 48px 80px; }
.quote-layout-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.quote-phone-sticky { position: sticky; top: calc(var(--nav-h) + 20px); text-align: center; }
.quote-phone-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.3px; }
.quote-phone-tagline { font-size: 0.85rem; color: var(--text-2); margin-top: 4px; }
.quote-phone-image-wrap { margin-top: 20px; }
.quote-phone-image-wrap img { width: 200px; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); transition: transform 0.5s ease; }
.quote-phone-image-wrap:hover img { transform: translateY(-6px); }
.config-section-header { margin-bottom: 32px; }
.config-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 6px; }
.config-title { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 2.2rem; letter-spacing: -1px; }
.apple-config-form { display: flex; flex-direction: column; gap: 0; }
.config-group { border-bottom: 1px solid var(--border); padding: 20px 0; }
.group-label { font-size: 0.82rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.7px; display: block; margin-bottom: 12px; }
.config-select-wrapper { position: relative; }
.apple-select {
  width: 100%;
  padding: 13px 40px 13px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386868b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color var(--transition);
}
.apple-select:focus { border-color: var(--green); }
.config-options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.config-option {
  padding: 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.config-option:hover { border-color: var(--border-2); }
.config-option.active { border-color: var(--green); background: var(--green-dim); }
.option-title { font-weight: 600; font-size: 0.95rem; display: block; }
.option-sub { font-size: 0.75rem; color: var(--text-2); display: block; margin-top: 2px; }
.config-option.active .option-sub { color: var(--green); }
.config-color-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.config-color-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.config-color-dot:hover { transform: scale(1.15); }
.config-color-dot.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}
.color-selected-name { font-size: 0.82rem; color: var(--text-2); display: block; margin-top: 8px; }
.config-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-bottom: 1px solid var(--border); padding: 20px 0; }
.config-group.half { border-bottom: none; padding: 0; }
.quote-tradein-accordion { padding: 20px 0; border-bottom: 1px solid var(--border); }
.tradein-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.tradein-toggle-status { font-size: 0.78rem; color: var(--text-3); font-weight: 500; }
.tradein-content { overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }
.tradein-content.expanded { max-height: 600px; }
.tradein-intro { font-size: 0.85rem; color: var(--text-2); margin: 14px 0; line-height: 1.6; }
.tradein-stepper { display: flex; align-items: center; gap: 0; margin-bottom: 18px; }
.step-indicator { font-size: 0.78rem; font-weight: 600; color: var(--text-3); padding: 4px 10px; border-radius: 12px; white-space: nowrap; }
.step-indicator.active { background: var(--green-dim); color: var(--green); }
.step-line { flex: 1; height: 1px; background: var(--border); }
.tradein-step-pane { display: none; }
.tradein-step-pane.active { display: block; }
.step-pane-label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.tradein-chips-container { display: flex; flex-direction: column; gap: 8px; }
.tradein-chip { padding: 14px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); }
.tradein-chip:hover { border-color: var(--border-2); }
.tradein-chip.active { border-color: var(--green); background: var(--green-dim); }
.chip-title { font-weight: 600; font-size: 0.875rem; display: block; }
.chip-desc { font-size: 0.78rem; color: var(--text-2); display: block; margin-top: 2px; }
.tradein-val-alert { background: rgba(15, 150, 156,0.08); border: 1px solid rgba(15, 150, 156,0.25); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px; }
.val-alert-inner { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; color: var(--text-2); }
#tradein-discount-badge { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--green); }
.step-navigation { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; }
.btn-step-next, .btn-step-prev, .btn-step-finish {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-step-next, .btn-step-finish { background: var(--green); color: #000; }
.btn-step-next:hover, .btn-step-finish:hover { background: #0c7075; box-shadow: 0 4px 16px rgba(15, 150, 156,0.35); }
.btn-step-next:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-step-prev { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); }
.btn-step-prev:hover { background: rgba(255,255,255,0.1); }
.apple-summary-box { padding: 24px 0 0; }
.price-header { font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.price-box-values { display: flex; align-items: baseline; gap: 10px; }
.main-price { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 2.8rem; letter-spacing: -1.5px; color: var(--text); }
.sub-price { font-size: 1rem; color: var(--text-2); }
.price-legal { font-size: 0.78rem; color: var(--text-3); margin-top: 8px; line-height: 1.6; }
.btn-apple-whatsapp {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-apple-whatsapp:hover {
  background: #20bf5a;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  transform: translateY(-1px);
}

/* ─── GALLERY MODAL ─── */
#gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  /* Prevent scroll from bleeding through to page behind */
  overscroll-behavior: contain;
}
#gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.gallery-modal-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  /* Smooth scrolling within modal on all devices */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  will-change: transform;
}
#gallery-modal.open .gallery-modal-inner {
  animation: modalIn 0.35s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 0;
}
.modal-product-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
}
.modal-close {
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.16); }
.modal-body { padding: 20px 24px 24px; }
.modal-main-img-wrap {
  text-align: center;
  background: linear-gradient(135deg, #111, #1a1a1a);
  border-radius: var(--radius-sm);
  padding: 32px;
  margin-bottom: 14px;
  overflow: hidden;
}
#modal-main-img {
  max-height: 300px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
  transition: transform 0.5s ease;
}
.modal-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.modal-gallery-thumbs::-webkit-scrollbar { display: none; }
.modal-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: contain;
  border: 2px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition);
  background: #111;
  padding: 4px;
}
.modal-thumb:hover, .modal-thumb.active { border-color: var(--green); }
.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}
.modal-spec-row {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.modal-spec-label { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 2px; }
.modal-spec-value { font-size: 0.88rem; color: var(--text); font-weight: 500; }
.modal-price-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 16px;
  background: rgba(15, 150, 156,0.06);
  border: 1px solid rgba(15, 150, 156,0.2);
  border-radius: var(--radius-sm);
}
.modal-price-bob { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--green); }
.modal-price-usd { font-size: 0.85rem; color: var(--text-2); }
.modal-stock-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.modal-cta { width: 100%; margin-top: 14px; padding: 15px; background: var(--green); color: #000; border: none; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all var(--transition); }
.modal-cta:hover { background: #0c7075; box-shadow: 0 4px 20px rgba(15, 150, 156,0.35); }

/* ─── FOOTER ─── */
#apple-footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 40px 48px 32px;
}
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-legal { font-size: 0.78rem; color: var(--text-3); line-height: 1.7; margin-bottom: 16px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; }
.footer-links a { font-size: 0.8rem; color: var(--text-2); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }

/* ─── PROFESSIONAL FOOTER (inner page) ─── */
.professional-footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.copyright { font-size: 0.8rem; color: var(--text-3); }

/* ─── CHATBOT BUTTON ─── */
#chatbot-trigger {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: block;
  z-index: 900;
  padding: 0;
  transition: transform 0.3s ease;
  animation: chatbotFloat 3.8s ease-in-out infinite, bounceIn 0.8s cubic-bezier(0.16,1,0.3,1) 2s both;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.18));
}

#chatbot-avatar-img {
  width: 90px;
  height: auto;
  display: block;
  border-radius: 0;
  background: transparent;
}

@keyframes chatbotFloat {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes bounceIn {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
#chatbot-trigger:hover { transform: scale(1.12) translateY(-4px); filter: drop-shadow(0 12px 28px rgba(0,0,0,0.3)); }

/* ─── SLIDE ANIMATIONS ─── */
.slide-from-left, .slide-from-right, .slide-from-top {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-from-left { transform: translateX(-40px); }
.slide-from-right { transform: translateX(40px); }
.slide-from-top { transform: translateY(40px); }
.slide-from-left.visible,
.slide-from-right.visible,
.slide-from-top.visible {
  opacity: 1;
  transform: translate(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-big-title { font-size: clamp(3rem, 8vw, 5rem); }
  .hero-img-col { order: -1; }
  .stats-container { grid-template-columns: 1fr 1fr; }
  .showcase-content { grid-template-columns: 1fr; gap: 32px; }
  .compare-selectors-grid { grid-template-columns: 1fr; }
  .compare-vs { display: none; }
  .branch-content-panel { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-social { display: none; }
  .nav-hamburger { display: flex; }

  .catalog-header-section,
  .catalog-grid-section,
  .compare-header-section,
  .compare-selector-section,
  .compare-table-section,
  .branches-header-section,
  .branches-cards-section,
  .quote-container-section { padding-left: 20px; padding-right: 20px; }

  /* Mobile adjustments for branch tabs */
  .branch-content-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
    min-height: auto;
  }
  .map-iframe-wrapper {
    min-height: 280px;
    filter: none; /* Disable dark filter on mobile for better usability */
  }
  .branches-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 6px;
  }
  .branches-tabs::-webkit-scrollbar { display: none; }
  .branch-tab-btn {
    padding: 6px 18px;
    font-size: 1rem;
  }
  .shipping-inner {
    padding: 32px 24px;
  }
  .shipping-title {
    font-size: 1.6rem;
  }
  .shipping-desc {
    font-size: 0.95rem;
  }

  .showcase-section { padding: 40px 20px; }
  .showcase-img img { height: 220px; }

  .quote-layout-grid { grid-template-columns: 1fr; }
  .quote-phone-sticky { position: relative; top: 0; margin-bottom: 24px; }
  .quote-phone-sticky { display: none; }
  .config-options-grid { grid-template-columns: 1fr 1fr; }
  .config-group-row { grid-template-columns: 1fr; }

  .modal-specs { grid-template-columns: 1fr; }

  #apple-footer { padding: 32px 20px; }
  .professional-footer { padding: 24px 20px; }
  .footer-content { flex-direction: column; text-align: center; }

  #chatbot-trigger { bottom: 18px; right: 18px; }
  #chatbot-avatar-img { width: 70px; }

  .scroll-section.align-left,
  .scroll-section.align-right,
  .scroll-section.align-center {
    padding-left: 20px;
    padding-right: 20px;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: calc(100% - 40px);
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .subnav-inner { gap: 0; }
  .hero-section { padding: 40px 20px 60px; }
  .hero-ctas { flex-direction: column; gap: 8px; }
  .stats-container { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ────────────────────────────────────────────────────────────
   FASE 5: PHYSICAL SCALING, MODEL SUB-FILTERS & TYPOGRAPHY
   ──────────────────────────────────────────────────────────── */

/* Physical scale factors based on screen dimensions */
.catalog-card.size-mini .catalog-card-img {
  --phone-scale: 0.74;
}
.catalog-card.size-normal .catalog-card-img {
  --phone-scale: 0.84;
}
.catalog-card.size-pro .catalog-card-img {
  --phone-scale: 0.92;
}
.catalog-card.size-promax .catalog-card-img {
  --phone-scale: 1.16;
}

/* Model sub-filters bar styling */
.catalog-sub-filters {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: #1c1c1e;
  padding: 6px;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-top: 18px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-behavior: smooth;
  animation: fadeIn 0.3s ease;
}
.catalog-sub-filters::-webkit-scrollbar {
  display: none;
}

.sub-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.74rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 180ms cubic-bezier(0.23,1,0.32,1);
  cursor: pointer;
  white-space: nowrap;
}

.sub-filter-btn:hover {
  color: #ffffff;
}

.sub-filter-btn.active {
  background: #ffffff;
  color: #1c1c1e;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.sub-filter-btn:active {
  transform: scale(0.97);
}

/* Modern premium typography adjustments */
h1, h2, h3, h4, h5, h6, .page-title, .section-title, .hero-title {
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.page-subtitle {
  letter-spacing: -0.01em;
}

/* Ensure fade-in transition works nicely */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Corrección de rotación específica para enderezar el iPhone 13 Blanco */
.catalog-card-img.rotate-white-13 {
  transform: scale(var(--phone-scale, 1)) rotate(-7.5deg);
}
.catalog-card:hover .catalog-card-img.rotate-white-13 {
  transform: scale(calc(var(--phone-scale, 1) * 1.08)) translateY(-6px) rotate(-7.5deg);
}
.catalog-card:active .catalog-card-img.rotate-white-13 {
  transform: scale(calc(var(--phone-scale, 1) * 0.93)) translateY(3px) rotate(-7.5deg);
  transition: transform 80ms ease-out;
}

/* ────────────────────────────────────────────────────────────
   CHECKOUT PREMIUM STYLES
   ──────────────────────────────────────────────────────────── */
.checkout-title-bar {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}
.checkout-step-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #38bdf8;
  font-weight: 800;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 6px;
}
.checkout-h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
}
.checkout-subtitle {
  font-size: 0.85rem;
  color: #86868b;
  margin: 0;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.checkout-form-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #86868b;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.checkout-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}
.checkout-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.checkout-input:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.checkout-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.checkout-select:focus {
  border-color: #38bdf8;
  background-color: rgba(30, 30, 30, 0.95);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.checkout-select option {
  background: #121212;
  color: #fff;
}
.checkout-delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.delivery-option-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.25s ease;
}
.delivery-option-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   SHOWCASE CAROUSEL SECTION
   ============================================================ */
.showcase-carousel-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #1e3050; /* Default, overridden by JS */
  transition: background-color 650ms cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
  z-index: 10;
  touch-action: pan-y;
}

/* Grain Overlay */
.sc-grain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

/* Giant Ghost Text */
.sc-ghost-text-wrap {
  position: absolute;
  top: 18%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.sc-ghost-text {
  font-family: 'Anton', sans-serif;
  font-size: clamp(90px, 28vw, 380px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Top Brand Label */
.sc-brand-label {
  position: absolute;
  top: 24px;
  left: 32px;
  z-index: 60;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.9;
  letter-spacing: 0.18em;
}

/* Carousel Track */
.sc-track-container {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Phone Item Common */
.sc-phone-item {
  position: absolute;
  aspect-ratio: 0.6 / 1;
  will-change: transform, filter, opacity, left;
  transform-origin: bottom center;
  transition: transform 650ms cubic-bezier(0.4, 0, 0.2, 1),
              filter 650ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 650ms cubic-bezier(0.4, 0, 0.2, 1),
              left 650ms cubic-bezier(0.4, 0, 0.2, 1),
              bottom 650ms cubic-bezier(0.4, 0, 0.2, 1),
              height 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sc-phone-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* Roles */
.sc-phone-item.role-center {
  transform: translateX(-50%) scale(1.68);
  filter: blur(0px);
  opacity: 1;
  z-index: 20;
  left: 50%;
  height: 55%;
  bottom: 4%;
}

.sc-phone-item.role-left {
  transform: translateX(-50%) scale(1);
  filter: blur(2px);
  opacity: 0.85;
  z-index: 10;
  left: 30%;
  height: 28%;
  bottom: 12%;
}

.sc-phone-item.role-right {
  transform: translateX(-50%) scale(1);
  filter: blur(2px);
  opacity: 0.85;
  z-index: 10;
  left: 70%;
  height: 28%;
  bottom: 12%;
}

.sc-phone-item.role-back {
  transform: translateX(-50%) scale(1);
  filter: blur(4px);
  opacity: 1;
  z-index: 5;
  left: 50%;
  height: 22%;
  bottom: 12%;
}

/* Bottom Left Controls */
.sc-controls-container {
  position: absolute;
  bottom: 80px;
  left: 96px;
  z-index: 60;
  max-width: 320px;
}

.sc-model-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ffffff;
  opacity: 0.95;
  font-size: 22px;
  margin-bottom: 12px;
}

.sc-model-desc {
  font-size: 14px;
  color: #ffffff;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 20px;
}

.sc-nav-hint-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.sc-nav-hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.5;
}

.sc-nav-hint {
  font-size: 12px;
  color: #ffffff;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sc-nav-buttons {
  display: flex;
  gap: 16px;
}

.sc-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms, background-color 150ms;
  cursor: pointer;
}

.sc-btn:hover {
  transform: scale(1.08);
  background-color: rgba(255, 255, 255, 0.12);
}

/* Bottom Right CTA */
.sc-cta-container {
  position: absolute;
  bottom: 80px;
  right: 40px;
  z-index: 60;
}

.sc-discover-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Anton', sans-serif;
  font-size: clamp(20px, 4vw, 56px);
  color: #ffffff;
  opacity: 0.95;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 200ms;
}

.sc-discover-link:hover {
  opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .sc-brand-label {
    left: 16px;
  }
  
  .sc-phone-item.role-center {
    transform: translateX(-50%) scale(1.25);
    height: 60%;
    bottom: 22%;
  }

  .sc-phone-item.role-left {
    left: 20%;
    height: 16%;
    bottom: 32%;
  }

  .sc-phone-item.role-right {
    left: 80%;
    height: 16%;
    bottom: 32%;
  }

  .sc-phone-item.role-back {
    height: 13%;
    bottom: 32%;
  }

  .sc-controls-container {
    bottom: 24px;
    left: 16px;
  }

  .sc-model-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .sc-model-desc {
    display: none;
  }

  .sc-btn {
    width: 48px;
    height: 48px;
  }

  .sc-cta-container {
    bottom: 24px;
    right: 16px;
  }
}

/* ==========================================================================
   NUEVOS ESTILOS PREMIUM PARA TARJETAS DE SEMINUEVOS Y SELLO AGOTADO
   ========================================================================== */

/* 1. Tarjetas de Seminuevos en Color Negro Mate Premium */
.catalog-card.seminuevo-card {
  background: #111111 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  transition: transform 420ms cubic-bezier(0.23,1,0.32,1),
              box-shadow 300ms cubic-bezier(0.23,1,0.32,1),
              border-color 200ms cubic-bezier(0.23,1,0.32,1);
}

.catalog-card.seminuevo-card:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
}

/* Identidad inferior negra/oscura */
.catalog-card.seminuevo-card::after {
  background: #222222 !important;
}

/* Textos dentro de tarjetas de seminuevos */
.catalog-card.seminuevo-card .catalog-card-name {
  color: #ffffff !important;
}

.catalog-card.seminuevo-card .catalog-card-tagline {
  color: #a1a1a6 !important;
}

/* Pastillas de especificaciones (Specs) */
.catalog-card.seminuevo-card .catalog-card-specs li {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #d1d1d6 !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.catalog-card.seminuevo-card .catalog-card-specs .spec-bullet {
  color: #10b981 !important; /* Resaltado verde para las specs en tarjetas oscuras */
}

/* Bloque de precios */
.catalog-card.seminuevo-card .catalog-price-bob {
  color: #ffffff !important;
}

.catalog-card.seminuevo-card .catalog-price-usd {
  color: #8e8e93 !important;
}

/* Botón CTA (comprar/consultar) - Invertido a Blanco/Plateado */
.catalog-card.seminuevo-card .catalog-card-cta {
  background: #ffffff !important;
  color: #111111 !important;
}

.catalog-card.seminuevo-card .catalog-card-cta:hover {
  background: #e5e5e7 !important;
  color: #000000 !important;
}

/* 2. Sello de AGOTADO Estilo Vintage "Sold Out" (Tilted Red Stamp) */
.semi-agotado-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  border: 4px double #ef4444; /* Borde doble como el sello de la imagen */
  color: #ef4444;
  font-family: 'Outfit', 'Arial Black', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  padding: 6px 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: rgba(17, 17, 17, 0.9); /* Fondo oscuro semitransparente para legibilidad */
  backdrop-filter: blur(2px);
  border-radius: 4px;
  z-index: 15;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
  animation: stampAnimation 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.semi-agotado-stamp-text {
  display: block;
  font-weight: 900;
  line-height: 1;
}

/* Animación sutil de impacto del sello al cargarse */
@keyframes stampAnimation {
  0% {
    transform: translate(-50%, -50%) rotate(-25deg) scale(1.6);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) rotate(-12deg) scale(1);
    opacity: 1;
  }
}

/* Mobile optimization: Shorter scroll height for faster, smoother video scrubs */
@media (max-width: 768px) {
  #scroll-container {
    height: 300vh !important;
  }
}
