@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.pag-1 {
  font-family: 'raleway', sans-serif;
  background-color: #f5f0e6;
  background-blend-mode: multiply;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

body.pag-2 {
  font-family: 'raleway', sans-serif;
  background: url("../img/abejorral\ 2.jpg") rgba(0, 0, 0, 0.3);
  background-blend-mode: multiply;
  background-size: cover;
  background-position: s;
  background-repeat: no-repeat;
  min-height: 100vh;
}

@media(max-width: 991px) {
  .sidebar {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
  }
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

.main-content {
  flex: 1;
  margin-left: 200px;
  /* Igual al ancho de la sidebar */
  padding: 2rem 1rem;
}


.card {
  width: 100%;
  max-width: 420px;
  background-color: #000;
  border: 1px solid #333;
  border-radius: 15px;
}

.card-1 {
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  border: 1px solid #333;
  border-radius: 15px;
}

/* 🌿 Estilo solo para las cards del perfil del vendedor */
.card-vendedor {
  background-color: #ffffff !important;
  border: 1px solid #ddd;
  color: #000 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 18px;
}

/* Fondo del cuerpo dentro de la card */
.card-vendedor .card-body {
  background-color: #ffffff !important;
  color: #000 !important;
}

/* Título y texto */
.card-vendedor .card-body h5,
.card-vendedor .card-body p,
.card-vendedor .card-body span {
  color: #000 !important;
}

/* Botón dentro de la card */
.card-vendedor .btn {
  background-color: transparent;
  border-color: #28a745;
  color: #28a745;
}

.card-vendedor .btn:hover {
  background-color: #28a745;
  color: white;
}

.card-body {
  width: 100%;
  max-width: 420px;
  background-color: #212529;
  color: #ffffff;
  border: 1px solid #333;
  border-radius: 15px;
}

.form-label {
  color: #ffffff;
  font-weight: 500;
}

.card-block {
  background-color: #f5f0e6;
  color: #ffffff;
}

.form-control:focus {
  box-shadow: none;
  border-color: #0d6efd;
}

.input-group-text {
  background-color: #2c2c2c;
  color: #fdfcf8;
  border: none;
}

.nav {
  position: fixed;
  top: 0;
  display: flex;
  justify-content: space-around;
  width: 100%;
  height: 100px;
  line-height: 100px;
  background: linear-gradient(rgba(39, 39, 39, 06), transparent);
  z-index: 100;
}

.nav-logo p {
  color: black;
  font-size: 25px;
  font-weight: 600;
}

.navbar {
  padding-left: 30px;
}

@media (max-width: 991px) {
  .navbar {
    padding-left: 0;
  }
}

.logo-navbar {
  margin-right: 2rem;
}

@media (max-width: 991px) {
  .logo-navbar {
    margin-right: 0.5rem;
  }
}

.navbar-nav {
  display: flex;
}

.nav-item {
  list-style-type: none;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  color: #000;
  padding-bottom: 15px;
  margin: 0 25px;
}

.nav-link:hover,
.active {
  border-bottom: 2px solid #000;
}

.imagen {
  width: 33.33%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.texto {
  width: 66.66%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.texto p {
  text-align: center;
  margin: 0;
  max-width: 600px;
}

@media (max-width: 768px) {
  section {
    flex-direction: column;
  }

  .imagen,
  .texto {
    width: 100%;
    text-align: center;
  }
}

.features-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-card {
  background-color: #d6f1e3;
  border-radius: 15px;
  padding: 2rem;
  width: 22%;
  min-width: 260px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.03);
}

.feature-card img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.feature-description {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.feature-button {
  background-color: #007bff;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.feature-button:hover {
  background-color: #0056b3;
}

@media (max-width: 1024px) {
  .feature-card {
    width: 45%;
  }
}

@media (max-width: 600px) {
  .feature-card {
    width: 100%;
  }
}

section.contact-section {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.contact-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.contact-buttons a.email {
  background-color: #0072C6;
}

.contact-buttons a:hover {
  opacity: 0.9;
}

@media (max-width: 480px) {
  .contact-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

/* === Estructura general del main === */
.perfil-main {
  margin-left: 220px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2rem;
}

/* === Contenedor del perfil === */
.perfil-container {
  max-width: 420px;
  margin: 0.1rem auto 2rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 2rem 2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Foto de perfil === */
.perfil-foto {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #b8d8a6;
  margin-bottom: 1.5rem;
  background: #f0f0f0;
}

/* === Estilos de formulario === */
.perfil-form label {
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #2e4e1f;
}

.perfil-form input[type="text"],
.perfil-form input[type="email"],
.perfil-form input[type="tel"],
.perfil-form input[type="url"],
.perfil-form input[type="file"] {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #b8d8a6;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  font-size: 1rem;
  background: #f8f9fa;
  transition: border 0.2s;
}

.perfil-form input:focus {
  border: 1.5px solid #2e4e1f;
  outline: none;
}

.perfil-form button {
  background: #b8d8a6;
  color: #2e4e1f;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 2.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.perfil-form button:hover {
  background: #a0c98a;
}

/* === Adaptabilidad a pantallas pequeñas === */
@media (max-width: 991px) {
  .perfil-main {
    margin-left: 0 !important;
    padding: 1rem;
    justify-content: center;
  }

  .perfil-container {
    max-width: 90%;
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .perfil-container {
    max-width: 95%;
    padding: 1rem;
  }

  .perfil-foto {
    width: 100px;
    height: 100px;
  }

  .perfil-form button {
    font-size: 1rem;
    padding: 0.6rem 2rem;
  }
}

.main-content {
  margin-left: 240px;
  padding: 2rem 1rem;
}

@media (max-width: 991px) {
  .col-md-9.ms-sm-auto.col-lg-10.px-md-4 {
    margin-left: 0 !important;
  }
}

.fondo-bienvenida {
  min-height: 100vh;
  background: url('ruta/a/tu-imagen.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
}

.botones-bienvenida {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
}

footer {
  background-color: transparent;
  color: #2c2c2c;
  padding: 20px 0;
  text-align: center;
  font-family: sans-serif;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #2c2c2c;
  margin: 0 10px;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-container-2 {
  background-color: transparent;
  color: white;
  padding: 20px;
  text-align: center;
}

.footer-links-2 {
  margin-top: 10px;
}

.footer-links-2 a {
  color: #ffffff;
  margin: 0 10px;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links-2 a:hover {
  color: #ddd;
}

.buscador {
  text-align: center;
  margin-bottom: 20px;
}

.buscador form {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.buscador input[type="text"] {
  flex: 0 0 auto !important;
  width: 250px !important;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 8px;
  display: inline-block !important;
}

.buscador button {
  flex: 0 0 auto !important;
  padding: 8px 15px;
  background: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  display: inline-block !important;
}

input[type="text"] {
  padding: 8px;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  padding: 8px 15px;
  background: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  white-space: nowrap;
}

.catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 30px;
  justify-items: center;
  padding: 40px;
  background-color: #f4f1ea;
}

/* ==== TARJETA ==== */

.catalogo .card {
  width: 230px;
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalogo .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ==== IMAGEN ==== */

.catalogo .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #eee;
}

/* ==== CUERPO ==== */

.catalogo .card-body {
  background-color: #1f1f1f;
  color: #fff;
  padding: 15px;
  border-top: 2px solid #ccc;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  font-family: 'Poppins', sans-serif;
  min-height: 130px;
}

.catalogo .card-body h5 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.catalogo .card-body p {
  margin: 3px 0;
  font-size: 0.9rem;
}

.catalogo .card-body .precio {
  color: #2e7d32;
  font-weight: 700;
  font-size: 1rem;
}

.catalogo .card-body .vendedor,
.catalogo .card-body .cantidad {
  font-size: 0.9rem;
  color: #ddd;
}

.product-thumb {
  width: 200px !important;
  height: 200px !important;
  object-fit: cover;
  border-radius: 10px;
}


.producto {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.producto img {
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
}

.precio {
  font-size: 18px;
  font-weight: bold;
  color: #28a745;
  margin: 5px 0;
}

.vendedor {
  font-size: 14px;
  color: #555;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #555;
}

a.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* imagen izq, info der */
  gap: 30px;
  align-items: start;
}

.grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.grid h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.grid .precio {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.grid .desc {
  margin-bottom: 20px;
}

.grid table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.grid table td {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    /* imagen arriba, info abajo */
  }
}

.imagen-container {
  text-align: center;
  margin-bottom: 20px;
}

#preview {
  width: 200px;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  border: 2px dashed #ccc;
  border-radius: 10px;
}

/* Sidebar */
.sidebar-item {
  color: #212529 !important;
  /* Texto oscuro */
  text-align: center;
  /* Centrado */
  background-color: transparent !important;
  /* Sin fondo */
  font-weight: 500;
  /* Un poco más grueso (opcional) */
  padding: 0.75rem 1rem;
  /* Espaciado */
  border-radius: 0;
  /* Quita bordes redondeados */
}

/* Efecto al pasar el mouse */
.sidebar-item:hover {
  color: #000 !important;
  /* Aún más oscuro */
  text-decoration: underline;
  /* Subrayado sutil */
  background-color: transparent !important;
}

.sidebar-1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background-color: #b9d5b9;
  padding: 20px;
}



/* 🔹 El contenido principal ahora se corre para no quedar debajo */
.main-content {
  margin-left: 200px;
  /* deja espacio para la sidebar */
  padding: 2rem 1rem;
}

.sidebar-list {
  list-style: none;
  /* Elimina viñetas */
  padding: 0;
  /* Elimina espaciado por defecto */
  margin: 0;
  /* Elimina margen por defecto */
}

.chat-container {
  display: flex;
  height: 100vh;
  background: #f0f2f5;
  font-family: 'Raleway', sans-serif;
}

/* Sidebar (lista de chats) */
.chat-sidebar {
  width: 30%;
  background: #fff;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

.chat-sidebar-header {
  padding: 15px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  background: #ededed;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-item:hover {
  background: #f5f5f5;
}

.chat-item img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-item .chat-info {
  flex: 1;
}

.chat-item .chat-name {
  font-weight: 600;
}

.chat-item .chat-last {
  font-size: 0.9rem;
  color: #666;
}

/* Ventana de chat */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ece5dd;
}

/* Header de conversación */
.chat-main-header {
  padding: 15px;
  background: #ededed;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
}

.chat-main-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Mensajes */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.message.sent {
  background: #d9fdd3;
  align-self: flex-end;
}

.message.received {
  background: #fff;
  align-self: flex-start;
  border: 1px solid #ddd;
}

/* Input para enviar mensaje */
.chat-input {
  display: flex;
  width: 100%;
}

.chat-input input[type="text"],
.chat-input button {
  flex: 1;
  /* ambos ocupan el mismo espacio */
  padding: 12px;
  font-size: 16px;
  border: none;
  outline: none;
  border-radius: 25px;
  margin: 0 5px;
}

.chat-input input[type="text"] {
  background: #fff;
}

.chat-input button {
  color: white;
  cursor: pointer;
}

.chat-input button:hover {
  background: #128c7e;
}


.chat-item {
  text-decoration: none;
  /* ❌ quita subrayado */
  color: inherit;
  /* ❌ quita el azul */
}

.chat-item i,
.chat-main-header i {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* Logo arriba */
  background-color: #fff;
  padding: 20px 40px;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-left-custom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
}

.banner-logo {
  width: 120px;
  height: auto;
}

.banner-text {
  font-size: 18px;
  color: #333;
  max-width: 400px;
}

.banner-right-custom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banner-btn {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.catalogo-btn {
  background-color: #007BFF;
  color: #fff;
}

.catalogo-btn:hover {
  background-color: #0056b3;
}

.registro-btn {
  background-color: #28a745;
  color: #fff;
}

.registro-btn:hover {
  background-color: #1e7e34;
}

/* 🔹 Responsive */
@media(max-width: 768px) {
  .banner-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .banner-left-custom {
    align-items: center;
  }

  .banner-text {
    max-width: 100%;
  }

  .banner-right-custom {
    width: 100%;
    align-items: center;
  }
}

/* Contenedor del formulario */
.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

/* Cada grupo de campos */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

/* Campos de texto, selectores y textarea */
.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #5a9f4c;
}

/* Ajuste para textarea */
textarea {
  resize: vertical;
  min-height: 100px;
}

/* Botón de guardar producto */
button {
  background-color: #5a9f4c;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #4a863e;
}

/* Imagen del producto (vista previa y selector tipo Pinterest) */
.imagen-container {
  width: 200px;
  height: 200px;
  border: 2px dashed #ccc;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.2s ease;
  background-color: #fafafa;
  margin: 0 auto 15px auto;
}

.imagen-container:hover {
  border-color: #5a9f4c;
  transform: scale(1.02);
}

.imagen-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#imagen {
  display: none;
}

/* Campos que ocupan ambas columnas */
.full-width {
  grid-column: span 2;
}

.carrito-pagina {
  font-family: 'Raleway', sans-serif;
  background-color: #f7f5f0;
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.carrito-contenedor {
  width: 100%;
  max-width: 1100px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 40px 50px;
}

.carrito-titulo {
  font-size: 2rem;
  color: #2e4b85;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

/* 🛒 Lista de productos */
.carrito-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  justify-content: center;
}

/* 🧾 Tarjeta */
.carrito-item {
  background-color: #fefefe;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.carrito-item:hover {
  transform: translateY(-4px);
}

/* Imagen */
.carrito-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Contenido */
.carrito-detalles {
  padding: 15px;
  background-color: #1f1f1f;
  color: #fff;
  border-top: 2px solid #ccc;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  font-family: 'Poppins', sans-serif;
}

.carrito-detalles h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.carrito-precio {
  color: #2e7d32;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 6px;
}

.carrito-cantidad {
  font-size: 0.9rem;
  color: #ddd;
  margin-bottom: 10px;
}

/* Botón eliminar */
.carrito-borrar {
  background-color: #d9534f;
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.carrito-borrar:hover {
  background-color: #c9302c;
}

/* Botón comprar */
.carrito-comprar {
  display: block;
  background-color: #2e4b85;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  cursor: pointer;
  margin: 40px auto 0 auto;
  transition: background 0.3s ease;
}

.carrito-comprar:hover {
  background-color: #1f3460;
}

/* Carrito vacío */
.carrito-vacio {
  text-align: center;
  color: #666;
  font-style: italic;
  margin-top: 60px;
  font-size: 1.1rem;
}

/* Footer */
.carrito-footer {
  margin-top: 60px;
  background-color: #2e4b85;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  border-radius: 0 0 12px 12px;
  font-size: 0.9rem;
}

/* 🔹 Asegurar que las etiquetas y textos del modal sean visibles (negros) */
#editarPerfilModal .modal-content {
  background-color: #ffffff;
  color: #000000;
}

#editarPerfilModal label {
  color: #000000 !important;
  font-weight: 500;
}

#editarPerfilModal input,
#editarPerfilModal textarea {
  color: #000000;
  background-color: #ffffff;
  border: 1px solid #ced4da;
}

#editarPerfilModal input::placeholder,
#editarPerfilModal textarea::placeholder {
  color: #6c757d;
}

/* Contenedor del crop */
.crop-wrapper {
  width: 100%;
  max-width: 900px;
  height: 300px;
  background-color: #222;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen principal */
#bannerCropper {
  max-width: none;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay guía central */
#bannerOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  border: 2px solid #00bfff;
  box-sizing: border-box;
  border-radius: 10px;
}

/* 🔹 Ajuste visual del botón editar */
.editar-perfil-btn {
  position: absolute;
  right: 0;
  bottom: -10px;
  transform: translateY(100%);
  background-color: #2e4e1f;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
}

.editar-perfil-btn:hover {
  background-color: #3c6c2b;
}

/* 🔹 Alineación general de foto y nombre */
.perfil-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.perfil-foto-1 {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid #78b045;
}

#vendedorSidebar {
  background-color: #2e4e1f;
  color: white;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#vendedorSidebar .offcanvas-header {
  flex-shrink: 0;
}

#vendedorSidebar .offcanvas-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

/* Imagen de perfil arriba */
#vendedorSidebar .perfil {
  text-align: center;
  padding: 20px 0;
}

#vendedorSidebar .perfil img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* Lista de enlaces */
#vendedorSidebar ul.sidebar-list {
  flex-grow: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

#vendedorSidebar ul.sidebar-list li {
  text-align: center;
  padding: 10px 0;
}

#vendedorSidebar ul.sidebar-list a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

#vendedorSidebar ul.sidebar-list a:hover {
  color: #b9d5b9;
}

/* Botón salir abajo */
#vendedorSidebar .btn-salir {
  background-color: #b9d5b9;
  color: #2e4e1f;
  font-weight: bold;
  border: none;
  width: 100%;
  border-radius: 0;
}

/* ===============================
   ESTILOS DE GRÁFICAS DEL PANEL DEL VENDEDOR
   =============================== */

.body-graficas {
  background-color: #f9f8f5;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
}

/* Título principal */
.titulo-graficas {
  font-weight: 600;
  color: #2c4b2a;
  text-align: center;
  margin-bottom: 2rem;
}

/* Botón de regreso */
.btn-volver {
  display: inline-block;
  border: 2px solid #6fa33f;
  color: #6fa33f;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 2rem;
}

.btn-volver:hover {
  background-color: #6fa33f;
  color: #fff;
}

/* Contenedor general */
.contenedor-graficas {
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjeta de gráfica */
.card-grafica {
  background-color: #ffffff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  transition: transform 0.25s ease;
  height: 100%;
}

.card-grafica:hover {
  transform: translateY(-5px);
}

/* Título de la tarjeta */
.card-grafica-titulo {
  font-weight: 600;
  color: #2e4e1f;
  border-bottom: 2px solid #e3e9e1;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

/* Lienzo del gráfico */
.canvas-grafica {
  width: 100% !important;
  height: 350px !important;
}

/* Efecto de entrada */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-grafica {
  animation: aparecer 0.6s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .titulo-graficas {
    font-size: 1.4rem;
  }

  .canvas-grafica {
    height: 280px !important;
  }
}

/* 🟢 Overlay tipo WhatsApp DENTRO del área del chat */
.preview-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 5000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.preview-overlay.active {
  display: flex;
}

.preview-overlay img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.preview-overlay img.loaded {
  opacity: 1;
}

.preview-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.spinner-border {
  color: #fff;
  position: absolute;
}

.chat-messages {
  position: relative;
}

.image-loader {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 8px;
}

/* ✨ Efecto de brillo mientras carga */
.image-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(240, 240, 240, 0.1) 25%, rgba(220, 220, 220, 0.3) 50%, rgba(240, 240, 240, 0.1) 75%);
  animation: shimmer 1.2s infinite;
  opacity: 0.6;
  border-radius: 8px;
  transition: opacity 0.4s ease-out;
}

/* 💡 Suavizar aparición de imagen */
.image-loader img {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: block;
  border-radius: 8px;
}

/* ✅ Cuando la imagen carga */
.image-loader.loaded::before {
  opacity: 0;
  animation: none;
}

.image-loader.loaded img {
  opacity: 1;
}

/* ✨ Animación shimmer */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: 200px 0;
  }
}

/* Mensaje sin productos */
.no-productos {
  font-size: 1.1rem;
  text-align: center;
  padding: 2rem;
  color: #555;
  font-weight: 500;
}

/* ===========================
   🎯 Estilos exclusivos del catálogo de productos
   =========================== */

.catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 1rem;
}

/* Tarjetas individuales */
.catalogo .card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalogo .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* Imágenes dentro del catálogo */
.catalogo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  /* mantiene proporción cuadrada */
  border-radius: 0.75rem;
  background-color: #f2f2f2;
  transition: opacity 0.3s ease-in-out;
}

/* Contenedor del cargador (placeholder mientras carga) */
.image-loader {
  position: relative;
  overflow: hidden;
}

/* Efecto shimmer (animación de carga) */
.image-loader::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: 100%;
  /* mantiene tamaño antes de que cargue */
  background: linear-gradient(90deg, #f6f6f6 25%, #eaeaea 50%, #f6f6f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

/* Cuando ya cargó, se oculta el shimmer */
.image-loader.loaded::before {
  display: none;
}

/* Animación del efecto shimmer */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Responsivo para pantallas más pequeñas */
@media (max-width: 768px) {
  .catalogo {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }

  .catalogo img {
    border-radius: 0.5rem;
  }
}

.titulo-graficas {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: bold;
}

.card-grafica {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-grafica-titulo {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
}

.canvas-grafica {
  width: 100% !important;
  height: 100% !important;
}

/* 📱 Ajustes Responsivos */
@media (max-width: 992px) {
  .canvas-wrapper {
    height: 300px;
  }

  .titulo-graficas {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .btn-volver {
    display: block;
    text-align: center;
    margin-bottom: 1.2rem;
  }

  .card-grafica {
    padding: 0.8rem;
  }

  .card-grafica-titulo {
    font-size: 1rem;
  }

  .canvas-wrapper {
    height: 280px;
  }
}

@media (max-width: 576px) {
  .titulo-graficas {
    font-size: 1.2rem;
  }

  .card-grafica {
    margin-bottom: 1rem;
  }

  .canvas-wrapper {
    height: 240px;
  }
}