/* ===== VARIABLES ===== */
:root {
  --bg:           #0a0a0a;
  --bg-alt:       #111111;
  --bg-card:      #191919;
  --border:       #2a2a2a;
  --orange:       #FF6B00;
  --orange-light: #FF8C42;
  --orange-glow:  rgba(255, 107, 0, 0.18);
  --text:         #FFFFFF;
  --text-muted:   #888888;
  --green-wa:     #25D366;
  --radius:       14px;
  --shadow:       0 4px 28px rgba(0,0,0,0.5);
  --ease:         0.3s ease;
  --max-w:        1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-orange { color: var(--orange); }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn--primary:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,0,0.4);
}
.btn--outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn--outline:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}
.btn--large { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn--sm    { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background var(--ease), padding var(--ease), box-shadow var(--ease);
}
.header.scrolled {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.6);
  padding: 0.7rem 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: clamp(0.5rem, 1vw, 1rem);
  min-height: 56px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.8vw, 0.75rem);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 800;
  color: #fff;
  flex-shrink: 1;
  min-width: 0;
}
.nav__logo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav__logo .logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
}
.logo-accent { color: var(--orange); }
.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.75rem);
  list-style: none;
}
.nav__link {
  color: var(--text-muted);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 500;
  transition: color var(--ease);
  position: relative;
}
.nav__link:hover { color: #fff; }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--ease);
  border-radius: 2px;
}
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
  background: var(--orange);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--orange-light); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 1100;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--ease);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

.slider__track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ---- Slide iPhone 17 Pro Max ---- */
.slide--i17 {
  background: #000;
}
.slide--i17__bg-img {
  position: absolute;
  inset: 0;
  max-width: 2000px; /* Ampliado para que no parezcan sardinas en monitores anchos */
  margin: 0 auto;
  background-image: url('../assets/products/iphone_17promax_clean.png');
  background-size: auto 88%;
  background-repeat: no-repeat;
  background-position: right center;
  z-index: 1;
}

/* 3. Contenedor del texto (código limpio) */
.slide__inner.slide--i17__inner {
  position: relative;
  z-index: 10;
  grid-template-columns: 50% 50%; /* Volvemos a un balance 50/50 normal */
}

/* Tipografía y botones */
.slide--i17__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 1.5rem -10px; /* Movido un poquito a la izquierda para alinear mejor visualmente */
}

.slide--i17__title {
  font-size: clamp(3.2rem, 7.5vw, 6.8rem) !important;
  font-weight: 900 !important;
  line-height: 0.9 !important;
  letter-spacing: -0.04em !important;
  color: #fff;
  margin-left: -5px; /* Ajuste sutil a la izquierda */
  margin-bottom: 1.5rem !important;
}

.slide--i17__sub {
  color: rgba(255,255,255,0.4) !important;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem) !important;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2.5rem !important;
}

.slide--i17__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.25s;
}
.slide--i17__btn:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  background: rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .slide__inner.slide--i17__inner {
    grid-template-columns: 100%;
    text-align: center;
  }
}

/* ---- Slide backgrounds ---- */
.slide--macbook {
  background: #0a0a0a;
}
.slide--macbook__bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../assets/products/macbook_m5pro_banner.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 1;
}
.slide--watch {
  background:
    radial-gradient(ellipse 70% 80% at 75% 50%, rgba(16,185,129,0.26) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 85%, rgba(255,107,0,0.10) 0%, transparent 60%),
    linear-gradient(135deg, #020f09 0%, #031a0e 100%);
}
.slide--watch__bg-img {
  position: absolute;
  inset: 0;
  max-width: 2000px;
  margin: 0 auto;
  background-image: url('../assets/products/watch_banner_clean.png');
  background-size: auto 85%;
  background-repeat: no-repeat;
  background-position: right center;
  z-index: 1;
}
.slide--samsung {
  background:
    radial-gradient(ellipse 70% 80% at 75% 50%, rgba(6,182,212,0.26) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 85%, rgba(255,107,0,0.10) 0%, transparent 60%),
    linear-gradient(135deg, #020810 0%, #031020 100%);
}
.slide--samsung__bg-img {
  position: absolute;
  inset: 0;
  max-width: 2000px;
  margin: 0 auto;
  background-image: url('../assets/products/samsung_banner_clean.png');
  background-size: auto 92%;
  background-repeat: no-repeat;
  background-position: right bottom; /* Anclado al piso para que no flote */
  z-index: 1;
}

/* ---- Slide AirPods ---- */
.slide--airpods {
  background:
    radial-gradient(ellipse 80% 70% at 60% 50%, rgba(200,210,255,0.10) 0%, transparent 60%),
    linear-gradient(135deg, #050508 0%, #0c0c14 100%);
}
.slide--airpods__bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../assets/products/airpods_banner.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 1;
  opacity: 0.88;
}
.slide--airpods .slide__badge { color: #c7d2fe; border-color: rgba(199,210,254,0.35); background: rgba(99,102,241,0.15); }
.slide--airpods .slide__title { text-shadow: 0 2px 24px rgba(0,0,0,0.7); }
.slide--airpods .slide__sub   { text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.slide--airpods .accent--white { color: #ffffff; }
.slide--airpods__models {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  margin-bottom: 1.6rem;
}
.slide--airpods__model-pill {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ---- Slide Servicio Técnico ---- */
.slide--tecnico {
  background:
    radial-gradient(ellipse 140% 120% at 50% 52%,
      #8c3300 0%,
      #5a1e00 22%,
      #2e0e00 45%,
      #130500 68%,
      #050100 100%);
  overflow: hidden;
}
.slide--tecnico__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 90% at 52% 52%,
    rgba(255,130,0,0.13) 0%,
    transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { opacity: .7; }
  to   { opacity: 1; }
}
/* Robot — mix-blend-mode:screen hace que el negro del PNG sea invisible */
.slide--tecnico__robot-wrap {
  position: absolute;
  right: 0;
  top: 0; bottom: 0;
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.slide--tecnico__robot {
  width: 92%;
  max-height: 88vh;
  object-fit: contain;
  filter: brightness(1.35) contrast(1.15) saturate(1.3)
          drop-shadow(0 0 50px rgba(255,160,0,0.9))
          drop-shadow(0 0 100px rgba(255,100,0,0.55))
          drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  animation: robotFloat 4s ease-in-out infinite;
}
@keyframes robotFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-22px) rotate(1deg); }
}
.slide--tecnico .slide__inner {
  display: flex;
  align-items: center;
  grid-template-columns: unset;
  max-width: 52%;
}
.slide--tecnico .slide__text { position: relative; z-index: 3; width: 100%; }
.slide--tecnico .slide__badge {
  color: var(--orange);
  border-color: rgba(255,107,0,0.45);
  background: rgba(255,107,0,0.12);
  font-size: .78rem;
  letter-spacing: .18em;
}
.slide--tecnico__title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08; /* deja aire para tildes y descendentes; con 1 se cortaban arriba/abajo */
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 1.25rem;
}
.slide--tecnico__title .accent--orange { color: var(--orange); }
.slide--tecnico__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.75rem;
}
.slide--tecnico__pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  background: rgba(255,107,0,.10);
  border: 1px solid rgba(255,107,0,.30);
  border-radius: 50px;
  padding: .3rem .85rem;
}
.slide--tecnico__pill svg { flex-shrink: 0; }
.slide--tecnico__badge-garantia {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,107,0,.15);
  border: 1px solid rgba(255,107,0,.4);
  border-radius: 10px;
  padding: .55rem 1.1rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 1.75rem;
}

/* Dot-grid overlay */
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff' fill-opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.slide__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: center;
  height: 100%;
  padding-top: 80px;
  gap: 1rem;
  width: 100%;
}

.slide__text { padding-right: 1.5rem; }

.slide__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.95rem;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  border: 1px solid;
}

.slide--macbook .slide__badge { color: #38bdf8; border-color: rgba(56,189,248,0.35);  background: rgba(14,165,233,0.14); }
.slide--watch .slide__badge   { color: #34d399; border-color: rgba(52,211,153,0.35);  background: rgba(16,185,129,0.14); }
.slide--samsung .slide__badge { color: #22d3ee; border-color: rgba(34,211,238,0.35);  background: rgba(6,182,212,0.14); }

.slide__title {
  font-size: clamp(2.2rem, 4.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

.slide__title .accent--blue   { color: #38bdf8; }
.slide__title .accent--green  { color: #34d399; }
.slide__title .accent--cyan   { color: #22d3ee; }

.slide__sub {
  font-size: clamp(0.85rem, 1.15vw, 1rem);
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.65rem;
  line-height: 1.65;
}

.slide__price {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 2rem;
}

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

.slide__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

/* Imagen del producto */
.slide--i17__img {
  max-width: 100%;
  max-height: 85vh; /* Ajuste para que los celulares se vean completos y no gigantes */
  object-fit: contain;
  object-position: right center;
}

.slide__img {
  max-height: 74vh;
  max-width: 100%;
  object-fit: contain;
  display: block;
  animation: float 5.5s ease-in-out infinite;
}

.slide--macbook .slide__img { filter: drop-shadow(0 0 80px rgba(14,165,233,0.50)) drop-shadow(0 24px 48px rgba(0,0,0,0.7)); }
.slide--watch .slide__img   { filter: drop-shadow(0 0 80px rgba(16,185,129,0.50)) drop-shadow(0 24px 48px rgba(0,0,0,0.7)); }
.slide--samsung .slide__img { filter: drop-shadow(0 0 80px rgba(6,182,212,0.50))  drop-shadow(0 24px 48px rgba(0,0,0,0.7)); }

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

/* ---- Slider controls ---- */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--ease);
}
.slider__arrow:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-50%) scale(1.08); }
.slider__arrow--prev { left: 1.5rem; }
.slider__arrow--next { right: 1.5rem; }

.slider__dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  border: none;
  transition: width 0.35s ease, background 0.35s ease;
  padding: 0;
}
.slider__dot.active {
  width: 30px;
  background: var(--orange);
}

/* ===== SECCIONES ===== */
.section { padding: 5.5rem 0; }
.section--dark { background: var(--bg-alt); }
.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.section__subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1rem;
}
#js-services-sub {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--text); /* blanco en dark, casi negro en light — se adapta automáticamente */
  line-height: 1.4;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.section__divider {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 3px;
  margin: 0.75rem auto 2.75rem;
}

/* ===== TARJETAS SERVICIOS ===== */
/* ── Servicios: contenedor inteligente ── */
.services__sections { display: flex; flex-direction: column; gap: 2.5rem; }
.services__section-title {
  font-size: 1.1rem; font-weight: 700; color: var(--orange);
  border-bottom: 1px solid var(--border); padding-bottom: .5rem; margin-bottom: 1rem;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 1.25rem;
}

/* ── Servicios: Tabs (Opción A) ── */
.services__tabview { display: flex; flex-direction: column; gap: 0; }
.services__tab-select {
  display: none;
  width: 100%; padding: .65rem 1rem; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-size: 1rem; margin-bottom: 1.5rem;
}
.services__tab-bar {
  display: flex; flex-wrap: wrap; gap: .5rem;
  border-bottom: 2px solid var(--border); margin-bottom: 2rem; padding-bottom: .75rem;
}
.services__tab-btn {
  padding: .45rem 1.1rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: transparent; border: 1.5px solid var(--border); color: var(--text-muted);
  cursor: pointer; transition: all .2s;
}
.services__tab-btn:hover { border-color: var(--orange); color: var(--text); }
.services__tab-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.services__tab-panel { animation: fadeIn .2s ease; }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease), opacity var(--ease);
  opacity: 0;
  transform: translateY(16px);
  min-width: 0; /* permite que el grid item se achique por debajo de min-content */
  overflow-wrap: break-word;
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover {
  border-color: var(--orange);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px var(--orange-glow);
}
.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: rgba(255,107,0,.1);
  border: 1.5px solid rgba(255,107,0,.2);
  border-radius: 14px;
  margin: 0 auto .2rem;
}
.service-card__icon svg {
  width: 26px; height: 26px;
  stroke: var(--orange);
  transition: stroke .2s;
}
.service-card:hover .service-card__icon {
  background: rgba(255,107,0,.18);
  border-color: rgba(255,107,0,.4);
}
.service-card__title { font-size: 1rem; font-weight: 700; }
.service-card__desc  { color: var(--text-muted); font-size: 0.82rem; }
.service-card__price {
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ===== TARJETAS CATÁLOGO ===== */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 1.25rem;
}
.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease), opacity var(--ease);
  opacity: 0;
  transform: translateY(16px);
}
.catalog-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.catalog-card:hover {
  border-color: var(--orange);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px var(--orange-glow);
}
.catalog-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.catalog-card__brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.catalog-card__icon  { font-size: 3rem; margin: 0.5rem 0; line-height: 1; }
.catalog-card__model { font-size: 1.1rem; font-weight: 700; }
.catalog-card__storage { color: var(--text-muted); font-size: 0.85rem; }
.catalog-card__note  { color: var(--text-muted); font-size: 0.8rem; font-style: italic; }
.catalog-card__price {
  color: var(--orange);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0.4rem 0 0.75rem;
}

/* ===== BADGES ===== */
.badge {
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.badge--new       { background: #00C851; color: #fff; }
.badge--excellent { background: #2196F3; color: #fff; }
.badge--good      { background: #FF8800; color: #fff; }
.badge--ok        { background: #555;    color: #fff; }
.badge--openbox   { background: linear-gradient(135deg,#a855f7,#6366f1); color: #fff; }

/* ===== FILTROS CATÁLOGO ===== */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}
.cat-filter {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.cat-filter:hover  { border-color: var(--orange); color: var(--orange); }
.cat-filter.active { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }

/* foto en tarjeta catálogo */
.catalog-card__photo {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0.5rem 0;
  padding: 0.25rem;
  background: transparent;
}

/* ===== LO NUEVO ===== */
.lonuevo-section { background: var(--bg-alt); }

.lonuevo__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.lonuevo__badge {
  display: inline-block;
  background: #007AFF;
  color: #fff;
  font-size: 0.77rem;
  font-weight: 700;
  padding: 0.26rem 0.9rem;
  border-radius: 50px;
}

/* ---- Featured card ---- */
.lonuevo__featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 3rem 2.5rem 2.5rem;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}

.lonuevo__featured-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.lonuevo__featured-img {
  max-width: 100%;
  max-height: 270px;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.55));
}

.lonuevo__dots {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  align-items: center;
}
.lonuevo__dots span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.lonuevo__dots--sm span {
  width: 10px;
  height: 10px;
}

.lonuevo__featured-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.lonuevo__featured-title {
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}
.lonuevo__accent-green { color: #34C759; }
.lonuevo__accent-blue  { color: #64b5f6; }

.lonuevo__featured-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.lonuevo__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--ease);
  margin-top: 0.4rem;
  white-space: nowrap;
}
.lonuevo__btn:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255,107,0,0.42);
}

/* ---- Grid de tarjetas pequeñas ---- */
.lonuevo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.lonuevo__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.lonuevo__card-heading {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lonuevo__card-name {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

.lonuevo__card-img {
  max-height: 290px;
  max-width: 85%;
  object-fit: contain;
  margin: 0.75rem 0;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.5));
}

/* ===== PROMOS DEL MES ===== */
.promos-section {
  background: #080810;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
/* Glows de fondo */
.promos-section::before {
  content: '';
  position: absolute;
  top: -120px; left: -180px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,107,0,.14) 0%, transparent 65%);
  pointer-events: none;
}
.promos-section::after {
  content: '';
  position: absolute;
  bottom: -150px; right: -150px;
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(0,122,255,.1) 0%, transparent 65%);
  pointer-events: none;
}

/* Header */
.promos__header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}
.promos__eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,107,0,.12);
  border: 1px solid rgba(255,107,0,.3);
  border-radius: 50px;
  padding: .3rem 1rem;
  margin-bottom: 1rem;
}
.promos__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .95;
  background: linear-gradient(135deg, #FF6B00 0%, #FF9500 40%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .75rem;
  text-shadow: none;
}
.promos__subtitle {
  color: #888;
  font-size: .95rem;
  font-weight: 400;
}

/* Grid */
.promos__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}

/* Card */
.promo-card {
  background: linear-gradient(160deg, #14141f 0%, #1a1a2e 100%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.28s cubic-bezier(.34,1.56,.64,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.promo-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 56px rgba(0,0,0,.65), 0 0 0 1.5px rgba(255,107,0,.45);
  border-color: rgba(255,107,0,.4);
}
/* Línea superior naranja */
.promo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #FFD700, var(--orange));
  background-size: 200% 100%;
  animation: promoShimmer 2.5s linear infinite;
}
@keyframes promoShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Badge PROMO */
.promo-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: linear-gradient(135deg, #FF3B30, #FF6B00);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .22rem .6rem;
  border-radius: 50px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(255,59,48,.4);
}

/* Zona imagen */
.promo-card__img-wrap {
  background: linear-gradient(160deg, #1e1e35 0%, #10101e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 1.2rem;
  min-height: 170px;
  position: relative;
}
/* Glow detrás del producto */
.promo-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 20% 20%;
  background: radial-gradient(circle, rgba(255,107,0,.18) 0%, transparent 70%);
  pointer-events: none;
}
.promo-card__img {
  max-height: 140px;
  max-width: 82%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.7));
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  z-index: 1;
}
.promo-card:hover .promo-card__img { transform: scale(1.1) translateY(-6px); }
.promo-card__icon {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
  position: relative;
  z-index: 1;
}

/* Cuerpo de la tarjeta */
.promo-card__body {
  padding: 1rem 1rem .85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.promo-card__name {
  font-size: .85rem;
  font-weight: 700;
  color: #e8e8f0;
  margin-bottom: .45rem;
  line-height: 1.3;
}
.promo-card__pricing { margin-bottom: .9rem; }
.promo-card__precio-antes {
  font-size: .75rem;
  color: #555;
  text-decoration: line-through;
  margin-bottom: .1rem;
}
.promo-card__price {
  font-size: 1.45rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FF6B00, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}

/* Botones */
.promo-card__actions { display: flex; flex-direction: column; gap: .45rem; margin-top: auto; }
.promo-card__btn-outline {
  display: block; width: 100%; text-align: center;
  padding: .46rem .8rem;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 50px;
  color: rgba(255,255,255,.75);
  font-size: .76rem; font-weight: 600; font-family: inherit;
  background: transparent; cursor: pointer; text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.promo-card__btn-outline:hover { border-color: rgba(255,107,0,.6); color: var(--orange); background: rgba(255,107,0,.07); }
.promo-card__btn-solid {
  display: block; width: 100%; text-align: center;
  padding: .52rem .8rem;
  border: none; border-radius: 50px;
  background: linear-gradient(135deg, #FF6B00, #FF9500);
  color: #fff;
  font-size: .76rem; font-weight: 800; font-family: inherit;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 14px rgba(255,107,0,.35);
  transition: box-shadow .2s, transform .15s;
}
.promo-card__btn-solid:hover { box-shadow: 0 6px 20px rgba(255,107,0,.55); transform: translateY(-1px); }

/* Responsive promos */
@media (max-width: 1100px) { .promos__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .promos__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px)  { .promos__grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; } .promos__title { font-size: 2.4rem; } }

/* ===== MODAL DETALLE PROMO ===== */
.promo-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.promo-modal-overlay.open { display: flex; }

.promo-modal {
  background: #14141f;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 44% 56%;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  animation: pmFadeIn .22s ease;
}
@keyframes pmFadeIn { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }

.promo-modal__close {
  position: absolute;
  top: .9rem; right: .9rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .85rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.promo-modal__close:hover { background: #ef4444; border-color: #ef4444; }

.promo-modal__img-wrap {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 280px;
  padding: 2rem 1.5rem;
}
.promo-modal__badge {
  position: absolute;
  top: .9rem; left: .9rem;
  background: var(--orange);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .25rem .6rem;
  border-radius: 50px;
}
.promo-modal__img {
  width: 100%; height: 100%;
  object-fit: contain;
  max-height: 260px;
  display: block;
}
.promo-modal__icon {
  font-size: 5rem;
  line-height: 1;
}

.promo-modal__body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  overflow-y: auto;
}
.promo-modal__nombre {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}
.promo-modal__descripcion {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}
.promo-modal__descripcion:empty { display: none; }
.promo-modal__pricing {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}
.promo-modal__precio-antes {
  color: var(--text-muted);
  font-size: .95rem;
  text-decoration: line-through;
}
.promo-modal__precio-antes:empty { display: none; }
.promo-modal__precio {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.promo-modal__wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  margin-top: auto;
  transition: background .2s, transform .15s;
}
.promo-modal__wa-btn:hover { background: #1ebe5d; transform: translateY(-2px); }

@media (max-width: 600px) {
  .promo-modal { grid-template-columns: 1fr; max-height: 95vh; }
  .promo-modal__img-wrap { min-height: 200px; }
  .promo-modal__body { padding: 1.25rem; }
  .promo-modal__nombre { font-size: 1.2rem; }
  .promo-modal__precio { font-size: 1.6rem; }
}

/* Light mode */
body.light-mode .promo-modal { background: #ffffff; border-color: var(--border); }
body.light-mode .promo-modal__img-wrap { background: #f5f7fa; }
body.light-mode .promo-modal__nombre { color: #0f1117; }

/* ===== TRADE-IN ===== */
.tradein__hero-img {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -1rem 0 2.5rem;
  pointer-events: none;
  overflow: hidden;
}
.tradein__hero-img::before,
.tradein__hero-img::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 22%;
  z-index: 2;
}
.tradein__hero-img::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 30%, transparent 100%);
}
.tradein__hero-img::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 30%, transparent 100%);
}
.tradein__hands-img {
  width: 80%;
  max-width: 820px;
  object-fit: contain;
  opacity: .42;
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 60px rgba(255,107,0,.28)) saturate(1.1);
  display: block;
}

.tradein__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
}
.tradein__steps { display: flex; flex-direction: column; gap: 2rem; }
.tradein__step  { display: flex; align-items: flex-start; gap: 1.5rem; }
.tradein__step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.25;
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
}
.tradein__step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }
.tradein__step p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.tradein__cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tradein__cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,107,0,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.tradein__cta-icon { font-size: 3rem; margin-bottom: 1rem; }
.tradein__cta-box h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; }
.tradein__cta-box > p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.75rem; }
.tradein__accepts { margin-top: 1.75rem; }
.tradein__accepts > span { color: var(--text-muted); font-size: 0.8rem; display: block; margin-bottom: 0.6rem; }
.tradein__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.tradein__tags span {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== SERVICIO TÉCNICO CON ROBOT ===== */
.tecnico-section {
  background: linear-gradient(135deg, #0a0a14 0%, #0d0d1e 50%, #080810 100%);
  padding: 5rem 0;
  overflow: hidden;
  position: relative;
}
.tecnico-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 20% 50%, rgba(255,107,0,.09) 0%, transparent 70%),
    radial-gradient(ellipse 45% 50% at 80% 50%, rgba(0,122,255,.08) 0%, transparent 70%);
  pointer-events: none;
}

.tecnico__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ---- Panel robot ---- */
.tecnico__robot-panel { position: relative; display: flex; justify-content: center; }

.tecnico__scene {
  position: relative;
  width: 380px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Partículas de fondo */
.tpar {
  position: absolute;
  border-radius: 50%;
  background: var(--orange);
  opacity: .18;
  animation: tparFloat 4s ease-in-out infinite;
}
.tpar--1 { width:8px;  height:8px;  top:8%;   left:12%;  animation-delay:0s;    animation-duration:3.8s; }
.tpar--2 { width:5px;  height:5px;  top:20%;  right:10%; animation-delay:.7s;   animation-duration:4.5s; background:#007AFF; }
.tpar--3 { width:10px; height:10px; bottom:18%;left:8%;  animation-delay:1.2s;  animation-duration:3.2s; }
.tpar--4 { width:4px;  height:4px;  bottom:25%;right:14%;animation-delay:.4s;   animation-duration:5s;   background:#FFD700; }
.tpar--5 { width:6px;  height:6px;  top:50%;  right:5%;  animation-delay:1.8s;  animation-duration:4.1s; }
@keyframes tparFloat {
  0%,100% { transform: translateY(0) scale(1); opacity:.18; }
  50%      { transform: translateY(-18px) scale(1.3); opacity:.35; }
}

/* Herramientas flotantes */
.ttool {
  position: absolute;
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 8px rgba(255,107,0,.5));
  animation: ttoolOrbit 3s ease-in-out infinite;
  z-index: 2;
}
.ttool--screw { top:12%; right:10%; animation-delay:0s;   animation-duration:2.8s; }
.ttool--chip  { bottom:20%; left:8%; animation-delay:.9s; animation-duration:3.4s; font-size:1.2rem; }
.ttool--bolt  { top:45%; right:5%;  animation-delay:1.6s; animation-duration:2.5s; font-size:1rem; }
@keyframes ttoolOrbit {
  0%,100% { transform: translateY(0) rotate(0deg); }
  25%     { transform: translateY(-10px) rotate(12deg); }
  75%     { transform: translateY(6px) rotate(-8deg); }
}

/* Robot principal */
.tecnico__robot-wrap {
  position: relative;
  z-index: 3;
  animation: robotBreathe 3.2s ease-in-out infinite;
}
@keyframes robotBreathe {
  0%,100% { transform: translateY(0) rotate(0deg); }
  20%     { transform: translateY(-8px) rotate(.8deg); }
  50%     { transform: translateY(-14px) rotate(-.5deg); }
  80%     { transform: translateY(-6px) rotate(.4deg); }
}

.tecnico__robot-body { position: relative; display: inline-block; }

.tecnico__robot-img {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(255,107,0,.3)) drop-shadow(0 0 60px rgba(255,107,0,.15));
  animation: robotGlow 2.4s ease-in-out infinite alternate;
}
@keyframes robotGlow {
  from { filter: drop-shadow(0 16px 40px rgba(255,107,0,.25)) drop-shadow(0 0 50px rgba(255,107,0,.1)); }
  to   { filter: drop-shadow(0 20px 50px rgba(255,107,0,.45)) drop-shadow(0 0 80px rgba(255,107,0,.22)); }
}

/* ── Modo logo: cuando el negocio sube su logo en vez del robot ─────────────── */
.tecnico__robot-body.has-logo .tecnico__screwdriver,
.tecnico__robot-body.has-logo .tecnico__phone { display: none; }

.tecnico__robot-body.has-logo .tecnico__robot-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 28px;
  background: rgba(255,255,255,.05);
  padding: 1.6rem;
  border: 1.5px solid rgba(255,107,43,.22);
  filter: none;
  animation: logoGlow 3s ease-in-out infinite alternate;
}
@keyframes logoGlow {
  from { box-shadow: 0 10px 40px rgba(255,107,43,.22), 0 0 60px rgba(255,107,43,.08), inset 0 0 20px rgba(255,255,255,.02); }
  to   { box-shadow: 0 18px 60px rgba(255,107,43,.42), 0 0 100px rgba(255,107,43,.18), inset 0 0 20px rgba(255,255,255,.04); }
}

/* Widget flotante en modo logo */
.robot-trigger img.is-logo {
  object-fit: contain;
  background: #1a1a2e;
  padding: 5px;
}

/* Destornillador CSS */
.tecnico__screwdriver {
  position: absolute;
  right: -30px;
  top: 38%;
  transform-origin: 8px 8px;
  animation: screwWork 1.1s ease-in-out infinite;
}
@keyframes screwWork {
  0%   { transform: rotate(-18deg) translateX(0); }
  30%  { transform: rotate(8deg)  translateX(4px); }
  60%  { transform: rotate(-14deg) translateX(-2px); }
  100% { transform: rotate(-18deg) translateX(0); }
}
.tecnico__screw-handle {
  width: 16px; height: 24px;
  background: linear-gradient(135deg, #FF6B00, #FF9500);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(255,107,0,.4);
}
.tecnico__screw-shaft {
  width: 5px; height: 32px;
  background: #c0c0c8;
  margin: 0 auto;
  border-radius: 0 0 2px 2px;
}
.tecnico__screw-tip {
  width: 8px; height: 5px;
  background: #888;
  margin: 0 auto;
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

/* Teléfono que el robot repara */
.tecnico__phone {
  position: absolute;
  bottom: -10px;
  left: -24px;
  width: 36px;
  height: 60px;
  background: linear-gradient(160deg, #1e1e35, #141428);
  border: 1.5px solid rgba(255,107,0,.4);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.6), 0 0 12px rgba(255,107,0,.2);
  animation: phoneShake .28s ease-in-out infinite alternate;
}
@keyframes phoneShake {
  from { transform: rotate(-2deg) translateX(0); }
  to   { transform: rotate(2deg)  translateX(1px); }
}
.tecnico__phone-screen {
  width: 26px; height: 46px;
  background: radial-gradient(circle at 40% 40%, #1a3a5c, #0a0a20);
  border-radius: 3px;
  position: relative; overflow: hidden;
}
.tecnico__phone-spark {
  position: absolute; top: 30%; left: 35%;
  width: 8px; height: 8px;
  background: #FFD700;
  border-radius: 50%;
  box-shadow: 0 0 10px #FFD700, 0 0 20px rgba(255,215,0,.5);
  animation: sparkPulse .6s ease-in-out infinite alternate;
}
@keyframes sparkPulse {
  from { transform: scale(.7); opacity:.7; }
  to   { transform: scale(1.4); opacity:1; }
}

/* Ondas de energía */
.tecnico__pulse {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,107,0,.2);
  animation: pulseRing 2.8s ease-out infinite;
  pointer-events: none;
}
.tecnico__pulse--1 { width:280px; height:280px; animation-delay:0s; }
.tecnico__pulse--2 { width:340px; height:340px; animation-delay:1.4s; }
@keyframes pulseRing {
  0%   { transform: scale(.6); opacity:.6; }
  100% { transform: scale(1.15); opacity:0; }
}

/* ---- Panel info ---- */
.tecnico__info { padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0; }

.tecnico__heading { margin-bottom: 1.5rem; }

.tecnico__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .45rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.tecnico__label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.tecnico__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0;
}
.tecnico__title-badge {
  display: inline;
  background: linear-gradient(135deg, #007AFF, #0056CC);
  color: #fff;
  font-size: inherit;
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: lowercase;
  padding: .06em .28em .1em;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,122,255,.35);
  white-space: nowrap;
}

/* Divisor */
.tecnico__divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  border-radius: 2px;
  margin: 1.25rem 0;
}

/* Dispositivos */
.tecnico__devices {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.tecnico__device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  color: #aaa;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: color .2s;
}
.tecnico__device:hover { color: #fff; }
.tecnico__device-svg {
  width: 30px; height: 30px;
  stroke: #ccc;
  transition: stroke .2s;
}
.tecnico__device:hover .tecnico__device-svg { stroke: #fff; }

/* Marcas */
.tecnico__brands-title {
  font-size: .97rem;
  font-weight: 700;
  margin-bottom: .85rem;
  color: #e0e0e8;
}
.tecnico__accent { color: #007AFF; }

.tecnico__brands-box {
  background: linear-gradient(135deg, #1a3a7a 0%, #0d2550 100%);
  border: 1px solid rgba(0,122,255,.3);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
  box-shadow: 0 6px 24px rgba(0,50,150,.25), inset 0 1px 0 rgba(255,255,255,.06);
}
.tecnico__brand {
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-right: 1px solid rgba(255,255,255,.15);
  padding-right: 1rem;
}
.tecnico__brand:last-child { border-right: none; padding-right: 0; }

.tecnico__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, #FF6B00, #FF9500);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(255,107,0,.4);
  transition: transform .2s, box-shadow .2s;
}
.tecnico__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,0,.55); }

/* Responsive */
@media (max-width: 900px) {
  .tecnico__inner { grid-template-columns: 1fr; text-align: center; }
  .tecnico__robot-panel { margin-bottom: 1rem; }
  .tecnico__devices { justify-content: center; }
  .tecnico__brands-box { justify-content: center; }
  .tecnico__brand { border-right: none; border-bottom: none; }
  .tecnico__info { padding-left: 0; }
  .tecnico__label { justify-content: center; }
  .tecnico__divider { margin: 1.25rem auto; }
  .tecnico__scene { width: 300px; height: 340px; }
  .tecnico__robot-img { width: 170px; }
}

/* ===== UBICACIÓN ===== */
.location__wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.location__map iframe,
#map { display: block; }
.location__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.location__store-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--bg-card); }
.location__store-photo-img { width: 100%; max-height: 320px; object-fit: contain; display: block; }
.location__card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.location__icon { font-size: 1.75rem; line-height: 1; flex-shrink: 0; }
.location__card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.location__card p  { color: var(--text-muted); font-size: 0.85rem; }

/* ===== REDES SOCIALES ===== */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease), opacity var(--ease);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  min-width: 0; /* permite que el grid item se achique por debajo de min-content */
}
.social-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.social-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--orange-glow);
}
.social-card__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}
.social-card > div:last-child { min-width: 0; overflow: hidden; }
.social-card__name { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social-card__info { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== FOOTER ===== */
.footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.footer__logo {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.footer__text {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

/* ===== MODAL DE PRODUCTO ===== */
.pmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pmodal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.pmodal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow: hidden;
  position: relative;
  transform: scale(0.94) translateY(24px);
  transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94);
  display: flex;
  flex-direction: column;
}
.pmodal-overlay.open .pmodal {
  transform: scale(1) translateY(0);
}

.pmodal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
  transition: var(--ease);
}
.pmodal__close:hover { background: #ef4444; border-color: #ef4444; }

.pmodal__body {
  display: grid;
  grid-template-columns: 46% 54%;
  overflow: hidden;
  height: 100%;
}

/* Gallery */
.pmodal__gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(145deg, #111118 0%, #16161e 100%);
  border-radius: 24px 0 0 24px;
  padding: 2rem 1.5rem 2rem 1rem;
  position: relative;
  min-height: 420px;
}

/* Stage de producto — fondo blanco puro para mezclar imágenes originales (Apple) sin recorte */
.pmodal__img-stage {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 76px);
  flex: 1;
  min-height: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  overflow: hidden;
}

.pmodal__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.pmodal__thumb {
  width: 56px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: #1a1a24;
  overflow: hidden;
  cursor: pointer;
  transition: var(--ease);
  flex-shrink: 0;
  padding: 4px;
}
.pmodal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pmodal__thumb:hover, .pmodal__thumb.active { border-color: var(--orange); }

.pmodal__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.22s ease, filter 0.38s ease, transform 0.3s ease;
  display: block;
}
.pmodal__main-img.switching { opacity: 0; transform: scale(0.93); }

/* MacBook specific styling */
.pmodal-overlay[data-product="macbook_neo"] .pmodal__main-img {
  transform: scale(1.0); /* Tamaño natural para que no se vea tan grande */
  max-width: 95%; /* Pequeño margen interno */
}
.pmodal-overlay[data-product="macbook_neo"] .pmodal__main-img.switching {
  transform: scale(0.93);
}

/* Info panel */
.pmodal__info {
  padding: 2.25rem 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.pmodal__title {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  padding-right: 2.5rem;
}

.pmodal__price-top {
  font-size: 1.9rem;
  font-weight: 800;
  color: #007AFF;
  line-height: 1;
}

.pmodal__option { display: flex; flex-direction: column; gap: 0.5rem; }

.pmodal__option-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.pmodal__option-label span { color: var(--text); font-weight: 600; }

.pmodal__option-btns { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.pmodal__opt-btn {
  padding: 0.35rem 0.95rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.pmodal__opt-btn:hover { border-color: #007AFF; color: #007AFF; }
.pmodal__opt-btn.active {
  background: #007AFF;
  border-color: #007AFF;
  color: #fff;
  font-weight: 600;
}

.pmodal__colors { display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; }

.pmodal__color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  outline: none;
}
.pmodal__color-btn:hover { transform: scale(1.18); }
.pmodal__color-btn.active {
  box-shadow: 0 0 0 2.5px var(--bg-card), 0 0 0 4.5px var(--orange);
}

.pmodal__price-box {
  background: var(--orange);
  color: #fff;
  font-size: 2.1rem;
  font-weight: 800;
  border-radius: 14px;
  padding: 0.75rem 1.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.pmodal__wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--ease);
}
.pmodal__wa-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
}

.pmodal__trust {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.pmodal__trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.pmodal__trust-item svg { color: var(--orange); flex-shrink: 0; }

@media (max-width: 640px) {
  .pmodal { max-height: 95vh; border-radius: 20px; }
  .pmodal__body { grid-template-columns: 1fr; overflow-y: auto; }
  .pmodal__gallery { border-radius: 20px 20px 0 0; padding: 1.5rem 1rem; min-height: 260px; flex-direction: row; gap: 0.75rem; }
  .pmodal__thumbs { flex-direction: column; position: static; transform: none; }
  .pmodal__img-stage { width: auto; flex: 1; padding: 1rem; }
  .pmodal__info { padding: 1.5rem 1.5rem 2rem; }
  .pmodal__price-box { font-size: 1.6rem; }
}

/* ===== ROBOT WIDGET ===== */
.robot-widget {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.robot-popup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px 16px 4px 16px;
  padding: 1.1rem 1.2rem 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.65);
  transform: scale(0.88) translateY(10px);
  transform-origin: bottom right;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
  min-width: 215px;
  text-align: center;
}
.robot-popup.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.robot-popup p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.robot-trigger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.42rem 1.1rem 0.42rem 0.42rem;
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
  box-shadow: 0 4px 22px rgba(0,0,0,0.45);
}
.robot-trigger:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 30px var(--orange-glow);
}
.robot-trigger img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
  animation: float 4.5s ease-in-out infinite;
}
.robot-trigger span {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .location__wrapper {
    grid-template-columns: 1fr;
  }
  .location__info {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .location__info > * { flex: 1 1 200px; }
}

/* Header/nav: hamburger desde iPad portrait (≤1024) para no apretar los 9 items */
@media (max-width: 1024px) {
  .header { padding: 0.55rem 0; }
  .header.scrolled { padding: 0.5rem 0; }
  .nav { min-height: 48px; gap: 0.5rem; }
  .nav__logo { font-size: 1.05rem; gap: 0.55rem; }
  .nav__logo .logo-img { width: 36px; height: 36px; border-width: 1.5px; }

  /* Toggle hamburguesa: caja táctil 44x44, fija, no encoge */
  .nav__toggle {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
  }
  .nav__toggle span { width: 22px; }

  /* Drawer lateral fuera del flow (no afecta la barra horizontal) */
  .nav__menu {
    position: fixed;
    top: 0;
    right: -110%;
    width: 72%;
    max-width: 290px;
    height: 100vh;
    background: #111;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2rem;
    gap: 1.75rem;
    transition: right var(--ease);
    box-shadow: -6px 0 32px rgba(0,0,0,0.7);
    z-index: 1050;
    border-left: 1px solid var(--border);
  }
  .nav__menu.active { right: 0; }
  .nav__link { font-size: 1.1rem; }
}

@media (max-width: 768px) {
  .hero-slider { height: 88vh; min-height: 500px; }
  .slide__inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding-top: 100px;
    padding-bottom: 3rem;
    overflow: hidden;
  }
  .slide__text { text-align: center; padding-right: 0; }
  .slide__actions { justify-content: center; }
  .slide__visual { display: none; }
  .slider__arrow { display: none; }

  /* Slide técnico en móvil: texto full-width y robot como fondo tenue */
  .slide--tecnico .slide__inner { max-width: 100%; }
  .slide--tecnico__robot-wrap { width: 100%; opacity: .18; }

  .section { padding: 4rem 0; }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .services__tab-select { display: block; }
  .services__tab-bar { display: none; }

  .lonuevo__featured {
    grid-template-columns: 1fr;
    padding: 1.75rem;
    text-align: center;
  }
  .lonuevo__featured-body { align-items: center; }
  .lonuevo__grid { grid-template-columns: 1fr; }

  .tradein__grid { grid-template-columns: 1fr; }

  .location__info {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .services__grid  { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .catalog__grid   { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .contact__grid   { grid-template-columns: 1fr 1fr; }

  .service-card { padding: 1.4rem 1rem; }
  .service-card__icon { width: 44px; height: 44px; }

  .robot-trigger span { display: none; }
  .robot-trigger { padding: 0.42rem; border-radius: 50%; }
  .robot-trigger img { width: 52px; height: 52px; }
  .robot-popup { min-width: 190px; }
}

/* ═══════════════════════════════════════════════════════════
   MODO CLARO — light-mode
   Aplicado con class="light-mode" en <body>
   Todo lo que usa var(--*) cambia automáticamente.
   Las secciones con colores hardcodeados se sobreescriben aquí.
═══════════════════════════════════════════════════════════ */

/* Variables base */
body.light-mode {
  --bg:           #f5f7fa;
  --bg-alt:       #eceef3;
  --bg-card:      #ffffff;
  --border:       #dde1ea;
  --text:         #0f1117;
  --text-muted:   #5c6070;
  --shadow:       0 4px 28px rgba(0,0,0,0.09);
  --orange-glow:  rgba(255,107,0,0.11);
}

/* Header — en modo día: superficie única, sin bordes ni sombras hasta scrollear */
body.light-mode .header {
  background: rgba(245,247,250,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: none;
  box-shadow: none;
}
body.light-mode .header.scrolled {
  background: rgba(245,247,250,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.09);
  border-bottom: none;
}

/* Slider arrows */
body.light-mode .slider__arrow {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.12);
  color: #111;
}

/* Lo Nuevo — imagen destacada y tarjetas */
body.light-mode .lonuevo-section    { background: var(--bg-alt); }
body.light-mode .lonuevo__featured-media {
  background: linear-gradient(160deg, #e8eaf0 0%, #dde0ea 100%);
}
body.light-mode .lonuevo__card {
  background: #ffffff;
  border-color: var(--border);
}

/* Promos del mes */
body.light-mode .promos-section { background: #eceef3; }
body.light-mode .promos-section::before,
body.light-mode .promos-section::after { opacity: .35; }
body.light-mode .promo-card { background: #ffffff; border: 1px solid var(--border); box-shadow: 0 4px 18px rgba(0,0,0,.07); }
body.light-mode .promo-card__img-wrap { background: linear-gradient(160deg, #f0f2f5 0%, #e8eaf0 100%); }
body.light-mode .promo-card__name    { color: #0f1117; }
body.light-mode .promo-card__price   { color: var(--orange); }

/* Sección servicio técnico */
body.light-mode .tecnico-section {
  background: linear-gradient(135deg, #f0f3f8 0%, #e6eaf2 50%, #dde2ed 100%);
}
body.light-mode .tecnico__title-badge { color: #0f1117; }
body.light-mode .tecnico__brands-box { background: rgba(0,0,0,0.05); border-color: var(--border); }
body.light-mode .tecnico__brand { color: #5c6070; border-color: var(--border); }
body.light-mode .tecnico__device svg { stroke: #5c6070; }
body.light-mode .tecnico__device span { color: #0f1117; }

/* Modal de producto */
body.light-mode .pmodal {
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}
body.light-mode .pmodal__gallery {
  background: linear-gradient(145deg, #f0f2f6 0%, #e8ebf2 100%);
}
body.light-mode .pmodal__thumb {
  background: #f5f5f8;
  border-color: var(--border);
}
body.light-mode .pmodal__close {
  background: #eceef3;
  border-color: var(--border);
  color: #0f1117;
}
body.light-mode .pmodal__option-label { color: #5c6070; }
body.light-mode .pmodal__opt-btn {
  background: #f0f2f5;
  border-color: var(--border);
  color: #0f1117;
}
body.light-mode .pmodal__opt-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
body.light-mode .pmodal__trust-item { color: #5c6070; }

/* Robot widget */
body.light-mode .robot-trigger {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}
body.light-mode .robot-trigger img.is-logo { background: #f0f2f5; }
body.light-mode .robot-popup {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 8px 36px rgba(0,0,0,0.12);
}

/* Footer — se mantiene oscuro: se ve muy bien en ambos modos */
body.light-mode .footer { background: #1a1c24; border-top-color: #2a2d3a; }
body.light-mode .footer__logo,
body.light-mode .footer__text { color: #b0b5c8; }

/* Nav — logo y hamburger */
body.light-mode .nav__logo { color: #0f1117; }
body.light-mode .nav__link:hover { color: #0f1117; }
body.light-mode .nav__toggle span { background: #0f1117; }

/* Promo card — botón outline (borde y texto blancos = invisibles sobre fondo claro) */
body.light-mode .promo-card__btn-outline {
  color: #5c6070;
  border-color: rgba(0,0,0,.15);
}
body.light-mode .promo-card__btn-outline:hover {
  color: var(--orange);
  border-color: rgba(255,107,0,.5);
  background: rgba(255,107,0,.06);
}

/* Tecnico — textos que eran blancos sobre fondo oscuro */
body.light-mode .tecnico__title { color: #0f1117; }
body.light-mode .tecnico__brands-title { color: #0f1117; }
body.light-mode .tecnico__device:hover { color: #0f1117; }
body.light-mode .tecnico__device:hover .tecnico__device-svg { stroke: #0f1117; }

/* Botón de tema — sol/luna en el nav */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: border-color var(--ease), background var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
body.light-mode .theme-toggle .icon-moon { display: none; }
body.light-mode .theme-toggle .icon-sun  { display: block; }

/* ── Slider hero — las diapositivas tienen fondos oscuros hardcodeados,
   pero .slide__title hereda var(--text) que en light-mode = #0f1117.
   Forzamos texto blanco dentro de las diapositivas siempre. ──────── */
body.light-mode .slide__title,
body.light-mode .slide--i17__title { color: #ffffff; }
body.light-mode .slide__sub        { color: rgba(255,255,255,0.55); }
body.light-mode .slide--tecnico__title { color: #ffffff; }

/* Menú hamburguesa móvil — solo en mobile; en desktop no debe tener fondo propio */
@media (max-width: 768px) {
  body.light-mode .nav__menu {
    background: var(--bg);
    box-shadow: -6px 0 32px rgba(0,0,0,0.12);
    border-left-color: var(--border);
  }
}

/* Acentos de Lo Nuevo — colores demasiado claros sobre fondo blanco */
body.light-mode .lonuevo__accent-green { color: #15803d; }
body.light-mode .lonuevo__accent-blue  { color: #1d6fb8; }

/* Precio tachado en promos — queda ilegible si permanece #555 en contexto claro */
body.light-mode .promo-card__precio-antes { color: #8a8fa0; }
