/* --- Responsive catálogo para móvil --- */

/* Ocultar botón search-close en el catálogo */
.search-close {
    display: none !important;
}

/* Ocultar menú móvil en PC */
@media screen and (min-width: 769px) {
    .menu-left {
        display: none !important;
    }
    .sidebar-menu {
        display: none !important;
    }
    .sidebar-overlay {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .menu-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .menu-text {
        color: #00aaff;
        font-size: 1.1rem;
        font-weight: bold;
        letter-spacing: 0.5px;
        user-select: none;
        text-shadow: 0 2px 8px #000000;
        background: none;
        padding: 0;
        margin: 0;
        cursor: pointer;
        transition: color 0.2s;
        display: flex;
        align-items: center;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 30px;
        position: relative;
        margin: 0;
        z-index: 10;
    }
    .menu-toggle::before {
        content: "☰";
        font-size: 1.8rem;
        color: #00aaff;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .sidebar-menu {
        left: -250px;
        width: 200px;
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        height: 100vh;
        background: #23232b;
        z-index: 2002;
        padding: 15px 0;
        transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
        box-shadow: 2px 0 16px #000a;
        overflow-y: auto;
        border-right: 2px solid #00aaff;
    }
    .sidebar-menu.active {
        left: 0;
    }
    .sidebar-overlay {
        display: none;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(24, 25, 32, 0.7) !important;
        z-index: 2000 !important;
        cursor: pointer !important;
    }
    .sidebar-menu.active ~ .sidebar-overlay {
        display: block !important;
    }
    .sidebar-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 30px;
        margin-top: 5px;
    }
    .sidebar-logo img {
      width: 55px;
      height: 55px;
      object-fit: contain;
      border-radius: 10px;
      box-shadow: 0 2px 8px #00aaff44;
      background: #181920;
      margin-bottom: 10px;
    }
    .sidebar-logo .sidebar-logo-titulo {
        color: #00aaff;
        font-size: 1.1rem;
        font-weight: bold;
        margin-top: 6px;
        text-align: center;
        text-shadow: 0 2px 8px #000000;
        letter-spacing: 0.5px;
    }
    .sidebar-search-bar,
    .sidebar-directorio {
      display: block;
      margin: 0 auto 15px auto;
      width: 85%;
      max-width: 200px;
      box-sizing: border-box;
    }
    .sidebar-search-bar {
      padding: 8px 12px;
      border-radius: 8px;
      border: 2px solid #00aaff;
      background: #181920;
      color: #fff;
      font-size: 0.95rem;
    }
    body {
      padding-top: 64px !important;
    }
    .sidebar-directorio {
        color: #00aaff;
        font-size: 1.1rem;
        font-weight: bold;
        text-decoration: none;
        text-align: flex-start;
    }
    .sidebar-search-results {
      position: absolute !important;
      top: 100% !important;
      left: 0 !important;
      right: 0 !important;
      background: #23232b !important;
      border: 2px solid #00aaff !important;
      border-radius: 8px !important;
      box-shadow: 0 2px 10px rgba(0,170,255,0.3) !important;
      width: 100% !important;
      max-height: 300px !important;
      overflow-y: auto !important;
      display: none;
      z-index: 10002 !important;
      margin-top: 5px !important;
      
    }
    .sidebar-search-results::-webkit-scrollbar {
        display: none;
    }
    .search-result-item {
        padding: 10px;
        border-bottom: 1px solid #00aaff22;
        transition: background 0.2s;
    }
    .search-result-item:last-child {
        border-bottom: none;
    }
    .search-result-item:hover {
        background: #00aaff22;
    }
    body.body-no-scroll {
        overflow: hidden !important;
        height: 100vh !important;
        position: fixed !important;
        width: 100vw !important;
    }
    header {
        position: fixed !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 2000 !important;
        width: 90% !important;
        margin-top: 0 !important;
        padding: 12px 20px !important;
        border-radius: 8px !important;
        max-width: 100vw !important;
    }
    body {
        padding-top: 64px !important;
    }
    .search-container,
    .search-bar {
        display: none;
    }
    .logo-titulo {
        font-size: 14px;
        text-decoration: underline;
    }
}

@media (max-width: 600px) {


  #filtro-orden-PC {
    display: none !important;
}
  .catalogo-container {
    padding: 0.5rem !important;
    max-width: 100vw !important;
  }
  .catalogo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.7rem !important;
    margin-top: 0.6rem !important;
    border-top: 2px solid #00aaff44;
  }
  .anime-card {
    margin-top: 20px !important;
    height: 150px !important;
    min-width: 0 !important;
    border-radius: 8px !important;
    font-size: 0.95em !important;
  }
  .info-anime {
    padding: 0.4rem !important;
    font-size: 0.78em !important;
  }
  .info-anime h3 {
    font-size: 0.85rem !important;
    margin-bottom: 0.2rem !important;
  }
  .info-anime p {
    font-size: 0.75em !important;
    margin: 0.1rem 0 !important;
  }
  .barra-filtros:not(.barra-filtros-movil) {
    display: none !important;
  }
  #btn-filtros-movil {
    display: block !important;
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 1002;
    background: #00aaff;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 1.1em;
    box-shadow: 0 2px 12px #00aaff55;
    cursor: pointer;
    transition: background 0.2s;
  }
  #btn-filtros-movil:active, #btn-filtros-movil:focus {
    background: #008fcc;
  }
  .panel-filtros-movil {
    display: none;
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    z-index: 2000;
    background: rgba(24,25,32,0.97);
    justify-content: center;
    align-items: center;
  }
  .panel-filtros-movil.abierto {
    display: flex !important;
  }
  .panel-filtros-movil.abierto,
  .panel-filtros-movil .panel-filtros-contenido,
  .panel-filtros-movil .filtro-contenido,
  .panel-filtros-movil .filtro-contenido * {
    pointer-events: auto !important;
  }
  .panel-filtros-contenido {
    background: #23232b;
    border-radius: 18px 18px 0 0;
    padding: 24px 16px 16px 16px;
    max-width: 90vw;
    width: 370px;
    box-shadow: 0 4px 32px #00aaff33;
    position: relative;
    margin: 0 auto 0 auto;
    color: #fff;
    min-height: 40vh;
    max-height: 90vh;
    overflow-y: auto;
  }
  .cerrar-filtros-movil {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 2.1em;
    color: #00aaff;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
    transition: color 0.2s;
  }
  .cerrar-filtros-movil:hover {
    color: #fff;
  }
  .panel-filtros-contenido h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #00aaff;
    font-size: 1.3em;
    text-align: center;
  }
  .barra-filtros-movil {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    height: 10%;
    padding-bottom: 40px;
  }
  .barra-filtros-movil .filtro-desplegable {
    width: 100%;
    margin: 0;
  }
  .barra-filtros-movil .btn-desplegable {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    font-size: 1.05em;
    font-weight: bold;
    border-radius: 8px;
    border: 2px solid #00aaff;
    background: #181920;
    color: #00aaff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 18px;
    box-sizing: border-box;
    margin: 0;
    transition: background 0.2s, color 0.2s;
  }
  .barra-filtros-movil .btn-desplegable:active,
  .barra-filtros-movil .btn-desplegable:focus {
    background: #00aaff;
    color: #fff;
  }
  #btn-filtrar-movil {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    font-size: 1.05em;
    font-weight: bold;
    border-radius: 8px;
    margin: 0;
    background: #00aaff;
    color: #fff;
    box-shadow: 0 2px 12px #00aaff55;
    text-align: center;
    border: none;
    display: block;
  }
  .filtro-desplegable, .btn-filtrar {
    min-width: 60px !important;
    font-size: 0.85em !important;
    padding: 3px 5px !important;
    border-radius: 6px !important;
  }
  .btn-filtrar {
    background: #00aaff !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px #00aaff44 !important;
    margin-left: 0 !important;
    margin-top: 2px !important;
    letter-spacing: 0.3px !important;
    border: none !important;
    transition: background 0.2s !important;
  }
  .btn-filtrar:active, .btn-filtrar:focus {
    background: #008fcc !important;
    color: #fff !important;
  }
  .filtros-desplegados {
    min-width: 90px !important;
    padding: 6px 4px 4px 4px !important;
  }
 
  .paginacion {
    gap: 0.2rem !important;
    margin-top: 0.7rem !important;
  }
  .paginacion button {
    padding: 0.35rem 0.8rem !important;
    font-size: 1em !important;
    border-radius: 8px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    background: #23232b !important;
    color: #00aaff !important;
    border: 2px solid #00aaff !important;
    font-weight: 700 !important;
    transition: background 0.2s, color 0.2s !important;
    margin: 0 2px !important;
  }
  .paginacion button.activo, .paginacion button:active, .paginacion button:focus {
    background: #00aaff !important;
    color: #fff !important;
    border-color: #00aaff !important;
  }
  .loader {
    min-height: 40px !important;
  }
  .catalogo-text {
    display: block !important;
    font-size: 0.92em !important;
    line-height: 1.25 !important;
    margin: 0.2em 0 !important;
    word-break: break-word !important;
    letter-spacing: 0.01em !important;
    color: #00aaff !important;
    text-shadow: 0 2px 8px #000000;
  }
  .catalogo-text.titulo, .catalogo-text.titulo-anime, .catalogo-text.titulo-catalogo {
    font-size: 1.08em !important;
    font-weight: 700 !important;
    margin-bottom: 0.18em !important;
    color: #00aaff !important;
    line-height: 1.18 !important;
  }
  .catalogo-text.descripcion, .catalogo-text.desc, .catalogo-text.generos {
    font-size: 0.82em !important;
    color: #bdbdbd !important;
    margin-bottom: 0.12em !important;
    line-height: 1.22 !important;
  }
  .barra-filtros-movil #lista-generos .desplegado-grid {
    max-height: 160px;
    height: 160px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #00aaff #1010a0;
    display: flex;
    flex-direction: column;
  }
  .barra-filtros-movil #lista-generos .desplegado-grid label {
    padding: 7px 0;
    border-bottom: 1px solid #00aaff22;
    min-height: 20px;
    flex-shrink: 0;
  }
  .barra-filtros-movil #lista-generos .desplegado-grid::-webkit-scrollbar {
    width: 6px;
    background: #23232b;
    display: block;
  }
  .barra-filtros-movil #lista-generos .desplegado-grid::-webkit-scrollbar-thumb {
    background: #00aaff;
    border-radius: 4px;
    display: block;
  }
  .barra-filtros-movil .panel-generos .desplegado-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    max-height: 230px;
    overflow-y: auto;
    padding-right: 2px;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  .barra-filtros-movil .panel-generos .desplegado-grid label {
    padding: 4px 0;
    border-bottom: none;
    min-height: 18px;
    font-size: 0.97em;
  }
}

@media (max-width: 400px) {
  .anime-card {
    height: 120px !important;
  }
  .info-anime {
    padding: 0.15rem !important;
    font-size: 0.72em !important;
  }
  .info-anime h3 {
    font-size: 1rem !important;
  }
  .info-anime p {
    font-size: 0.9em !important;
  }
  .filtro-desplegable, .btn-filtrar {
    min-width: 40px !important;
    font-size: 0.81em !important;
    padding: 2px 2px !important;
  }
  .paginacion button {
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 0.92em !important;
    padding: 0.22rem 0.5rem !important;
    border-radius: 7px !important;
  }
  .catalogo-text {
    font-size: 0.85em !important;
    line-height: 1.18 !important;
  }
  .catalogo-text.titulo, .catalogo-text.titulo-anime, .catalogo-text.titulo-catalogo {
    font-size: 0.98em !important;
  }
  .catalogo-text.descripcion, .catalogo-text.desc, .catalogo-text.generos {
    font-size: 0.75em !important;
  }
  #btn-filtros-movil {
    right: 12px !important;
    left: 12px !important;
    width: calc(100vw - 24px) !important;
    min-width: unset !important;
    border-radius: 12px !important;
    padding: 10px 0 !important;
    font-size: 1em !important;
    text-align: center !important;
  }
}

@media screen and (max-width: 768px) {
  .menu-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .menu-text {
    color: #00aaff;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    user-select: none;
    text-shadow: 0 2px 8px #000000;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
  }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    margin: 0;
    z-index: 10;
  }
  .menu-toggle::before {
    content: "☰";
    font-size: 1.8rem;
    color: #00aaff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .sidebar-menu {
    left: -250px;
    width: 200px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    height: 100vh;
    background: #23232b;
    z-index: 2002;
    padding: 15px 0;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 2px 0 16px #000a;
    overflow-y: auto;
  }
  .sidebar-menu.active {
    left: 0;
  }
  .sidebar-overlay {
    display: none;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(24, 25, 32, 0.7) !important;
    z-index: 2000 !important;
    cursor: pointer !important;
  }
  .sidebar-menu.active ~ .sidebar-overlay {
    display: block !important;
  }
  .sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 5px;
    padding: 20px;
    border-bottom: 1px solid #00aaff44;
  }
  .sidebar-logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px #00aaff44;
    background: #181920;
  }
  .sidebar-logo .sidebar-logo-titulo {
    color: #00aaff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 6px;
    text-align: center;
    text-shadow: 0 2px 8px #000000;
    letter-spacing: 0.5px;
  }
  .sidebar-search-bar,
  .sidebar-directorio {
    display: block;
    margin: 0 auto 15px auto;
    width: 85%;
    max-width: 200px;
    box-sizing: border-box;
  }
  .sidebar-search-bar {
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #00aaff;
    background: #181920;
    color: #fff;
    font-size: 0.95rem;
  }
  .sidebar-directorio {
    color: #00aaff;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: left;
    padding-left: 18px;
  }
  .sidebar-search-container {
    position: relative !important;
    width: 85%;
    margin: 0 auto 20px;
    z-index: 10001;
  }
  .sidebar-search-results {
    display: flex;
    background: #23232b;
    border-radius: 8px;
    border: 2px solid #00aaff;
    max-height: 250px;
    overflow-y: auto;
    color: #fff;
    font-size: 0.97rem;
    margin-top: 0;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    animation: none;
    transition: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-top: none;
    max-width: 220px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    left: unset;
    right: unset;
  }
  .sidebar-search-results::-webkit-scrollbar {
    display: none;
  }
  .search-result-item {
    padding: 10px;
    border-bottom: 1px solid #00aaff22;
    transition: background 0.2s;
  }
  .search-result-item:last-child {
    border-bottom: none;
  }
  .search-result-item:hover {
    background: #00aaff22;
  }
  body.body-no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100vw !important;
  }
  header {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 2000 !important;
    width: 90% !important;
    margin-top: 0 !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    max-width: 100vw !important;
  }
  body {
    padding-top: 64px !important;
  }
  .search-container,
  .search-bar {
    display: none;
  }
  .logo-titulo {
    font-size: 14px;
    text-decoration: underline;
  }
}

.barra-filtros-movil .filtros-desplegados {
  padding: 16px 14px;
}
.barra-filtros-movil .desplegado-grid label {
  padding-left: 0;
}

@media (max-width: 600px), (max-width: 768px) {
  /* Elimino las reglas forzadas para que herede del otro archivo */
  /* header > a, .logo-btn, .logo-img-btn, .logo-titulo */
}

@keyframes panelFiltrosFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}

.panel-filtros-movil {
  transition: opacity 0.25s, transform 0.25s;
}
.panel-filtros-movil.cerrando {
  animation: panelFiltrosFadeOut 0.25s forwards;
}

.filtro-acordeon {
  position: relative;
  background: #23232b;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px #00000022;
  overflow: visible;
  border: none;
  transition: border 0.2s;
}
.filtro-acordeon.activo, .filtro-acordeon:focus-within {
  border: none;
}
.filtro-header {
  padding: 14px 18px;
  font-size: 1.08em;
  font-weight: 600;
  color: #fff;
  background: #23232b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  outline: none;
  transition: background 0.2s;
  border: 2px solid #00aaff;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}
.filtro-header:focus, .filtro-header:hover {
  background: #181920;
}
.filtro-arrow {
  font-size: 1.2em;
  color: #00aaff;
  margin-left: 8px;
  transition: transform 0.2s;
}
.filtro-acordeon.activo .filtro-arrow {
  transform: rotate(180deg);
}
.filtro-acordeon.activo .filtro-header {
  border-bottom: none;
}
.filtro-contenido {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
}
.filtro-acordeon.activo .filtro-contenido {
  max-height: 500px;
  opacity: 1;
}


#btn-filtrar-movil {
  width: 100%;
  margin-top: 18px;
  font-size: 1.1em;
  padding: 12px 0;
  border-radius: 8px;
  background: #00ffe0;
  color: #23232b;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 12px #00ffe055;
  text-align: center;
  transition: background 0.2s;
}

.filtro-header .filtro-valor {
    margin-left: 0.5em;
}



.desplegado-grid-mobile {
    display: grid;
    gap: 8px; /* Espacio entre las opciones */
    padding: 2px; /* Espacio interno */
    max-height: 210px; /* O el valor que prefieras */
    overflow-y: auto;
    padding-right: 4px;
}

.desplegado-grid-mobile label {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 8px;
    cursor: pointer;
    color: #fefeff;
    /* Add padding to match the blue highlight area */
    padding: 8px 10px; /* Adjust padding as needed */
    width: 100%; /* Make label take full width */
    box-sizing: border-box; /* Include padding in width */
}

.desplegado-grid-mobile input[type="radio"] {
    /* Ensure the radio button is visible */
    appearance: auto;
    accent-color: #860000;
    margin-top: 4px; /* Adjust margin to fine-tune vertical alignment */
}

/* Style for the label when the radio is checked */
.desplegado-grid-mobile input[type="radio"]:checked + label {
    background-color: #007bff; /* Example blue background, match your exact color */
    color: #ffffff; /* Example text color */
}

/* --- Filtro Ordenar por (móvil) --- */
.filtro-orden-movil .panel-orden-movil {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
  background: #23232b;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 12px #00aaff22;
  margin-top: 2px;
  padding: 0 0.5em;
}
.filtro-orden-movil.activo .panel-orden-movil {
  max-height: 300px;
  opacity: 1;
}
.desplegado-grid-movil {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding: 1em 0.2em;
  max-height: 220px;
  overflow-y: auto;
}
.desplegado-grid-movil label {
  color: #fff;
  font-size: 1em;
  font-weight: 400;
  cursor: pointer;
  padding: 0.2em 0.1em;
  border-radius: 6px;
  transition: background 0.2s;
}
.desplegado-grid-movil label:hover {
  background: #00aaff22;
}
.desplegado-grid-movil input[type="radio"] {
  accent-color: #00aaff;
  margin-right: 0.5em;
}

@media (min-width: 601px) {
  .filtro-acordeon {
      position: relative;
  }

  .filtro-acordeon .filtro-contenido {
      position: absolute;
      top: 100%;
      left: 0;
      z-index: 10;
      background: #181a20;
      border: 2px solid #00eaff;      
      border-radius:5px;
      transition: opacity 0.2s, transform 0.2s;
      opacity: 0;
      pointer-events: none;


  }

  .filtro-acordeon:hover .filtro-contenido,
  .filtro-acordeon:focus-within .filtro-contenido {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
      box-shadow: 0px 0px 18px -10px #00aaff;
  }
  /* Panel flotante de Géneros */
.panel-generos {
  width: 230px;
  left: 0;
  right: auto;
  min-width: 0;
}
/* Panel flotante de Año */
.panel-anio {
  width: 199px;
  left: 0;
  right: auto;
  min-width: 0;
}
/* Panel flotante de Tipo */
.panel-tipo {
  width: 203px;
  left: 0;
  right: auto;
  min-width: 0;
}
/* Panel flotante de Estado */
.panel-estado {
  width: 219px;
  left: 0;
  right: auto;
  min-width: 0;
}
/* Panel flotante de Ordenar por */
.panel-orden {
  width: 265px;
  left: 0;
  right: auto;
  min-width: 0;
}
}

#btn-filtros-movil.oculto {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s;
}

/* Estilos del footer para el catálogo */
.footer-animekay-pro {
  width: 78%;
  padding: 24px 0 12px 0;
  background: none;
  color: #b9b4d9;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1em;
  box-sizing: border-box;
}

.footer-main-row, .footer-bottom-row {
  max-width: 900px;
  margin: 0 auto 8px auto;
  width: 100%;
}

.footer-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  object-fit: contain;
  background: #23232b;
  content: url('/Images/Logo-top-right-150x.png');
}

.footer-logo-text {
  font-size: 1.3em;
  font-weight: bold;
  letter-spacing: 1px;
  color: #b9b4d9;
}

.footer-right {
  display: flex;
  gap: 22px;
}

.footer-link {
  color: #b9b4d9;
  text-decoration: none;
  font-size: 1em;
  border-radius: 16px;
  padding: 4px 12px;
  border: 1px solid transparent;
  transition: color 0.2s, border 0.2s, background 0.2s;
}

.footer-link:hover {
  color: #008fcc;
  border: 1px solid #008fcc;
  background: #181a20;
}

.footer-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.97em;
  color: #b9b4d9;
  margin-bottom: 0;
}

.footer-disclaimer {
  font-size: 0.91em;
  color: #a6a1c2;
  margin-top: 2px;
  line-height: 1.3;
  max-width: 340px;
}

/* Responsive del footer para el catálogo */
@media (max-width: 700px) {
  .footer-logo-text-group { 
    align-items: flex-start; 
  }
  .footer-disclaimer { 
    max-width: 99vw; 
  }
}

@media (max-width: 600px) {
  .footer-animekay-pro {
    max-width: 99vw;
    margin: 18px auto 0 auto;
    padding: 0 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .footer-main-row,
  .footer-bottom-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 99vw;
    margin: 0 auto;
    gap: 4px;
    display: flex;
    justify-content: center;
  }
  
  .footer-left,
  .footer-right {
    justify-content: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-logo-img {
    margin: 0 auto 4px auto;
    display: block;
  }
  
  .footer-right {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    display: flex !important;
    text-align: center;
  }
  
  .footer-link {
    margin: 0 !important;
    padding: 0 4px !important;
    display: inline-block !important;
  }
}