﻿/******************************
   BARRA SUPERIOR (redes, mensaje, contacto)
******************************/
.top-bar {
  width: 100%;
  background-color: #1C1C1C;
  color: #F4F1EC;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1400;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  flex-wrap: wrap;
}

/* Redes sociales */
.social-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-section a {
  color: #F4F1EC;
  background-color: rgba(255,255,255,0.08);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.3s;
}

.social-section a:hover {
  background-color: #C00000;
}

.exchange {
  font-size: 10px;
  margin-left: 10px;
  font-weight: 500;
}

/* Mensaje central */
.welcome-section {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.welcome-section span {
  color: #F4F1EC;
  font-size: 11px;
  font-weight: 500;
}

.welcome-section a {
  font-size: 11px;
  color: #C00000;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.welcome-section a:hover {
  color: #E53935;
}

.welcome-section i {
  margin-left: 6px;
  color: #F4F1EC;
}

/* Contacto */
.contact-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-section a {
  font-size: 10px;
  color: #F4F1EC;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.contact-section a:hover {
  color: #C00000;
}

.contact-section i {
  color: #C00000;
}

/* Responsive */
@media (max-width: 900px) {
  .top-bar-inner {
    justify-content: center;
    gap: 8px;
  }
  .social-section, .welcome-section, .contact-section {
    justify-content: center;
  }
}

/******************************
   HEADER PRINCIPAL (Logo + Íconos)
******************************/
.top-header {
  width: 100%;
  height: 60px;
  background: #F4F1EC;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  /*box-shadow: 0 2px 6px rgba(0,0,0,0.25);*/
  position: fixed;
  top: 32px; /* Deja espacio para la top-bar */
  left: 0;
  z-index: 1300;
}

.top-header-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* Logo */
.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 40px;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0d74ad;
  letter-spacing: 1px;
}

/* Iconos */
.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon {
  color: #C00000;
  font-size: 1.3rem;
  position: relative;
  transition: color 0.3s ease;
}

.icon:hover {
  color: #E53935;
}

/* Contador del carrito */
.cart {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #C00000;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/******************************
   HEADER INFERIOR (Categorías + Navegación)
******************************/
.header_categorias {
  width: 100%;
  height: 62px;
  top: 92px; /* 32px (top-bar) + 60px (logo-header) */
  left: 0;
  background:#E0DEDA;
  color: #2C3E50;
  z-index: 1250;
  border-bottom: 1px solid #E0E4E7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 12px 16px;
}

/* Menú de categorías */
.menu-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2C3E50;
  font-weight: 500;
  font-size: 13px;
}

.menu-label {
  cursor: pointer;
  user-select: none;
  transition: color .2s;
}

.menu-label:hover {
  color: #C00000;
}

/* Botón del menú */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #2C3E50 !important;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background .16s ease;
}
.icon-btn:hover { background: rgba(192,0,0,0.08); }

/* Icono Home */
.home-link {
  display: inline-flex;
  align-items: center;
  color: #C00000;
  text-decoration: none;
  margin-left: 2px;
}
.home-link:hover { color: #E53935; }

/* Navegación Principal */
.top-nav {
  display: flex;
  gap: 12px;
  margin-left: 14px;
}
.top-link {
  color: #2C3E50;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background .16s, color .16s;
}
 a{
    text-decoration: none !important;
}
.top-link:hover { background: rgba(192,0,0,0.08); color: #C00000; }

.header-spacer { flex: 1; }

/******************************
   SIDEBAR LATERAL
******************************/
.sidebar {
  position: fixed;
  top: 0;
  left: -360px;
  width: 320px;
  height: 100vh;
  background: #F4F1EC;
  color: #2C3E50;
  padding: 14px;
  padding-top: 50px;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  transition: left .32s cubic-bezier(.2,.9,.2,1);
  z-index: 1250;
  overflow-y: auto;
}
.sidebar.active { left: 0; }

.sidebar-header {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: end;
}
.brand { font-size: 1.05rem; letter-spacing: .2px; }

.sidebar-nav .menu { list-style: none; padding-bottom: 40px; }
.menu-item { margin-bottom: 6px; }

.title_categorias{
    background-color: #C00000;
    padding: 10px;
    text-align: center;
}
.title_categorias strong{
    font-size: 15px;
    color: #fff;
}
.menu-toggle {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: #2C3E50;
    padding: 10px 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background .14s;
}
.menu-toggle:hover { background: #C00000; color: #fff; }

.caret {
  color: #2C3E50;
  margin-left: 8px;
  transform-origin: center;
  transition: transform .22s ease;
}

.sidebar a {
  display: block;
  color: #2C3E50;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.sidebar a:hover {
    background: rgba(192,0,0,0.08); 
    color: #C00000; 
}

.submenu, .subsubmenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s ease, padding .2s ease;
  padding-left: 6px;
}
.menu-item.open > .submenu { 
    max-height: 600px;
    padding-top: 6px; 
    padding-bottom: 6px; 
}
.menu-item.open > .submenu > .menu-item.open > .subsubmenu {
    max-height: 400px; 
    padding-top: 6px; 
    padding-bottom: 6px; 
}
.submenu .menu-item > .menu-toggle {
    font-weight: 600; 
    font-size: 12px; 
    padding-left: 8px; 
}
.subsubmenu a { 
    padding-left: 24px; 
    font-size: 13px; 
    color: #2C3E50; 
}
.sidebar::-webkit-scrollbar {
    width: 8px; 
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1); 
    border-radius: 6px; 
}
/*******OVERLAY********/
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
  z-index: 1240;
}
.overlay.active { opacity: 1; pointer-events: all; }
/*****CONTENIDO PRINCIPAL*******/
.page-content {
  padding-top: 10px; /* espacio total para 3 headers */
/*  min-height: 100vh;
*/  background: #E8ECEF;
}
.content-inner {
  max-width: 1100px;
  margin: 28px auto;
  padding: 18px;
  background: #F4F1EC;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(15,22,28,0.06);
}
/******RESPONSIVE*******/
@media (max-width: 900px) {
  .sidebar { width: 280px; left: -280px; }
  .sidebar.active { left: 0; }
  .top-nav { display: none; }
}
@media (max-width: 480px) {
  .header-inner { padding: 10px 12px; gap: 8px; }
  .home-link { margin-left: 6px; }
}
/*********/
.container-slidernew {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
/*  border-radius: 16px;
*/}
.slidernew {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* --- Botones --- */
.slider-controls {
  padding: 15px;
  position: absolute;
  top: 50%;
  width: 99%;
  height: 4%;
  align-items: center;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 5;
}
.slider-controls span {
  cursor: pointer;
  padding: 11px 19px;
  font-size: 1.8rem;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.2s ease;
}
.slider-controls span:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}
/***Dots***/
.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 6;
}
.slider-dots span {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.slider-dots span.active {
  background: #C00000;
  transform: scale(1.2);
}
/****RESPONSIVO*****/
/*Tablets grandes*/
@media (max-width: 992px) {
  .container-slidernew {
    height: 420px;
  }
  .slider-controls span {
    font-size: 1.5rem;
    padding: 10px 14px;
  }
}
/*Tablets verticales y pantallas medianas*/
@media (max-width: 768px) {
  .container-slidernew {
    height: 340px;
  }
  .slider-controls span {
    font-size: 1.4rem;
    padding: 9px 12px;
  }
  .slider-dots span {
    width: 10px;
    height: 10px;
  }
}
/*Teléfonos*/
@media (max-width: 576px) {
  .container-slidernew {
    height: 260px;
  }
  .slider-controls span {
    font-size: 1.2rem;
    padding: 8px 10px;
  }
  .slider-dots span {
    width: 9px;
    height: 9px;
  }
}
/*Teléfonos muy pequeños*/
@media (max-width: 400px) {
  .container-slidernew {
    height: 220px;
  }
  .slider-controls span {
    font-size: 1rem;
    padding: 7px 9px;
  }
  .slider-dots span {
    width: 8px;
    height: 8px;
  }
}
