  /* Estilos para el modal */
  .modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #1e1e1e;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.modal h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.modal p {
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-buttons button {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-buttons .btn-yes {
    background-color: #ff6f61;
    color: #fff;
}

.modal-buttons .btn-yes:hover {
    background-color: #e65a50;
}

.modal-buttons .btn-no {
    background-color: #444;
    color: #fff;
}

.modal-buttons .btn-no:hover {
    background-color: #333;
}

/* Estilo para el contenedor del scroll */
::-webkit-scrollbar {
    width: 10px;  /* Ancho del scroll */
    height: 10px; /* Alto del scroll en caso de scroll horizontal */
}

/* Estilo para el track (fondo) del scroll */
::-webkit-scrollbar-track {
    background: #f1f1f1;  /* Color de fondo del track */
    border-radius: 10px;   /* Bordes redondeados del track */
}

/* Estilo para el pulgar (el elemento que se mueve) */
::-webkit-scrollbar-thumb {
    background: #ff006a;  /* Color del pulgar */
    border-radius: 10px;   /* Bordes redondeados del pulgar */
    transition: background-color 0.3s ease; /* Transición suave para el cambio de color */
}

/* Efecto cuando el pulgar es hover */
::-webkit-scrollbar-thumb:hover {
    background: #e5005c;  /* Color más oscuro cuando se pasa el mouse sobre el pulgar */
}

/* Estilo para el scroll horizontal */
::-webkit-scrollbar-horizontal {
    height: 10px;  /* Alto del scroll horizontal */
}

/* Estilo para el track horizontal */
::-webkit-scrollbar-track-horizontal {
    background: #f1f1f1;
    border-radius: 10px;
}

/* Estilo para el pulgar horizontal */
::-webkit-scrollbar-thumb-horizontal {
    background: #ff006a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb-horizontal:hover {
    background: #e5005c;
}

a {
    text-decoration: none;
    color: #313030;
}

a:hover
{
    color:rgb(136, 255, 0);
    font-size: 14px;
}


p {
    font-size: 9px;
}

html {
    height: 100%;
}

body {
    height: 100%;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

header {
    display: flex
;
    background-color: #ff006a;
    color: white;
    padding: 15px;
    text-align: center;
    justify-content: space-between;
    border: 3px solid #DB005B;
    align-items: center;
}

/* Estilos para los botones */
.btn-subir-video, .btn-login {
    background-color: #171717; /* Color de fondo */
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-subir-video:hover, .btn-login:hover {
    background-color: #000000; /* Color de hover */
}

.btn-login {
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul {
    width: fit-content;
    display: flex
;
    flex-direction: row;
    align-items: center;
    align-content: center;
    list-style: none;
    padding: 0;
}

nav ul li {
    display: flex
;
    /* display: inline; */
    margin-right: 15px;
    gap: 4px;
    align-items: center;
    background-color: #00000017;
    border-radius: 10px;
    padding: 5px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    height: 100%;
    display: flex
;
    padding: 20px;
    background-color: #0e0e0e;
}

.logo{
    display: flex;
        align-items: center;
        align-content: center;
    
}

.logo h1 {
    font-family: "Bebas Neue", serif;
    font-weight: 400;
    font-style: revert-layer;
    padding: 0;
    margin: 0;
    height: 50px;
    display: flex
;
    align-items: center;
    align-content: center;
}


.logo img {
    width: 100px;
    height: 100px;
}

.error {
    color: wheat;
    padding: 20px;
    width: 100%;
    height: 20px;
    background-color: #1e1e1e;
    display: flex
;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.error p{
    font-size: 20px;
}

aside {
    height: fit-content;
    width: 15%;
    background-color: #4f4a4a;
    padding: 15px;
    border: 2px solid #313030;
    box-shadow: 2px 2px 10px rgb(0 0 0 / 52%);
    border-radius: 7px;
    color: white;
}

.jo-e {
    display: flex
;
    justify-content: space-between;
    flex-direction: column;
}

section {
    width: 100%;
    margin: 0px 10px;
}

.videos {
    overflow-y: scroll;
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    gap: 15px;
    background-color: #00000014;
    height: fit-content;
    max-height: 100%;
    width: 100%;
}

.video:hover {
    transform: translateY(-5px);
    background-color: #ff006a;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3);
}

.video {
    background: #000000;
    padding: 20px;
    box-shadow: 2px 2px 10px rgba(117, 117, 117, 0.1);
    width: calc(33.333% - 20px);
    max-width: 200px;
    min-height: 290px;
    display: flex
;
    max-height: 300px;
    height: fit-content;
    border-radius: 15px;
    color: white;
    border: 1px solid #272525;
    flex-direction: column;
    align-items: stretch;
    align-content: center;
    justify-content: center;
}

.video img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease; /* Añadir una transición suave */
}

.video img:hover {
    transform: scale(1.1); /* Aumenta el tamaño de la imagen */
    border:1px solid white
}

.video h3 {
    color: white;
    font-size: 15px;
    margin: 10px 0 5px;
    font-weight: 400;
    font-style: normal;
}

li a {
    color: #ff006a;
}

.btn-subir-video {
    background-color: #0e0e0e;
    border: 1px solid #c5bfc2;
    color: #ff006a;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3sease;
}


.btn-subir-video:hover {
    background-color: white;
}

.btn-subir-video:focus {
    outline: none;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.footer-contenido {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.enlaces-footer {
    margin-top: 10px;
}

.enlaces-footer a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.enlaces-footer a:hover {
    color: #ff006a;
}

.filter{
    background-color: #80808012;
    padding: 5px 10px;
    margin: 5px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    color: white;
    align-content: center;
    border:1px solid white;
}

.filter select{
    padding: 5px;
    background-color: #000000;
    color: #ff006a;
    border: 1px solid #ff006a;
    margin: 5px;
}

.posts {
    display: flex
;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    background-color: #00000014;
    padding: 10px;
}

.post {
    max-height: 350px;
    display: flex;
    background: #000000;
    padding: 20px;
    box-shadow: 2px 2px 10px rgba(117, 117, 117, 0.1);
    width: calc(33.333% - 20px);
    max-width: 300px;
    border-radius: 15px;
    color: white;
    border: 1px solid #ff006a;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    align-content: center;
}

.post img {
    width: 100%;
    height: 185px;
    display: block;
    border-radius: 10px;
    margin-bottom: 10px;
}

.post h3 {
    color: white;
    font-size: 15px;
}

.post p {
    font-size: 14px;
}

.btn-leer-mas {
    display: inline-block;
    background-color: #ff006a;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
}

.btn-leer-mas:hover {
    background-color: #db005b;
}

#toggle-categories {
    display: inline-block;
    background-color: #ff006a;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
  }

  .search-bar {
    width: 100%;
    position: relative;
    display: inline-block;
}

.search-bar input {
    padding: 10px 0px;
    border: 1px solid #ff006a;
    border-radius: 5px;
    outline: none;
    width: 100%;
    background-color: black;
    color: white;
}

.search-bar .icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Para que no interfiera con el input */
    color: #888;
}

  .search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}



.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
}

.suggestions div {
    padding: 10px;
    cursor: pointer;
}

.suggestions div:hover {
    background-color: #f0f0f0;
}

.search-results {
    margin-top: 20px;
}

#results {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #0a0a0a;
    margin-bottom: 10px;
    color: #ff006a;
    display: none;
}

#results li {
    list-style: none; /* Eliminar el marcador de lista */
    padding: 5px;
    cursor: pointer;
}

#results li:hover {
    background-color: #141414; /* Opcional: color de fondo al pasar el mouse */
}


#results-item h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

#results-item a {
    text-decoration: none;
    color: #007bff;
}

#results-item a:hover {
    text-decoration: underline;
}

/* Estilo para la lista de sugerencias */
#suggestions {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    max-height: 300px;
    overflow-y: auto;
    width: calc(100% - 2px);
    z-index: 1000;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#suggestions div {
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

#suggestions div:hover {
    background: #f0f0f0;
}

/* Estilo para el contenedor de búsqueda */
.search-container {
    position: relative;
    width: 100%;
}

/* Estilo para el ícono de carga */
.loading-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Para el input de búsqueda con lupa */
.search-input {
    padding-left: 40px;
    padding-right: 40px;
    border-radius: 5px;
    border: 1px solid #ccc;
    height: 40px;
}

/* Ícono de lupa */
.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
}

/* Ajuste para cuando hay carga */
.loading .loading-icon {
    display: block;
}



/* Estilos responsivos para dispositivos móviles */
@media only screen and (max-width: 768px) {
  /* Encabezado */
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  nav ul {
    display: flex
;
        flex-direction: row;
        align-items: center;
        width: 100%;
        padding: 0;
        gap: 10px;
        justify-content: space-between;
  }
  nav ul li {
    display: block;
    margin: 10px 0;
  }
  
  /* Contenido principal */
  main {
    flex-direction: column;
    padding: 10px;
  }
  aside {
    width: auto;
    margin-bottom: 20px;
  }

  .jo-e {
    display: flex
;
    justify-content: space-between;
    flex-direction: row;
}


  section {
    width: 100%;
    margin: 0;
  }

  #categories-list {
    display: none;
  }
  
  /* Estilizar el botón de toggle */
  #toggle-categories {
    display: inline-block;
    background-color: #ff006a;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
  }
  
  /* Videos */
  .videos {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .video {
    width: 90%;
    max-width: 300px;
    margin-bottom: 20px;
  }
  
  /* Posts */
  .posts {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .post {
    width: 90%;
    max-width: 300px;
    margin-bottom: 20px;
  }
  
  /* Filtros */
  .filter {
    flex-direction: column;
    align-items: flex-start;
  }
  .filter select {
    margin-top: 10px;
    width: 100%;
  }
  
  /* Ajustes generales de textos e imágenes si es necesario */
  img {
    max-width: 100%;
    height: auto;
  }
}


