/* ══════════════════════════════════════════════════════════
   productos.css — DATAMATIUM
   Página de productos con categorías y panel admin
══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   CARRUSEL TECNOLOGÍA
══════════════════════════════════════════════════════════ */
.tech-hero {
  width: 100%;
  margin: -40px -24px 36px;
  /* sobresale del padding del .page para ser full-width */
  width: calc(100% + 48px);
}

.tech-carousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: clamp(280px, 48vw, 560px);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 8px 32px rgba(11,31,58,0.22);
}

/* Slides */
.tech-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  display: flex;
  align-items: center;
}

.tech-slide.active { opacity: 1; z-index: 1; }

.tech-slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tech-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.tech-slide.active .tech-slide-bg img { transform: scale(1); }

/* Overlay degradado sobre la imagen */
.tech-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.10) 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Contenido del slide */
.tech-slide-content {
  position: relative;
  z-index: 2;
  padding: 0 6% 0 7%;
  max-width: 580px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-slide-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 5px 14px;
  border-radius: 999px;
  width: fit-content;
}

.tech-slide-content h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(22px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.tech-slide-content p {
  font-size: clamp(13px, 1.7vw, 16px);
  opacity: 0.88;
  line-height: 1.55;
  max-width: 380px;
}

.tech-slide-btn {
  display: inline-block;
  width: fit-content;
  margin-top: 4px;
  padding: 11px 26px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.tech-slide-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Botones prev/next */
.tech-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: clamp(34px, 4vw, 46px);
  height: clamp(34px, 4vw, 46px);
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  border: none;
  cursor: pointer;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: all 0.2s;
}

.tech-carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

#techPrev { left: 14px; }
#techNext { right: 14px; }

/* Dots */
.tech-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.3s;
}

.tech-dot.active {
  background: #fff;
  width: 26px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════
   SECCIÓN NOTICIAS / VIDEOS
══════════════════════════════════════════════════════════ */
.tech-news-section {
  width: 100%;
  margin: 8px 0 48px;
}

.tech-news-header {
  text-align: center;
  margin-bottom: 28px;
}

.tech-news-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.tech-news-header h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.tech-news-header p {
  color: var(--text-soft);
  font-size: 14px;
  margin-top: 6px;
}

/* Grid de 3 columnas, 2 filas */
.tech-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card base */
.tech-news-card {
  background: rgba(255,255,255,0.93);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(11,31,58,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.tech-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(11,31,58,0.13);
}

/* Imagen noticia */
.tech-news-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-light);
  flex-shrink: 0;
}

.tech-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tech-news-card:hover .tech-news-img img { transform: scale(1.05); }

.tech-img-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11,31,58,0.78);
  color: #fff;
  backdrop-filter: blur(4px);
  letter-spacing: 0.04em;
}

/* Video embed */
.tech-news-video .tech-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  flex-shrink: 0;
}

.tech-news-video .tech-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Cuerpo de la card */
.tech-news-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.tech-news-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
}

.tech-news-tag.video-tag { color: var(--accent); }

.tech-news-card-body h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 0;
}

.tech-news-card-body p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
}

.tech-news-date {
  font-size: 11px;
  color: var(--gray-mid);
  font-weight: 500;
  margin-top: 4px;
}

/* Título sección productos */
.products-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  border-top: 1px solid var(--gray-light);
  padding-top: 36px;
}

.products-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.products-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

/* ── PAGE HERO ── */
.page-hero {
  width: 100%;
  padding: 48px 16px 28px;
  text-align: center;
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 28px;
}

.page-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--navy);
}

.page-hero p {
  color: var(--text-soft);
  font-size: clamp(14px, 2vw, 16px);
  margin-top: 8px;
}

/* ── FILTROS DE CATEGORÍA ── */
.cat-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.cat-filter-btn {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-light);
  background: rgba(255,255,255,0.85);
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-filter-btn:hover {
  border-color: var(--sky);
  color: var(--sky);
}

.cat-filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   CARRUSEL HORIZONTAL DE PRODUCTOS
══════════════════════════════════════════════════════════ */
.products-carousel-outer {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}

/* Track scrollable */
.car-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 18px;
  scrollbar-width: none; /* Firefox */
}
.car-track::-webkit-scrollbar { display: none; }

/* Cada card ocupa ancho fijo */
.car-track .product-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* Flechas del carrusel */
.car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  border: 1.5px solid var(--gray-light);
  cursor: pointer;
  font-size: 24px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(11,31,58,0.14);
  transition: background 0.2s, opacity 0.2s, transform 0.2s;
}

.car-arrow:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-60%) scale(1.08);
}

.car-arrow-left  { left:  -20px; }
.car-arrow-right { right: -20px; }

/* ── PRODUCT CARD ── */
.product-card {
  background: rgba(255,255,255,0.94);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(11,31,58,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(11,31,58,0.13);
  border-color: var(--sky);
}

/* Imagen */
.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gray-light);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-img .no-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: var(--gray-mid);
  gap: 6px;
}

.product-card-img .no-img-placeholder span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Badge */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 5;
  text-transform: uppercase;
}

.badge-Nuevo     { background: var(--sky); color: #fff; }
.badge-Destacado { background: #f59e0b; color: #fff; }
.badge-Oferta    { background: var(--accent); color: #fff; }
.badge-Agotado   { background: var(--gray-mid); color: #fff; }

/* Cuerpo de la card */
.product-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.product-cat-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
}

.product-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}

.product-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
}

.product-price {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
}

.product-price-empty {
  font-size: 13px;
  color: var(--gray-mid);
  font-style: italic;
  margin-top: 8px;
}

.product-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  align-self: flex-start;
}

.product-contact-btn:hover { background: var(--sky); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--gray-mid);
  width: 100%;
}

.empty-icon { font-size: 52px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ── HINT ZOOM EN IMAGEN ── */
.product-card-img { position: relative; cursor: pointer; }

.img-zoom-hint {
  position: absolute;
  inset: 0;
  background: rgba(11,31,58,0.52);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  letter-spacing: 0.03em;
  border-radius: 0;
}

.product-card-img:hover .img-zoom-hint { opacity: 1; }

/* ── BOTONES DENTRO DE CARD ── */
.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.product-detail-btn {
  flex: 1;
  padding: 9px 10px;
  background: var(--sky-light);
  color: var(--sky);
  border: 1.5px solid var(--sky);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.product-detail-btn:hover { background: var(--sky); color: #fff; }

.product-contact-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 10px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.product-contact-btn:hover { background: var(--sky); }

/* ══════════════════════════════════════════════════════════
   MODAL DETALLE PRODUCTO
══════════════════════════════════════════════════════════ */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(11,31,58,0.7);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-modal.show { display: flex; }

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(11,31,58,0.28);
  animation: modalIn 0.32s cubic-bezier(0.34, 1.46, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.88) translateY(24px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  margin: 14px 14px 0 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-light);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--accent); color: #fff; }

.modal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  clear: both;
}

/* Imagen modal */
.modal-img-wrap {
  background: var(--gray-light);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-no-img {
  font-size: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
}

/* Info modal */
.modal-info {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.modal-badge {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.modal-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
}

.modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

.modal-price {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.modal-price-soft {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-mid);
  font-family: inherit;
}

/* Tabla especificaciones */
.modal-specs-section { margin-top: 6px; }

.modal-specs-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.modal-specs-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: top;
}

.modal-specs-table td:first-child {
  font-weight: 600;
  color: var(--navy);
  width: 42%;
  white-space: nowrap;
}

.modal-specs-table td:last-child { color: var(--text-soft); }

.modal-specs-table tr:last-child td { border-bottom: none; }
.modal-specs-table tr:hover td { background: var(--off-white); }

/* Acciones modal */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.modal-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}
.modal-wa-btn:hover { background: #1ebe5d; }

.modal-contact-link {
  font-size: 13px;
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
}
.modal-contact-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   SPECS EN FORMULARIO ADMIN
══════════════════════════════════════════════════════════ */
.specs-rows-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr 28px;
  gap: 6px;
  align-items: center;
}

.spec-row input {
  padding: 8px 10px;
  border: 1.5px solid var(--gray-light);
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  background: var(--off-white);
  transition: border-color 0.2s;
}
.spec-row input:focus { border-color: var(--sky); background: #fff; }

.spec-del-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: #fde8e9;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.spec-del-btn:hover { background: var(--accent); color: #fff; }

.btn-add-spec {
  width: 100%;
  padding: 9px;
  background: var(--sky-light);
  color: var(--sky);
  border: 1.5px dashed var(--sky);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 2px;
}
.btn-add-spec:hover { background: var(--sky); color: #fff; }

/* ── ADMIN FAB ── */
.admin-fab {
  position: fixed;
  bottom: 152px;
  right: 22px;
  z-index: 998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(11,31,58,0.35);
  transition: background 0.2s, transform 0.2s;
  color: #fff;
}

.admin-fab svg { width: 20px; height: 20px; }
.admin-fab:hover { background: var(--sky); transform: scale(1.08); }

/* ══════════════════════════════════════════════════════════
   PANEL ADMIN
══════════════════════════════════════════════════════════ */

/* Overlay login */
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(11,31,58,0.72);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.admin-overlay.show { display: flex; }

.admin-login-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-login-box h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.admin-login-box p { font-size: 13px; color: var(--text-soft); }

.admin-login-box input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.admin-login-box input:focus { border-color: var(--sky); }

.admin-login-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.admin-hint {
  font-size: 11px !important;
  color: var(--gray-mid) !important;
  border-top: 1px solid var(--gray-light);
  padding-top: 10px;
  margin-top: 4px;
}

/* Panel lateral */
.admin-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11,31,58,0.45);
  backdrop-filter: blur(2px);
}

.admin-backdrop.show { display: block; }

.admin-panel {
  position: fixed;
  top: 0;
  right: -520px;
  width: 100%;
  max-width: 500px;
  height: 100%;
  z-index: 1100;
  background: #fff;
  box-shadow: -8px 0 40px rgba(11,31,58,0.18);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.admin-panel.open { right: 0; }

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--navy);
  color: #fff;
  flex-shrink: 0;
}

.admin-panel-header h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.admin-close {
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.admin-close:hover { background: rgba(255,255,255,0.28); }

.admin-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Formulario */
.admin-form-section h3,
.admin-list-section h3,
.admin-cat-section h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-form label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: -4px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: var(--off-white);
  transition: border-color 0.2s;
  color: var(--text);
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus { border-color: var(--sky); background: #fff; }

.admin-form small {
  font-size: 11px;
  color: var(--gray-mid);
  margin-top: -4px;
}

.cat-input-row { display: flex; gap: 8px; }
.cat-input-row input { flex: 1; }

.admin-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* Botones reutilizables */
.btn-primary {
  flex: 1;
  padding: 11px 16px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--sky); }

.btn-secondary {
  flex: 1;
  padding: 11px 16px;
  background: var(--gray-light);
  color: var(--text-soft);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover { background: #d8dde6; }

.btn-danger-sm {
  padding: 6px 12px;
  background: #fde8e9;
  color: var(--accent);
  border: 1px solid #f8c8ca;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger-sm:hover { background: var(--accent); color: #fff; }

/* Separador */
.admin-sep { border: none; border-top: 1px solid var(--gray-light); margin: 4px 0; }

/* Lista de productos en admin */
.admin-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.admin-search-row { margin-bottom: 12px; }

.admin-search-row input {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  background: var(--off-white);
}

.admin-search-row input:focus { border-color: var(--sky); }

.admin-product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.admin-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color 0.2s;
}

.admin-product-item:hover { border-color: var(--sky); }

.admin-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--gray-light);
  flex-shrink: 0;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-info { flex: 1; min-width: 0; }

.admin-product-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-product-info span {
  font-size: 11px;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-product-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.admin-btn-edit,
.admin-btn-del {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.admin-btn-edit { background: var(--sky-light); color: var(--sky); }
.admin-btn-edit:hover { background: var(--sky); color: #fff; }

.admin-btn-del { background: #fde8e9; color: var(--accent); }
.admin-btn-del:hover { background: var(--accent); color: #fff; }

/* Categorías en admin */
.admin-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-cat-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sky-light);
  color: var(--sky);
  border-radius: 999px;
  padding: 6px 14px 6px 16px;
  font-size: 13px;
  font-weight: 600;
}

.admin-cat-tag button {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: var(--sky);
  color: #fff;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.admin-cat-tag button:hover { background: var(--accent); }

/* Toast notificación */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .products-grid    { grid-template-columns: repeat(2, 1fr); }
  .tech-news-grid   { grid-template-columns: repeat(2, 1fr); }
  .tech-hero        { margin: -40px -24px 28px; width: calc(100% + 48px); }
}

@media (max-width: 640px) {
  .page-hero        { padding: 28px 12px 20px; }
  .products-grid    { grid-template-columns: 1fr; gap: 16px; }
  .tech-news-grid   { grid-template-columns: 1fr; gap: 14px; }
  .tech-hero        { margin: -24px -16px 20px; width: calc(100% + 32px); }
  .tech-carousel-wrap { height: clamp(220px, 62vw, 340px); border-radius: 0; }
  .tech-slide-content { padding: 0 14px; gap: 7px; }
  .tech-slide-content p { display: none; }
  .tech-slide-btn   { padding: 9px 18px; font-size: 13px; }
  .products-title-row { margin-bottom: 14px; padding-top: 24px; }

  .admin-panel { max-width: 100%; }
  .admin-fab { bottom: 140px; right: 14px; width: 44px; height: 44px; }
  .admin-fab svg { width: 18px; height: 18px; }

  .cat-filter-bar { gap: 8px; }
  .cat-filter-btn { font-size: 13px; padding: 7px 16px; }
}

/* ── Responsive carrusel + modal (parche) ── */
@media (max-width: 900px) {
  .products-carousel-outer { padding: 0; }
  .car-arrow-left  { left:  -10px; }
  .car-arrow-right { right: -10px; }
  .car-track .product-card { flex: 0 0 240px; }
  .modal-layout { grid-template-columns: 1fr; }
  .modal-img-wrap { border-radius: var(--radius-lg) var(--radius-lg) 0 0; min-height: 220px; }
}

@media (max-width: 640px) {
  .car-track .product-card { flex: 0 0 220px; }
  .car-arrow { width: 36px; height: 36px; font-size: 20px; }
  .car-arrow-left  { left: -4px; }
  .car-arrow-right { right: -4px; }
  .product-card-actions { flex-direction: column; }
  .modal-box { border-radius: var(--radius-lg); max-height: 95vh; }
  .modal-info { padding: 20px 18px 24px; }
  .modal-img-wrap { border-radius: var(--radius-lg) var(--radius-lg) 0 0; min-height: 180px; }
  .modal-title { font-size: 20px; }
  .spec-row { grid-template-columns: 1fr 1fr 28px; }
}
