/* ======== ESTILO GENERAL ======== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f6f9;
  color: #333;
  margin: 0;
  padding: 0;
}

/* ======== CABECERA FIJA SUPERIOR ======== */
.cabecera-fija {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 74, 173, 0.55); /* más ligera */
  color: #fff;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px); /* efecto moderno */
}

.cabecera-contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.cabecera-izquierda {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cabecera-foto {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.cabecera-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.cabecera-info p {
  margin: 2px 0;
  font-size: 13px;
}

.cabecera-centro {
  text-align: center;
}

.cabecera-centro h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.cabecera-centro .subtitulo {
  font-style: italic;
  font-size: 14px;
}

.cabecera-centro .codigo {
  font-size: 13px;
  margin-top: 4px;
}

.cabecera-derecha {
  text-align: right;
}

.cabecera-logo {
  height: 50px;
  margin-bottom: 6px;
}

.cabecera-redes a {
  display: inline-block;
  padding: 6px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.cabecera-redes a:hover {
  background-color: rgba(255,255,255,0.2);
}

.cabecera-redes img {
  width: 22px;
  height: 22px;
  margin-left: 8px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.cabecera-redes img:hover {
  transform: scale(1.2);
}

/* ======== CABECERA DINÁMICA DEL REVENDEDOR ======== */
.revendedor-header {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 140px; /* espacio para la cabecera fija */
  padding-bottom: 60px;
  text-align: center;
  color: #004080;
}

.revendedor-header .revendedor-info {
  display: none; /* ocultar duplicado de foto y datos */
}

.titulo-central h1 {
  font-size: 28px;
  font-weight: 700;
  color: #004aad;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.7);
}

.titulo-central .subtitulo {
  font-style: italic;
  font-size: 16px;
  color: #003366;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .cabecera-fija {
    padding: 8px 12px;
    background: rgba(0, 74, 173, 0.75);
  }

  .cabecera-contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cabecera-foto {
    width: 70px;
    height: 70px;
    margin-bottom: 8px;
  }

  .cabecera-info h3 {
    font-size: 15px;
  }

  .cabecera-info p {
    font-size: 12px;
  }

  .cabecera-centro h2 {
    font-size: 16px;
  }

  .cabecera-centro .subtitulo {
    font-size: 13px;
  }

  .cabecera-centro .codigo {
    font-size: 12px;
  }

  .cabecera-logo {
    height: 40px;
    margin-top: 8px;
  }

  .cabecera-redes img {
    width: 22px;
    height: 22px;
    margin: 6px;
  }

  .revendedor-header {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .titulo-central h1 {
    font-size: 22px;
  }

  .titulo-central .subtitulo {
    font-size: 14px;
  }
}
.menu-categorias ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 20px 0 0;
}

.menu-categorias li {
  background: rgba(0,74,173,0.8);
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s, background-color 0.3s;
}

.menu-categorias li:hover {
  transform: translateY(-3px);
  background: rgba(0,74,173,1);
}

.menu-categorias a {
  display: block;
  padding: 10px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
.subcategoria-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 25px 0;
}

.sub-btn {
  background: rgba(0,74,173,0.85);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s, background-color 0.3s;
}

.sub-btn:hover {
  background: rgba(0,74,173,1);
  transform: translateX(3px);
}

.subcategoria-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.sub-btn {
  background: rgba(0,74,173,0.8);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s, background-color 0.3s;
}

.sub-btn:hover {
  background: rgba(0,74,173,1);
  transform: translateY(-3px);
}
/* ======== CATÁLOGO DE FLYERS ======== */
.catalogo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 30px auto;
  max-width: 1200px;
}

/* ======== CARD DE FLYER ======== */
.flyer-card {
  width: 230px;
  height: 340px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.flyer-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* ======== IMAGEN ======== */
.flyer-img {
  width: 100%;
  height: 72%; /* proporción más natural */
  object-fit: contain; /* mantiene proporción sin recortar */
  background-color: #f8f8f8; /* fondo neutro si sobra espacio */
  display: block;
  border-bottom: 1px solid #ddd;
  transition: transform 0.3s ease;
}

.flyer-card:hover .flyer-img {
  transform: scale(1.05);
}

/* ======== TÍTULO ======== */
.flyer-card h3 {
  font-size: 15px;
  color: #004aad;
  margin: 6px 0 0;
}

/* ======== BOTÓN ======== */
.flyer-card .btn {
  background: #004aad;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  margin: 6px auto 10px;
  display: inline-block;
}

.flyer-card .btn:hover {
  background: #0066cc;
}

/* ======== PIE DISCRETO ======== */
.flyer-card small {
  display: block;
  font-size: 10px;
  color: #666;
  margin-bottom: 6px;
}
/* ======== FORMULARIO DE REGISTRO ======== */
form {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  max-width: 500px;
  margin: 20px auto;
}

form label {
  display: block;
  font-weight: bold;
  margin-top: 10px;
}

form input[type="text"],
form input[type="email"],
form input[type="file"],
form input[type="color"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  margin-top: 15px;
  background: #004aad;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

form button:hover {
  background: #0066cc;
}

/* ======== TABLA DE REVENDEDORES ======== */
.table-container {
  overflow-x: auto;
  margin: 20px auto;
  max-width: 95%;
}

.rev-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.rev-table th, .rev-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.rev-table th {
  background: #004aad;
  color: #fff;
}

.mini-foto {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ======== BOTONES DE ACCIÓN ======== */
.btn-accion {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  margin: 2px;
}

.btn-accion.editar {
  background: #007bff;
}

.btn-accion.eliminar {
  background: #dc3545;
}

.btn-accion:hover {
  opacity: 0.85;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  form {
    width: 90%;
    padding: 15px;
  }

  .rev-table th, .rev-table td {
    font-size: 12px;
    padding: 6px;
  }

  .mini-foto {
    width: 60px;
    height: 60px;
  }

  .btn-accion {
    font-size: 11px;
    padding: 5px 8px;
  }
}
/* ======== TABLA DE REVENDEDORES ======== */
.table-container {
  overflow-x: auto;
  margin: 20px auto;
  max-width: 95%;
}

.rev-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  font-size: 14px;
}

.rev-table th, .rev-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}

.rev-table th {
  background: #004aad;
  color: #fff;
  font-weight: 600;
}

/* ======== FOTO MINIATURA ======== */
.mini-foto {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.mini-foto:hover {
  transform: scale(1.1);
}

/* ======== FILAS ALTERNADAS + HOVER ======== */
.rev-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.rev-table tr:hover {
  background-color: #e6f0ff;
  box-shadow: inset 0 0 6px rgba(0,74,173,0.3);
}

/* ======== BOTONES DE ACCIÓN ======== */
.btn-accion {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  margin: 2px;
}

.btn-accion.editar {
  background: #007bff;
}

.btn-accion.eliminar {
  background: #dc3545;
}

.btn-accion:hover {
  opacity: 0.85;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .rev-table {
    font-size: 12px;
  }

  .rev-table th, .rev-table td {
    padding: 6px;
  }

  .mini-foto {
    width: 50px;
    height: 50px;
  }

  .btn-accion {
    font-size: 11px;
    padding: 5px 8px;
  }

  form {
    width: 90%;
    margin: 10px auto;
    padding: 15px;
  }

  form input, form button {
    width: 100%;
  }
}
/* ======== CABECERA MÓVIL ======== */
.cabecera-movil {
  display: none; /* oculta en escritorio */
}

.cabecera-foto-movil {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-right: 12px;
}

.cabecera-info-movil h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.cabecera-info-movil p {
  margin: 2px 0;
  font-size: 13px;
}

/* Mostrar solo en móvil */
@media (max-width: 768px) {
  .cabecera-fija, .revendedor-header { display: none; }
  .cabecera-movil {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px;
    background: rgba(0,74,173,0.85);
    color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  }
}
.revendedor-header {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
  padding-top: 120px; /* pegado a la cabecera fija */
  padding-bottom: 40px;
}

.menu-categorias {
  margin-top: -10px; /* sube los botones */
}
/* ======== LAYOUT GENERAL ======== */
.layout {
  display: flex;
  margin-top: 120px;
  min-height: calc(100vh - 120px);
}

/* ======== SIDEBAR IZQUIERDA ======== */
.sidebar {
  width: 120px; /* reducido */
  background: url('/uploads/fondos/fondo1.jpg') no-repeat center center;
  background-size: cover;
  padding: 10px;
  border-right: 1px solid #ddd;
  position: sticky;
  top: 120px;
  height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Botones principales */
.menu-principal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.main-btn {
  background: rgba(0,74,173,0.9);
  color: #fff;
  border: none;
  padding: 6px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.main-btn:hover {
  background: rgba(0,74,173,1);
}

/* Subcategorías */
.subcategoria-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-btn {
  background: rgba(0,74,173,0.7);
  color: #fff;
  border: none;
  padding: 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: left;
}

.sub-btn:hover {
  background
/* ======== EXHIBIDOR DERECHA ======== */
.exhibidor {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.catalogo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
}

/* ======== CARD DE FLYER ======== */
.flyer-card {
  width: 230px;
  height: 340px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.flyer-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.flyer-img {
  width: 100%;
  height: 72%;
  object-fit: contain;
  background-color: #f8f8f8;
  border-bottom: 1px solid #ddd;
  transition: transform 0.3s ease;
}

.flyer-card:hover .flyer-img {
  transform: scale(1.05);
}

.flyer-card h3 {
  font-size: 15px;
  color: #004aad;
  margin: 6px 0 0;
}

.flyer-card .btn {
  background: #004aad;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  margin: 6px auto 10px;
  display: inline-block;
}

.flyer-card .btn:hover {
  background: #0066cc;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    margin-top: 100px;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .subcategoria-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .exhibidor {
    padding: 15px;
  }

  .catalogo-grid {
    justify-content: center;
  }
}
.catalogo-grid {
  display: flex;
  flex-wrap: nowrap;   /* evita apilar */
  overflow-x: auto;    /* scroll horizontal */
  gap: 18px;
  padding: 20px;
  scroll-behavior: smooth;
}

.buscador-afiliada {
  text-align: center;
  margin: 40px 0 20px;
}

.buscador-btn {
  background: #ff6600; /* naranja */
  color: #fff;
  font-weight: bold;
  line-height: 1.3;
  padding: 8px;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buscador-btn:hover {
  background: #e65c00;
}

.buscador-btn small {
  display: block;
  font-size: 10px;
  color: #fff;
  font-weight: 600;
  margin-top: 2px;
}
/* Fondo y título de la columna izquierda */
.sidebar {
  width: 120px;
  background: url('fondos/sillar.jpg') no-repeat center center;
  background-size: cover;
  padding: 10px;
  border-right: 1px solid #ddd;
  position: sticky;
  top: 120px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  color: #fff;
}

.titulo-sidebar {
  text-align: center;
  font-size: 11px;   /* más pequeño que h5 */
  font-weight: 700;
  color: #002244;    /* azul oscuro */
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Botón naranja con logo */
.buscador-btn {
  background: #ff6600;
  color: #fff;
  font-weight: bold;
  line-height: 1.3;
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.buscador-btn:hover {
  background: #e65c00;
}

.buscador-btn .logo-mini {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.buscador-btn small {
  display: block;
  font-size: 10px;
  color: #fff;
  font-weight: 600;
  margin-top: 2px;
}


