
/* Estilos generales */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f5f0eb; /* mismo que el index */
    margin: 0;
    padding: 0;
}

/* Encabezado con barra marrón */
header {
    background-color: #8B5E3C;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

/* Sección izquierda del encabezado: título + ícono + número */
.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-title img {
    height: 32px;
}

/* WhatsApp con espacio entre ícono y texto */
.whatsapp-contact {
    display: flex;
    align-items: center;
    gap: 10px; /* espacio entre logo y número */
    margin-left: 20px; /* espacio entre nombre y bloque WhatsApp */
}

/* Botón de descarga */
.download-btn {
    background-color: white;
    color: #8B5E3C;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* Contenedor principal */
.container {
    padding: 20px;
}

/* Título principal */
h1 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
  margin-top: 5px;
}

/* Tabla de productos */
table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    background-color: white;
}

table, th, td {
  font-size: 16px;
}

.grupo-panel {
  font-weight: bold;
  font-size: 26px;
  background-color: #e4d4c3;
  text-align: left;
  padding: 14px;
}

/* Fila de grupo para ambas páginas */
.grupo-fila {
  font-weight: bold;
  font-size: 26px;
  background-color: #e4d4c3;
  text-align: left;
  padding: 14px;
}

/* Encabezados de columna */
th {
    background-color: #8B5E3C;
    color: white;
    text-align: left;
    padding: 14px;
}

/* Celdas de la tabla */
td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

/* Columna de código más angosta */
td:first-child, th:first-child {
    width: 80px;
}

/* Efecto hover */
tr:hover {
    background-color: #f3ebe4;
}

/* Buscador + Filtro */
#filtros {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

@media screen and (max-width: 600px) {
  .download-btn {
    padding: 6px 12px;
    font-size: 14px;
  }

  .logo-title span,
  .whatsapp-contact a {
    font-size: 18px !important;
  }

  table, th, td {
    font-size: 14px;
  }
}

.fila-configuracion {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 30px;
}

.subseccion {
  flex: 1 1 45%;
  min-width: 280px;
}

/* Encabezado de secciones del panel */
.seccion h2 {
  color: #8B5E3C;
  font-size: 20px;
  margin-bottom: 10px;
}

/* Inputs, textarea y file uploader uniformes */
input[type="text"], input[type="file"], textarea {
  padding: 8px;
  font-size: 16px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

/* Botones comunes */
.btn {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #8B5E3C;
  color: white;
  border: none;
  border-radius: 5px;
}

.btn-eliminar {
  background-color: #e74c3c;
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 18px;
  font-weight: bold;
  line-height: 24px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}

.btn-eliminar:hover {
  background-color: #c0392b;
  transition: background-color 0.2s ease;
}

.estrella-toggle {
  font-size: 35px;
  color: #f1c40f;
  cursor: pointer;
  vertical-align: text-bottom;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 28px;
  margin-right: 8px;
}

.estrella-toggle:hover {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

.destacado {
  border-left: 5px solid #f1c40f;
  background-color: #fffbea;
}

.mensaje-publico {
  background-color: #fff4d6;
  border-left: 5px solid #ffc107;
  padding: 15px 20px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
  color: #5c4423;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  opacity: 0;
  transform: translateX(-20px);
  animation: aparecer 1s ease-out forwards;
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#tabs {
  margin-bottom: 20px;
}

.tab-button {
  background-color: #e4d4c3;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  margin-right: 5px;
}

.tab-button.active {
  background-color: #fff;
  border-bottom: 2px solid #fff;
}

.tab-content {
  display: none;
  background-color: #fff;
  padding: 20px;
  border: 2px solid #e4d4c3;
  border-top: none;
  border-radius: 0 0 6px 6px;
}

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

.grupo-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}
