/* ========================================
   VARIABLES CSS GLOBALES
   ======================================== */
:root {
  --header-height-desktop: 90px;  /* Cambiado de 150px */
  --header-height-tablet: 120px;  /* Cambiado de 180px */
  --header-height-mobile: 140px;  /* Cambiado de 200px */
}

/* ========================================
   RESET Y ESTILOS GLOBALES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f8f9fa;
  color: #ffffff;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.seo-content{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}


/* ========================================
   SCROLLBAR PERSONALIZADA
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

/* ========================================
   HEADER PÚBLICO
   ======================================== */
.header-publico {
  background: linear-gradient(135deg, #b89f88 0%, #b89f88 100%);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  gap: 15px;
  flex-wrap: wrap;
  min-height: var(--header-height-desktop);
}

.empresa-publica {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 auto;
  min-width: 250px;
}

.empresa-publica img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #b89f88;
  box-shadow: 0 4px 12px rgba(184, 159, 136, 0.3);
  background: #ffffff;
  padding: 5px;
}

.empresa-publica h1 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
}

/* ========================================
   BUSCADOR CON ICONO SVG
   ======================================== */
#buscador {
  flex: 1;
  min-width: 250px;
  padding: 12px 18px 12px 45px;
  border: 2px solid rgba(184, 159, 136, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.456);
  color: #000000;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
  font-family: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 20px 20px;
}

#buscador::placeholder {
  color: rgb(255, 255, 255);
}

@media (max-width: 768px) {
  #buscador {
    padding: 10px 14px 10px 45px;
    font-size: 14px;
    min-height: 40px;
    height: 40px;
    background-position: 12px center;
    background-size: 18px 18px;
  }
}

@media (max-width: 480px) {
  #buscador {
    padding: 8px 12px 8px 45px;
    font-size: 13px;
    min-height: 38px;
    height: 38px;
    background-position: 10px center;
    background-size: 18px 18px;
  }
}



/* ========================================
   LAYOUT PÚBLICO
   ======================================== */
.layout-publico {
  display: flex;
  margin-top: var(--header-height-desktop);
  min-height: calc(100vh - var(--header-height-desktop));
  flex: 1;
}

/* ========================================
   CATEGORÍAS PÚBLICAS (SIDEBAR)
   ======================================== */
.categorias-publicas {
  width: 250px;
  background: #ffffff;
  padding: 25px 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  border-right: 1px solid rgba(184, 159, 136, 0.1);
  position: fixed;
  top: var(--header-height-desktop);
  left: 0;
  height: calc(100vh - var(--header-height-desktop));
  z-index: 50;
}

.categorias-publicas h3 {
  color: #1a1a2e;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(184, 159, 136, 0.2);
}

#listaCategoriasPublica {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
  max-height: calc(100vh - 446px);
}

#listaCategoriasPublica li {
  padding: 12px 15px;
  margin: 6px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #2c3e50;
  font-size: 14px;
  font-weight: 500;
}

#listaCategoriasPublica li:hover {
  background: rgba(184, 159, 136, 0.12);
  color: #b89f88;
  transform: translateX(8px);
  padding-left: 20px;
}

#listaCategoriasPublica li.active {
  background: linear-gradient(90deg, rgba(184, 159, 136, 0.15), transparent);
  color: #b89f88;
  font-weight: 600;
  border-left: 3px solid #b89f88;
}

/* ========================================
   GALERÍA PÚBLICA
   ======================================== */
.galeria-publica {
  flex: 1;
  padding: 40px;
  margin-left: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.catalog-intro {
  background: linear-gradient(135deg, rgba(172, 162, 153, 0.611) 0%, rgba(202, 113, 28, 0.05) 100%);
  padding: 12px 20px;
  margin: 0 0 15px 0;
  border-radius: 12px;
  border-left: 4px solid #b89f88;
  text-align: center;
  color: #5c5c75;
}

#galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  flex: 1;
}


/* ========================================
   CARDS DE PRODUCTOS
   ======================================== */
.card-producto {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 380px;
}

.card-producto:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.card-producto-img {
  width: 100%;  
  height: 250px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-bottom: 1px solid #d6cccc;
}

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

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

.card-producto-info {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
}

.card-producto h4 {
  color: #1a1a2e;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  transition: color 0.3s ease;
}

.card-producto:hover h4 {
  color: #b89f88;
}

.card-producto-codigo {
  color: #7a8a9e;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.card-producto-btn {
  width: 100%;
  padding: 10px 15px;
  background: linear-gradient(135deg, #b89f88 0%, #b89f88 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.card-producto-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 159, 136, 0.4);
}

/* ========================================
   BOTÓN COTIZACIÓN FLOTANTE
   ======================================== */
.cotizacion {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 500;
}

.cotizacion button {
  padding: 12px 20px;
  background: linear-gradient(135deg, #62605d 0%, #62605d 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 20px rgb(255, 255, 255);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50px;
  font-family: inherit;
  white-space: nowrap;
}

.cotizacion button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 30px rgba(184, 159, 136, 0.6);
}

/* ========================================
   FOOTER ADMIN
   ======================================== */
#footerEmpresa {
  width: 100%;
  padding: 20px 30px;
  background: linear-gradient(135deg, #66625f 0%, #66625f 50%, #66625f 100%);
  color: #b89f88;
  font-size: 14px;
  text-align: center;
  border-top: 2px solid rgba(184, 159, 136, 0.4);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
  margin-left: 140px;  /* Alineado con el contenido del admin */
  margin-top: 0px;
  position: relative;
  left: 0;
}

/* Footer en páginas públicas (sin sidebar) */
body:not(.admin-page) #footerEmpresa {
  margin-left: 140;
}

/* Responsive - Footer sin margen en móvil */
@media (max-width: 768px) {
  #footerEmpresa {
    margin-left: 0 !important;
  }
}

/* ========================================
   BOTÓN MENÚ MÓVIL
   ======================================== */
#btnMenuMovil {
  display: none;
  position: fixed;
  top: 100px;
  left: 15px;
  z-index: 900;
  background: linear-gradient(135deg, #b89f88 0%, #b89f88 100%);
  color: #ffffff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(232, 113, 2, 0.4);
  transition: all 0.3s ease;
}

#btnMenuMovil.hidden {
  opacity: 0;
  transform: scale(0.5) rotate(180deg);
  pointer-events: none;
}

#btnMenuMovil:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.6);
}

#overlayMenu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 140;
}

#overlayMenu.active {
  display: block;
}

/* ========================================
   RESPONSIVE - TABLETS (768px - 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .header-publico {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    min-height: var(--header-height-tablet);
  }

  .empresa-publica {
    width: 100%;
    justify-content: center;
  }

  #buscador {
    width: 100%;
  }

  .filtros-alfabeticos {
    gap: 4px;
    padding: 8px 0;
  }

  .filtro-letra {
    padding: 5px 8px;
    font-size: 11px;
    min-width: 30px;
  }

  .filtro-letra:first-child {
    min-width: 50px;
    padding: 5px 12px;
  }

  .layout-publico {
    margin-top: var(--header-height-tablet);
    padding-left: 0;
  }

  .categorias-publicas {
    position: fixed;
    top: var(--header-height-tablet);
    left: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height-tablet));
    background: white;
    z-index: 150;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
  }

  .categorias-publicas.active {
    left: 0;
  }

  .galeria-publica {
    margin-left: 0;
    padding: 20px 15px 30px 15px;
  }

  #galeria {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  #btnMenuMovil {
    display: block;
    top: calc(var(--header-height-tablet) + 10px);
  }

  .cotizacion {
    bottom: 20px;
    right: 20px;
  }

  .cotizacion button {
    padding: 12px 16px;
    font-size: 13px;
  }

  #footerEmpresa {
    margin-left: 0;
  }
}

/* ========================================
   RESPONSIVE - MÓVILES (hasta 768px)
   ======================================== */
@media (max-width: 768px) {
  :root {
    --header-height-tablet: 100px;
  }

  .header-publico {
    min-height: var(--header-height-tablet);
    padding: 10px;
    gap: 8px;
  }

  .layout-publico {
    margin-top: var(--header-height-tablet);
  }

  .categorias-publicas {
    top: var(--header-height-tablet);
    height: calc(100vh - var(--header-height-tablet));
    left: -100%;
  }

  #btnMenuMovil {
    top: calc(var(--header-height-tablet) + 15px);
  }

  #galeria {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .empresa-publica img {
    display: none !important;
  }

  .empresa-publica {
    justify-content: center;
  }

  .galeria-publica {
    padding: 20px 15px 30px 15px;
  }
}

/* ========================================
   RESPONSIVE - MÓVILES PEQUEÑOS (hasta 480px)
   ======================================== */
@media (max-width: 480px) {
  :root {
    --header-height-mobile: 80px;
  }

  .header-publico {
    min-height: var(--header-height-mobile);
    padding: 8px 10px;
    gap: 6px;
  }

  .empresa-publica {
    gap: 0;
    justify-content: center;
  }

  .empresa-publica img {
    display: none !important;
  }

  .empresa-publica h1 {
    font-size: 16px;
    line-height: 1.2;
  }

  #buscador {
    padding: 8px 12px 8px 45px;
    font-size: 12px;
    min-height: 34px;
    height: 34px;
  }

  .filtros-alfabeticos {
    gap: 3px;
    padding: 6px 0;
  }

  .filtro-letra {
    padding: 4px 6px;
    font-size: 10px;
    min-width: 26px;
  }

  .filtro-letra:first-child {
    min-width: 45px;
    padding: 4px 10px;
  }

  .layout-publico {
    margin-top: var(--header-height-mobile);
  }

  .categorias-publicas {
    top: var(--header-height-mobile);
    height: calc(100vh - var(--header-height-mobile));
    width: 260px;
    left: -100%;
  }

  #btnMenuMovil {
    top: calc(var(--header-height-mobile) + 15px);
  }

  #galeria {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .card-producto-info {
    padding: 12px;
  }

  .card-producto h4 {
    font-size: 13px;
  }

  .cotizacion {
    bottom: 15px;
    right: 15px;
  }

  .cotizacion button {
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 35px;
  }

  #footerEmpresa {
    padding: 20px 15px;
    font-size: 12px;
  }

  .galeria-publica {
    padding: 20px 10px 30px 10px;
  }
}

/* ========================================
   MODALES Y ANIMACIONES
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================
   ADMIN - LAYOUT
   ======================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
  color: #f4f4f4;
  padding: 25px 20px;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #b89f88, #f4d03f, #b89f88);
  animation: shimmerGold 2.5s ease-in-out infinite;
}

@keyframes shimmerGold {
  0%, 100% { 
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(184, 159, 136, 0.4);
  }
  50% { 
    opacity: 1;
    box-shadow: 0 0 20px rgba(184, 159, 136, 0.8);
  }
}

.empresa {
  display: flex;
  align-items: center;
  padding: 15px;
  background: rgba(184, 159, 136, 0.08);
  border-radius: 12px;
  margin-bottom: 30px;
  border: 1px solid rgba(184, 159, 136, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.empresa:hover {
  background: rgba(184, 159, 136, 0.12);
  transform: translateX(5px);
  border-color: rgba(184, 159, 136, 0.4);
}

.empresa img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 12px;
  border: 2px solid #b89f88;
  box-shadow: 0 4px 12px rgba(184, 159, 136, 0.3);
  transition: transform 0.3s ease;
}

.empresa:hover img {
  transform: scale(1.08) rotate(2deg);
}

.empresa span {
  font-size: 17px;
  font-weight: 700;
  color: #b89f88;
  letter-spacing: 0.5px;
}

.menu {
  margin-bottom: 25px;
}

.menu h4 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #8a8a9e;
  border-bottom: 2px solid rgba(184, 159, 136, 0.15);
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.menu li {
  padding: 12px 16px;
  margin: 4px 0;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #c4c4d4;
  font-size: 14px;
  font-weight: 500;
}

.menu li:hover {
  background: rgba(184, 159, 136, 0.12);
  color: #b89f88;
  transform: translateX(8px);
  padding-left: 20px;
}

.menu li.active {
  background: linear-gradient(90deg, rgba(184, 159, 136, 0.2), rgba(184, 159, 136, 0.05));
  color: #b89f88;
  font-weight: 600;
  border-left: 3px solid #b89f88;
}

.acciones {
  margin-top: 25px;
}

.btn-principal {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #b89f88 0%, #f4d03f 100%);
  color: #1a1a2e;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(184, 159, 136, 0.3);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  font-family: inherit;
}

.btn-principal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.btn-principal:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(184, 159, 136, 0.5);
}

.btn-principal:hover::before {
  left: 100%;
}

.btn-principal:active {
  transform: translateY(0);
}

.btn-sec {
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  color: #b89f88;
  border: 2px dashed rgba(184, 159, 136, 0.5);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.btn-sec:hover {
  background: rgba(184, 159, 136, 0.12);
  border-style: solid;
  border-color: #b89f88;
  box-shadow: 0 0 15px rgba(184, 159, 136, 0.3);
}

.admin-content {
  margin-left: 280px;
  width: calc(100% - 280px);
  min-height: 100vh;
  padding: 35px 40px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.admin-content h2 {
  color: #1a1a2e;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ========================================
   ADMIN - TABS
   ======================================== */
.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 14px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #8a8a9e;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.admin-tab.active {
  color: #b89f88;
  border-bottom-color: #b89f88;
}

.admin-tab:hover {
  color: #b89f88;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* ========================================
   ADMIN - ESTADÍSTICAS
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 4px solid #b89f88;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat-card h4 {
  color: #8a8a9e;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.stat-card p {
  color: #b89f88;
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

/* ========================================
   ADMIN - FORMULARIOS
   ======================================== */
.form-section {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

.form-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(184, 159, 136, 0.2);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #2c3e50;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f8f9fa;
  color: #2c3e50;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #b89f88;
  background: white;
  box-shadow: 0 0 0 3px rgba(184, 159, 136, 0.15);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.logo-preview {
  margin-top: 15px;
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #b89f88;
}

.logo-preview img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid #b89f88;
  padding: 10px;
  background: white;
}

/* ========================================
   ADMIN - GALERÍA PRODUCTOS
   ======================================== */
.galeria-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.producto-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.producto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.producto-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #f8f9fa;
  padding: 10px;
  display: block;
}

.producto-info {
  padding: 12px;
}

.producto-info h5 {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.4 !important;
}



.producto-info p {
  font-size: 11px;
  color: #8a8a9e;
  margin: 0 0 10px;
}

.producto-acciones {
  display: flex;
  gap: 6px;
}

.btn-icon {
  flex: 1;
  padding: 6px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-editar {
  background: rgba(184, 159, 136, 0.1);
  color: #b89f88;
}

.btn-editar:hover {
  background: rgba(184, 159, 136, 0.2);
}

.btn-eliminar {
  background: rgba(255, 73, 73, 0.1);
  color: #ff4949;
}

.btn-eliminar:hover {
  background: rgba(255, 73, 73, 0.2);
}

/* ========================================
   ADMIN - LOGIN
   ======================================== */
.admin-login {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
}

.login-container {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.login-container h2 {
  color: #1a1a2e;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.login-container p {
  color: #8a8a9e;
  margin-bottom: 30px;
  font-size: 14px;
}

.login-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-container input {
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.login-container input:focus {
  border-color: #b89f88;
  background: white;
  box-shadow: 0 0 0 3px rgba(184, 159, 136, 0.15);
  outline: none;
}

.login-container button {
  padding: 14px;
  background: linear-gradient(135deg, #b89f88 0%, #f4d03f 100%);
  color: #1a1a2e;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.login-container button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(184, 159, 136, 0.4);
}

.login-error {
  color: #ff4949;
  font-size: 12px;
  margin-top: 10px;
  font-weight: 600;
}

/* ========================================
   ADMIN - RESPONSIVE MÓVIL
   ======================================== */
@media (max-width: 768px) {
  .sidebar {
    width: 70px;
    padding: 20px 10px;
  }

  .admin-content {
    margin-left: 70px;
    width: calc(100% - 70px);
    padding: 20px;
  }

  .empresa span,
  .menu h4 {
    font-size: 0;
  }

  .menu li {
    padding: 12px;
    font-size: 0;
  }

  .btn-principal,
  .btn-sec {
    padding: 12px;
    font-size: 0;
  }

  .admin-content h2 {
    font-size: 20px;
  }
}

/* Scroll personalizado para lista de categorías del admin */
#listaCategorias {
  max-height: calc(100vh - 450px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

#listaCategorias::-webkit-scrollbar {
  width: 6px;
}

#listaCategorias::-webkit-scrollbar-track {
  background: rgba(184, 159, 136, 0.1);
  border-radius: 10px;
}

#listaCategorias::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

#listaCategorias::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.8);
}

