/* ═══════════════════════════════════════════════
   CNETWORK.MX — Tema oscuro espacial
   ═══════════════════════════════════════════════ */
:root {
  --fondo:        #04060d;
  --fondo-alt:    #070d1a;
  --panel:        #0b1322;
  --panel-borde:  rgba(61, 214, 255, 0.14);
  --cian:         #3dd6ff;
  --cian-suave:   rgba(61, 214, 255, 0.12);
  --violeta:      #8b7bff;
  --texto:        #e8f1f8;
  --texto-suave:  #93a4b8;
  --wa:           #25d366;
  --radio:        14px;
  --fuente:       'Chakra Petch', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente);
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.contenedor { width: min(1150px, 92%); margin-inline: auto; }

/* ── Tipografía ── */
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.2; font-weight: 700; margin-bottom: .5rem; }
h3 { font-size: 1.1rem; font-weight: 600; }
.acento { color: var(--cian); text-shadow: 0 0 24px rgba(61, 214, 255, .45); }
.eyebrow {
  color: var(--cian); text-transform: uppercase; letter-spacing: .22em;
  font-size: .78rem; font-weight: 600; margin-bottom: .6rem;
}
.seccion-sub { color: var(--texto-suave); max-width: 640px; margin-bottom: 2.2rem; }

/* ── Botones ── */
.boton {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.5rem; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.boton:hover { transform: translateY(-2px); }
.boton-primario {
  background: linear-gradient(135deg, var(--cian), #2ea8e6);
  color: #04121c; box-shadow: 0 4px 24px rgba(61, 214, 255, .35);
}
.boton-primario:hover { box-shadow: 0 8px 32px rgba(61, 214, 255, .5); }
.boton-borde {
  background: transparent; color: var(--texto);
  border: 1px solid var(--panel-borde); box-shadow: inset 0 0 0 0 var(--cian-suave);
}
.boton-borde:hover { border-color: var(--cian); color: var(--cian); }
.boton-wa { background: var(--wa); color: #04170b; }
.boton-wa:hover { box-shadow: 0 6px 24px rgba(37, 211, 102, .4); }
.boton-grande { padding: .95rem 2rem; font-size: 1.05rem; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; }

/* ── Header ── */
.cabecera {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: .7rem 0;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.cabecera.compacta {
  background: rgba(4, 6, 13, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--panel-borde);
}
.cabecera-int { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marca-logo {
  height: 44px; width: auto;
  filter: invert(1) hue-rotate(180deg);   /* logo negro → blanco para fondo oscuro */
  mix-blend-mode: screen;
}
.navegacion { display: flex; align-items: center; gap: 1.15rem; }
.navegacion a:not(.boton) {
  color: var(--texto); text-decoration: none; font-weight: 500; font-size: .92rem;
  position: relative;
}
.navegacion a:not(.boton)::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--cian); transition: width .2s ease;
}
.navegacion a:not(.boton):hover::after { width: 100%; }
.nav-wa { padding: .5rem 1.1rem; font-size: .88rem; }

.menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.menu-btn span { width: 26px; height: 2.5px; background: var(--texto); border-radius: 2px; transition: .25s; }
.menu-btn.abierto span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.abierto span:nth-child(2) { opacity: 0; }
.menu-btn.abierto span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem 0 4rem;
  background:
    radial-gradient(ellipse 60% 45% at 70% 20%, rgba(61, 214, 255, .08), transparent),
    radial-gradient(ellipse 45% 40% at 20% 80%, rgba(139, 123, 255, .07), transparent),
    var(--fondo);
}
#constelacion { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-int { position: relative; z-index: 2; max-width: 780px; }
.hero-eyebrow {
  display: inline-block; padding: .35rem 1rem; border-radius: 999px;
  border: 1px solid var(--panel-borde); background: var(--cian-suave);
  color: var(--cian); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-sub { color: var(--texto-suave); font-size: 1.12rem; margin: 1.1rem 0 1.8rem; max-width: 560px; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.4rem; margin-top: 2.6rem; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.7rem; color: var(--cian); }
.stat span { color: var(--texto-suave); font-size: .85rem; }
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1;
  background: linear-gradient(transparent, var(--fondo));
}

/* ── Secciones ── */
.seccion { padding: 4.5rem 0; }
.seccion-alt { background: var(--fondo-alt); }

/* ── Servicios ── */
.servicios-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem;
}
.servicio {
  background: var(--panel); border: 1px solid var(--panel-borde);
  border-radius: var(--radio); padding: 1.6rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.servicio:hover {
  transform: translateY(-4px); border-color: rgba(61, 214, 255, .4);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(61, 214, 255, .15);
}
.servicio-icono {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--cian-suave); display: grid; place-items: center; margin-bottom: 1rem;
}
.servicio-icono svg { width: 28px; height: 28px; fill: var(--cian); }
.servicio h3 { margin-bottom: .5rem; }
.servicio p { color: var(--texto-suave); font-size: .93rem; margin-bottom: 1rem; }
.enlace-wa { color: var(--wa); text-decoration: none; font-weight: 600; font-size: .9rem; }
.enlace-wa:hover { text-decoration: underline; }

/* ── Iconos ocultos reutilizables ── */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── PC del mes (destacada) ── */
.destacada {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.2rem; align-items: center;
  background: linear-gradient(135deg, var(--panel), #0d1729);
  border: 1px solid rgba(61, 214, 255, .3); border-radius: 20px;
  padding: 1.6rem; position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.destacada::before {
  content: ''; position: absolute; inset: -40% 55% 0 -10%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(61, 214, 255, .13), transparent 65%);
}
.destacada-foto { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.destacada-foto img { width: 100%; height: 100%; object-fit: cover; }
.destacada-cuerpo { position: relative; z-index: 1; }
.destacada-cuerpo h2 { color: var(--cian); letter-spacing: .06em; margin-bottom: .5rem; }
.kicker-mini {
  display: inline-block; font-size: .72rem; letter-spacing: .2em; font-weight: 700;
  color: #ffb547; margin-bottom: .5rem;
}
.cinta-mes {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: linear-gradient(135deg, #ffb547, #ff8c3b); color: #2a1500;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  padding: .32rem .8rem; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(255, 181, 71, .45);
}
.destacada-pie {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-top: 1.3rem;
}

/* ── Cabecera de cada gama ── */
.seccion-gama { padding: 2.6rem 0; }
.seccion-gama:nth-of-type(even) { background: var(--fondo-alt); }
.gama-cabeza { margin-bottom: 1.6rem; }
.gama-cuenta {
  display: inline-block; vertical-align: middle; margin-left: .5rem;
  font-size: .8rem; font-weight: 700; color: var(--cian);
  background: var(--cian-suave); border: 1px solid var(--panel-borde);
  border-radius: 999px; padding: .1rem .65rem;
}
.seccion-nota { padding: 0 0 3.5rem; }

/* ── Catálogo ── */
.catalogo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem;
}
.tarjeta {
  background: var(--panel); border: 1px solid var(--panel-borde);
  border-radius: var(--radio); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tarjeta:hover {
  transform: translateY(-5px); border-color: rgba(61, 214, 255, .45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 24px rgba(61, 214, 255, .08);
}
.tarjeta { animation-delay: var(--d, 0s); }
.tarjeta-foto { position: relative; aspect-ratio: 1 / .85; overflow: hidden; }
.tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tarjeta:hover .tarjeta-foto img { transform: scale(1.05); }

/* Etiqueta personalizada (ej. TOPE DE GAMA) */
.etiqueta {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: linear-gradient(135deg, #ffb547, #ff8c3b); color: #2a1500;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  padding: .26rem .68rem; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 181, 71, .4);
}
.etiqueta-cian {
  background: linear-gradient(135deg, var(--cian), #2ea8e6); color: #04121c;
  box-shadow: 0 4px 14px rgba(61, 214, 255, .4);
}

/* Chip de descuento y cinta de agotado */
.chip-oferta {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: linear-gradient(135deg, #ff5d5d, #ff8c3b);
  color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .02em;
  padding: .28rem .66rem; border-radius: 8px;
  box-shadow: 0 4px 14px rgba(255, 93, 93, .45);
}
.cinta-agotado {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  background: rgba(11, 19, 34, .92); color: var(--texto);
  font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-align: center;
  padding: .4rem 0; border-top: 1px solid var(--panel-borde);
}
.tarjeta.agotada .tarjeta-foto img,
.destacada .cinta-agotado ~ img { filter: grayscale(1) brightness(.65); }

/* Galería de fotos */
.foto-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  background: rgba(4, 6, 13, .68); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid var(--panel-borde); color: var(--texto);
  font-size: 1.15rem; line-height: 1; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.tarjeta:hover .foto-nav, .destacada-foto:hover .foto-nav,
.foto-nav:focus-visible { opacity: 1; }
.foto-nav:hover { background: var(--cian); color: #04121c; }
.foto-prev { left: 8px; }
.foto-next { right: 8px; }
.foto-dots {
  position: absolute; left: 0; right: 0; bottom: 8px; z-index: 3;
  display: flex; justify-content: center; gap: .3rem;
}
.foto-dots span {
  width: 7px; height: 7px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .4); transition: background .2s ease, transform .2s ease;
}
.foto-dots span.on { background: var(--cian); transform: scale(1.25); }

.tarjeta-cuerpo { padding: 1.2rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.tarjeta-nombre { color: var(--cian); letter-spacing: .08em; }
.ficha-desc { color: var(--texto-suave); font-size: .87rem; }

/* Especificaciones con iconos */
.specs-iconos { list-style: none; display: flex; flex-direction: column; gap: .42rem; }
.specs-iconos li { display: flex; align-items: flex-start; gap: .55rem; font-size: .84rem; color: var(--texto-suave); }
.specs-iconos svg { width: 17px; height: 17px; fill: var(--cian); flex-shrink: 0; margin-top: .1rem; }
.specs-iconos b { color: var(--texto); font-weight: 600; }
.featured-specs li { font-size: .92rem; }

/* Ficha completa desplegable */
.specs-todo summary {
  cursor: pointer; color: var(--cian); font-size: .82rem; font-weight: 600; list-style: none;
}
.specs-todo summary::-webkit-details-marker { display: none; }
.specs-todo summary::before { content: '+ '; }
.specs-todo[open] summary::before { content: '− '; }
.specs-todo ul { margin-top: .5rem; padding-left: 1.1rem; color: var(--texto-suave); font-size: .82rem; }
.specs-todo ul li { margin-bottom: .18rem; }

.tarjeta-pie {
  margin-top: auto; padding-top: .3rem; display: flex; align-items: flex-end;
  justify-content: space-between; gap: .8rem; flex-wrap: wrap;
}
/* ── Acciones de la ficha: Comprar + Compartir ── */
.ficha-acciones { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.btn-compartir {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
  padding: .5rem .7rem; border-radius: 10px; font: inherit; font-size: .82rem;
  font-weight: 600; color: var(--texto-suave);
  background: transparent; border: 1px solid var(--panel-borde);
  transition: color .2s, border-color .2s, background .2s;
}
.btn-compartir:hover { color: var(--cian); border-color: var(--cian); background: rgba(61,214,255,.08); }
.btn-compartir svg { display: block; }
.btn-compartir span { line-height: 1; }

/* Menú de compartir (aparece si el celular no tiene menú nativo) */
.compartir-menu {
  position: fixed; z-index: 999; min-width: 210px;
  background: var(--panel); color: var(--texto);
  border: 1px solid var(--panel-borde);
  border-radius: 12px; padding: .4rem; box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.compartir-menu a, .compartir-menu button {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  padding: .6rem .7rem; border-radius: 8px; font: inherit; font-size: .9rem;
  color: var(--texto); background: transparent; border: 0; cursor: pointer; text-decoration: none;
}
.compartir-menu a:hover, .compartir-menu button:hover { background: rgba(255,255,255,.07); }
.compartir-menu .ico { width: 20px; text-align: center; }
.compartir-fondo { position: fixed; inset: 0; z-index: 998; background: rgba(0,0,0,.35); }

.precio-caja { display: flex; flex-direction: column; line-height: 1.15; }
.precio-caja small { font-size: .66rem; color: var(--texto-suave); letter-spacing: .12em; }
.precio { font-size: 1.35rem; font-weight: 700; color: var(--texto); }
.precio.grande { font-size: 2rem; color: var(--cian); }
.precio-antes { font-size: .82rem; color: var(--texto-suave); text-decoration: line-through; }
.nota-catalogo { margin-top: 2rem; color: var(--texto-suave); text-align: center; }
.nota-catalogo a { color: var(--wa); font-weight: 600; }

/* ── Taller ── */
.taller-int { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.taller-texto > p { color: var(--texto-suave); margin-bottom: 1.2rem; }
.lista-check { list-style: none; margin-bottom: 1.6rem; }
.lista-check li { padding-left: 1.7rem; position: relative; margin-bottom: .55rem; color: var(--texto); }
.lista-check li::before {
  content: '✦'; position: absolute; left: 0; color: var(--cian);
  text-shadow: 0 0 12px rgba(61, 214, 255, .6);
}
.taller-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.taller-fotos img {
  border-radius: var(--radio); border: 1px solid var(--panel-borde);
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1;
}
.taller-fotos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* ── TikTok ── */
.tiktok-banda {
  background:
    radial-gradient(ellipse 50% 80% at 85% 50%, rgba(61, 214, 255, .1), transparent),
    linear-gradient(135deg, #0a0f1e, #0d1428);
  border-block: 1px solid var(--panel-borde);
}
.tiktok-int { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.tiktok-icono {
  width: 84px; height: 84px; border-radius: 22px; flex-shrink: 0;
  background: var(--cian-suave); border: 1px solid var(--panel-borde);
  display: grid; place-items: center;
}
.tiktok-icono svg { width: 44px; height: 44px; fill: var(--cian); }
.tiktok-texto { flex: 1; min-width: 260px; }
.tiktok-texto p { color: var(--texto-suave); margin-top: .4rem; }

/* ── Contacto ── */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; margin-top: 2rem; }
.contacto-info { display: flex; flex-direction: column; gap: 1.4rem; }
.dato h3 { color: var(--cian); margin-bottom: .35rem; font-size: 1rem; }
.dato p { color: var(--texto-suave); }
.horarios { border-collapse: collapse; color: var(--texto-suave); }
.horarios td { padding: .25rem 1.4rem .25rem 0; }
.horarios td:last-child { color: var(--texto); }
.tel { color: var(--wa); font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.correo-tienda { color: var(--cian); font-weight: 600; text-decoration: none; word-break: break-all; }
.correo-tienda:hover { text-decoration: underline; }
.contacto-mapa { margin-top: 2.2rem; }
.contacto-mapa iframe {
  width: 100%; height: 340px; border: 1px solid var(--panel-borde);
  border-radius: var(--radio); filter: grayscale(.3) invert(.92) hue-rotate(180deg);
}

/* ── Barra de promoción ── */
.promo-bar {
  display: inline-flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255, 93, 93, .15), rgba(255, 140, 59, .15));
  border: 1px solid rgba(255, 140, 59, .45);
  border-radius: 999px; padding: .5rem 1.1rem; margin-bottom: 1.3rem;
  font-size: .9rem;
}
.promo-tag {
  background: linear-gradient(135deg, #ff5d5d, #ff8c3b); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  padding: .2rem .6rem; border-radius: 999px;
}
.promo-texto { color: var(--texto); font-weight: 600; }
.promo-cuenta { color: #ffb547; font-weight: 600; font-variant-numeric: tabular-nums; }
.promo-enlace { color: var(--cian); font-weight: 700; text-decoration: none; }
.promo-enlace:hover { text-decoration: underline; }

/* ── Videos de TikTok ── */
.tiktok-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem; margin-top: 2.2rem; max-width: 900px; margin-inline: auto;
}
.tiktok-marco {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; display: block;
  border-radius: var(--radio); border: 1px solid var(--panel-borde);
  background: var(--panel); text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tiktok-marco:hover {
  transform: translateY(-4px); border-color: rgba(61, 214, 255, .45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5), 0 0 22px rgba(61, 214, 255, .1);
}
.tiktok-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Miniatura ligera: carga el reproductor de TikTok al hacer clic */
.tiktok-portada {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer; background: var(--panel);
  display: block; font-family: inherit;
}
.tiktok-portada img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s ease, filter .25s ease;
}
.tiktok-marco:hover .tiktok-portada img { transform: scale(1.05); filter: brightness(.72); }
.tiktok-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; z-index: 2;
  background: rgba(4, 6, 13, .68); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1.5px solid var(--cian); color: var(--cian);
  font-size: 1.15rem; display: grid; place-items: center; padding-left: 4px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.tiktok-marco:hover .tiktok-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--cian); color: #04121c;
}
.tiktok-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: .5rem; text-align: left;
  padding: 2.4rem .8rem .8rem;
  background: linear-gradient(transparent, rgba(4, 6, 13, .92));
  color: var(--texto); font-size: .82rem; font-weight: 600; line-height: 1.3;
}
.tiktok-cap svg { width: 17px; height: 17px; fill: var(--cian); flex-shrink: 0; }
.tiktok-portada:focus-visible { outline: 2px solid var(--cian); outline-offset: -3px; }

/* ── Reseñas ── */
.resenas-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.2rem; margin-bottom: 2.4rem;
}
.resena {
  background: var(--panel); border: 1px solid var(--panel-borde);
  border-radius: var(--radio); padding: 1.3rem;
}
.resena-cabeza { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.resena-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(61, 214, 255, .4); flex-shrink: 0;
}
.resena-inicial {
  display: grid; place-items: center; background: var(--cian-suave);
  color: var(--cian); font-weight: 700; font-size: 1.2rem;
}
.resena-cabeza strong { display: block; }
.estrellas { color: #ffb547; letter-spacing: .1em; font-size: .95rem; }
.resena > p { color: var(--texto-suave); font-size: .93rem; }

.resena-form {
  max-width: 620px; margin-inline: auto;
  background: var(--panel); border: 1px solid var(--panel-borde);
  border-radius: var(--radio); padding: 1.6rem;
}
.resena-form h3 { margin-bottom: 1rem; }
.resena-form-fila {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end;
}
.campo-estrellas > span { display: block; font-size: .85rem; color: var(--texto-suave); margin-bottom: .3rem; }
.estrellas-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.estrellas-input input { position: absolute; opacity: 0; pointer-events: none; }
.estrellas-input label { font-size: 1.6rem; color: #46516a; cursor: pointer; transition: color .12s, transform .12s; }
.estrellas-input label:hover { transform: scale(1.15); }
.estrellas-input label:hover,
.estrellas-input label:hover ~ label,
.estrellas-input input:checked ~ label { color: #ffb547; }

/* ── Formularios públicos ── */
.resena-form label, .contacto-form label {
  display: block; font-size: .88rem; color: var(--texto-suave); margin-bottom: .9rem;
}
.resena-form input[type=text], .resena-form textarea, .resena-form input[type=file],
.contacto-form input[type=text], .contacto-form textarea {
  width: 100%; margin-top: .3rem; padding: .6rem .9rem;
  background: var(--fondo); color: var(--texto);
  border: 1px solid var(--panel-borde); border-radius: 10px;
  font-family: inherit; font-size: .95rem;
}
.resena-form input:focus, .resena-form textarea:focus,
.contacto-form input:focus, .contacto-form textarea:focus {
  outline: 2px solid rgba(61, 214, 255, .4); border-color: var(--cian);
}
.resena-form textarea, .contacto-form textarea { resize: vertical; }
.hp-campo { display: none !important; }
.alerta {
  padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem;
  font-size: .9rem; border: 1px solid;
}
.alerta-ok { background: rgba(37, 211, 102, .1); border-color: rgba(37, 211, 102, .45); color: #7dedaa; }
.alerta-error { background: rgba(255, 93, 93, .1); border-color: rgba(255, 93, 93, .45); color: #ff9d9d; }

/* ── FAQ ── */
.faq-lista { max-width: 780px; margin-top: 1.6rem; }
.faq-item {
  background: var(--panel); border: 1px solid var(--panel-borde);
  border-radius: var(--radio); margin-bottom: .7rem; overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: rgba(61, 214, 255, .4); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1rem 1.2rem;
  font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-flecha { color: var(--cian); font-size: 1.2rem; transition: transform .2s ease; }
.faq-item[open] .faq-flecha { transform: rotate(180deg); }
.faq-item p { padding: 0 1.2rem 1.1rem; color: var(--texto-suave); font-size: .93rem; }

/* ── Formulario de contacto ── */
.contacto-form {
  background: var(--panel); border: 1px solid var(--panel-borde);
  border-radius: var(--radio); padding: 1.6rem;
}
.contacto-form h3 { margin-bottom: 1rem; }

/* ── Ficha de pedido (ventana emergente) ── */
.modal-fondo {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 4, 9, .82); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 2rem 1rem; overflow-y: auto;
}
.modal-fondo[hidden] { display: none; }
/* Sin esto, las clases con display propio (grid/flex) le ganan al atributo hidden */
.modal-caja [hidden], .modal-fondo[hidden] { display: none !important; }
.modal-caja {
  position: relative; width: min(620px, 100%);
  background: var(--panel); border: 1px solid rgba(61, 214, 255, .3);
  border-radius: 18px; padding: 1.6rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.modal-chico { width: min(420px, 100%); text-align: center; }
.modal-cerrar {
  position: absolute; top: .8rem; right: .8rem;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--texto-suave);
  border: 1px solid var(--panel-borde); font-size: 1rem;
  transition: .18s;
}
.modal-cerrar:hover { color: var(--cian); border-color: var(--cian); }
.modal-cabeza { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.3rem; padding-right: 2rem; }
.modal-cabeza img { width: 82px; height: 66px; object-fit: cover; border-radius: 10px; border: 1px solid var(--panel-borde); flex-shrink: 0; }
.modal-cabeza h3 { color: var(--cian); letter-spacing: .06em; }
.modal-titulo { font-weight: 700; margin: 1.2rem 0 .6rem; font-size: .95rem; }
.modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 1rem; }
.modal-caja label { display: block; font-size: .84rem; color: var(--texto-suave); margin-bottom: .8rem; }
.modal-caja input[type=text], .modal-caja input[type=tel], .modal-caja input[type=email] {
  width: 100%; margin-top: .25rem; padding: .55rem .8rem;
  background: var(--fondo); color: var(--texto);
  border: 1px solid var(--panel-borde); border-radius: 9px;
  font-family: inherit; font-size: .92rem;
}
.modal-caja input:focus { outline: 2px solid rgba(61, 214, 255, .4); border-color: var(--cian); }

/* Opciones de pago y envío */
.opciones-pago { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.opciones-pago.dos { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.opcion-pago { margin: 0 !important; cursor: pointer; }
.opcion-pago input { position: absolute; opacity: 0; pointer-events: none; }
.opcion-cuerpo {
  display: block; height: 100%; padding: .7rem .8rem;
  border: 1px solid var(--panel-borde); border-radius: 11px;
  background: rgba(255, 255, 255, .02); transition: .18s;
}
.opcion-pago:hover .opcion-cuerpo { border-color: rgba(61, 214, 255, .5); }
.opcion-pago input:checked + .opcion-cuerpo {
  border-color: var(--cian); background: var(--cian-suave);
  box-shadow: 0 0 0 1px var(--cian) inset;
}
.opcion-nombre { display: block; font-weight: 700; color: var(--texto); font-size: .9rem; }
.opcion-detalle { display: block; font-size: .74rem; color: var(--texto-suave); margin-top: .1rem; }
.opcion-precio { display: block; font-size: 1.02rem; font-weight: 700; color: var(--cian); margin-top: .35rem; }
.opcion-nota { display: block; font-size: .68rem; color: var(--texto-suave); margin-top: .1rem; line-height: 1.25; }
.opcion-nota:empty { display: none; }

.check-modal {
  display: flex !important; align-items: center; gap: .5rem;
  font-size: .88rem; color: var(--texto) !important; cursor: pointer;
  margin: 1rem 0 !important;
}
.check-modal input { width: auto; margin: 0; }

/* Resumen del pedido */
.resumen-pedido {
  background: var(--fondo); border: 1px solid var(--panel-borde);
  border-radius: 12px; padding: 1rem; margin: 1.2rem 0;
}
.res-linea { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--texto-suave); margin-bottom: .4rem; }
.res-linea span:last-child { color: var(--texto); font-weight: 600; white-space: nowrap; }
.res-total {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  border-top: 1px solid var(--panel-borde); margin-top: .7rem; padding-top: .7rem;
  font-weight: 700; font-size: 1.05rem;
}
.res-total span:last-child { font-size: 1.5rem; color: var(--cian); }
/* Pago mensual del financiamiento: se muestra en grande para que no asuste el total */
.res-mensual {
  margin-top: .8rem; padding: .7rem .9rem; text-align: center;
  background: linear-gradient(135deg, rgba(255, 181, 71, .14), rgba(255, 140, 59, .08));
  border: 1px solid rgba(255, 181, 71, .45); border-radius: 11px;
}
.res-mensual-etiqueta { display: block; font-size: .72rem; letter-spacing: .16em; color: #ffb547; font-weight: 700; }
.res-mensual-monto { display: block; font-size: 1.32rem; font-weight: 700; color: #ffcf82; margin: .1rem 0; }
.res-mensual-detalle { display: block; font-size: .74rem; color: var(--texto-suave); }

/* ═══════════════════════════════════════════════
   TIENDA DE COMPONENTES
   ═══════════════════════════════════════════════ */
.visualmente-oculto {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.tienda { display: grid; grid-template-columns: 240px 1fr; gap: 1.6rem; align-items: start; }

/* ── Menú lateral de categorías ── */
.tienda-lado-btn { display: none; }
.tienda-lado-int {
  position: sticky; top: 92px;
  background: var(--panel); border: 1px solid var(--panel-borde);
  border-radius: var(--radio); padding: 1rem;
}
.lado-titulo {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cian); font-weight: 700; margin: .2rem 0 .6rem;
}
.lado-titulo + .lado-lista { margin-bottom: 1.1rem; }
.lado-lista { list-style: none; }
.lado-lista button {
  display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left;
  padding: .5rem .55rem; margin-bottom: .15rem; border: 0; border-radius: 9px;
  font: inherit; font-size: .88rem; color: var(--texto-suave);
  background: transparent; cursor: pointer; transition: background .15s, color .15s;
}
.lado-lista button span { flex: 1; }
.lado-lista button em {
  font-style: normal; font-size: .74rem; color: var(--texto-suave);
  background: rgba(255, 255, 255, .06); padding: .1rem .4rem; border-radius: 99px;
}
.lado-lista button:hover { background: var(--cian-suave); color: var(--texto); }
.lado-lista button.on { background: var(--cian-suave); color: var(--cian); font-weight: 600; }
.lado-lista button.on em { background: rgba(61, 214, 255, .2); color: var(--cian); }

/* ── Barra de búsqueda y orden ── */
.tienda-barra { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }
.tienda-buscar { flex: 1; min-width: 200px; }
.tienda-buscar input, .tienda-orden {
  width: 100%; padding: .7rem .9rem; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--panel-borde);
  color: var(--texto); font: inherit; font-size: .9rem;
}
.tienda-orden { width: auto; cursor: pointer; }
.tienda-buscar input:focus, .tienda-orden:focus { outline: none; border-color: var(--cian); }
.tienda-cuenta { color: var(--texto-suave); font-size: .8rem; margin-bottom: 1rem; }
.tienda-vacio { color: var(--texto-suave); text-align: center; padding: 2rem 0; }
.tienda-vacio a { color: var(--cian); }

/* ── Tarjeta de componente ── */
.tienda-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 1.1rem; }
.comp {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--panel-borde);
  border-radius: var(--radio); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.comp:hover { transform: translateY(-4px); border-color: var(--cian); }
.comp.agotada { opacity: .62; }
.comp-foto { position: relative; aspect-ratio: 4 / 3; background: #060a12; }
.comp-foto img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.comp-chip {
  position: absolute; top: .5rem; left: .5rem; z-index: 2;
  font-size: .66rem; font-weight: 700; letter-spacing: .05em;
  padding: .2rem .5rem; border-radius: 99px;
}
.comp-chip.destacado { background: rgba(255, 181, 71, .92); color: #2a1a00; }
.comp-cuerpo { display: flex; flex-direction: column; flex: 1; padding: .85rem .9rem 1rem; }
.comp-meta {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--texto-suave); margin-bottom: .35rem;
}
.comp-estado {
  color: #ffcf82; border: 1px solid rgba(255, 181, 71, .45);
  padding: .05rem .35rem; border-radius: 99px; letter-spacing: .04em;
}
.comp-nombre { font-size: 1rem; line-height: 1.25; margin-bottom: .2rem; }
.comp-marca { font-size: .8rem; color: var(--cian); margin-bottom: .35rem; }
.comp-desc { font-size: .82rem; color: var(--texto-suave); margin-bottom: .5rem; }
.comp-specs { margin-bottom: .6rem; }
.comp-pie {
  margin-top: auto; padding-top: .5rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; flex-wrap: wrap;
}
.comp-precio { font-size: 1.18rem; }
.boton-mini { padding: .5rem 1rem; font-size: .84rem; }
.comp-pie .btn-agregar { background: linear-gradient(135deg, var(--cian), #2ea8e6); color: #04121c; }
.comp-stock { font-size: .74rem; color: var(--texto-suave); margin-top: .55rem; }

/* ── Botón flotante del carrito ── */
.carrito-flota {
  position: fixed; right: 1.1rem; bottom: 5.4rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.1rem; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  background: linear-gradient(135deg, var(--cian), #2ea8e6); color: #04121c;
  box-shadow: 0 8px 28px rgba(61, 214, 255, .42);
}
.carrito-flota:hover { transform: translateY(-2px); }
.carrito-cuenta {
  background: #04121c; color: var(--cian); min-width: 22px;
  padding: .05rem .35rem; border-radius: 99px; font-size: .82rem; text-align: center;
}

/* ── Renglones del carrito ── */
.carrito-lista { margin: .4rem 0 1.2rem; }
.carrito-fila {
  display: grid; grid-template-columns: 48px 1fr auto auto auto;
  align-items: center; gap: .7rem;
  padding: .6rem 0; border-bottom: 1px solid var(--panel-borde);
}
.carrito-fila img { width: 48px; height: 40px; object-fit: contain; background: #060a12; border-radius: 7px; }
.carrito-fila-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.carrito-fila-txt strong { font-size: .9rem; }
.carrito-fila-txt span { font-size: .76rem; }
.carrito-cant { display: flex; align-items: center; gap: .1rem; }
.carrito-cant button {
  width: 26px; height: 26px; border-radius: 7px; cursor: pointer;
  background: transparent; border: 1px solid var(--panel-borde);
  color: var(--texto); font: inherit; font-size: 1rem; line-height: 1;
}
.carrito-cant button:hover:not(:disabled) { border-color: var(--cian); color: var(--cian); }
.carrito-cant button:disabled { opacity: .35; cursor: not-allowed; }
.carrito-cant span { min-width: 26px; text-align: center; font-weight: 600; font-size: .9rem; }
.carrito-importe { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.carrito-quitar {
  background: transparent; border: 0; color: var(--texto-suave);
  cursor: pointer; font-size: .95rem; padding: .2rem .3rem;
}
.carrito-quitar:hover { color: #ff6b6b; }

/* Aviso corto al agregar algo al carrito */
.carrito-aviso {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 20px);
  z-index: 1200; max-width: min(420px, 92vw);
  background: var(--panel); color: var(--texto);
  border: 1px solid var(--cian); border-radius: 11px;
  padding: .7rem 1.1rem; font-size: .88rem; text-align: center;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.carrito-aviso.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .tienda { grid-template-columns: 1fr; }
  .tienda-lado-int { position: static; display: none; }
  .tienda-lado-int.abierto { display: block; margin-bottom: 1rem; }
  .tienda-lado-btn {
    display: block; width: 100%; margin-bottom: .8rem;
    padding: .75rem 1rem; border-radius: 10px; cursor: pointer;
    background: var(--panel); border: 1px solid var(--panel-borde);
    color: var(--texto); font: inherit; font-weight: 600; text-align: left;
  }
}

@media (max-width: 560px) {
  .modal-caja { padding: 1.1rem; }
  .modal-cabeza img { width: 60px; height: 50px; }
  .opciones-pago { grid-template-columns: 1fr; }
  .tienda-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .8rem; }
  .comp-cuerpo { padding: .7rem .7rem .85rem; }
  .comp-nombre { font-size: .9rem; }
  .comp-pie { flex-direction: column; align-items: stretch; }
  .comp-pie .boton { justify-content: center; }
  .carrito-flota { bottom: 5rem; padding: .7rem .9rem; }
  .carrito-flota-txt { display: none; }
  .carrito-fila { grid-template-columns: 40px 1fr auto; row-gap: .35rem; }
  .carrito-fila img { width: 40px; height: 34px; }
  .carrito-cant { grid-column: 2; }
  .carrito-importe { grid-column: 3; grid-row: 2; }
}

/* ── Redes sociales ── */
.redes-lista { list-style: none; }
.redes-lista li { margin-bottom: .5rem; }
.redes-lista a {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--texto-suave); text-decoration: none; transition: color .18s;
}
.redes-lista a:hover { color: var(--cian); }
.redes-lista svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.pie-social { display: flex; gap: .8rem; }
.pie-social a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--panel-borde); display: grid; place-items: center;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.pie-social a:hover {
  border-color: var(--cian); transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(61, 214, 255, .25);
}
.pie-social svg { width: 20px; height: 20px; fill: var(--texto-suave); transition: fill .18s; }
.pie-social a:hover svg { fill: var(--cian); }

/* ── Footer ── */
.pie { border-top: 1px solid var(--panel-borde); padding: 2.5rem 0; background: var(--fondo-alt); }
.pie-int { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.pie-logo { height: 40px; width: auto; filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
.pie-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
.pie-nav a { color: var(--texto-suave); text-decoration: none; font-size: .9rem; }
.pie-nav a:hover { color: var(--cian); }
.pie-copy { color: var(--texto-suave); font-size: .82rem; }

/* ── WhatsApp flotante ── */
.wa-flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, .45);
  transition: transform .2s ease;
}
.wa-flotante:hover { transform: scale(1.1); }
.wa-flotante svg { width: 32px; height: 32px; fill: #04170b; }

/* ── Animación de aparición ──
   Solo se oculta si el navegador tiene JS activo (clase .js-on), así el
   contenido nunca queda invisible si el script falla o no carga. */
.js-on .revelar { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js-on .revelar.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-on .revelar { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .taller-int { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .resena-form-fila { grid-template-columns: 1fr; }
  .destacada { grid-template-columns: 1fr; gap: 1.4rem; }
  .destacada-foto { aspect-ratio: 16 / 10; }
  .precio.grande { font-size: 1.7rem; }
  /* En móvil las flechas de la galería siempre visibles (no hay hover) */
  .foto-nav { opacity: 1; }
}
@media (max-width: 760px) {
  .menu-btn { display: flex; }
  .navegacion {
    position: fixed; top: 60px; right: 0; left: 0;
    flex-direction: column; align-items: flex-start;
    background: rgba(4, 6, 13, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    padding: 1.4rem 1.6rem 1.8rem; gap: 1.1rem;
    border-bottom: 1px solid var(--panel-borde);
    transform: translateY(-130%); transition: transform .28s ease;
  }
  .navegacion.abierta { transform: translateY(0); }
  .hero { padding-top: 6rem; }
  .hero-stats { gap: 1.4rem; }
  .tiktok-int { flex-direction: column; text-align: center; }
  .tiktok-texto { min-width: 0; }
}
