/* --- HEADER SIMPLE --- */
.page-header-simple h1 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 10px;
}
.page-header-simple p {
  text-transform: uppercase;
  color: var(--gray);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* --- VISOR DE CATEGORÍAS --- */
.category-viewer-section {
  padding-bottom: 60px;
}
.viewer-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: start;
}

/* Lista Lateral */
.category-list {
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  background: white;
}
.cat-item {
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-left: 4px solid transparent;
}
.cat-item:last-child {
  border-bottom: none;
}
.cat-item:hover {
  background: #fafafa;
  color: var(--primary);
}
.cat-item.active {
  background: white;
  color: var(--dark);
  border-left-color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-whatsapp-style {
  margin-top: 20px;
  background: var(--primary);
  color: white;
  width: 100%;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.btn-whatsapp-style:hover {
  background: var(--dark);
}

/* Display Central */
.viewer-display {
  padding: 20px;
}
.display-title {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 30px;
  font-weight: 400;
  border-bottom: none; /* Override general.css */
  text-transform: uppercase;
}
.display-title::after {
  display: none;
} /* Remove underline */

.display-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  margin-bottom: 30px;
}
.display-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  transition: transform 0.4s ease;
}
.display-img:hover {
  transform: scale(1.05);
}
.display-desc {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  max-width: 800px;
}

/* --- SLIDER DE IMÁGENES DE CATEGORÍAS --- */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    height: 350px;
}

.slider-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f8f8;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.slider-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot.active {
    background: var(--primary);
    border-color: white;
    transform: scale(1.2);
}

/* --- SECCIÓN DE SUBCATEGORÍAS --- */
.subcategorias-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.subcategorias-title {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
}

.subcategorias-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.subcategoria-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1; /* Visibles desde el inicio */
    transform: translateY(0); /* Remover translate inicial */
}

.subcategoria-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.subcategoria-item-titulo {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.subcategoria-item-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* --- BOTÓN DE CATÁLOGO --- */
.btn-catalogo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #d62a15 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(231, 67, 24, 0.3);
}

.btn-catalogo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 67, 24, 0.4);
}

.btn-catalogo span {
    font-size: 1.2rem;
}

/* CARRUSEL GRANDE (LANZAMIENTOS) --- */
.bg-gray {
  background: #f9f9f9;
}
.mb-40 {
  margin-bottom: 40px;
}

.carousel-wrapper-large {
  position: relative;
  padding: 0 40px;
}
.carousel-track-large {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 20px 5px;
}
.carousel-track-large::-webkit-scrollbar {
  display: none;
}

/* Tarjeta Grande Horizontal */
.big-product-card {
  flex: 0 0 48%; /* Muestra 2 por vista aprox */
  background: white;
  border: 1px solid #eee;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 8px;
  min-width: 400px;
  transition: transform 0.3s;
}
.big-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}
.big-card-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  flex-shrink: 0;
}
.big-card-info h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 5px;
}
.big-card-brand {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: block;
}
.big-card-details {
  font-size: 0.85rem;
  color: #666;
}
.big-card-details strong {
  color: var(--dark);
}

.carousel-btn-large {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 3rem;
  color: #ccc;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s;
}
.carousel-btn-large:hover {
  color: var(--primary);
}
.carousel-btn-large.prev {
  left: -10px;
}
.carousel-btn-large.next {
  right: -10px;
}

/* --- SECCIÓN PROMO CATÁLOGO --- */
.catalog-promo-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  color: white;
  margin-top: 50px;
}
/* Fondo inclinado rosa/rojo */
.catalog-bg-shape {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 65%;
  background: linear-gradient(135deg, #ff9a9e 0%, #e74318 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}

.catalog-promo-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Mockups */
.mockup-stack {
  position: relative;
  height: 400px;
  width: 100%;
}
.mockup-back {
  position: absolute;
  top: 20px;
  left: 0;
  width: 80%;
  z-index: 1;
  transform: rotate(-5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.mockup-front {
  position: absolute;
  bottom: 0;
  right: 20px;
  width: 30%;
  z-index: 2;
  transform: rotate(5deg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Texto Promo */
.catalog-info {
  padding-left: 40px;
}
.promo-subtitle {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  opacity: 0.9;
  display: block;
  margin-bottom: 10px;
  color: white; /* O var(--dark) dependiendo del contraste con el fondo */
}
/* Ajuste para que el texto se vea sobre el fondo rojo */
.catalog-info h2,
.catalog-info p,
.catalog-info .promo-subtitle {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.promo-title {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 800;
}
.promo-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
  opacity: 0.9;
}

.promo-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 350px;
}

.btn-dark-promo {
  background: #000;
  color: white;
  border: 1px solid #333;
  border-radius: 30px;
  padding: 12px 25px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s;
}
.btn-dark-promo:hover {
  background: #222;
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 900px) {
  .viewer-layout {
    grid-template-columns: 1fr;
  }
  .viewer-sidebar {
    order: 2;
  }
  .viewer-display {
    order: 1;
    text-align: center;
  }

  .catalog-bg-shape {
    width: 100%;
    clip-path: none;
    opacity: 0.9;
  }
  .catalog-promo-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .catalog-info {
    padding-left: 0;
  }
  .promo-actions {
    margin: 0 auto;
  }
  .mockup-stack {
    display: none;
  } /* Ocultar mockups en móvil o ajustar */

  .big-product-card {
    min-width: 300px;
    flex-direction: column;
    text-align: center;
  }

  /* Responsive para el nuevo contenido*/
  .slider-container {
    height: 250px;
    margin: 0 auto 25px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .slider-prev {
    left: 5px;
  }

  .slider-next {
    right: 5px;
  }

  .subcategorias-lista {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .subcategoria-item {
    padding: 15px;
    text-align: center;
  }

  .subcategoria-item-titulo {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .subcategoria-item-desc {
    font-size: 0.8rem;
  }

  .btn-catalogo {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 20px;
  }
}
