/* =========================
   VARIABLES / RESET
   ========================= */

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

html, body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
}

body {
  text-align: center;            /* centra texto por defecto (se puede sobrescribir) */
}

body > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;   /* ancho máximo centralizado; ajusta si lo deseas */
  width: 100%;
  box-sizing: border-box;
}

/* Tipografía básica */
h1, h2, h3 {
  margin-bottom: 1em;
}

/* =========================
   LAYOUT / CONTAINERS
   ========================= */
.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 24px 0;
  margin-left: auto;
  margin-right: auto;
}

/* Carrusel principal */
.carrusel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0 24px 0;
  width: 100%;
}

.carrusel-slide {
  display: flex;
  overflow: hidden;
  width: 70%;
  max-width: 1100px;
  min-width: 320px;
  height: 220px;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.carrusel-slide img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  background: #fff;
  transition: transform 0.3s;
}

.carrusel-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5em;
  cursor: pointer;
  margin: 0 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s;
}

.carrusel-btn:hover {
  background: #0078d4;
  color: #fff;
}

#carrusel-img {
  width: 100vw;
  max-width: 1800px;
  min-width: 600px;
  height: 50vw;
  max-height: 700px;
  min-height: 320px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  background: #fff;
  transition: width 0.3s, height 0.3s;
}

/* =========================
   NAV / MENÚ PRODUCTOS
   ========================= */
.productos-menu {
  position: relative;
  align-items: center;
  padding: 8px 12px;
}

.productos-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  background: white;
  border-radius: 10px;
  padding: 12px 10px;
  min-width: 160px;
  z-index: 100;
  flex-direction: row;
  gap: 12px;
}

.productos-menu:hover .productos-dropdown {
  display: flex;
}

/* Producto item dentro del dropdown */
.producto-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 12px;
  transition: box-shadow 0.3s, transform 0.3s, filter 0.3s;
}

.producto-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-6px) scale(1.07);
  filter: brightness(1.2);
}

.producto-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
  transition: filter 0.3s;
}

.producto-item span {
  color: #000000;
  font-size: 10px;
  font-weight: 400;
  text-align: center;
}

/* =========================
   MÁS PRODUCTOS DROPDOWN
   ========================= */
.mas-productos-dropdown {
  margin-top: 40px;
  width: 90%;
  text-align: left;
}

.mas-productos-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fa;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
  user-select: none;
  border: 2px solid transparent;
}

.mas-productos-header:hover {
  background: #e9ecef;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-color: #007bff;
}

.mas-productos-header.active {
  background: #e9ecef;
  border-color: #007bff;
  box-shadow: 0 4px 16px rgba(0,123,255,0.2);
}

.mas-productos-header h3 {
  margin: 0;
  color: #333;
  font-weight: 600;
  font-size: 1.1em;
}

.dropdown-arrow {
  font-size: 18px;
  color: #666;
  transition: transform 0.3s ease;
  font-weight: bold;
}

.mas-productos-content {
  display: none;
  margin-top: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.productos-grid-horizontal {
  display: flex;
  overflow-x: auto;
  padding: 20px;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f5f5f5;
}

.productos-grid-horizontal::-webkit-scrollbar {
  height: 8px;
}

.productos-grid-horizontal::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
}

.productos-grid-horizontal::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.productos-grid-horizontal::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.producto-card-horizontal {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  padding: 16px;
  min-width: 200px;
  text-align: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.producto-card-horizontal:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-color: #007bff;
}

.producto-card-horizontal img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.producto-card-horizontal:hover img {
  transform: scale(1.05);
}

.producto-card-horizontal .btn--ver-detalle {
  background: #333;
  color: #f0db15;
  padding: 8px 16px;
  font-size: 0.85em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.producto-card-horizontal .btn--ver-detalle:hover {
  background: #000;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* =========================
   COMPONENTES DROPDOWN
   ========================= */
.componentes-dropdown {
  margin-top: 20px;
  width: 90%;
  text-align: left;
}

.componentes-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fa;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
  user-select: none;
  border: 2px solid transparent;
}

.componentes-header:hover {
  background: #e9ecef;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-color: #ff6634;
}

.componentes-header.active {
  background: #e9ecef;
  border-color: #ff6634;
  box-shadow: 0 4px 16px rgba(255,102,52,0.2);
}

.componentes-header h3 {
  margin: 0;
  color: #333;
  font-weight: 600;
  font-size: 1.1em;
}

.componentes-dropdown-arrow {
  font-size: 18px;
  color: #666;
  transition: transform 0.3s ease;
  font-weight: bold;
}

.componentes-content {
  display: none;
  margin-top: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  animation: fadeIn 0.3s ease-in-out;
}

.componentes-grid-horizontal {
  display: flex;
  overflow-x: auto;
  padding: 20px;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f5f5f5;
}

.componentes-grid-horizontal::-webkit-scrollbar {
  height: 8px;
}

.componentes-grid-horizontal::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
}

.componentes-grid-horizontal::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.componentes-grid-horizontal::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.componente-card-horizontal {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  padding: 16px;
  min-width: 200px;
  text-align: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.componente-card-horizontal:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-color: #ff6634;
}

.componente-card-horizontal img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.componente-card-horizontal:hover img {
  transform: scale(1.05);
}

.componente-card-horizontal .btn--agregar-componente {
  background: #ff6634;
  color: white;
  padding: 8px 16px;
  font-size: 0.85em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.componente-card-horizontal .btn--agregar-componente:hover {
  background: #e55a2b;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* =========================
   COMPONENTES ALINEACIÓN IZQUIERDA
   ========================= */

.componentes {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  margin-left: 0 !important;
}

.componentes-section {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  margin-left: 0 !important;
}

.componentes-grid-horizontal {
  width: 100% !important;
  align-self: flex-start !important;
  justify-content: flex-start !important;
}

.componente-card-horizontal {
  flex-shrink: 0 !important;
  margin-left: 0 !important;
}

/* Ajustes responsive para componentes */
@media (max-width: 768px) {
  .componentes-section h3 {
    font-size: 1.1rem;
    padding: 12px 16px;
  }
  
  .componentes-grid-horizontal {
    padding: 15px;
    gap: 15px;
  }
  
  .componente-card-horizontal {
    min-width: 180px;
    padding: 12px;
  }
}

/* =========================
   PRODUCT LIST / CARDS
   ========================= */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  width: 120px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-8px) scale(1.08);
}

.img-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.product-image {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 8px;
  transition: filter 0.3s;
}

.img-btn:active .product-image,
.img-btn:focus .product-image {
  box-shadow: 0 0 0 2px #4db2ff;
}

.product-title {
  font-size: 0.85em;
  margin-top: 6px;
  text-align: center;
  width: 100%;
}

/* Buscador */
.buscador-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 24px;
}

.buscador-input {
  padding: 10px 18px;
  width: 50%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1em;
  background: #fafbfc;
  color: #222;
  outline: none;
  transition: border 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.buscador-input:focus {
  border: 1.5px solid #0078d4;
  background: #fff;
}

/* =========================
   LISTAS / ITEMS
   ========================= */
.lista-productos-grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  max-width: 100%;
  margin: 0 auto 64px auto;
  margin-left: auto;
  margin-right: auto;
}

.lista-productos-grid > div {
  flex: 1;
}

.lista-productos-grid ul {
  list-style: none;
  padding: 0;
}

.item-producto {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 36px;
  background: transparent;
  padding: 32px 40px;
  border-radius: 20px;
  box-shadow: transparent;
}

.item-producto img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 16px;
}

.item-producto strong {
  font-size: 1.35em;
}

.item-producto span {
  color: #555;
  font-size: 1.15em;
}

/* =========================
   DETALLE PRODUCTO (general)
   ========================= */
.detalle-producto-container {
  background: #fff;
  border-radius: 24px;
  max-width: 100vw;
  width: 100vw;
  min-width: 100vw;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.detalle-producto-container h1 {
  font-size: 2.2em;
  color: #222;
  margin-bottom: 18px;
  font-weight: 700;
}

.detalle-producto-container img {
  width: 320px;
  max-width: 40vw;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  background: #f9f9f9;
  margin-left: 0;
}

.detalle-producto-info {
  font-size: 1.1em;
  color: #444;
  margin-bottom: 14px;
  background: #f6f6f6;
  border-radius: 12px;
  padding: 12px 0;
  text-align: left;
}

.detalle-producto-precio {
  display: block;
  font-size: 1.7em;
  color: #ffe100;
  font-weight: bold;
  margin-bottom: 18px;
  margin-top: 10px;
  letter-spacing: 1px;
}

.detalle-producto-descripcion {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 22px;
  background: #f6f6f6;
  border-radius: 10px;
  padding: 10px 0;
}

.detalle-producto-volver {
  display: inline-block;
  background: #ffe100;
  color: #222;
  font-weight: bold;
  border-radius: 10px;
  padding: 12px 32px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.3s, color 0.3s, transform 0.2s;
  margin-top: 10px;
}

.detalle-producto-volver:hover {
  background: #222;
  color: #fff;
  transform: scale(1.05);
}

.detalle-producto-info,
.detalle-producto-precio,
.detalle-producto-descripcion,
.detalle-producto-volver,
.detalle-producto-container h1 {
  margin-left: 0;
}

.detalle-producto-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  margin-right: 32px;
  text-align: left;
}

/* =========================
   DETALLE DE PANTALLA (producto específico)
   ========================= */
.detalle-pantalla {
  max-width: 95%;
  width: 100%;
  margin: 20px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.detalle-pantalla__titulo {
  font-size: 2em;
  font-weight: 700;
  color: #222;
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detalle-pantalla__flex {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
  margin-bottom: 18px;
  text-align: left;
  width: 100%;
}

.detalle-pantalla__img-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.detalle-pantalla__img {
  position: relative;
  width: 280px;
  height: 280px;
  object-fit: contain;
  border-radius: 14px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.lupa-zoom {
  position: absolute;
  pointer-events: none;
  border-radius: 0%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  border: 2px solid transparent;
  width: 220px;
  height: 220px;
  overflow: hidden;
  z-index: 20;
  display: none;
}

.lupa-zoom img {
  position: absolute;
  width: 560px;
  height: 560px;
  object-fit: contain;
  pointer-events: none;
}

.detalle-pantalla__info {
  font-size: 1.15em;
  color: #222;
  background: transparent;
  border-radius: 16px;
  padding: 22px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  line-height: 1.7;
  margin-top: 8px;
  width: 80%;
  text-align: left;
}

.detalle-pantalla__info strong {
  color: black;
  font-weight: 700;
  font-size: 1.08em;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(255,225,0,0.08);
}

.detalle-pantalla__info br {
  margin-bottom: 8px;
}

.detalle-pantalla__botones {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  width: 100%;
}

/* Carousel de imágenes */
.detalle-pantalla__carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

.detalle-pantalla__arrow {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #666;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detalle-pantalla__arrow:hover {
  background: #333;
  color: #fff;
  border-color: #333;
  transform: scale(1.1);
}

.detalle-pantalla__arrow:disabled {
  background: #f5f5f5;
  color: #ccc;
  border-color: #e0e0e0;
  cursor: not-allowed;
  transform: none;
}

.detalle-pantalla__arrow:disabled:hover {
  background: #f5f5f5;
  color: #ccc;
  border-color: #e0e0e0;
  transform: none;
}

.detalle-pantalla__thumbnails {
  display: flex;
  gap: 8px;
  max-width: 300px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.detalle-pantalla__thumbnails::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.detalle-pantalla__thumbnail {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: #f8f9fa;
  padding: 4px;
}

.detalle-pantalla__thumbnail:hover {
  border-color: #666;
  transform: scale(1.05);
}

.detalle-pantalla__thumbnail.active {
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.2);
  background: #fff;
}

/* =========================
   BOTONES / UTILS
   ========================= */
.btn {
  display: inline-block;
  background: black;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  padding: 12px 32px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.3s, color 0.3s, transform 0.2s;
  margin-top: 10px;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background: #333;
  color: #fff;
  transform: scale(1.05);
}

.btn--volver {
  background-color: #d32f2f;
}
.btn--volver:hover {
  background-color: #b71c1c;
}

.btn--eliminar {
  background: #ff4d4d;
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: bold;
  margin-left: 10px;
}

.btn--eliminar:hover {
  background: #b30000;
}

/* =========================
   CARRITO
   ========================= */
.carrito {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  width: 100%;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
  text-align: left;
}

.carrito__titulo {
  font-size: 1.2em;
  margin-bottom: 12px;
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.carrito__item {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.carrito__img {
  width: 100px;
  height: 100px;
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  border-radius: 10px;
  background: #fff;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.carrito__img:hover {
  transform: scale(1.75) translateX(20px);
  z-index: 2;
}

.carrito__info {
  flex: 1;
}

.carrito__info strong {
  font-size: 1.05em;
}

.carrito__info small {
  color: #6c757d;
  font-size: 0.9em;
}

.carrito__vacio {
  color: #a0a0a0;
  font-size: 1.1em;
  text-align: center;
  padding: 20px 0;
}

.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-color: #25D366;
  color: white;
  font-size: 1.2em;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn--whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(18, 140, 126, 0.3);
}

.btn--whatsapp img {
  width: 28px;
  height: 28px;
}
@media (max-width: 900px) {
  #pantallas-lista {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .lista-productos-grid {
    flex-direction: column;
    gap: 0;
    max-width: 98vw;
  }
  .lista-productos-grid > div {
    margin-bottom: 32px;
  }
  .item-producto img {
    width: 80px;
    height: 80px;
  }
  .item-producto {
    padding: 18px 10px;
  }
  .product-card {
    width: 110px;
    min-height: 110px;
  }
  #carrusel-img {
    width: 100vw;
    height: 320px;
    min-width: 0;
    min-height: 0;
  }
  .detalle-producto-container {
    flex-direction: column;
    align-items: center;
    max-width: 98vw;
    width: 98vw;
    padding: 18px 8px;
    text-align: center;
  }
  .detalle-producto-content {
    margin-right: 0;
    margin-bottom: 18px;
    width: 100%;
  }
  .detalle-producto-container img {
    margin-left: 0;
    margin-top: 18px;
    width: 90vw;
    max-width: 180px;
    height: auto;
  }
  /* Detalle pantalla responsive */
  .detalle-pantalla {
    max-width: 95%;
    padding: 20px 16px;
  }
  
  .detalle-pantalla__flex {
    flex-direction: column;
    gap: 20px;
  }
  
  .detalle-pantalla__img {
    width: 240px;
    height: 240px;
  }
  
  .detalle-pantalla__info {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }
  
  .detalle-pantalla__carousel {
    gap: 8px;
  }
  
  .detalle-pantalla__arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .detalle-pantalla__thumbnails {
    max-width: 240px;
  }
  
  .detalle-pantalla__thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .detalle-pantalla__botones {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Más productos responsive */
  .mas-productos-dropdown {
    width: 95%;
  }
  
  .mas-productos-header {
    padding: 12px 16px;
  }
  
  .mas-productos-header h3 {
    font-size: 1em;
  }
  
  .productos-grid-horizontal {
    padding: 16px;
    gap: 16px;
  }
  
  .producto-card-horizontal {
    min-width: 160px;
    padding: 12px;
  }
  
  .producto-card-horizontal img {
    width: 80px;
    height: 80px;
  }

  /* Componentes responsive */
  .componentes-dropdown {
    width: 95%;
  }
  
  .componentes-header {
    padding: 12px 16px;
  }
  
  .componentes-header h3 {
    font-size: 1em;
  }
  
  .componentes-grid-horizontal {
    padding: 16px;
    gap: 16px;
  }
  
  .componente-card-horizontal {
    min-width: 160px;
    padding: 12px;
  }
  
  .componente-card-horizontal img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 600px) {
  #pantallas-lista {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .product-grid {
    gap: 10px;
  }
  .product-card {
    width: 80px;
    min-height: 80px;
    padding: 4px;
  }
  .product-image {
    width: 32px;
    height: 32px;
  }
  #carrusel-img {
    width: 98vw;
    height: 160px;
    min-width: 0;
    min-height: 0;
  }
  .buscador-input {
    width: 90vw;
    font-size: 0.95em;
  }
  .item-producto img {
    width: 54px;
    height: 54px;
  }
  .item-producto {
    padding: 10px 4px;
    gap: 12px;
  }
  .detalle-producto-container {
    padding: 10px 2vw;
    max-width: 99vw;
  }
  .detalle-producto-container img {
    width: 90vw;
    max-width: 180px;
    height: auto;
  }
  .carrusel-slide {
    width: 98vw;
    height: 120px;
    gap: 8px;
  }
  .carrusel-slide img {
    width: 80px;
    height: 80px;
  }
  /* Detalle pantalla en móviles */
  .detalle-pantalla {
    max-width: 98%;
    padding: 16px 12px;
  }
  
  .detalle-pantalla__titulo {
    font-size: 1.5em;
    margin-bottom: 12px;
  }
  
  .detalle-pantalla__img {
    width: 200px;
    height: 200px;
  }
  
  .detalle-pantalla__arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .detalle-pantalla__thumbnails {
    max-width: 200px;
    gap: 6px;
  }
  
  .detalle-pantalla__thumbnail {
    width: 40px;
    height: 40px;
  }
  
  .detalle-pantalla__info {
    font-size: 1em;
    padding: 12px 16px;
  }

  /* Más productos en móviles */
  .mas-productos-dropdown {
    width: 98%;
  }
  
  .mas-productos-header {
    padding: 10px 14px;
  }
  
  .mas-productos-header h3 {
    font-size: 0.9em;
  }
  
  .dropdown-arrow {
    font-size: 16px;
  }
  
  .productos-grid-horizontal {
    padding: 12px;
    gap: 12px;
  }
  
  .producto-card-horizontal {
    min-width: 140px;
    padding: 10px;
  }
  
  .producto-card-horizontal img {
    width: 70px;
    height: 70px;
  }
  
  .producto-card-horizontal div {
    font-size: 0.8em;
    line-height: 1.2;
  }
  
  .producto-card-horizontal .btn--ver-detalle {
    padding: 6px 12px;
    font-size: 0.75em;
  }

  /* Componentes en móviles */
  .componentes-dropdown {
    width: 98%;
  }
  
  .componentes-header {
    padding: 10px 14px;
  }
  
  .componentes-header h3 {
    font-size: 0.9em;
  }
  
  .componentes-dropdown-arrow {
    font-size: 16px;
  }
  
  .componentes-grid-horizontal {
    padding: 12px;
    gap: 12px;
  }
  
  .componente-card-horizontal {
    min-width: 140px;
    padding: 10px;
  }
  
  .componente-card-horizontal img {
    width: 70px;
    height: 70px;
  }
  
  .componente-card-horizontal div {
    font-size: 0.8em;
    line-height: 1.2;
  }
  
  .componente-card-horizontal .btn--agregar-componente {
    padding: 6px 12px;
    font-size: 0.75em;
  }
}

/* --- Estilos para la lista de productos en 5 columnas --- */
@media (min-width: 1200px) {
  #pantallas-lista {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ========= SECCIÓN DE COMPARACIÓN DE PRODUCTOS ========= */
.comparacion-section {
  width: 100%;
  max-width: 1100px;
  margin: 60px auto;
  padding: 40px;
  background: #f8f9fa;
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-media);
  border-top: 1px solid #eee;
}

.comparacion-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2em;
  color: #333;
  font-weight: 700;
}

.comparador-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.comparador-columna {
  background: var(--color-blanco);
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.comparador-columna.producto-actual {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.comparador-subtitulo {
  font-size: 1.2em;
  font-weight: 600;
  color: #555;
  margin-bottom: 20px;
}

.comparador-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto 15px;
  display: block;
  background: #f8f9fa;
  padding: 5px;
}

.comparador-info .comparador-titulo {
  font-size: 1.1em;
  font-weight: 700;
  color: #333;
  display: block;
}

.comparador-info .comparador-marca {
  font-size: 0.9em;
  color: #777;
}

.comparador-placeholder {
  padding: 40px 20px;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  color: #999;
}

.placeholder-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.tabla-comparacion { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 0.95em; }
.tabla-comparacion th, .tabla-comparacion td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.tabla-comparacion th { background-color: #f8f9fa; font-weight: 600; color: #333; }
.tabla-comparacion tr:last-child td { border-bottom: none; }
.tabla-comparacion td { color: #555; }
