/* ======== BASE GENERAL ======== */
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background-color: #f5f5f5;
}
/* ================================== */
/* ======== HEADER PRINCIPAL ======== */
/* ================================== */
header.navbar {
  background: linear-gradient(90deg, #111, #222);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
}

/* Centrar y limitar ancho interno */
header .container-fluid {
  max-width: 1200px;
  margin: 0 auto;
}

/* ======== TÍTULO ======== */
.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff !important;
  transition: color 0.2s ease;
}
.navbar-brand:hover {
  color: #0dcaf0 !important;
}

/* ======== BOTONES ======== */
.btn {
  transition: all 0.25s ease;
}
.btn-outline-light:hover {
  background-color: #fff !important;
  color: #000 !important;
}
.btn-success {
  background: linear-gradient(90deg, #00c851, #007e33);
  border: none;
}
.btn-success:hover {
  background: linear-gradient(90deg, #00e676, #00b44b);
}

/* ======== FORMULARIO DE BÚSQUEDA ======== */
#form-busqueda input.form-control,
#form-busqueda select.form-select {
  border: 1px solid #555;
  background-color: #1e1e1e;
  color: #fff;
}
#form-busqueda input::placeholder {
  color: #aaa;
}

/* ======== DROPDOWN USUARIO ======== */
.dropdown-menu {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.dropdown-menu .dropdown-item {
  font-size: 0.9rem;
  padding: 8px 14px;
}
.dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
}

/* ======== ESPACIADO GENERAL (por header fijo) ======== */
main, section, .content {
  margin-top: 80px; /* crea espacio debajo del header */
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  header.navbar {
    height: 60px;
    padding: 0.3rem 1rem;
  }
  .navbar-brand {
    font-size: 1rem;
  }
  #form-busqueda {
    display: none !important;
  }
    
.dropdown-menu {
  border: 1px solid #28a745;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.dropdown-item {
  color: #28a745 !important;
  font-weight: 500;
  text-align: center;
  border: 1px solid #28a745;
  border-radius: 6px;
  margin: 4px 0;
  background: #fff !important;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: #28a745 !important;
  color: #fff !important;
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

.dropdown-item-text {
  color: #28a745;
  font-weight: 600;
  text-align: center;
}
    
  .btn {
    padding: 5px 8px;
  }
}

/* ================================== */
/* == ESTILO DE EL HEADER Y BOTONES = */
/* ================================== */
/* ======== HEADER (ICONOS Y ESTILO) ======== */

/* Ajuste general del header */
header.navbar {
  padding: 0.5rem 1rem;
  background: #212529; /* negro Bootstrap */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Íconos dentro de botones */
header .btn i {
  font-size: 1.2rem;
  vertical-align: middle;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* ============== */
/* = NUEVOS CSS = */
/* ============== */
/* Efecto hover */
header .btn:hover i {
  transform: scale(1.15);
  color: #0d6efd; /* azul Bootstrap */
}

/* Ícono del usuario más grande */
header .bi-person-circle {
  font-size: 1.4rem;
}

/* Botón de búsqueda (desktop) */
header form button i {
  font-size: 1rem;
}

/* Ajuste del input y select del buscador */
header form input,
header form select {
  border-radius: 20px;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  header .navbar-brand {
    font-size: 1rem;
  }
  header .btn i {
    font-size: 1.3rem;
  }
}

/* === LOGO CIRCULAR CON BRILLO AL HOVER === */
.brand-logo {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Imagen interna del logo */
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Efecto de brillo: solo se activa al hover */
.brand-logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.2) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0.2) 100%
  );
  transform: skewX(-25deg);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.brand-logo:hover::after {
  animation: shineOnce 1.2s forwards;
  opacity: 1;
}

@keyframes shineOnce {
  0% { left: -75%; opacity: 0; }
  30% { opacity: 1; }
  50% { left: 50%; opacity: 1; }
  100% { left: 125%; opacity: 0; }
}

/* Texto del título */
.navbar-brand {
  color: #fff !important;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: #0d6efd !important;
}

/* === Efecto de brillo que se repite === */
.brand-logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.2) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0.2) 100%
  );
  transform: skewX(-25deg);
  animation: shine 4s infinite;
  border-radius: 50%;
}

@keyframes shine {
  0% { left: -75%; }
  50% { left: 125%; }
  100% { left: 125%; }
}

/* ========================= */
/* === CAJAS DE BUSQUEDA === */
/* ========================= */
/* === BUSCADOR PRINCIPAL (Header) === */
#form-busqueda input.form-control,
#form-busqueda select.form-select {
  background-color: #fff !important;   /* Fondo blanco */
  color: #000 !important;              /* Texto negro */
  border: 1px solid #ccc;              /* Borde gris claro */
  border-radius: 6px;
  font-size: 0.9rem;
  box-shadow: none;
  transition: all 0.2s ease-in-out;
}

/* Cambios al enfocar (hover/focus) */
#form-busqueda input.form-control:focus,
#form-busqueda select.form-select:focus {
  border-color: #007bff;               /* Borde azul al foco */
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
  background-color: #fff;
  color: #000;
}

/* Placeholder gris oscuro */
#form-busqueda input::placeholder {
  color: #666;
}

/* Botón de búsqueda */
#form-busqueda button {
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

#form-busqueda button:hover {
  background-color: #0d6efd;
  color: #fff;
}

/* ========================= */
/* = FONDO DEL HEADER      = */
/* ========================= */

/* === HEADER === */
header.navbar {
  background: linear-gradient(90deg, #ff7e5f, #feb47b);
  color: #fff;
}

/* === BODY === */
body {
  background: linear-gradient(180deg, #fff4eb, #ffffff);
  font-family: 'Poppins', sans-serif;
}

/* === BUSCADOR === */
#form-busqueda input.form-control,
#form-busqueda select.form-select {
  background: #fff;
  color: #000;
  border: 1px solid #ffa97a;
  border-radius: 8px;
}

#form-busqueda button {
  background: #ff7e5f;
  color: #fff;
  border: none;
}

#form-busqueda button:hover {
  background: #ff5a2e;
}

/* === BOTÓN LOGIN PERSONALIZADO === */
header .btn-outline-light {
  background: #fff !important;      /* Fondo blanco */
  color: #28a745 !important;        /* Verde tipo éxito */
  border: 2px solid #28a745 !important;
  font-weight: 600;
  transition: all 0.25s ease-in-out;
  padding: 5px 12px;
}

/* Efecto hover */
header .btn-outline-light:hover {
  background: #28a745 !important;   /* Verde lleno */
  color: #fff !important;           /* Texto blanco */
  border-color: #28a745 !important;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

/* === RESPONSIVE: mismo estilo en móvil === */
@media (max-width: 768px) {
  header .btn-outline-light {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  header .btn-outline-light:hover {
    background: #28a745 !important;
    color: #fff !important;
  }
}

/* === BOTONES MÓVILES (MENÚ Y BUSCADOR) === */
header .btn.btn-dark.d-md-none {
  background: #fff !important;         /* Fondo blanco */
  color: #28a745 !important;           /* Verde tipo éxito */
  border: 2px solid #28a745 !important;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
  transition: all 0.25s ease-in-out;
}

/* Efecto hover */
header .btn.btn-dark.d-md-none:hover {
  background: #28a745 !important;      /* Verde sólido */
  color: #fff !important;              /* Texto blanco */
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

/* Iconos dentro de los botones */
header .btn.btn-dark.d-md-none i {
  font-size: 1.1rem;
  vertical-align: middle;
}

/* Responsivo */
@media (max-width: 768px) {
  header .btn.btn-dark.d-md-none {
    padding: 6px 8px;
    font-size: 0.95rem;
  }
}

/* === BOTONES DE USUARIO Y BÚSQUEDA === */
header .btn-outline-light,
header .btn.btn-dark.d-md-none {
  background: #fff !important;        /* Fondo blanco */
  color: #28a745 !important;          /* Verde */
  border: 2px solid #28a745 !important;
  font-weight: 600;
  transition: all 0.25s ease-in-out;
}

/* Hover (verde sólido) */
header .btn-outline-light:hover,
header .btn.btn-dark.d-md-none:hover {
  background: #28a745 !important;
  color: #fff !important;             /* Texto blanco */
  border-color: #28a745 !important;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

/* === Asegura que íconos dentro sean blancos en hover === */
header .btn-outline-light:hover i,
header .btn.btn-dark.d-md-none:hover i {
  color: #fff !important;
}

/* En estado normal, los íconos heredan el color verde */
header .btn-outline-light i,
header .btn.btn-dark.d-md-none i {
  color: #28a745 !important;
}

/* Responsive ajuste móvil */
@media (max-width: 768px) {
  header .btn-outline-light,
  header .btn.btn-dark.d-md-none {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
}

/* === TITULO DE LA PÁGINA (NAVBAR BRAND) === */
.navbar-brand {
  color: #28a745 !important;          /* Verde principal */
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

/* === ÍCONO DEL LOGO AL LADO DEL TEXTO === */
.navbar-brand img {
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid #28a745;     /* Borde verde */
  background-color: #fff;        /* Fondo blanco */
  padding: 2px;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
}

/* Hover suave (brillo y animación) */
.navbar-brand:hover img {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(40, 167, 69, 0.6);
  border-color: #34d058;         /* Verde más claro */
}

/* Hover más brillante */
.navbar-brand:hover {
  color: #34d058 !important;          /* Verde más claro */
  text-shadow: 0 0 6px rgba(52, 208, 88, 0.4);
}

/* Responsivo */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1rem;
  }
}

/* === Dropdown personalizado del usuario === */
.dropdown-menu {
  border: 1px solid #28a745 !important;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
  padding: 6px;
  background-color: #fff !important;
}

/* Texto "Hola, usuario" */
.dropdown-item-text {
  color: #28a745;
  font-weight: 600;
  text-align: center;
}

/* Separador */
.dropdown-divider {
  border-color: rgba(40, 167, 69, 0.3);
}

/* Botones dentro del dropdown */
.dropdown-menu .dropdown-item {
  background: #fff !important;
  color: #28a745 !important;
  border: 1px solid #28a745 !important;
  border-radius: 6px;
  margin: 4px 0;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

/* Hover */
.dropdown-menu .dropdown-item:hover {
  background: #28a745 !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
  transform: scale(1.03);
}

/* Ajuste responsive */
@media (max-width: 768px) {
  .dropdown-menu .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 6px;
  }
}

/* === LOGO RESPONSIVO === */
.navbar-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* Efecto al pasar el mouse */
.navbar-brand img:hover {
  transform: scale(1.08);
}

/* Tamaño reducido en pantallas pequeñas */
@media (max-width: 768px) {
  .navbar-brand img {
    width: 26px;
    height: 26px;
  }

  .navbar-brand {
    font-size: 1rem; /* reduce ligeramente el texto */
  }
}

/* === OCULTAR TEXTO EN MÓVILES === */
@media (max-width: 768px) {
  .navbar-brand span {
    display: none;
  }
}

/* ============== */
/* = NUEVOS CSS = */
/* ============== */
/* ===== OFFCANVAS MENU ===== */
.offcanvas {
  background: linear-gradient(180deg, #1b1b1b, #2a2a2a);
  color: #fff;
  width: 250px;
  border-right: 2px solid #198754; /* verde del logo */
}

.offcanvas .nav-link {
  color: #eaeaea;
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.2s ease-in-out;
}

.offcanvas .nav-link:hover {
  background: rgba(25, 135, 84, 0.2); /* verde suave */
  color: #fff;
}

.offcanvas .bi {
  font-size: 1.1rem;
}

/* Submenú estilo */
#submenuServicios .nav-link {
  font-size: 0.9rem;
  color: #bbb;
}

#submenuServicios .nav-link:hover {
  color: #fff;
}

/* Cierre del menú */
.btn-close-white {
  filter: invert(1);
}

/* ================== */
/* = SALUDO USUARIO = */
/* ================== */
/* === Saludo debajo del header fijo === */
.user-greeting-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  margin-top: 72px; /* 🔹 valor ideal para headers fixed-top de Bootstrap */
}

.user-greeting {
  background: linear-gradient(90deg, #198754, #157347);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  animation: fadeSlide 0.8s ease-out;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Móvil */
@media (max-width: 768px) {
  .user-greeting-container {
    margin-top: 65px; /* un poco menos para pantallas pequeñas */
  }
  .user-greeting {
    font-size: 0.9rem;
    padding: 8px 18px;
  }
}

/* ******* EFECTO SALUDOS ******* */
.user-greeting {
  position: relative;
  overflow: hidden;
}

.user-greeting::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  from { left: -50%; }
  to { left: 150%; }
}

/* ================== */
/* = MENU IZQUIERDO = */
/* ================== */
/* ===== SIDEBAR IZQUIERDO ===== */
.sidebar-left {
  position: fixed;
  top: 70px; /* justo debajo del header */
  left: 0;
  width: 250px;
  height: calc(100vh - 70px);
  background: linear-gradient(180deg, #1b1b1b, #2a2a2a);
  color: #fff;
  overflow-y: auto;
  border-right: 2px solid #198754;
  z-index: 1020;
}

.sidebar-left .nav-link {
  color: #eaeaea;
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.2s ease-in-out;
}

.sidebar-left .nav-link:hover {
  background: rgba(25, 135, 84, 0.2);
  color: #fff;
}

.sidebar-left .nav-item i {
  font-size: 1rem;
}

/* Submenú */
#submenuServiciosLeft .nav-link {
  color: #bbb;
}

#submenuServiciosLeft .nav-link:hover {
  color: #fff;
}

/* Scrollbar discreta */
.sidebar-left::-webkit-scrollbar {
  width: 6px;
}
.sidebar-left::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}
.sidebar-left::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.4);
}

/* Oculto en móviles */
@media (max-width: 768px) {
  .sidebar-left {
    display: none !important;
  }
}

/* DISEÑO DEL MENU */
.sidebar-left .nav-link {
  position: relative;
}

.sidebar-left .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #198754;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.sidebar-left .nav-link:hover::before,
.sidebar-left .nav-link.active::before {
  transform: scaleY(1);
}

/* *******estilos del usuario premium ******* */
/* === Panel Premium === */
.premium-panel {
  background: linear-gradient(180deg, #ffffff, #f8fff9);
  border: 1px solid rgba(25, 135, 84, 0.15);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.premium-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 6px;
  scroll-behavior: smooth;
}

.premium-scroll::-webkit-scrollbar {
  height: 6px;
}
.premium-scroll::-webkit-scrollbar-thumb {
  background: rgba(25, 135, 84, 0.4);
  border-radius: 4px;
}
.premium-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(25, 135, 84, 0.6);
}

.premium-item {
  flex: 0 0 auto;
  width: 80px;
  text-align: center;
  cursor: pointer;
}

.premium-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.premium-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.premium-logo:hover img {
  transform: scale(1.08);
}

/* Efecto anillo dorado alrededor del logo */
.premium-logo::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #198754;
  animation: pulseRing 2s infinite ease-in-out;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(25,135,84,0.4); }
  70% { box-shadow: 0 0 0 6px rgba(25,135,84,0); }
  100% { box-shadow: 0 0 0 0 rgba(25,135,84,0); }
}

/* ajuste del premiun al centro*/
/* ===== Contenedor centrado del panel Premium ===== */
.premium-wrapper {
  display: flex;
  justify-content: center;
}

/* ===== Bloque Premium ===== */
.premium-panel {
  width: 100%;
  max-width: 750px; /* ancho máximo centrado */
  background: linear-gradient(180deg, #ffffff, #f8fff9);
  border: 1px solid rgba(25, 135, 84, 0.15);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 16px 20px;
}

/* ===== Scroll horizontal ===== */
.premium-scroll {
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  gap: 14px;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}

.premium-scroll::-webkit-scrollbar {
  height: 6px;
}
.premium-scroll::-webkit-scrollbar-thumb {
  background: rgba(25, 135, 84, 0.4);
  border-radius: 4px;
}

/* ===== Elementos Premium ===== */
.premium-item {
  flex: 0 0 auto;
  width: 80px;
  text-align: center;
}

.premium-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  transition: transform 0.3s ease;
}

.premium-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #198754;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.premium-logo:hover img {
  transform: scale(1.08);
}

.premium-item .small {
  color: #222;
  font-weight: 600;
  margin-top: 6px;
}

/* ****** flechas en el panel premium ******* */
/* ===== Flechas con desvanecimiento ===== */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(25,135,84,0.85);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.4s ease, background 0.2s ease;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
}

.arrow-btn:hover {
  background: rgba(25,135,84,1);
  box-shadow: 0 0 10px rgba(25,135,84,0.4);
}

/* 🔹 Flechas atenuadas (desactivadas) */
.arrow-btn.disabled {
  background: rgba(25,135,84,0.3);
  cursor: not-allowed;
  pointer-events: none;
}

/* Posiciones laterales */
.arrow-btn.left {
  left: calc(50% - 400px);
}
.arrow-btn.right {
  right: calc(50% - 400px);
}

@media (max-width: 800px) {
  .arrow-btn.left, .arrow-btn.right {
    display: none; /* Oculta flechas en móviles */
  }
}

/* 🔹 Muestra las flechas solo al pasar el mouse */
.premium-wrapper:hover .arrow-btn {
  opacity: 1;
  visibility: visible;
}

/* Carrusel sin barra */
.premium-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.premium-scroll::-webkit-scrollbar {
  display: none;
}

/* ******* barra de desplazamiento oculta ******* */
/* ===== Carrusel premium sin barra visible ===== */
.premium-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Oculta scrollbar en Firefox */
}

.premium-scroll::-webkit-scrollbar {
  display: none; /* Oculta scrollbar en Chrome, Edge y Safari */
}

/* ===== Flechas del carrusel con fade-out elegante ===== */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(25,135,84,0.85);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
}

.arrow-btn:hover {
  background: rgba(25,135,84,1);
  box-shadow: 0 0 10px rgba(25,135,84,0.4);
}

/* 🔹 Efecto de atenuación con fade-out */
.arrow-btn.disabled {
  background: rgba(25,135,84,0.3);
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  transition: opacity 0.6s ease, background 0.6s ease;
}

/* Posiciones laterales */
.arrow-btn.left {
  left: calc(50% - 400px);
}
.arrow-btn.right {
  right: calc(50% - 400px);
}

/* 🔹 Mostrar con fade-in al pasar el mouse */
.premium-wrapper:hover .arrow-btn {
  opacity: 1;
  visibility: visible;
}

/* Carrusel limpio sin barra */
.premium-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.premium-scroll::-webkit-scrollbar {
  display: none;
}

/* En móviles ocultamos las flechas */
@media (max-width: 800px) {
  .arrow-btn.left,
  .arrow-btn.right {
    display: none;
  }
}

/* ===== Fondo del panel de negocios premium ===== */
.premium-wrapper {
  position: relative;
  background: linear-gradient(135deg, #f8fff8, #eaf7f0, #ffffff);
  border: 1px solid rgba(25, 135, 84, 0.2);
  border-radius: 16px;
  padding: 20px 10px 30px;
  margin: 0 auto 30px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* Sutil efecto de elevación al pasar el mouse */
.premium-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 18px rgba(25, 135, 84, 0.15);
}

/* Título */
.premium-wrapper h6 {
  text-align: center;
  font-weight: 700;
  color: #198754;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== Brillo animado en el título Premium ===== */
.premium-wrapper h6 {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #198754;
  position: relative;
  display: inline-block;
  background: linear-gradient(
    90deg,
    #198754 0%,
    #25d366 25%,
    #198754 50%,
    #25d366 75%,
    #198754 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shineText 3s linear infinite;
}

/* 🔹 Efecto de desplazamiento del brillo */
@keyframes shineText {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* ===== Brillo animado en nombres de negocios premium ===== */
.premium-item .fw-semibold {
  color: #198754;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  display: inline-block;
}

/* 🔹 Brillo al pasar el mouse */
.premium-item:hover .fw-semibold {
  background: linear-gradient(
    90deg,
    #198754 0%,
    #25d366 25%,
    #198754 50%,
    #25d366 75%,
    #198754 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shineText 2.5s linear infinite;
  transform: scale(1.05);
}

/* ===== Halo animado en el logo de negocios premium ===== */
.premium-item img {
  border: 3px solid transparent;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 0 0 rgba(25, 135, 84, 0); /* invisible por defecto */
}

/* 🔹 Halo verde suave al pasar el mouse */
.premium-item:hover img {
  border-color: #25d366;
  box-shadow: 0 0 12px rgba(25, 135, 84, 0.8),
              0 0 25px rgba(37, 211, 102, 0.5);
  animation: haloPulse 1.8s ease-in-out infinite alternate;
  transform: scale(1.05);
}

/* 🔹 Animación de pulsación del halo */
@keyframes haloPulse {
  0% {
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.6),
                0 0 20px rgba(37, 211, 102, 0.3);
  }
  100% {
    box-shadow: 0 0 18px rgba(25, 135, 84, 1),
                0 0 35px rgba(37, 211, 102, 0.7);
  }
}

/* ===== NEGOCIOS REGISTRADOS ===== */
.negocios-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.negocios-titulo {
  color: #198754;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Scroll */
.negocios-scroll {
  scroll-behavior: smooth;
  overflow-x: auto;
  display: flex;
  gap: 1rem;
  scrollbar-width: none;
}
.negocios-scroll::-webkit-scrollbar {
  display: none;
}

/* Cuadros */
.negocio-item {
  flex: 0 0 auto;
  width: 120px;
}
.negocio-card {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.negocio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(25, 135, 84, 0.2);
}
.negocio-logo {
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #25d366;
}
.negocio-nombre {
  color: #198754;
}

/* Flechas */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(25, 135, 84, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}
.arrow-left {
  left: -15px;
}
.arrow-right {
  right: -15px;
}
.negocios-carrusel:hover .arrow {
  opacity: 1;
}
.arrow:hover {
  background: #25d366;
}

/* ===== Fondo degradado suave para sección de negocios ===== */
.negocios-wrapper {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
  border: 1px solid #d9f2e2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
}

/* Título con estilo verde institucional */
.negocios-titulo {
  color: #198754;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: linear-gradient(90deg, #198754, #25d366);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Tamaño uniforme de logos en negocios ===== */
.negocio-logo {
  width: 110px;                /* 🔹 Tamaño fijo horizontal */
  height: 110px;               /* 🔹 Tamaño fijo vertical */
  object-fit: cover;           /* 🔹 Rellena sin deformarse */
  border-radius: 12px;         /* 🔹 Esquinas redondeadas */
  border: 2px solid #25d366;   /* 🔹 Borde verde institucional */
  background-color: #fff;      /* 🔹 Fondo blanco si la imagen tiene transparencia */
  display: block;
  margin: 0 auto;              /* 🔹 Centra dentro del card */
}

/* ===== Altura uniforme para las tarjetas de negocios ===== */
.negocio-item {
  flex: 0 0 auto;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.negocio-card {
  width: 110px;
  height: 140px; /* 🔹 Altura fija del cuadro */
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.negocio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(25, 135, 84, 0.25);
}

/* Nombre debajo del logo */
.negocio-nombre {
  color: #198754;
  font-weight: 600;
  margin-top: 8px;
  font-size: 0.85rem;
  text-align: center;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Permitir dos líneas en el nombre del negocio ===== */
.negocio-nombre {
  color: #198754;
  font-weight: 600;
  margin-top: 8px;
  font-size: 0.85rem;
  text-align: center;
  max-width: 100px;
  line-height: 1.2em;            /* espacio entre líneas */
  height: 2.4em;                 /* ocupa exactamente 2 líneas */
  overflow: hidden;              /* oculta texto sobrante */
  text-overflow: ellipsis;       /* agrega "..." si se pasa */
  display: -webkit-box;
  -webkit-line-clamp: 2;         /* limita a 2 líneas */
  -webkit-box-orient: vertical;
  white-space: normal;           /* permite salto de línea */
}

/* ===== Nombres de negocios PREMIUM (dos líneas) ===== */
.premium-item .small {
  color: #198754;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  max-width: 90px;
  line-height: 1.2em;
  height: 2.4em;                 /* dos líneas exactas */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;         /* límite de dos líneas */
  -webkit-box-orient: vertical;
  white-space: normal;           /* permite saltos de línea */
  margin-top: 6px;
  transition: color 0.3s ease;
}

/* Efecto visual sutil al pasar el mouse */
.premium-item:hover .small {
  color: #1faa59; /* tono más brillante de verde */
}

/* ======== FEED GENERAL ======== */
.feed-section {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  padding: 20px;
  margin-top: 20px;
}

#feed .card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#feed .card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#verMas {
  background-color: #198754;
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

#verMas:hover {
  background-color: #157347;
  box-shadow: 0 4px 12px rgba(25,135,84,0.4);
}

/* ======== COLORES SEGÚN TIPO DE USUARIO ======== */

/* PREMIUM – marco dorado */
.card.premium {
  border: 2px solid #f1c40f;
  background: linear-gradient(to bottom right, #fffbea, #fff);
  box-shadow: 0 0 12px rgba(241, 196, 15, 0.3);
}

/* NEGOCIO – marco verde */
.card.negocio {
  border: 2px solid #198754;
  background: linear-gradient(to bottom right, #f8fff8, #fff);
  box-shadow: 0 0 10px rgba(25, 135, 84, 0.2);
}

/* BÁSICO – marco gris */
.card.basico {
  border: 1px solid #dee2e6;
  background: #ffffff;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

/* ===== Insignia flotante según tipo de usuario ===== */
.badge-float {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.9rem;
  padding: 6px 8px;
  border-radius: 50%;
  backdrop-filter: blur(3px);
  transition: transform 0.2s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.badge-float:hover {
  transform: scale(1.15);
  opacity: 1;
}

/* Premium dorado */
.badge-float.bg-warning {
  border: 2px solid #fff5b1;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

/* Negocio verde */
.badge-float.bg-success {
  border: 2px solid #b7f0c5;
  box-shadow: 0 0 6px rgba(25,135,84,0.5);
}

/* Básico gris */
.badge-float.bg-secondary {
  border: 2px solid #e2e3e5;
  box-shadow: 0 0 6px rgba(108,117,125,0.4);
}

/* ===== Insignia flotante según tipo de usuario ===== */
.badge-float {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .95rem;
  padding: 6px 8px;
  border-radius: 50%;
  backdrop-filter: blur(3px);
  transition: transform .2s ease, opacity .3s ease;
  opacity: .95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-float i { line-height: 1; }

.badge-float:hover {
  transform: scale(1.12);
  opacity: 1;
}

.badge-float.bg-warning { border: 2px solid #fff5b1; box-shadow: 0 0 6px rgba(255, 215, 0, .5); }
.badge-float.bg-success { border: 2px solid #b7f0c5; box-shadow: 0 0 6px rgba(25,135,84,.45); }
.badge-float.bg-secondary { border: 2px solid #e2e3e5; box-shadow: 0 0 6px rgba(108,117,125,.35); }

/* === Animación de brillo suave solo para usuarios Premium === */
.badge-float.bg-warning {
  position: relative;
  animation: pulseGold 2.5s ease-in-out infinite;
}

@keyframes pulseGold {
  0%   { box-shadow: 0 0 6px rgba(255, 215, 0, 0.5); transform: scale(1); }
  50%  { box-shadow: 0 0 15px rgba(255, 215, 0, 0.9); transform: scale(1.15); }
  100% { box-shadow: 0 0 6px rgba(255, 215, 0, 0.5); transform: scale(1); }
}

/* Modales: look y control */
.modal-backdrop.show { opacity: .85 !important; }
.modal-content { background: rgba(0,0,0,.95); }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: invert(1); }

/* encuadrar las publicaciones */
/* ==== ESPACIADO ENTRE PUBLICACIONES ==== */

/* Aumenta la separación general */
#feed > .col-12 {
  padding: 0;
  margin-bottom: 2.5rem; /* 🔹 más espacio entre publicaciones */
}

/* Cada tarjeta con sombra más suave y separación interna */
.card.post-card {
  border-radius: 12px;
  margin-bottom: 2.5rem;
  padding-bottom: 0;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* Pequeño efecto hover (levanta la tarjeta un poco) */
.card.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Cuerpo más aireado */
.post-card .card-body {
  padding: 1.75rem 1.5rem;
}

/* Margen entre imágenes y texto */
.post-card img.post-image {
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

/* Margen adicional para el último post */
#feed > .col-12:last-child {
  margin-bottom: 4rem;
}

/* Responsive ajuste */
@media (max-width: 768px) {
  .card.post-card {
    margin-bottom: 2rem;
  }
}

.card.post-card {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

#feed {
  row-gap: 3rem; /* 48px entre publicaciones */
}

/* ==== GENERAL ==== */
body, html {
  overflow-x: hidden;
}

/* ==== WRAPPERS ==== */
.premium-wrapper,
.negocios-wrapper {
  width: 100%;
  max-width: 1200px; /* 🔹 limita ancho en desktop */
  margin: 0 auto; /* centra dentro del área visible */
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}

/* ==== SCROLL ==== */
.premium-scroll,
.negocios-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 1rem 10px 1rem;
  -webkit-overflow-scrolling: touch;
}

.premium-scroll::-webkit-scrollbar,
.negocios-scroll::-webkit-scrollbar {
  display: none;
}

/* ==== ITEMS ==== */
.premium-item,
.negocio-item {
  flex: 0 0 auto;
  width: 90px;
  text-align: center;
}

.premium-logo img,
.negocio-logo {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

/* ==== MÓVILES ==== */
@media (max-width: 768px) {
  .premium-wrapper,
  .negocios-wrapper {
    max-width: 100vw; /* en móvil sí ocupa todo el ancho */
    padding: 0.75rem 0.5rem;
  }

  .premium-scroll,
  .negocios-scroll {
    padding: 0 0.5rem;
  }

  .premium-item,
  .negocio-item {
    width: 65px;
  }

  .premium-logo img,
  .negocio-logo {
    width: 50px;
    height: 50px;
  }

  .arrow-btn,
  .arrow {
    display: none !important;
  }
}

/* ******* NUEVOS CSS ******* */
/* ******* AJUSTE PARA VARIAS PANTALLAS ******* */
.content {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 992px) {
  .content {
    padding-left: 280px; /* ancho del menú lateral fijo */
  }
}

/* ******* BUSCADOR EN PANTALLAS PEQUEÑAS ******* */
/* 🔹 BUSCADOR RESPONSIVE 🔹 */
#form-busqueda {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#form-busqueda input[type="text"] {
  flex: 1;
  min-width: 0;
}

/* 🔸 En móviles */
@media (max-width: 768px) {
  #form-busqueda {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 95%;
    margin: 1rem auto;
  }

  #form-busqueda input[type="text"] {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  #form-busqueda button {
    width: 100%;
  }
}

/* 🔹 Asegurar visibilidad del buscador en móviles */
#form-busqueda-mobile input[type="text"] {
  font-size: 1rem;
  padding: 0.6rem;
  display: block;
  width: 100%;
}

#form-busqueda-mobile button {
  font-size: 1rem;
  padding: 0.6rem;
}

@media (max-width: 768px) {
  #form-busqueda {
    display: none; /* Ocultar buscador de escritorio en móvil */
  }
}

#verMas {
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#verMas:hover:not(:disabled) {
  background-color: #198754; /* Verde más intenso */
  transform: scale(1.02);
}

#verMas:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.4s ease;
}


