  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
:root {
    --success: green;
    --success1: green;
    --success2: green;
      --success3: green;
        --success4: green;
          --success5: green;
            --success6: green;
   --success7: green;
      --success8: green;                  
    --warning: rgb(194, 194, 80);
    --warning1: rgb(194, 194, 80);
        --warning2: rgba(255, 255, 0, 0.705);
    --warning3: rgb(194, 194, 80);
        --warning4: rgb(194, 194, 80);
    --warning5: rgb(194, 194, 80);
        --warning6: rgb(194, 194, 80);
    --warning7: rgb(194, 194, 80);
        --warning8: rgb(194, 194, 80);
              --warning9: rgb(194, 194, 80);
                 --sesion: rgb(194, 194, 80);
}
/* Scroll general para toda la página */
::-webkit-scrollbar {
  width: 10px;       /* ancho de la barra vertical */
  height: 10px;      /* alto de la barra horizontal */
}
#intro-screen {
    transition: opacity .8s ease, transform .8s ease;
}

#intro-screen.intro-hide {
    opacity: 0;
    transform: scale(1.05);
}
 
::-webkit-scrollbar-track {
  background: #1e1e1e; /* color de fondo del track (oscuro) */
  border-radius: 5px;
}
.welcome-section {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.4s ease;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    padding: 2rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    color: #f8fafc;
    max-width: 360px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.45);
    animation: popUp 0.5s ease;
}

.welcome-card h2 {
    font-size: 1.6rem;
    margin: 0.5rem 0;
    background: linear-gradient(90deg, #38bdf8, #a78bfa);
    -webkit-background-clip: text;
    color: transparent;
}

.welcome-card p {
    font-size: 0.95rem;
    color: #cbd5f5;
}

.welcome-img {
    width: 168px;
    margin-bottom: 1rem;
    animation: float 2s ease-in-out infinite alternate;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes float {
    from { transform: translateY(0px); }
    to { transform: translateY(-10px); }
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff8c00, #ff5500); /* degradado naranja */
  border-radius: 5px;
  border: 2px solid #1e1e1e; /* espacio alrededor del thumb */
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffa500, #ff7000);
}

/* Scroll para Firefox */
* {
  scrollbar-width: thin;       /* fino */
  scrollbar-color: #ff8c00 #1e1e1e; /* thumb y track */
}
img {
  user-drag: none;         /* Safari y Chrome */
  -webkit-user-drag: none;
  
}
 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Arial, sans-serif;
              user-select: none;       /* estándar moderno */
  -webkit-user-select: none; /* Chrome, Safari */
  -moz-user-select: none;  /* Firefox */
  -ms-user-select: none;   /* IE/Edge */
        }

body {
  min-height: 100vh;
  color: #f5f5f5;
  font-family: 'Segoe UI', system-ui, sans-serif;

  background: 
    linear-gradient(
      rgba(10, 10, 15, 0.55),
      rgba(10, 10, 15, 0.65)
    ),
    url(icons/fondo.webp) no-repeat center center fixed;

  background-size: cover;
  background-blend-mode: overlay;
}

/* ===============================
   HEADER MODERNO
================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
    background: linear-gradient(135deg, #1a1a1a, #111);
    border-bottom: 0.3px solid #f0a500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
     
    top: 0;
    z-index: 999;
    gap: 1rem;
}

/* LOGO */
header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

header .logo:hover {
    transform: scale(1.05);
}

header .logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

header .logo:hover .logo-img {
    transform: rotate(15deg);
}

header .logo h1 {
    font-size: 1.8rem;
    color: #f0a500;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ===============================
   INTRO ANIMATION
================================ */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #111);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    overflow: hidden;
    flex-direction: column;
    animation: fadeOutIntro 0.8s ease 3s forwards; /* Desaparece después de 3s */
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.intro-logo {
    width: 120px;
    height: 120px;
    animation: logoBounce 1.2s ease infinite alternate;
}

.intro-text {
    font-size: 1.5rem;
    color: #f0a500;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(240, 165, 0, 0.7),
                 0 0 20px rgba(240, 165, 0, 0.5);
    animation: textSlideIn 1s ease forwards;
    opacity: 0;
}

/* ===============================
   ANIMATIONS
================================ */
@keyframes logoBounce {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes textSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutIntro {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* ===============================
   RESPONSIVE CELULAR
================================ */
@media (max-width: 480px) {
    .intro-logo {
        width: 90px;
        height: 90px;
    }

    .intro-text {
        font-size: 1.2rem;
        padding: 0 10px;
    }
}

@media (max-width: 360px) {
    .intro-logo {
        width: 70px;
        height: 70px;
    }

    .intro-text {
        font-size: 1rem;
    }
}
 
/* AVATAR / BOTON MENU */
.user-avatar-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #222, #1a1a1a);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.user-avatar-container:hover {
    background: linear-gradient(135deg, #333, #222);
    box-shadow: 0 6px 18px rgba(240,165,0,0.4);
}

.user-avatar-container .menu-icon i {
    font-size: 1.3rem;
    color: #191816;
    transition: transform 0.3s ease, color 0.3s ease;
}

.user-avatar-container:hover .menu-icon i {
    color: #ffc107;
    transform: rotate(15deg) scale(1.1);
}

.user-avatar-container .menu-label {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Avatar */
.user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;

    background: linear-gradient(135deg, #ff8a00, #ffbf00);
    box-shadow:
        0 8px 20px rgba(255, 140, 0, 0.45);

    display: grid;
    place-items: center;

    font-weight: 700;
    color: white;
    font-size: 20px;
    margin-bottom: 6px;

    animation: popAvatar 0.5s ease forwards;
}
@keyframes popAvatar {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===============================
   ACCOUNT USER
================================ */
.account-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    background: rgba(255,255,255,0.05);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
}

/* EDIT PROFILE BUTTON */
.edit-profile-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(240,165,0,0.2);
    border: none;
    padding: 6px 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #f0a500;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    background: #f0a500;
    color: #1a1a1a;
    transform: scale(1.1);
}

.account-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* mantiene el círculo */
    background: #f0a500;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;

    /* Corregir tamaño para un círculo perfecto */
    box-sizing: border-box; /* incluye padding y border en width/height */
    overflow: hidden;       /* asegura que el contenido no rompa el círculo */
    flex-shrink: 0;         /* evita que flex reduzca el tamaño */
}

.menu-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: white;
    background: linear-gradient(135deg, #ff7b00, #ffb700);
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
    transition: all .25s ease;
}

.user-avatar-container:hover .menu-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 22px rgba(0,0,0,.45);
}

.user-avatar-container:active .menu-icon {
    transform: scale(.92);
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-name {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.account-role {
    font-size: 0.85rem;
    color: #ccc;
}

 
.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(145deg, #1a1a1a, #111);
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 9999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    border-right: 1px solid rgba(240,165,0,0.2);
}

/* Abrir el sidebar */
.sidebar-menu.active {
    transform: translateX(0);
}

/* Título */
.sidebar-menu h3 {
    color: #f0a500;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 1px;
}
 /* ===============================
   BOTONES SIDEBAR
================================ */
.sidebar-btn {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 10px;
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sidebar-btn i {
    font-size: 1.1rem;
}
/* Diferentes roles */
.admin-only {
    display: none; /* se muestra vía JS */
}

.vende-only {
    display: none; /* se muestra vía JS */
}
/* Hover efecto moderno */
.sidebar-btn:hover {
    background: #f0a500;
    color: #1a1a1a;
    box-shadow: 0 8px 20px rgba(240,165,0,0.4);
    transform: translateX(5px);
}

.profile-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.profile-card {
    width: 90%;
    max-width: 420px;
    background: #111827;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
    animation: pop .35s ease;
}

.profile-group {
    margin-bottom: 14px;
}

.profile-group input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #1f2933;
    color: white;
}
.profile-card h2{
text-align: center;
}
.btn-close-profile {
    margin-top: 18px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #ff4d4d;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.btn-close-profile:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.btn-close-profile:active {
    transform: scale(0.97);
}

#editCountryDropdown {
 
    top: 100%;
    left: 0;
    right: 0;
    max-height: 280px;     /* altura visible */
    overflow-y: auto;     /* scroll */
    background: #111;
    border-radius: 10px;
    padding: 6px 0;
    display: none;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

#editCountryDropdown.show {
    display: block;
}

#editCountryDropdown li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background .2s;
}

#editCountryDropdown li:hover {
    background: rgba(255,255,255,.08);
}

#editCountryDropdown img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
}

.btn-save {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg,#ff7a18,#ffb347);
    color: #000;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.edit-actionss {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

/* Botón Guardar */
.btn-saves {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  padding: 14px 26px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 12px 30px rgba(34,197,94,.45);
}

.btn-saves:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 40px rgba(34,197,94,.6);
}

.btn-saves:active {
  transform: translateY(0) scale(.97);
}       

/* Botón Eliminar */
.btn-deletes {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  padding: 14px 26px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 12px 30px rgba(239,68,68,.45);
}

.btn-deletes:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 40px rgba(239,68,68,.65);
}

.btn-deletes:active {
  transform: translateY(0) scale(.97);
}

.hidden { display: none; }

@keyframes pop {
    from { transform: scale(.8); opacity: 0 }
    to   { transform: scale(1); opacity: 1 }
}
 
.user-avatar.hidden {
    display: none;
}

 

@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes glow {
    from { text-shadow: 0 0 5px #00ffd5; }
    to   { text-shadow: 0 0 20px #00ffd5; }
}

@keyframes fadeOutIntro {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* FOOTER */
        footer {
            background: #1a1a1a;
            text-align: center;
            padding: 15px;
            font-size: 13px;
            color: #aaa;
        }

        footer strong {
            color: #ff6f00;
        }

      


   .notifications {
     position: fixed;
     top: 20px;
     right: 20px;
     z-index: 1000019999;
     max-width: 420px;
 }
.notifications :where(.toast,
.column) {
    display: flex;
    align-items: center;
}
.notifications .toast {
     width: 100%;
     max-width: 400px;
     position: relative;
     overflow: hidden;
     list-style: none;
     border-radius: 16px;
     padding: 20px 24px;
     margin-bottom: 12px;
     background: linear-gradient(145deg, #ffffff, #f8f9fa);
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 
                 0 2px 8px rgba(0, 0, 0, 0.08);
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.2);
     justify-content: space-between;
     animation: show_toast 0.4s ease forwards;
     z-index: 999999999999999;
     transition: all 0.3s ease;
 }

 .notifications .toast:hover {
     transform: translateY(-2px);
     box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 
                 0 4px 12px rgba(0, 0, 0, 0.1);
 }



@keyframes show_toast {
    0% {
        transform: translateX(100%);
    }
    40% {
        transform: translateX(10%);
    }
    80% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(0%);
    }
}

.notifications .toast.hide {
    animation: hide_toast 0.3s ease forwards;
}

@keyframes hide_toast {
    0% {
        transform: translateX(-10%);
    }
    40% {
        transform: translateX(0%);
    }
    80% {
        transform: translateX(-5%);
    }
    100% {
        transform: translateX(calc(100% + 20px));
    }
}

 .toast::before {
     position: absolute;
     content: '';
     height: 4px;
     width: 100%;
     bottom: 0;
     left: 0;
     border-radius: 0 0 16px 16px;
     animation: progress 5s linear forwards;
     background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
 }
@keyframes progress {
    100% {
        width: 0%;
    }
}

 






.toast .column i {
    font-size: 1.75rem;
}



 



 .toast .column span {
     font-size: 0.95rem;
     margin-left: 16px;
     font-weight: 500;
     color: #374151;
     line-height: 1.4;
     letter-spacing: 0.01em;
 }

 .toast i:last-child {
   color: #6b7280;
   cursor: pointer;
   font-size: 1.1rem;
   padding: 10px;
   border-radius: 37%;
   transition: all 0.3s ease;
   background: rgba(107, 114, 128, 0.15);
   border: 2px solid rgba(107, 114, 128, 0.2);
 min-width: 16px;
    min-height: 16px;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
   backdrop-filter: blur(5px);
}

.toast i:last-child:hover {
   color: #ffffff;
   background: #ef4444;
   border-color: #dc2626;
   transform: scale(1.1);
   box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.toast i:last-child:active {
   transform: scale(0.95);
   transition: transform 0.1s ease;
}







        .logo img {
            width: 47px;
            margin-right: 10px;
        }

        .logo h1 {
            color: #ff6f00;
            font-size: 24px;
            font-weight: 700;
        }

/* 🌌 Fondo general */
.auth-container {
    position: relative;
       top: 0;
    left: 0;
    width: 100%;
    
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center;     /* Centrado vertical */
    padding: 2rem;
    z-index: 9999;
 
}


 
 
/* Contenedor principal del campo teléfono */
.form-group.phone-field {
    position: relative;
}
 

 
/* 🌐 Dropdown países */
.country-dropdown {
    background: rgba(15,23,42,0.95);
    border-radius: 12px;
    margin-top: 0.4rem;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(148,163,184,0.15);
}
/* Animación de entrada */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown de países */
.form-group.phone-field .country-dropdown {
    position: absolute;
    top: calc(100% + 6px); /* justo debajo del campo */
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: #cfbaba;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 999;
}
.country-dropdown {
display: none;
}


 /* 🧾 Campos */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.85rem;
    color: #e5e7eb;
    margin-bottom: 0.3rem;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: #f8fafc;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56,189,248,0.25);
}


/* Inputs con icono */
.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.input-wrapper i.success-icon {
    color: green;
}

.input-wrapper i.error-icon {
    color: red;
}

 /* 🔘 Botón */
.btn-submit {
    width: 100%;
    margin-top: 1.4rem;
    padding: 0.85rem;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #020617;
    background: linear-gradient(135deg, #38bdf8, #a78bfa);
    cursor: pointer;
    transition: 0.35s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56,189,248,0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

 

.toast.success::before,
.btn#success {
    background: var(--success);
}
.toast.success1::before,
.btn#success1 {
    background: var(--success1);
}
 .toast.success2::before,
.btn#success2 {
    background: var(--success2);
}
 .toast.success3::before,
.btn#success3 {
    background: var(--success3);
}
 .toast.success4::before,
.btn#success4 {
    background: var(--success4);
}
 .toast.success5::before,
.btn#success5 {
    background: var(--success5);
}
 .toast.success6::before,
.btn#success6 {
    background: var(--success6);
}
 .toast.success7::before,
.btn#success7 {
    background: var(--success7);
}
.toast.success8::before,
.btn#success8 {
    background: var(--success8);
}
.toast.warning::before,
.btn#warning {
    background: var(--warning);
}
 .toast.warning1::before,
.btn#warning1 {
    background: var(--warning1);
}
 .toast.warning2::before,
.btn#warning2 {
    background: var(--warning2);
}
 .toast.warning3::before,
.btn#warning3 {
    background: var(--warning3);
}
 .toast.warning4::before,
.btn#warning4 {
    background: var(--warning4);
}
 .toast.warning5::before,
.btn#warning5 {
    background: var(--warning5);
}
 .toast.warning6::before,
.btn#warning6 {
    background: var(--warning6);
}
 .toast.warning7::before,
.btn#warning7 {
    background: var(--warning7);
}
 .toast.warning8::before,
.btn#warning8 {
    background: var(--warning8);
}
 .toast.warning9::before,
.btn#warning9 {
    background: var(--warning9);
}

 .toast.sesion::before,
.btn#sesion {
    background: var(--sesion);
}



 .toast.success .column i {
    color: var(--success);
}
.toast.success1 .column i {
    color: var(--success1);
}
 .toast.success2 .column i {
    color: var(--success2);
}
.toast.success3 .column i {
    color: var(--success3);
}
.toast.success4 .column i {
    color: var(--success4);
}
.toast.success5 .column i {
    color: var(--success5);
}
.toast.success6 .column i {
    color: var(--success6);
}
.toast.success7 .column i {
    color: var(--success7);
}
.toast.success8 .column i {
    color: var(--success8);
}
  .toast.warning .column i {
    color: var(--warning);
}
    .toast.warning1 .column i {
    color: var(--warning1);
}
    .toast.warning2 .column i {
    color: var(--warning2);
}
    .toast.warning3 .column i {
    color: var(--warning3);
}
    .toast.warning4 .column i {
    color: var(--warning4);
}
    .toast.warning5 .column i {
    color: var(--warning5);
}
    .toast.warning6 .column i {
    color: var(--warning6);
}
    .toast.warning7 .column i {
    color: var(--warning7);
}
      .toast.warning8 .column i {
    color: var(--warning8);
}
  .toast.warning9 .column i {
    color: var(--warning9);
}
.toast.sesion .column i {
    color: var(--sesion);
}
/* Toast notifications */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    list-style: none;
}

.toast {
    background: #fff;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.5s ease forwards;
}

.toast.hide {
    animation: slideOut 0.5s forwards;
}

.toast .column {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast i.fa-xmark {
    cursor: pointer;
    color: #888;
}

@keyframes slideIn {
    from {opacity: 0; transform: translateX(100%);}
    to {opacity: 1; transform: translateX(0);}
}

@keyframes slideOut {
    from {opacity: 1; transform: translateX(0);}
    to {opacity: 0; transform: translateX(100%);}
}

/* Password rules y barra */
.password-rules {
    margin-top: 10px;
}

.password-strength {
    height: 6px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background: red;
    border-radius: 6px;
    transition: width 0.3s;
}

.strength-1 { width: 20%; background: red; }
.strength-2 { width: 40%; background: orange; }
.strength-3 { width: 60%; background: yellowgreen; }
.strength-4 { width: 80%; background: lightgreen; }
.strength-5 { width: 100%; background: green; }

.rule {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 3px;
}

.rule.valid {
    color: green;
}

.rule i {
    margin-right: 5px;
    font-size: 0.6rem;
}

/* 💎 Tarjeta principal */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 2.5rem 2.2rem;
    box-shadow:
        0 25px 50px rgba(0,0,0,0.45),
        inset 0 0 0 1px rgba(255,255,255,0.08);
    color: #f8fafc;
    animation: fadeUp 0.6s ease;
}

/* 🧭 Animación de entrada */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 🏷️ Títulos */
.auth-card h2 {
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 0.4rem;
    background: linear-gradient(90deg, #38bdf8, #a78bfa);
    -webkit-background-clip: text;
    color: transparent;
}

.auth-card p {
    text-align: center;
    font-size: 0.95rem;
    color: #cbd5f5;
    margin-bottom: 1.6rem;
}

/* Responsive */
@media(max-width: 480px){
    .auth-card {
        padding: 20px;
    }
}

/* 📱 Teléfono */
.phone-container {
    display: flex;
    gap: 0.4rem;
}
.country-selector {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15,23,42,0.8);
    padding: 0 0.7rem;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(148,163,184,0.15);
}
.country-selector:hover {
    border-color: #38bdf8;
}


.flag-img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
}

.country-code {
    font-size: 0.8rem;
} 
.phone-container input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
  
    border-radius: 1px;
    outline: none;
}

.phone-container input:focus {
    border-color: #007bff;
}

 
.country-code{
    color: white;
    font-weight: bold;
}


.country-dropdown li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: black;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.country-dropdown li:hover {
    background: #f0f0f0;
}

.country-dropdown img {
    width: 20px;
    height: 15px;
    object-fit: cover;
}
.btn-back {
    background: rgba(255, 255, 255, 0.1); /* vidrio semi-transparente */
    border: 1px solid;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 16px;
    cursor: pointer;
    position: absolute;
    top: 1px;
    left: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.25);
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(8px);
    background-clip: padding-box;
    z-index: 100;
    overflow: hidden;
}

/* Gradiente animado al hover */
.btn-back::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #00f5ff, #00ffa6, #ff00ff, #ff8c00);
    background-size: 300% 300%;
    border-radius: 16px;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    z-index: -1;
    filter: blur(8px);
}

.btn-back:hover::before {
    opacity: 0.35;
    animation: gradientGlow 3s linear infinite;
}

.btn-back:hover {
    transform: translateX(-3px) scale(1.03);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.6), 0 0 12px rgba(255, 255, 255, 0.2);
}

.btn-back:active {
    transform: translateX(0px) scale(0.97);
    box-shadow: 0 3px 12px rgba(0, 255, 255, 0.4);
}

/* Animación de gradiente */
@keyframes gradientGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.product-modal {
    position: fixed;
    inset: 0;                /* top:0 right:0 bottom:0 left:0 */
    width: 100%;
    height: 100vh;
    background: rgba(8, 8, 12, 0.78);
    backdrop-filter: blur(8px);
 overflow-y: auto;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.product-modals {
    position: fixed;
    inset: 0;                /* top:0 right:0 bottom:0 left:0 */
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 12, 0.78);
    backdrop-filter: blur(8px);
 overflow-y: auto;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}



/* ===== Botón añadir imagen ===== */
.btn-add-image {
  padding: 10px 15px;
  font-size: 1rem;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-add-image:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

.images-preview {
    display: flex;
        margin-bottom: 17px;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

/* Estilo base para imagen y botón */
.image-slot,
.images-preview img {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    object-fit: cover;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* Hover general */
.image-slot:hover,
.images-preview img:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 22px rgba(0,0,0,0.45);
}

.add-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100px;
    height: 100px;

    border: 2px dashed #ff5a5a;
    border-radius: 14px;

    background: rgba(255, 90, 90, 0.06);

    cursor: pointer;
    transition: all 0.25s ease;
}

.add-slot:hover {
    background: rgba(255, 90, 90, 0.12);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 22px rgba(255, 90, 90, 0.35);
}

.add-icon {
    font-size: 32px;
    color: #ff4b4b;
    line-height: 1;
}

.add-text {
    margin-top: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #ff4b4b;
    letter-spacing: 0.3px;
}

.add-text span {
    display: block;
}


.preview-card{
  position:relative;
  width:115px;
  height:115px;
}

.preview-card img{
  width:100%;
  height:100%;
  object-fit:fill;
  border-radius:8px;
}
.preview-actions{
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.preview-actions i{
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(15,15,15,0.75);
  backdrop-filter: blur(6px);

  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;

  box-shadow: 
    0 6px 14px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.08);

  transition: 
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    opacity .18s ease;
}
.preview-actions i:hover{
  transform: scale(1.12);
  background: rgba(25,25,25,0.9);
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.15);
}


.btn-add-image{
  margin-top:10px;
}

.upload-progress{
  width:100%;
  height:8px;
  background:#ddd;
  border-radius:4px;
  margin-top:10px;
}

#uploadProgressBar{
  height:100%;
  width:0%;
  background:#00c853;
  border-radius:4px;
}

/* ===== Cada preview ===== */
.image-preview {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999999999999999;
}

.fullscreen-overlay.hidden {
  display: none;
}

.fullscreen-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.close-fullscreen {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 46px;
  height: 46px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);

  font-size: 26px;
  font-weight: 600;
  color: #fff;

  cursor: pointer;
  user-select: none;

  box-shadow: 0 12px 30px rgba(0,0,0,.7);
  transition: .25s ease;
  z-index: 1000;
}

.close-fullscreen:hover {
  background: linear-gradient(145deg, rgba(240, 185, 6, 0.4), rgba(221, 7, 7, 0.4));
  box-shadow: 0 18px 45px rgba(0,0,0,.9);
}


.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Botón eliminar ahora es solo un icono en la esquina superior derecha */
.image-preview .delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 77, 77, 0.9);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 2;
}

.image-preview .delete-btn:hover {
  background: rgba(255, 77, 77, 1);
  transform: scale(1.1);
}

.image-preview .delete-btn i {
  font-size: 14px;
}

/* Hover efecto ligero */
.image-preview:hover {
  transform: scale(1.05);
}
/* ===== Botones dentro de la preview ===== */
.replace-btn {
  position: absolute;
  bottom: 5px;
  left: 5px;
  right: 5px;
  padding: 3px 6px;
  font-size: 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.replace-btn {
  background-color: rgba(37, 117, 252, 0.9);
  color: #fff;
  margin-bottom: 4px;
}

.replace-btn:hover {
  background-color: rgba(37, 117, 252, 1);
}

 

/* ===== Responsivo ===== */
@media (max-width: 500px) {
  .image-preview {
    width: 90px;
    height: 90px;
  }

  .btn-add-image {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}
 
/* Sidebar menu */
.sidebar-menu {
    width: 360px;
    background: #1a1f2e;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.sidebar-menu h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
        margin-top: 4px;
    text-align: center;
    letter-spacing: 0.5px;
}
 

 
.product-modal.hidden {
    display: none;
}

.product-modals {
    display: none;
}

 

 

/* Grid de productos del usuario */
.user-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
}
/* Contenedor del producto */
.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1f2937; /* gris oscuro elegante */
    border-radius: 12px;
    padding: 10px;
    margin: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Imagen del producto */
.product-item img {
    width: 120px;          /* tamaño fijo o relativo */
    height: 120px;         /* mantiene cuadrado */
    object-fit: fill;     /* recorta manteniendo proporción */
    border-radius: 12px;   /* bordes redondeados */
    margin-bottom: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.product-item img:hover {
    transform: scale(1.1); /* efecto zoom */
    filter: brightness(1.1);
}

/* Nombre del producto */
.product-item p {
    color: #f9fafb;       /* blanco suave */
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    word-break: break-word;
}

/* Grid general dentro de userProductsContainer */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 10px;
}

.user-products-grid .product-item {
    background: #2a3142;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
}

.user-products-grid .product-item:hover {
    background: #3a4260;
    transform: translateY(-3px);
}

.user-products-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
}

 

/* Responsive */
@media screen and (max-width: 768px) {
    .sidebar-menu {
        width: 200px;
        padding: 15px;
    }
    .sidebar-btn {
        font-size: 0.9rem;
        gap: 8px;
    }
    .product-card {
        padding: 15px;
    }
    .product-cards {
        padding: 15px;
    }
}

.product-card {
     background: #111;
    width: 100%;
 
    border-radius: 18px;
    padding: 26px 30px;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    color: #f1f1f1;
    display: flex;
    flex-direction: column;
    
    transition: transform 0.3s ease;
}
#addPorductForm{
  margin-top: 24px;
}

.product-card h2 {
    text-align: center;
top: 25px;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.4px;

    margin-bottom: 18px;
    padding-bottom: 10px;

    color: #d4650b;

    position: relative;
}

/* Línea decorativa inferior */
.product-card h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);

    width: 150px;
    height: 4px;
    border-radius: 999px;

    background: linear-gradient(90deg, #ff4b4b, #ff9a9a);
}


.product-cards {
     background: #111;
    width: 100%;
  
    border-radius: 18px;
    padding: 26px 30px;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    color: #f1f1f1;
    display: flex;
    flex-direction: column;
    
    transition: transform 0.3s ease;
}


.product-cards h2 {
text-align: center;

    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.4px;

    margin-bottom: 18px;
    padding-bottom: 10px;

    color: #d4650b;

    position: relative;
}

/* Línea decorativa inferior */
.product-cards h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);

    width: 60px;
    height: 4px;
    border-radius: 999px;

    background: linear-gradient(90deg, #ff4b4b, #ff9a9a);
}
.product-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-group label {
    font-weight: 600;
    color: #ddd;
    font-size: 0.95rem;
}

/* Inputs y textarea */
.product-group input,
.product-group textarea,
.product-group select {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #2a2f42;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.product-group input:focus,
.product-group textarea:focus,
.product-group select:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.5);
}
 
/* ===== Contenedor de botones e inputs ===== */
.images-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product-image {
    border: 2px dashed #555;
    border-radius: 12px;
    padding: 20px;
    background: #252a3a;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #888;
    text-align: center;
}

.product-image:hover {
    border-color: #6c63ff;
    background: #2c324b;
}
/* Categorías seleccionadas */
.selected-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 10px;
    padding: 8px;

    background: #fafafa4d;
    border: 1px dashed #ddd;
    border-radius: 12px;
 margin-bottom: 16px; 
    min-height: 44px;

    transition: all 0.2s ease;
}

/* Cuando tiene chips dentro */
.selected-categories:not(:empty) {
    background: #f5f5f54d;
    border-color: #ccc;
}


.selected-categories .category-chip {
    background: #6c63ff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.selected-categories .category-chip:hover {
    background: #5751c9;
}
.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: default;
    user-select: none;
}
.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: #f0f0f0;
    color: #333;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;

    transition: all 0.2s ease;
}

.category-chip:hover {
    background: #e6e6e6;
}

/* Ícono X */
.chip-remove {
       font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

.chip-remove:hover {
   opacity: 1;
    transform: scale(1.2);
}

.chip-close {
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

.chip-close:hover {
    opacity: 1;
    transform: scale(1.2);
}

.category-chips {
    display: inline-flex;
    align-items: center;
    background-color: #1e90ff;
    color: #fff;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.9rem;
    margin: 5px 5px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-chips:hover {
    background-color: #0d6efd;
    transform: scale(1.05);
}

.category-chips .remove-chip {
    display: inline-block;
    margin-left: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* Botones */
.btn-save {
    background: #6c63ff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: #5751c9;
    transform: scale(1.03);
}

.btn-close-product {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
align-items: center;
justify-content: center;

  align-items: center;
  justify-content: center;
  font-size: 26px;
 
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.6);
  transition: .25s ease;
  z-index: 10;
}

.btn-close-product:hover {
background: linear-gradient(145deg, rgba(240, 185, 6, 0.4), rgba(221, 7, 7, 0.4));
 
  box-shadow: 0 15px 35px rgba(0,0,0,.8);
} 

/* Botón cerrar */
.btn-close-products {
    position: absolute;
    top: 12px;
    right: 12px;

    background: rgba(197, 70, 70, 0.699);
    border: none;
    border-radius: 10px;

    padding: 8px 12px;
    font-size: 17px;
    font-weight: 700;
    color: #dacfcf;

    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

/* Hover */
.btn-close-products:hover {
    background: rgb(255, 0, 0);
    color: #8d8585;
    transform: scale(1.05);
}

/* Click */
.btn-close-products:active {
    transform: scale(0.95);
}

/* Responsivo */
@media (max-width: 600px) {
    .product-card {
        padding: 20px;
    }
    
    .product-card h2 {
        font-size: 1.5rem;
    }

    .product-group input,
    .product-group textarea,
    .product-group select {
        font-size: 0.95rem;
    }

    .btn-save, .btn-close-product {
        font-size: 0.95rem;
        padding: 10px;
    }
}
.hidden {
    display: none !important;
}
.no-products-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #FFA500; /* texto naranja */
    gap: 12px;
    padding: 40px 20px;
    border: 2px dashed #FFA500; /* borde naranja */
    border-radius: 12px;
    background-color: #1e1e1e; /* fondo negro */
    transition: all 0.3s ease;
}

.no-products-message:hover {
    border-color: #FF8C00; /* naranja más oscuro al hover */
    background-color: #2a2a2a; /* negro ligeramente más claro */
    color: #FF8C00;
}

.no-products-message i {
    font-size: 2.5rem;
    color: #FFA500; /* ícono naranja */
}


/* Overlay pantalla completa */
.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* ⚡ viewport height asegura que cubra toda la pantalla */
     
    
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.upload-box {
    background: #111;
    padding: 30px 40px;
    border-radius: 16px;
    width: min(90%, 360px);
    text-align: center;
    box-shadow: 0 0 40px rgba(0,255,255,.25);
    animation: pop 0.4s ease;
}

@keyframes pop {
    from { transform: scale(.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.upload-logo {
    width: 90px;
    margin-bottom: 20px;
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.upload-progress-bar {
    height: 12px;
    background: #222;
    border-radius: 20px;
    overflow: hidden;
    margin: 15px 0;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,#00f5ff,#00ffa6);
    transition: width 0.4s ease;
}

.upload-progress-text {
    font-size: 22px;
    color: #00ffa6;
    font-weight: 600;
}

.hidden { display: none; }
.upload-status {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #837f7f;
    text-align: center;
}
 
.admin-role {
    color: #ffb300;
    font-weight: 600;
}
/* BUSCADOR */
.search-container {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-container input {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    border-radius: 25px;
    border: 2px solid #f0a500;
    background: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-container input::placeholder {
    color: #ccc;
}

.search-container input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 15px rgba(240, 165, 0, 0.5);
}
 
/* Input */
#searchInput {
  width: 100%;
  padding: 14px 90px 14px 48px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  outline: none;
  font-size: 16px;
  background: linear-gradient(145deg, #141414, #1e1e1e);
  color: #fff;
  transition: all .25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* Placeholder */
#searchInput::placeholder {
  color: #9a9a9a;
  letter-spacing: .3px;
}

/* Focus glow */
#searchInput:focus {
  background: linear-gradient(145deg, #1b1b1b, #262626);
  border-color: rgba(255,255,255,0.15);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 15px 35px rgba(0,0,0,.6),
    0 0 18px rgba(255,255,255,.15);
}

 
/* Micro animación de pulso */
@keyframes softPulse {
  0% { box-shadow: 0 0 0 rgba(255,255,255,.2); }
  100% { box-shadow: 0 0 20px rgba(255,255,255,.15); }
}

#searchInput:focus {
  animation: softPulse 1.4s ease infinite alternate;
}

.categories-container {
  display: flex;
  overflow-x: auto;
 
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
    gap: 3px;
    padding: 11px 0;
   
}

 
.categories-container:active {
  cursor: grabbing;
}

.categories-container::-webkit-scrollbar {
  display: none;
}
.category {
  flex: 0 0 auto; /* evita que se encoja */
  display: flex;
  flex-direction: column;
  align-items: center;
   transition: .25s ease;
  text-align: center;
  width: 76px; /* puedes ajustar el ancho según necesites */
  font-size: 12px;
  cursor: pointer;
}

.category i {
  font-size: 24px;
  margin-bottom: 5px;
}

.category span {
  word-wrap: break-word;   /* permite saltos de línea */
  white-space: normal;      /* quita no-wrap */
}
/* Estilos base de cada categoría */
.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
margin-right: 1px;
    padding: 0px 0px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  background: #1e1e1e; /* fondo oscuro base */
}

/* Icono dentro de la categoría */
.category i {
  font-size: 23px;
  color: #ffa500; /* naranja base */
  transition: transform 0.2s ease, color 0.3s ease, text-shadow 0.3s ease;
}
.subcategories-grid {
        display: grid
;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 1px;
    margin: 5px 0;
}

.subcategories-grid.hidden {
  display: none;
}
/* ⭐ ACTIVO */
.category.active {
  background: linear-gradient(145deg, #0f172a, #020617);
  border-color: #3b82f6;
  color: #fff;

  transform: translateY(-4px) scale(1.08);

  box-shadow:
    0 0 0 1px rgba(59,130,246,.35),
    0 12px 30px rgba(59,130,246,.25),
    0 0 25px rgba(59,130,246,.25);

  animation: activePulse 1.4s ease infinite alternate;
}


.category.active i {
    color: #3b82f6;
    opacity: 1;
}


.subcategory {
    background: linear-gradient(145deg, #1a1a1a, #111);
    color: #f5f5f5;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px;
    border-radius: 15px;
            border: 0.1px solid;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.subcategory::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(240,165,0,0.15);
    transform: rotate(25deg) scale(0);
    transition: all 0.5s ease;
    border-radius: 20px;
}

.subcategory:hover::before {
    transform: rotate(25deg) scale(1);
}

.subcategory:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(240,165,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
    background: linear-gradient(145deg, #111, #1a1a1a);
    color: #ffc107;
}
/* Texto responsive */
.subcategory span,
.subcategory {
    display: block;
    font-size: 11px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
        padding: 0.5rem;
    }

    .subcategory {
        font-size: 0.85rem;
        padding: 0.8rem;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .subcategory {
        font-size: 0.8rem;
        padding: 0.6rem 0.5rem;
        border-radius: 10px;
    }
}
/* Nombre de la categoría */
.category span {
      margin-top: 3px;
    font-size: 10px;

  color: #fff;
  text-align: center;
  word-break: break-word;
  transition: color 0.3s ease;
}

/* Hover / focus */
.category:hover,
.category:focus {
  transform: translateY(-5px) scale(1.05); /* sube y agranda */
  background: #2a2a2a; /* fondo más oscuro */
  outline: none;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.5); /* glow naranja */
}

.category:hover i,
.category:focus i {
  color: #ff8c00; /* naranja más brillante */
  text-shadow: 0 0 8px #ff8c00; /* glow suave */
}

.category:hover span,
.category:focus span {
  color: #ff8c00; /* texto naranja */
}
.ad-loading {
    position: relative;
    background: #1a1a1a;
    border-radius: 12px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinners {
    width: 32px;
    height: 32px;
    border: 4px solid rgba(255,255,255,.2);
    border-top-color: #f7b733;
    border-radius: 50%;
    animation: spins 0.9s linear infinite;
}

@keyframes spins {
    to { transform: rotate(360deg); }
}

.spinner {
  border: 4px solid rgba(0,0,0,0.1);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.img-spinner-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 0fr));
    gap: 18px;
    margin: 22px 0;
}
.ad-card{
  background: #0e0e0e;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
}

.ad-card img{
  width: 100%;
  height: 110px;
  object-fit: cover;
}


/* ⚙️ ACCIONES */
.ad-actions{
  display: flex;
  justify-content: space-around;
  background: rgba(0,0,0,.75);
  padding: 6px;
}

.ad-actions button{
  background: none;
  border: none;
  color: gold;
  cursor: pointer;
  font-size: 14px;
  transition: .2s;
}
.ad-actions button:hover{color:#fff; transform:scale(1.15)}


.ads-upload {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    width: max-content;
    border-radius: 16px;
    cursor: pointer;
    background: linear-gradient(135deg, #f7b733, #ff8c00);
    color: #111;
    font-weight: 600;
    letter-spacing: .3px;
    box-shadow: 0 10px 25px rgba(247,183,51,.35);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ads-upload i {
    font-size: 18px;
}

.ads-upload:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 40px rgba(247,183,51,.55);
}
.upload-progresss {
    margin-top: 16px;
    height: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.12);
    position: relative;
    overflow: hidden;
}

.upload-progress-bars {
    height: 100%;
    background: linear-gradient(90deg, #f7b733, #ff8c00);
    transition: width .25s ease;
}
.slider-track {
  cursor: grab;
}

.slider-track:active {
  cursor: grabbing;
}
/* ================================
   🌟 HALO AMARILLO SOLO FEATURED
================================ */

#featuredSlider .img-wrap {
  position: relative;
  border-radius: 18px;
  overflow: visible;
  isolation: isolate;
}
/* ================================
   🧬 NEON PATH BORDER
================================ */

#featuredSlider .img-wrap {
  position: relative;
}

#featuredSlider .img-wrap::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 20px;
  pointer-events: none;

background:
  linear-gradient(90deg,
    transparent 0%,
    #00e5ff,
    #ffea00,
    #ff3d00,
    #ffea00,
    #00e5ff,
    transparent 100%
  );


  filter: drop-shadow(0 0 6px currentColor);
  
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  padding: 4px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  animation: neonPath 6s linear infinite;
}
@keyframes neonPath {
  0% {
    background-position: 0% 0%;
   filter: hue-rotate(0deg) drop-shadow(0 0 12px #00e5ff);

  }
  100% {
    background-position: 400% 0%;
    filter: hue-rotate(360deg) drop-shadow(0 0 8px #ffea00);
  }
}

#featuredSlider .img-wrap::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 26px;
  background:
    conic-gradient(from 0deg,
      rgba(255,220,80,0.95),
      rgba(255,180,40,0.75),
      rgba(255,240,140,0.9),
      rgba(255,180,40,0.75),
      rgba(255,220,80,0.95)
    );
  filter: blur(28px);
  opacity: 0.85;
  z-index: -1;
  animation: haloOrbit var(--duration, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes haloOrbit {
  0% {
    transform: rotate(0deg) scale(0.95);
    opacity: 0.45;
  }
  25% {
    opacity: 0.9;
  }
  50% {
    transform: rotate(180deg) scale(1.08);
    opacity: 1;
  }
  75% {
    opacity: 0.85;
  }
  100% {
    transform: rotate(360deg) scale(0.95);
    opacity: 0.45;
  }
}

#featuredSlider .img-wrap::before {
  animation-delay: var(--delay, 0s);
  animation-duration: var(--duration, 7s);
}

.upload-progress-texts {
    position: absolute;
    inset: 0;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}
.ads-slider {
    width: 100%;
   
    height: 62%;
    margin: 1rem auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.2);
 
}
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
 
   
}
#allProductsSection {
  padding: 25px 13px;
 
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
  color: #ff7f00; /* naranja brillante */
  text-shadow: 0 2px 8px rgba(255,127,0,0.5);
}
.products-grids {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* desktop */
  gap: 18px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 10px;
}

.pagination button {
  background: #181818;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  transition: all .25s ease;
}

.pagination button:hover {
  background: #242424;
  transform: translateY(-2px);
}

.pagination button.active {
  background: linear-gradient(135deg, #00ff9d, #00c3ff);
  color: #000;
}

.pagination button:disabled {
  opacity: .4;
  cursor: default;
}

/* 📱 celulares */
@media (max-width: 640px) {
  .products-grids {
    grid-template-columns: repeat(2, 1fr); /* 👈 dos por fila */
    gap: 12px;
  }
}
/* Botón Cerrar sesión al final */
#logoutBtn {
  margin-top: auto; /* empuja al final */
  background: #ff4d00;
  font-weight: 600;
}

#logoutBtn:hover {
  background: #e03e00;
}
.product-cards {
  background: #1a1a1a; /* gris muy oscuro */
  border-radius: 20px;
 
  width: 100%;
  height: 100%;
padding: 26px 30px;
  box-shadow: 0 4px 20px rgba(255,127,0,0.25);
  transition: transform 0.3s, box-shadow 0.3s;
 
  display: flex;
  flex-direction: column;
  border: 2px solid #222;
}

 
.product-cards img {
  width: 100%;
  height: 200px;
  cursor: pointer;
  object-fit: contain;
  border-bottom: 2px solid #222;
  transition: transform 0.3s;
}



.product-cardss {
  background: linear-gradient(160deg, #181b22, #12141a);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: .3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.product-cardss:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,.7);
}

.product-cardss img {
  width: 100%;
  height: 180px;
  object-fit: fill;
}


.product-info {
  padding: 12px;
}

.product-info h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  line-height: 1.3;
}

.price {
  color: #25d366;
  font-weight: bold;
  font-size: 1.1rem;
}





.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
  height: 94%;
}

.slider-track img {
  width: 100%;
  height: 98%;
  object-fit: contain;
  flex-shrink: 0;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  
  background: rgba(0,0,0,0.65);
  border: 1px solid;
  color: white;
  font-size: 18px;
  
  width: 54px;
  height: 86px;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(6px);
  transition: 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* Media luna izquierda */
.slider-arrow.left {
  left: 0;
  border-radius: 0 60px 60px 0;
}

/* Media luna derecha */
.slider-arrow.right {
  right: 0;
  border-radius: 60px 0 0 60px;
}

/* Hover elegante */
.slider-arrow:hover {
  background: rgba(0,0,0,0.85);
  width: 62px;
}

/* Ícono con leve desplazamiento */
.slider-arrow.left:hover i {
  transform: translateX(-3px);
}

.slider-arrow.right:hover i {
  transform: translateX(3px);
}

.slider-arrow i {
  transition: transform 0.25s ease;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1px;
}

.slider-dots span {
  width: 10px;
  height: 10px;
  background: #444;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.slider-dots span.active {
  background: #fff;
  transform: scale(1.3);
}
/* Overlay */

.product-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.product-detail-overlay.hidden {
  display: none;
}


.product-detail-modal {
  background: #141720;
  width: 92%;
  max-width: 900px;
  border-radius: 18px;
  padding: 18px;
  animation: scaleIn .3s ease;
}

@keyframes scaleIn {
  from { transform: scale(.8); opacity: 0 }
  to   { transform: scale(1); opacity: 1 }
}

.close-product-modals {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
align-items: center;
justify-content: center;

  align-items: center;
  justify-content: center;
  font-size: 26px;
 
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.6);
  transition: .25s ease;
  z-index: 10;
}

.close-product-modals:hover {
background: linear-gradient(145deg, rgba(240, 185, 6, 0.4), rgba(221, 7, 7, 0.4));
 
  box-shadow: 0 15px 35px rgba(0,0,0,.8);
}
 


.product-detail-content {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}
 
 
.main-image-wrapper {
  position: relative;
}

.expand-image-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: .25s;
}

.expand-image-btn:hover {
  transform: scale(1.15);
  background: rgba(111,135,255,.6);
}
 
.thumbnail-container::-webkit-scrollbar {
  display: none;
}

/* 🧩 Contenedor */
.thumbnail-container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 30px) / 4); /* 4 items exactos */
  gap: 10px;
  padding: 6px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.thumbnail-container::-webkit-scrollbar {
  display: none;
}

/* 🧷 Miniaturas */
.thumbnail-container img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  opacity: .55;
  transition: .25s;
  border: 2px solid transparent;
}

/* 🌈 Activo */
.thumbnail-container img.active {
  opacity: 1;
  border-color: #6f87ff;
  box-shadow: 0 0 12px rgba(111,135,255,.6);
  transform: scale(1.05);
}

/* 🪄 Hover */
.thumbnail-container img:hover {
  opacity: 1;
  transform: scale(1.08);
}
@media (max-width: 640px) {

  .thumbnail-container {
    gap: 8px;
    padding: 6px 2px;
    grid-auto-columns: calc((100% - 24px) / 4);
  }

  .thumbnail-container img {
    border-radius: 10px;
  }

  .thumbnail-container img.active {
    transform: scale(1.03);
    box-shadow: 0 0 8px rgba(111,135,255,.55);
  }

}


  .whatsapp-btn,
.seller-info-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: .2s;
}

.whatsapp-btn {
  background: linear-gradient(135deg,#25d366,#1ebe5d);
  color: #000;
}
/* Overlay modal producto */
.product-detail-overlay,

.promo-status {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
}

.promo-status.active {
    color: #1cc88a;
}

.promo-status.expired {
    color: #e74a3b;
}

.seller-info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.seller-info-modal {
  background: #141720;
  width: 90%;
  max-width: 420px;
  border-radius: 18px;
  padding: 20px;
}
.close-seller-info {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);

  font-size: 20px;
  font-weight: 600;
  color: #fff;

  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.6);
  transition: .25s ease;
  z-index: 10;
}

.close-seller-info:hover {
  background: linear-gradient(145deg, rgba(240, 185, 6, 0.4), rgba(221, 7, 7, 0.4));
  box-shadow: 0 15px 35px rgba(0,0,0,.8);
}


.seller-info-btn {
  background: linear-gradient(135deg,#5b7cff,#6f87ff);
  color: #fff;
}

.whatsapp-btn:hover,
.seller-info-btn:hover {
  transform: scale(1.05);
}

.hidden {
  display: none;
}

 
 
.seller-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
 
.seller-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1b1f2a;
  padding: 12px;
  border-radius: 12px;
}

.seller-item i {
  font-size: 1.4rem;
  color: #6f87ff;
}

/* ===========================
📱 RESPONSIVE
=========================== */
@media (max-width: 768px) {

  .product-detail-modal {
    width: 95%;
    max-width: 100%;
            max-height: 100vh;
        overflow-y: auto;
    padding: 14px;
    border-radius: 16px;
  }

  .product-detail-content {
    flex-direction: column;
    gap: 14px;
  }

  /* 🖼 Imagen principal */
  #mainProductImage {
    width: 100%;
    height: 260px;
    object-fit: contain;
    border-radius: 14px;
    background: #0f121a;
  }

  .main-image-wrapper {
    width: 100%;
  }

  .expand-image-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
    bottom: 10px;
    right: 10px;
  }

  /* 🧷 Miniaturas */
  .thumbnail-container {
    padding: 6px 0;
    gap: 8px;
  }

  .thumbnail-container img {
        width: 72px;
        height: 64px;
    border-radius: 10px;
  }

  /* 🧾 Info producto */
  .product-detail-info {
    padding-top: 6px;
  }

  .product-detail-info h2 {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .product-detail-info .price {
    font-size: 1.3rem;
    margin: 4px 0 10px;
  }

  .product-detail-info p {
    font-size: .95rem;
    line-height: 1.4;
  }

  /* 🟢 Botones */
  .whatsapp-btn,
  .seller-info-btn {
    padding: 13px;
    font-size: .95rem;
    border-radius: 10px;
  }

  /* ❌ Cerrar */
  .close-product-modals {
    width: 38px;
    height: 38px;
    font-size: 22px;
    top: 10px;
    right: 10px;
  }

  /* 🧑‍💼 Modal vendedor */
  .seller-info-modal {
    width: 94%;
    padding: 16px;
    border-radius: 16px;
  }

  .seller-item {
    padding: 10px;
    gap: 10px;
  }

  .seller-item i {
    font-size: 1.2rem;
  }

  .seller-item span,
  .seller-item strong {
    font-size: .9rem;
  }

  .close-seller-info {
    width: 38px;
    height: 38px;
    font-size: 22px;
    top: 10px;
    right: 10px;
  }

}

@media (max-width: 700px) {
  .product-detail-content {
    flex-direction: column;
  }

  #mainProductImage {
    height: 240px;
  }
}
.logout-modal{
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,.65);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.logout-box{
  background: linear-gradient(160deg, #0f0f16, #14142a);
  border-radius: 18px;
  padding: 28px 24px;
  width: 320px;
  text-align: center;
  color: white;
  box-shadow: 0 0 40px rgba(90,120,255,.35);
  animation: pop .35s cubic-bezier(.2,.8,.2,1);
}

@keyframes pop {
  from { transform: scale(.85); opacity: 0 }
  to   { transform: scale(1); opacity: 1 }
}

.logout-box i{
  font-size: 34px;
  color: #6b85ff;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(100,120,255,.7);
}

.logout-box h3{
  margin: 6px 0;
}

.logout-box p{
  font-size: 13px;
  opacity: .7;
}

.logout-actions{
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.logout-actions button{
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: white;
  transition: all .2s ease;
}

.btn-cancel{
  background: linear-gradient(135deg, #2a2a44, #1b1b30);
}

.btn-cancel:hover{
  transform: translateY(-1px);
}

.btn-confirm{
  background: linear-gradient(135deg, #ff4d5b, #ff1e40);
  box-shadow: 0 0 18px rgba(255,80,100,.5);
}

.btn-confirm:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(255,80,100,.7);
}

/* ===============================
   ICONO DE BUSCAR MODERNO
================================ */
.search-container .search-icon {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #f0a500, #ffc107);
    color: #1a1a1a;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover moderno con escala y cambio de sombra */
.search-container .search-icon:hover {
    background: linear-gradient(135deg, #ffc107, #f0a500);
    transform: translateY(-50%) scale(1.2) rotate(10deg);
    box-shadow: 0 6px 20px rgba(240, 165, 0, 0.6);
    color: #111;
}

/* Presionar icono */
.search-container .search-icon:active {
    transform: translateY(-50%) scale(1.05) rotate(5deg);
    box-shadow: 0 4px 15px rgba(240, 165, 0, 0.4);
}

/* Responsivo para tablets y móviles */
@media (max-width: 768px) {
    .search-container .search-icon {
        font-size: 1.1rem;
        padding: 0.45rem;
    }
}

@media (max-width: 480px) {
    .search-container .search-icon {
        font-size: 1rem;
        padding: 0.4rem;
    }
}
/* ===============================
   BOTÓN CLEAR MODERNO
================================ */
.search-container .clear-btn {
     position: absolute;
    right: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ff3e3e;
    font-size: 1.2rem;
    cursor: pointer;
    text-align: center;
    width: 30px;
    height: 30px;
    display: none;
    transition: all 0.35s ease;
    background: #ffebeb;
    border-radius: 50%;
    padding: 0.4rem;
    box-shadow: 0 4px 12px rgba(255, 62, 62, 0.3);
    align-items: center;
    justify-content: center;
}

/* Hover con efecto flotante y vibrante */
.search-container .clear-btn:hover {
    color: #ffffff;
    background: #ff3e3e;
    transform: translateY(-50%) scale(1.25) rotate(-10deg);
    box-shadow: 0 6px 20px rgba(255, 62, 62, 0.5);
}

/* Presionar el botón */
.search-container .clear-btn:active {
    transform: translateY(-50%) scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 15px rgba(255, 62, 62, 0.4);
}

/* Responsivo para tablets */
@media (max-width: 768px) {
    .search-container .clear-btn {
        font-size: 1.1rem;
        padding: 0.35rem;
    }
}

/* Responsivo para móviles */
@media (max-width: 480px) {
    .search-container .clear-btn {
        font-size: 1rem;
        padding: 0.3rem;
        right: 2rem; /* menos separación para pantallas pequeñas */
    }
}
/* Hidden por defecto */
.subcategory-filters {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  width: 280px;
  background-color: #111827;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

/* Cuando se abre */
.subcategory-filters.open {
  display: flex; /* Importante: reemplaza hidden */
  opacity: 1;
  transform: translateX(0);
}

 
/* 🌑 Overlay */
.subcategory-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
} 

.close-subcategory {
  position: absolute;
  top: 5px;
  right: 5px;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);

  font-size: 20px;
  font-weight: 600;
  color: #fff;

  cursor: pointer;
  transition: .25s ease;
}

.close-subcategory:hover {
  background: linear-gradient(145deg, rgba(240,185,6,.4), rgba(221,7,7,.4));
  box-shadow: 0 12px 30px rgba(0,0,0,.8);
}

#subcategoryTitle {
  font-size: 1.8rem;       /* un poco más grande */
  font-weight: 800;        /* más impactante */
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  
  /* Color degradado */
  background: linear-gradient(90deg, #4da6ff, #965223, #ff5f5f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Sombra suave detrás del texto */
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);

  /* Línea decorativa animada debajo */
  position: relative;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

#subcategoryTitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #4da6ff, #965223, #ff5f5f);
  border-radius: 2px;
  transition: width 0.4s ease;
}

 

@media (max-width: 600px) {
  #subcategoryTitle {
    font-size: 1.25rem;
  }

  .subcategory-results-grid {
    gap: 14px;
  }
}


/* 🧩 Grid resultados */
.subcategory-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap: 14px;
}


/* 🧾 Card producto */
.subcategory-card {
  background: #1b1f2a;
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: .25s;
}

.subcategory-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,.6);
}

/* 🖼️ Imagen */
.subcategory-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 6px;
}

/* 🏷️ Nombre */
.subcategory-card h3 {
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  margin: 4px 0;
}

/* 💰 Precio */
.subcategory-card span {
  color: #6f87ff;
  font-weight: 700;
}

/* 😢 Sin resultados */
.no-products {
  grid-column: 1/-1;
  text-align: center;
  color: #aaa;
  padding: 30px 0;
}



/* 🧿 Imagen principal */
#mainProductImage {
  width: 100%;
  height: 340px;
  border-radius: 18px;
  object-fit: contain;
  background: #000;
  box-shadow: 
    0 20px 40px rgba(0,0,0,.6),
    inset 0 0 0 1px rgba(255,255,255,.05);
  transition: .4s ease;
}

/* ✨ Hover cinematic */
#mainProductImage:hover {
  transform: scale(1.03);
}

.product-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
  
.product-detail-info {
  flex: 1;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(111,135,255,.15), rgba(0,0,0,.3));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06),
              0 20px 40px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
}

/* 🧠 Nombre */
.product-detail-info h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: .4px;
}

/* 💰 Precio tipo neón */
.product-detail-info .price {
  font-size: 1.6rem;
  font-weight: 900;
  color: #25d366;
  text-shadow: 0 0 12px rgba(37,211,102,.5);
  margin-bottom: 14px;
}

/* 📋 Filas info */
.product-detail-info p {
  position: relative;
  padding: 12px 14px;
  margin: 0 0 8px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
  overflow: hidden;
  font-size: .95rem;
  border: 1px solid rgba(255,255,255,.08);
}

/* ✨ Brillo animado */
.product-detail-info p::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-100%);
  transition: .6s;
}

.product-detail-info p:hover::before {
  transform: translateX(100%);
}

/* 🧷 Etiquetas */
.product-detail-info p strong {
  color: #6f87ff;
  font-weight: 700;
}

/* 🧾 Valores */
.product-detail-info p span {
  float: right;
  opacity: .95;
}

/* Modal vendedor */
.seller-info-content {
  font-size: 16px;
  line-height: 1.6;
}

.seller-info-content p {
  margin: 8px 0;
}
 
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal.hidden {
  display: none;
}



.hidden { display: none; }
.search-modal-content {
      width: 100%;
    
    height: 98vh;
  background: #0f1016;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 80px rgba(0,0,0,0.7);
  animation: modalPop .3s ease;
}

@keyframes modalPop {
  from { transform: scale(.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
 .close-search-modal {
 
  top: 18px;
  right: 18px;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  line-height: 1;

  color: #fff;
  background: #1b1c24;

  cursor: pointer;
  z-index: 10;

  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  transition: .25s ease;
}

.close-search-modal:hover {
  background: #4da6ff;
  transform: translateX(-5px);
}



/* =======================
   HEADER BUSCADOR
======================= */
.search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #222;
}


#modalSearchInput {
  flex: 1;
  background: #1a1b22;
  border: none;
  outline: none;
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 16px;
}

.modal-clear-btn,
.modal-search-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);

  color: #b0b3c0;
  font-size: 16px;
  cursor: pointer;

  transition: all .25s ease;
}

/* Hover elegante */
.modal-clear-btn:hover {
  background: rgba(255, 90, 90, 0.15);
  color: #ff5f5f;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 6px 18px rgba(255,95,95,.25);
}

.modal-search-icon:hover {
  background: rgba(77, 166, 255, 0.15);
  color: #4da6ff;
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(77,166,255,.25);
}

/* Click feedback */
.modal-clear-btn:active,
.modal-search-icon:active {
  transform: scale(0.95);
}


/* GRID RESULTADOS */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 20px;
  overflow-y: auto;
  padding-right: 6px;
}
.search-results-grid .product-cards {
    background: #181922;
  border-radius: 16px;
  overflow: hidden;
  padding: 5px;
  cursor: pointer;
  transition: .25s;
}


 /* 🧭 Header filtros — estilo glass */
.filters-top {
      display: flex
;
    align-items: center;
    justify-content: space-between;
width: 100%;

    border-radius: 20px;
    padding: 6px 18px;
    background: rgb(194 147 28 / 59%);
    /* backdrop-filter: blur(14px) saturate(160%); */
    -webkit-backdrop-filter: blur(14px) saturate(160%);
 

}

/* 🏷️ Título */
.filters-top h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #0b1220;
  letter-spacing: -0.01em;
}

/* ⬅️ Botón */
.filter-back-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(145deg, #121212, #4b76cb);
  color: #0b1220;

  

  transition: all 0.25s ease;
  cursor: pointer;
}

.filter-back-btn:hover {
  transform: translateX(-3px);
}

.filter-back-btn:active {
  transform: scale(0.94);
  box-shadow:
    3px 3px 6px rgba(0,0,0,0.1),
   -3px -3px 6px rgba(255,255,255,0.6);
}
 

 

 
.search-results-grid .product-cards:hover {
    transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}

.search-results-grid img {
 width: 100%;
  height: 140px;
  object-fit: cover;
}
.search-results-grid .product-info {
    padding: 12px;
}
 
/* =======================
   RESPONSIVE MOBILE
======================= */
@media(max-width: 768px) {
  .search-modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .search-body {
    flex-direction: column;
  }

  .search-filters {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #222;
  }

  .search-results-grid.product-cards img {
    height: 120px;
  }
}

.search-results-grid .product-info h3 {
  color: #fff;
  font-size: 15px;
}

.search-results-grid .price {
    color: #00ffb3;
  font-weight: bold;
  margin-top: 6px;
  display: block;
}
 /* ANIMACIONES */
@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92) }
  to { opacity: 1; transform: scale(1) }
}
/* 🌑 Fondo del modal */
.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999999;
}

/* 🧊 Caja principal */
.confirm-box {
  background: linear-gradient(145deg, #121212, #1a1a1a);
  border-radius: 20px;
  padding: 30px 26px;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 0 50px rgba(255, 0, 100, 0.15);
  text-align: center;
  animation: scaleIn 0.35s ease;
}

/* 📝 Texto */
.confirm-box p {
  font-size: 1.1rem;
  color: #f1f1f1;
  margin-bottom: 25px;
  font-weight: 500;
}

/* 🎛 Acciones */
.confirm-actions {
  display: flex;
  gap: 12px;
}

/* 🧨 Botón eliminar */
.btn-confirm {
  flex: 1;
  background: linear-gradient(135deg, #ff004c, #ff416c);
  border: none;
  border-radius: 12px;
  padding: 12px 0;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(255, 0, 80, 0.4);
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 0, 80, 0.6);
}

/* ❌ Botón cancelar */
.btn-cancel {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 0;
  font-weight: 600;
  color: #ddd;
  cursor: pointer;
  transition: 0.3s;
}

.btn-cancel:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ✨ Animación */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


.mini-modal{
  position: fixed;
  inset: 0;
  
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  animation: fadeIn .25s ease;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to   { opacity: 1 }
}

.mini-content{
  background: linear-gradient(160deg, #0f0f16, #141425);
  color: #fff;
  padding: 26px 22px;
  border-radius: 18px;
  width: 300px;
  text-align: center;
  box-shadow:
    0 0 25px rgba(80,120,255,.25),
    0 0 60px rgba(80,120,255,.12);
  animation: scaleIn .35s cubic-bezier(.2,.8,.2,1);
}

@keyframes scaleIn {
  from { transform: scale(.85); opacity: 0 }
  to   { transform: scale(1);  opacity: 1 }
}

.mini-content h3{
  margin-bottom: 14px;
  font-size: 18px;
  letter-spacing: .3px;
}

.mini-content input{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: #0b0b14;
  color: #fff;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  transition: all .2s ease;
}

.mini-content input:focus{
  box-shadow:
    0 0 0 2px rgba(90,120,255,.6),
    0 0 20px rgba(90,120,255,.4);
}

.mini-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  margin-top:16px;
}

.mini-actions button{
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .3px;
  color: white;
  background: linear-gradient(135deg, #5b7cff, #7c5cff);
  box-shadow: 0 6px 18px rgba(90,120,255,.45);
  transition: all .2s ease;
}

.mini-actions button:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(90,120,255,.6);
}

.mini-actions button:active{
  transform: scale(.96);
}

.mini-actions button:last-child{
  background: linear-gradient(135deg, #ff5b6e, #ff3d5a);
  box-shadow: 0 6px 18px rgba(255,80,100,.45);
}

.mini-actions button:last-child:hover{
  box-shadow: 0 10px 25px rgba(255,80,100,.6);
}

 
#sellerInfoContent a:hover {
  text-shadow: 0 0 6px rgba(90,120,255,.6);
}

/* =============================
   GIF FLOTANTE INFERIOR DERECHA
============================= */
.floating-gif {
  position: fixed;
       bottom: 5px;
    width: 141px;
    height: 135px;
    z-index: 9;
 
}

.floating-gif img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    /* 🌟 Borde luminoso blanco alrededor de toda la figura */
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.9))
            drop-shadow(0 0 1px rgba(255,255,255,0.6))
            drop-shadow(0 0 1px rgba(255,255,255,0.35));
}
.featured-track .img-wrap {
  position: relative;
  display: inline-block;
}

.featured-track .expand-btn {
  position: absolute;
  top: 6px;
  font-size: 25px;
  right: 6px;
  background: rgba(0,0,0,.65);
  color: white;
  border-radius: 50%;
  padding: 6px;
  cursor: pointer;
  z-index: 5;
  transition: .2s;
}

.featured-track .expand-btn:hover {
  transform: scale(1.15);
}
 

 
/* Adaptación a pantallas pequeñas */
@media (max-width: 480px) {
  .close-search-modal {
  
  height: 38px;
  }
  .floating-gif {
             width: 110px;
        height: 111px;
        bottom: 10px;
  }
}
.modern-link-modal {
  width: 420px;
  background: #0f1117;
  border-radius: 18px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

.link-type-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.link-option {
  flex: 1;
  background: #1b1f2a;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: .2s;
}

.link-option.active {
  background: linear-gradient(135deg,#4facfe,#00f2fe);
  color: #000;
  font-weight: 600;
}

.link-option input { display: none; }

.link-section input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: #1b1f2a;
  border: none;
  color: #fff;
}

.product-picker-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: #1b1f2a;
  color: #fff;
  border: none;
  cursor: pointer;
}

.selected-product-preview {
  margin-top: 10px;
  background: #1b1f2a;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  color: #4facfe;
}


/* 🧺 Fondo del modal */
.product-picker {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 🪟 Tarjeta principal */
.product-picker-card {
  width: 420px;
  max-width: 92%;
  background: linear-gradient(180deg, #0f1322, #0a0d1a);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  padding: 22px;
  animation: pop .35s ease;
}

/* ✨ Animación */
@keyframes pop {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

/* 🧭 Header */
.product-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-picker-header h3 {
  color: #fff;
  font-size: 1.25rem;
}

/* ❌ Botón cerrar */
#closeProductPicker {
  background: rgba(255,255,255,.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  transition: .25s;
}
#closeProductPicker:hover {
  background: rgba(255,255,255,.18);
}

/* 🔍 Buscador */
#productSearch {
  width: 100%;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,.08);
  color: #fff;
  outline: none;
}

/* 🧱 Grid productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

/* 📦 Producto */
.product-item {
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: .25s;
  border: 2px solid transparent;
}

.product-item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.12);
}

.product-item.active {
  border-color: #00e0ff;
  box-shadow: 0 0 0 2px rgba(0,224,255,.3);
}

/* 🖼 Imagen */
.product-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

/* 🏷 Nombre */
.product-item span {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: .85rem;
}

/* 🧷 Botón confirmar */
#confirmProductBtn {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #00e0ff, #0077ff);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: .25s;
}

#confirmProductBtn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* 🧩 Sección enlace producto */
#productLinkSection {
  margin-top: 10px;
  text-align: center;
}

#openProductPicker {
  padding: 10px 16px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #7c6cff, #3f2bff);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
}

#openProductPicker:hover {
  transform: translateY(-2px);
}

/* ✅ Producto seleccionado */
.selected-product {
  margin-top: 10px;
  background: rgba(0,224,255,.12);
  border: 1px solid rgba(0,224,255,.4);
  padding: 10px;
  border-radius: 12px;
  color: #00e0ff;
  font-size: .9rem;
  animation: glow .8s ease;
}

@keyframes glow {
  from { box-shadow: 0 0 0 rgba(0,224,255,0); }
  to   { box-shadow: 0 0 15px rgba(0,224,255,.6); }
}
/* 🌑 Fondo general */
/* 🌌 CONTENEDOR PRINCIPAL */
.promo-container{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99;
  backdrop-filter: blur(10px);
}
/* 🏷 TÍTULO SECCIÓN */
.promo-section-title{
  margin: 10px 0 14px;
  text-align: center;
}

.promo-section-title h3{
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg,#ffd700,#ff9f00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.promo-sub{
  font-size: 12px;
  color: #aaa;
  letter-spacing: .5px;
}
.promo-progress{
  width: 100%;
  margin: 10px 0 14px;
}
.promo-progress-bar{
  height: 10px;
}
.promo-progress{
  position: sticky;
  top: 0;
  z-index: 10;
  background: #222;
}

/* 💎 TARJETA PRINCIPAL */
.promo-card{
 width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  background: linear-gradient(160deg,#0d0d0d,#151515);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 0 60px rgba(255,215,0,.18);
  color: #fff;
  animation: scaleIn .35s ease;
}

@keyframes scaleIn{
  from{transform:scale(.85); opacity:0}
  to{transform:scale(1); opacity:1}
}
.promo-card h2 {
    text-align: center;
    font-size: clamp(22px, 5vw, 28px); /* tamaño responsivo */
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    font-weight: 700;
    background: linear-gradient(90deg, #00f5ff, #00ffa6, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    animation: gradientShift 3s ease infinite alternate;
}

/* Animación de cambio de gradiente */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* 🧱 GRID DE PUBLICIDADES */
.promo-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
  gap: 12px;
  margin-bottom: 18px;
}
/* ➕ SUBIR */
.promo-upload {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 16px;
    background:rgb(149 107 22 / 59%);
    cursor: pointer;
    transition: all 0.35s ease;
    backdrop-filter: blur(6px); /* efecto vidrio moderno */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
/* Contenedor de la sección */
#itemAttachSection {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Botón de abrir selector */
#openItemChooserBtn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #00f5ff, #00ffa6);
    color: #111;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

#openItemChooserBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
}

/* Preview de producto seleccionado */
#chosenItemPreview {
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, #fffa65, #ffd700);
    color: #111;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: fadeIn 0.5s ease forwards;
}

/* Animación suave de fade-in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

 
.promo-upload:hover {
    
    transform: scale(1.05); /* ligero zoom al pasar mouse */
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4); /* resalta más */
}

/* 📊 PROGRESO */
.promo-progress{
  background:#222;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
  position: relative;
}
.promo-progress-bar{
  height: 8px;
  background: linear-gradient(90deg,#ffd700,#ff9900);
}
.promo-progress-text{
  position: absolute;
  right: 10px;
  top: -18px;
  font-size: 12px;
}
.btn-close {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 46px;
  height: 46px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);

  font-size: 26px;
  font-weight: 600;
  color: #fff;

  cursor: pointer;
  user-select: none;

  box-shadow: 0 12px 30px rgba(0,0,0,.7);
  transition: .25s ease;
  z-index: 1000;
}

.btn-close:hover {
  background: linear-gradient(145deg, rgba(240, 185, 6, 0.4), rgba(221, 7, 7, 0.4));
  box-shadow: 0 18px 45px rgba(0,0,0,.9);
}
 
/* 🔗 Modal enlace */
.attach-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6000;
}
.attach-content {
  width: 90%;
  max-width: 420px;
  background: #111420;
  border-radius: 18px;
  padding: 22px;
  color: #fff;
}

/* 🔘 Selector */
.attach-selector {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}
.attach-type {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: #1c2035;
  cursor: pointer;
  transition: .25s;
}
.attach-type.active {
  background: linear-gradient(135deg, #5d8cff, #8ca1ff);
}

/* 🧾 Inputs */
.attach-content input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: #1b1f32;
  color: #fff;
  margin-bottom: 14px;
}

/* 🎛 Acciones */
.attach-actions {
  display: flex;
  gap: 12px;
}
.attach-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
#attachSaveBtn {
  background: linear-gradient(135deg, #4f7cff, #8c9eff);
  color: #fff;
}
#attachCancelBtn {
  background: #2a2e45;
  color: #ddd;
}

/* 🧺 Selector productos */
/* Modal completo */
.item-chooser {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    width: 100vw;
    height: 100vh;
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 16px;
    overflow-y: auto;
}


/* Card del modal */
.item-chooser-card {
    background: #111;
    border-radius: 16px;
   width: 100%;
    /* max-width: 480px; */
    height: 100%;
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 0 40px rgba(0,255,255,0.2);
    animation: pop 0.4s ease;
}

/* Header del modal */
.item-chooser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-chooser-header h3 {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 700;
    color: #00f5ff;
    margin: 0;
    letter-spacing: 0.5px;
}

 
/* Input de búsqueda */
#itemSearchInput {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#itemSearchInput::placeholder {
    color: rgba(255,255,255,0.5);
}

#itemSearchInput:focus {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(0,255,255,0.5);
}
#itemChooserClose:hover {
    color: #ff5050;
    transform: scale(1.1);
}


/* Grid de productos */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    max-height: 100%;
    overflow-y: auto;
    padding: 4px 0;
}

/* Botón de confirmación */
#itemConfirmBtn {
    padding: 12px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(90deg,#00f5ff,#00ffa6);
    color: #111;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#itemConfirmBtn:disabled {
    background: rgba(255,255,255,0.1);
    color: #555;
    cursor: not-allowed;
}

#itemConfirmBtn:not(:disabled):hover {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(0,255,255,0.5);
}

/* Animación del modal */
@keyframes pop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.chooser-item {
  background: #181c2f;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: .25s;
}
.chooser-item img {
  width: 100%;
    height: 66px;

  object-fit: fill  ;
}
.chooser-item span {
  display: block;
  padding: 8px;
  text-align: center;
}
.chooser-item.active {
  outline: 2px solid #6c8cff;
  transform: scale(1.04);
}

/* 🧼 Utilidades */
.hidden { display: none !important; }

@keyframes scaleIn {
  from { transform: scale(.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
 /* 🖼 BANNER */
.promo-banner{
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}
.promo-banner img{
  width: 100%;
  height: 50%;
  display: block;
}
.promo-highlight-grid{
  margin-top: 6px;
}

.highlight-card{
  position: relative;
  box-shadow: 0 0 25px rgba(255,215,0,.25);
  border: 1px solid rgba(255,215,0,.4);
}

.highlight-card img{
  height: 120px;
}

.highlight-badge{
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg,#ffd700,#ff9f00);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(255,215,0,.7);
}
.ad-info{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:8px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  font-size:11px;
  color:#fff;
}
.expired-badge {
  background: linear-gradient(135deg,#555,#222) !important;
  color: #bbb !important;
  box-shadow: none !important;
}
@media (max-width: 600px) {

  .ad-info {
    padding: 6px 7px;
    font-size: 10px;
    background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
  }

  .expired-badge {
    font-size: 10px !important;
    padding: 4px 8px !important;
    border-radius: 7px !important;
  }

}

.ad-created{
  opacity:.8;
}
.ad-time {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.count-active {
  font-size: 12px;
  font-weight: 600;
  color: #28e98c;
  display: flex;
  align-items: center;
  gap: 4px;
}

.count-time {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(135deg, #222, #111);
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-block;
  width: fit-content;
  letter-spacing: .3px;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
}

.count-expired {
  font-size: 12px;
  font-weight: 600;
  color: #ff4d4d;
  background: rgba(255, 77, 77, .15);
  padding: 6px 10px;
  border-radius: 8px;
}
@media (max-width: 600px) {

  .ad-time {
    margin-top: 4px;
    gap: 3px;
  }

  .count-active {
    font-size: 11px;
  }

  .count-time {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 7px;
    letter-spacing: .2px;
  }

  .count-expired {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 7px;
  }

}


/* ⭐ BOTÓN DESTACAR */
.btn-destacar{
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg,#ffd700,#ff9f00);
  color: #000;
  font-weight: 800;
  cursor: pointer;
  margin: 12px 0 20px;
  transition: .3s;
}
.btn-destacar:hover{
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255,215,0,.7);
}

.highlight-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}

.highlight-card {
  width: 50%;
  background: linear-gradient(145deg,#111,#1b1b1b);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 40px rgba(255,215,0,.25);
  position: relative;
}
.close-highlight {
  position: absolute;
  top: 5px;
  right: 5px;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);

  font-size: 20px;
  font-weight: 600;
  color: #fff;

  cursor: pointer;
  transition: .25s ease;
}

.close-highlight:hover {
  background: linear-gradient(145deg, rgba(240,185,6,.4), rgba(221,7,7,.4));
  box-shadow: 0 12px 30px rgba(0,0,0,.8);
}
 

.highlight-sub {
  color:#ccc;
  margin-bottom:18px;
}

.plan-box {
  background:#0f0f0f;
  border-radius:14px;
  padding:20px;
  border:1px solid rgba(255,215,0,.25);
}

.plan-header {
  margin-bottom: 15px;
}

.plan-badge {
  background: gold;
  color:#000;
  font-size:12px;
  padding:4px 10px;
  border-radius:20px;
  font-weight:700;
}

.plan-price {
  margin:15px 0;
  font-size:32px;
  font-weight:800;
}

.plan-price .currency {font-size:20px; vertical-align: top;}
.plan-price .time {font-size:14px; color:#aaa;}

.plan-benefits {
  list-style:none;
  padding:0;
  text-align:left;
  margin:15px 0;
}
.plan-benefits li {
  padding:6px 0;
  font-size:14px;
}


 
.btn-pay {
  width:100%;
  padding:14px;
  border-radius:10px;
  border:none;
  background: linear-gradient(135deg,#ffd700,#ff9f00);
  color:#000;
  font-weight:800;
  cursor:pointer;
  margin-top:10px;
  transition:.3s;
}

.btn-pay:hover {
  transform: scale(1.05);
  box-shadow:0 0 20px rgba(255,215,0,.6);
}

.plan-note {
  font-size:11px;
  color:#777;
  margin-top:10px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.plan-box.featured {
  border: 2px solid gold;
  box-shadow: 0 0 30px rgba(255,215,0,.4);
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-box.featured {
    transform: scale(1);
  }
}
@media (max-width: 600px) {

  /* 🧱 Permitir scroll vertical del modal */
  .highlight-modal {
    align-items: flex-start;
    padding: 12px;
    overflow-y: auto;
  }

  /* 🧾 Tarjeta principal */
  .highlight-card {
    width: 100%;
    padding: 18px 14px 20px;
    border-radius: 16px;
    margin-top: 40px;
  }

  /* ❌ Botón cerrar siempre visible */
  .close-highlight {
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  /* 🏷️ Texto */
  .highlight-sub {
    font-size: 13px;
    margin-bottom: 14px;
  }

  /* 📦 Planes */
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .plan-box {
    padding: 16px;
    border-radius: 12px;
  }

  .plan-price {
    font-size: 26px;
  }

  .plan-price .currency {
    font-size: 16px;
  }

  .plan-benefits li {
    font-size: 13px;
  }

  .btn-pay {
    padding: 12px;
    font-size: 14px;
  }

  .plan-note {
    font-size: 10px;
  }
}


/* 🧲 Fuerza overflow real en ambos sliders */
.featured-slider {
    white-space: nowrap;
}

.featured-track {
    display: inline-flex;   /* 👈 CRÍTICO */
}

.featured-ads-section {
    margin: 2.5rem auto;
    padding: 1rem;
    max-width: 1300px;
}

.featured-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #f0a500;
    text-align: center;
    margin-bottom: 1.2rem;
    letter-spacing: .4px;
}
.featured-slider::-webkit-scrollbar {
    display: none;               /* Chrome / Safari */
}
* {
     scrollbar-width: none!important ; 
}
/* Sensación táctil premium */
.featured-slider {
    cursor: grab;
}

.featured-slider.dragging {
    cursor: grabbing;
}
.featured-slider {
    position: relative;
  overflow-x: scroll;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;  
 
    display: flex;
    padding: 1.2rem;
    gap: 1rem;
    border-radius: 18px;
    background: linear-gradient(145deg, #151515, #0c0c0c);
}

.featured-slider::-webkit-scrollbar {
    display: none;
}
.featured-track {
    display: flex;
    gap: 1rem;
    padding-right: 40px;
    width: max-content;
}

.featured-track.auto-scroll {
    animation: scrollTrack 35s linear infinite;
}

.featured-track.paused {
    animation-play-state: paused;
}

@keyframes scrollTrack {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


.featured-track img {
    flex: 0 0 auto;
    width: 260px;
    height: 240px;
    border-radius: 18px;
    object-fit: fill;
    box-shadow: 0 10px 28px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: all .35s ease;
    transform-origin: center;
}

.featured-track img:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 40px rgba(240,165,0,0.45);
    z-index: 2;
}

/* 🎯 Mobile */
@media (max-width: 768px) {
    .featured-track img {
        width: 180px;
        height: 120px;
    }
}

 

 
@media (max-width: 480px) {

  .highlight-card {
    width: 100%;
  }
  .promo-banner img {
    
    height: 32%;
  
}
    .featured-track img {         width: 167px;
        height: 178px; }
}








.featured-subtitle {
    margin: 1.8rem 0 .8rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffcc70;
    text-align: center;
}
 
 

 
.featured-slider.dragging {
    cursor: grabbing;
}
.featured-slider,
.vendor-slider {
    scroll-behavior: auto; /* evita salto visual */
}
@media (max-width: 480px) {
    .featured-slider {
        padding: .7rem;
        gap: .6rem;
        border-radius: 14px;
    }

    .featured-title {
        font-size: 1.4rem;
    }

    .featured-subtitle {
        font-size: 1.1rem;
            margin: 0.8rem 0 .8rem;
    }

    .featured-ads-section {
        padding: .6rem;
            margin: 0.5rem auto;
    }
}

.highlight-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}

.highlight-actions button {
  background: rgba(0,0,0,.6);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  transition: .2s;
}

.highlight-actions button:hover {
  background: #ffcc00;
  color: #000;
}
/* =======================
   CUERPO
======================= */
.search-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}
 

.filter-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.filter-group label {
  color: #aaa;
  margin-bottom: 6px;
  font-size: 14px;
}
.price-range {
  display: flex;
  gap: 10px;
}
.filter-group select,
.price-range input {
  background: #1b1c24;
  border: none;
  width: 100%;
  border-radius: 10px;
  padding: 10px;
  color: #fff;
}


.search-filters {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #14151c;
  padding: 22px;
  border-left: 1px solid #222;
  transition: .35s cubic-bezier(.4,0,.2,1);
  z-index: 30;
  box-shadow: -10px 0 30px rgba(0,0,0,.4);
}

.search-filters.open {
  right: 0;
}
.open-filters-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4da6ff, #6a5cff);
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  box-shadow: 0 6px 18px rgba(77,166,255,.35);
}

.open-filters-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 10px 25px rgba(77,166,255,.5);
}


 
.apply-filters-btn {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #4da6ff, #6a5cff);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: .2s;
}

.apply-filters-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(77,166,255,.4);
}

.search-results-section {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
#resultsCount {
  color: #cfd3ff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
}

.close-sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* espacio entre texto e ícono */

  padding: 0 12px; /* ancho dinámico según texto */
  height: 44px;
  border-radius: 50px; /* cápsula */
  
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background:#965223;

  cursor: pointer;
  border: none;
  outline: none;

  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  transition: all .25s ease;
}

.close-sidebar-btn:hover {
  background: #4da6ff;
  transform: translateX(-5px);
}

.close-sidebar-btn i {
  font-size: 18px; /* tamaño del icono */
}

/* Opcional: texto dentro de todos los botones */
.close-sidebar-btn .btn-text {
  white-space: nowrap;
}

/* ===============================
   Responsivo para móviles
================================ */
@media (max-width: 480px) {
    

    .sidebar-menu {
        width: 83%;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
}
/* =========================== */
/* Adaptación para celulares */
@media (max-width: 480px) {
  .close-sidebar-btn {
    height: 38px; /* un poco más pequeño */
    padding: 0 10px;
    font-size: 14px; /* texto más legible en móvil */
    gap: 4px; /* menos espacio entre icono y texto */
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }

  .close-sidebar-btn i {
    font-size: 16px; /* icono más pequeño */
  }
}
@media (max-width: 768px) and (min-width: 481px) {
   

    .sidebar-menu {
        width: 240px;
        padding: 1.8rem 1.2rem;
        gap: 1.2rem;
    }
}

/* ===============================
   MEDIA QUERIES - CELULAR
================================ */
@media (max-width: 768px) {
    

    header .logo h1 {
        font-size: 1.5rem;
    }

    .search-container {
        width: 100%;
        max-width: none;
    }

    .search-container input {
        font-size: 0.95rem;
        padding: 0.55rem 2.2rem 0.55rem 1rem;
    }

    .search-container .search-icon {
        font-size: 1rem;
    }

    .search-container .clear-btn {
        font-size: 1rem;
                right: 2.5rem;
    }

    
}
/* ===============================
   MEDIA QUERIES - CELULAR
================================ */
@media (max-width: 768px) {

    /* Header en móviles: logo + botones en la misma fila */
    header {
        flex-wrap: wrap;
        padding: 5px;
        gap: 4px;
        display: flex;
        align-items: center;
    }

    /* Contenedor del logo y botones */
    .logo,
    #loginButtonsContainer,
    .user-avatar-container {
        display: flex;
        align-items: center;
    }

    /* Logo al inicio */
    .logo {
        flex: 1 1 auto;
        gap: 8px; /* espacio entre logo e h1 */
    }

    /* Botones de login en la misma fila que el logo */
   #loginButtonsContainer {
    display: flex;               /* habilita flexbox */
    justify-content: space-between!important; /* separa los botones a ambos extremos */
    align-items: center;         /* centra verticalmente si son de distinta altura */
    width: 100%;                 /* ocupa todo el ancho del contenedor padre */
    gap: 6px;                    /* opcional: espacio mínimo entre ellos */
}


    /* Avatar (si existe) también a la derecha */
    .user-avatar-container {
        order: 2;
        margin-left: auto;
    }

    /* Texto del logo más pequeño en móviles */
    header .logo h1 {
        font-size: 1.5rem;
    }

    /* Search debajo de logo + botones */
    .search-container {
        order: 3; /* siempre debajo */
        width: 100%;
        margin-top: 0.5rem;
        display: flex;
        align-items: center;
    }

    .search-container input {
        width: 100%;
        font-size: 0.95rem;
        padding: 0.55rem 2.2rem 0.55rem 1rem;
    }

    .search-container .search-icon {
        font-size: 1rem;
        right: 0.6rem;
    }

    .search-container .clear-btn {
        font-size: 1rem;
        right: 2.5rem;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {


  #addProductForm{
    margin-top: 25px;
  }
    header .logo-img {
        width: 40px;
        height: 40px;
    }

    .menu-icon {
        width: 42px;
        height: 42px;
    }

    header .logo h1 {
        font-size: 1.3rem;
    }

    .search-container input {
        font-size: 0.9rem;
    }

    .search-container .search-icon,
    .search-container .clear-btn {
        font-size: 0.95rem;
        width: 25px;
        height: 25px;
    }

    .user-avatar-container .menu-label {
        font-size: 0.85rem;
    }

    #loginButtonsContainer button {
        font-size: 13px;
        padding: 5px 12px;
    }
}

/* ===============================
   RESPONSIVE MOBILE HEADER
================================ */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 5px;
            gap: 4px;
    }

    .logo {
        flex: 1 1 auto;
    }

    .user-avatar-container {
        order: 2; /* a la derecha del logo */
        margin-left: auto;
    }

    .search-container {
        order: 3; /* debajo de logo + avatar */
        margin-top: 0.5rem;
    }

    .search-container input {
        font-size: 0.9rem;
        padding: 0.6rem 2.5rem 0.6rem 0.8rem;
    }

    .search-container .search-icon {
        font-size: 1.1rem;
        right: 0.6rem;
    }

    .search-container .clear-btn {
        font-size: 1.1rem;
        right: 3rem;
        padding: 0.3rem;
    }

     
}
@media (max-width: 480px) {
    header .logo-img {
        width: 40px;
        height: 40px;
    }
.menu-icon{
      width: 42px;
    height: 42px;
}
    .search-container .clear-btn {
        font-size: 1.1rem;
        right: 3rem;
        padding: 0.3rem;
    }
    header .logo h1 {
        font-size: 1.3rem;
    }

    .search-container input {
        font-size: 0.9rem;
    }

    .search-container .search-icon,
    .search-container .clear-btn {
        font-size: 0.95rem;
                width: 25px;
        height: 25px;
    }

    .user-avatar-container .menu-label {
        font-size: 0.85rem;
    }
}
.subcategory-modal-content {
position: relative;
    width: 100%;
    /* max-height: 100vh; */
    height: 100%;
    margin: auto;
  background: linear-gradient(160deg, #0f172a, #020617);
  border-radius: 22px;
  padding: 26px 26px 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  animation: modalPop .35s ease;
}

@keyframes modalPop {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}



.subcategory-header-left {
  display: flex;
  flex-direction: column;
}

.subcategory-count {
 color: #cfd3ff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
}
/* ===== Botón de Filtros del Subcategory Modal ===== */
#openSubcategoryFiltersBtn {
  background-color: #1f2937; /* gris oscuro */
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#openSubcategoryFiltersBtn:hover {
  background-color: #374151; /* más claro al hover */
  transform: translateY(-2px);
}

#openSubcategoryFiltersBtn:active {
  transform: translateY(0);
  background-color: #4b5563;
}

/* ===== Panel de Filtros del Subcategory Modal ===== */
#subcategoryFiltersPanel {
  position: absolute;
  top: 50px; /* ajusta según tu modal */
  right: 0;
  width: 280px;
  background-color: #111827; /* gris muy oscuro */
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  display: none; /* se mostrará con la clase .open */
  flex-direction: column;
  gap: 12px;
  z-index: 100;
  transition: all 0.3s ease;
}

#subcategoryFiltersPanel.open {
  display: flex;
}

/* Botones del panel */
#subcategoryFiltersPanel button {
 margin-top: 15px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #4da6ff, #6a5cff);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: .2s;
}

#subcategoryFiltersPanel button:hover {
    transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(77,166,255,.4);
}

 
 
 
/* Inputs y selects */
#subcategoryFiltersPanel input,
#subcategoryFiltersPanel select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #374151;
  background-color: #1f2937;
  color: #f9fafb;
  font-size: 14px;
  transition: border 0.2s ease;
}

#subcategoryFiltersPanel input:focus,
#subcategoryFiltersPanel select:focus {
  outline: none;
  border-color: #2563eb;
}

/* Labels */
#subcategoryFiltersPanel label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #d1d5db;
  gap: 4px;
}

/* Animación de apertura */
#subcategoryFiltersPanel {
   position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #14151c;
  padding: 22px;
  border-left: 1px solid #222;
  transition: .35s cubic-bezier(.4,0,.2,1);
  z-index: 30;
  box-shadow: -10px 0 30px rgba(0,0,0,.4);
}

#subcategoryFiltersPanel.open {
  right: 0;
}

 
/* Para que el botón y el panel se vean integrados */
.subcategory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
    padding: 7px 18px;
  gap: 12px;
  position: relative;
}
/* Contenedor general de anuncios globales */
.global-ads-section {
    margin-top: 24px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 25px rgba(0, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s ease;
}

/* Título moderno */
.global-ads-section .section-title {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 700;
    color: #00f5ff;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Grid de anuncios */
.global-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 0;
}
/* =========================
   Mensaje de anuncios pausados
========================= */
.promo-paused-info {
  margin-top: 16px;
  padding: 12px 16px;
  background-color: #fff1f0; /* fondo rojo suave */
  color: #cf1322; /* rojo intenso para el texto */
  border-left: 4px solid #ff4d4f; /* barra lateral roja */
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-paused-info i {
  color: #cf1322;
  font-size: 16px;
}

/* Responsivo para móviles */
@media (max-width: 480px) {
  .promo-paused-info {
    font-size: 12px;
    padding: 10px 12px;
  }

  .promo-paused-info i {
    font-size: 14px;
  }
}

/* Card individual de anuncio */
.ad-card {
   width: 100%;
    color: #111;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,255,255,0.25);
    text-align: center;
    transition: all 0.3s ease;
}

.ad-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,255,255,0.5);
}

/* Botón de subir anuncio */
.global-ads-section .ads-upload {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.global-ads-section .ads-upload:hover {
    background: linear-gradient(90deg, #00f5ff, #00ffa6);
    color: #111;
}

/* Barra de progreso */
.upload-progresss {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-progress-bars {
    width: 100%;
    height: 10px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
}

.upload-progress-bars::after {
    content: '';
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00f5ff, #00ffa6);
    transition: width 0.4s ease;
}

.upload-progress-texts {
    font-size: 14px;
    color: #00ffa6;
    font-weight: 600;
    text-align: right;
}
.global-ads-section {
    margin-top: 24px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(0,0,0,0.05);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.global-ads-section .section-title {
    font-size: clamp(20px,5vw,26px);
    font-weight: 700;
    color: #00f5ff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Grid de anuncios */
.global-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

/* Card de cada anuncio */
.ad-card-global {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 15px rgba(0,255,255,0.2);
    transition: all 0.3s ease;
}

.ad-card-global img {
    width: 100%;
    display: block;
    cursor: pointer;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.ad-card-global .ad-footer {
    padding: 6px;
    text-align: center;
    font-size: 12px;
    color: #00ffa6;
    font-weight: 600;
    background: rgba(0,0,0,0.4);
}

.ad-card-global button.pause-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255,0,0,0.7);
    border: none;
    color: #fff;
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.ad-card-global button.pause-btn:hover {
    background: rgba(255,0,0,1);
}

/* Modal confirmación pausa */
#pauseConfirmModal {
    position: fixed;
    inset: 0;
    
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#pauseConfirmModal .mini-content {
    background: #111;
    padding: 20px 28px;
    border-radius: 16px;
    width: min(90%, 320px);
    text-align: center;
    box-shadow: 0 0 40px rgba(0,255,255,0.25);
}

#pauseConfirmModal .mini-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

#pauseConfirmModal button {
    padding: 8px 16px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

#pauseConfirmModal button#confirmPauseBtn {
    background: #00f5ff;
    color: #111;
}

#pauseConfirmModal button#cancelPauseBtn {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.ad-img-container img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.pause-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

 .admin-products-section {
  margin-top: 40px;
}

.admin-image-wrapper {
  position: relative;
}

.admin-trash {
  position: absolute;
  top: 8px;
  right: 8px;
  color: white;
  background: rgba(0,0,0,.6);
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
}
.confirm-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.confirm-actions button {
  flex: 1;
  height: 46px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}

/* 🔴 Eliminar */
#adminDeleteYes {
  background: linear-gradient(135deg, #ff3b3b, #ff1f1f);
  color: white;
  box-shadow: 0 6px 16px rgba(255, 59, 59, 0.35);
}

#adminDeleteYes:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 22px rgba(255, 59, 59, 0.5);
}

/* ⚪ Cancelar */
#adminDeleteNo {
  background: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid rgba(255,255,255,.08);
}

#adminDeleteNo:hover {
  background: #2a2a2a;
  color: white;
}

/* ✨ Micro feedback */
.confirm-actions button:active {
  transform: scale(.97);
}
.promo-admin-only {
  display: none;
}
/* ==============================
   🌟 TOP FEATURED AD
============================== */

.top-featured-ad {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 22px;
  overflow: hidden;
  margin: 20px 0 30px;
  cursor: pointer;
  background: #0b0b0b;
  box-shadow:
    0 20px 40px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.05);
  transition: transform .4s ease, box-shadow .4s ease;
}

.top-featured-ad:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 30px 60px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.08);
}

 #topFeaturedImage {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* 🔥 llena sin deformar */
  object-position: center; /* centra el foco de la imagen */
  display: block;
}
.ad-expire {
  font-size: 12px;
  color: #ffb347;
 
}


.top-featured-ad:hover #topFeaturedImage {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Overlay con degradado */
.top-featured-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.75) 80%);
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

/* Badge */
.top-featured-overlay span {
  background: linear-gradient(135deg, #ff7a00, #ffb000);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .5px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(255,122,0,.4);
  animation: glow 2s infinite alternate;
}

/* Animación de brillo */
@keyframes glow {
  from { box-shadow: 0 0 10px rgba(255,160,50,.5); }
  to   { box-shadow: 0 0 25px rgba(255,160,50,.9); }
}

/* 📱 Responsive */
@media (max-width: 900px) {
  .top-featured-ad { height: 230px; }
}

@media (max-width: 600px) {
  .top-featured-ad { height: 190px; border-radius: 16px; }
  .top-featured-overlay { padding: 14px; }
  .top-featured-overlay span {
    font-size: 12px;
    padding: 6px 12px;
  }
}

 