@font-face {
    font-family: 'Atomic Marker';
    src: url('fonts/AtomicMarker.woff2') format('woff2'),
        url('fonts/AtomicMarker.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* vietnamese */
@font-face {
    font-family: 'Big Shoulders Stencil';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/bigshouldersstencil/v2/TwMQ-JIEQ1Je5sI6Bx1TKHD83rT3u3NSCfbvxY5Cf8Y.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Big Shoulders Stencil';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/bigshouldersstencil/v2/TwMQ-JIEQ1Je5sI6Bx1TKHD83rT3u3NSCfbvxI5Cf8Y.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Big Shoulders Stencil';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/bigshouldersstencil/v2/TwMQ-JIEQ1Je5sI6Bx1TKHD83rT3u3NSCfbvyo5C.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  #loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(24, 24, 24);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 1.5em;
    z-index: 1000;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff00dd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

:root {
    --bg: #1a1a1a;
    --accent: #ff00ff;
    --text: #ffffff;
    --secondary: #31f300;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;

}

h2 {
    color: #ffffff;
    font-family: "Big Shoulders Stencil", sans-serif;
    font-size: 36px;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.titulo-principal {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent);

    font-family: 'Atomic Marker', sans-serif;
    font-weight: normal;
    font-style: normal;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.89);
    
}

.titulo-screados {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);

    font-family: 'Atomic Marker', sans-serif;
    font-weight: normal;
    font-style: normal;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.89);
    
}

.column {
    background: #2d2d2d;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

form {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

input, button {
    margin: 0.5em;
    padding: 0.8rem;
    border: 1px solid var(--accent);
    border-radius: 5px;
    background: #333;
    color: var(--text);
    text-transform: uppercase; /* Transforma el texto a mayúsculas */
}

button {
    background: var(--accent);
    cursor: pointer;
    transition: opacity 0.3s;
}

button:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: #404040;
    border-radius: 5px;
}

.material-icons {
    cursor: pointer;
    color: var(--secondary);
}

#total-duracion {
    margin-top: 1rem;
    font-weight: bold;
    color: var(--accent);
}

.setlist-item {
    background: #333;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 5px;
}

#mensaje-setlist {
    color: var(--secondary);
    margin-top: 1rem;
    display: flex;
    align-items: center; /* Alinear el GIF y el texto verticalmente */
    gap: 0.5rem; /* Espacio entre el GIF y el texto */
    justify-content: center;
    align-items: center;
    text-align: center;
}

#mensaje-setlist img {
    width: 20px; /* Tamaño pequeño del GIF */
    height: 20px;
}

/* Estilos para tocadas.html */
.container-tocadas {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 1px;
}

.setlist-item {
    background: #333;
    padding: 1rem;
    margin: 1rem auto;
    border-radius: 10px;
    max-width: 600px;
}

.duracion-setlist {
    color: var(--accent);
    font-size: 0.8em;
    

}

.duracion2 .duracion-setlist {

    font-size: 35px;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

th {
    background: #2d2d2d;
}

.delete-btn {
    color: var(--secondary);
    cursor: pointer;
}

.delete-btn:hover {
    opacity: 0.8;
}

/* Estilos para botón de eliminar setlist */
.eliminar-setlist {
    background: #ff4444;
    margin-left: 0.5rem;
}

.eliminar-setlist:hover {
    background: #cc0000;
}

/* Ajustes para los botones */
.setlist-item button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

/* Estilos para mensajes */
.cargando, .error {
    padding: 1rem;
    text-align: center;
    border-radius: 5px;
    margin: 1rem 0;
}

.cargando {
    background: #333;
    color: var(--accent);
}

.error {
    background: #ff444433;
    color: #ff4444;
    border: 1px solid #ff4444;
}

.seccion-agregar, .seccion-setlist-master, .seccion-crear-setlist {
    background: #2d2d2d;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.contenedor-principal {
    display: flex;
    gap: 2rem;
    position: relative; /* Para que el div fijo se posicione correctamente */
}

.seccion-crear-setlist {
    background: #2d2d2d;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    width: 300px; /* Ancho fijo para el contenedor */
    position: sticky; /* Fijo verticalmente */
    top: 20px; /* Ajustar según la posición del título */
    height: 270px; /* El fondo solo cubre el contenido */
    z-index: 10; /* Asegurar que esté por encima de otros elementos */
    flex-shrink: 0; /* Evita que se reduzca el ancho */
    align-items: center; /* Centrar horizontalmente */
    justify-content: center; /* Centrar verticalmente */
    text-align: center; /* Centrar el texto */
}

.seccion-derecha {
    flex: 1; /* Ocupa el espacio restante */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0; /* Evita problemas de desbordamiento */
    

}

.seccion-agregar, .seccion-setlist-master {
    background: #2d2d2d;
    padding: 1.0rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

th {
    background: #2d2d2d;
}

.delete-btn {
    color: var(--secondary);
    cursor: pointer;
}

.delete-btn:hover {
    opacity: 0.8;
}

#total-duracion {
    margin-top: 1rem;
    font-weight: bold;
    color: var(--accent);
}

#mensaje-setlist {
    color: var(--secondary);
    margin-top: 1rem;
    display: flex;
    align-items: center; /* Alinear el GIF y el texto verticalmente */
    gap: 0.5rem; /* Espacio entre el GIF y el texto */
}

#mensaje-setlist img {
    width: 20px; /* Tamaño pequeño del GIF */
    height: 20px;
}

.oculto {
    display: none;
}

.seccion-listas-creadas {
    background: #2d2d2d;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    width: 300px; /* Ancho fijo para el contenedor */
    position: sticky; /* Fijo verticalmente */
    top: 350px; /* Ajustar según la posición del div anterior */
    height: fit-content; /* El fondo solo cubre el contenido */
    z-index: 10; /* Asegurar que esté por encima de otros elementos */
    flex-shrink: 0; /* Evita que se reduzca el ancho */
    align-items: center; /* Centrar horizontalmente */
    justify-content: center; /* Centrar verticalmente */
    text-align: center; /* Centrar el texto */
    margin-top: 20px; /* Espacio entre los divs */
}

#ver-listas-creadas {
    background: var(--accent);
    color: var(--text);
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
    width: 100%; /* Ocupar todo el ancho del contenedor */
}

#ver-listas-creadasmov {
display: none;
}

#ver-listas-creadas:hover {
    opacity: 0.8;
}

.lista-setlists  {
    margin-bottom: 50px;
    }

#guardar-orden {
        margin-top: 10px;
        margin-left: auto;
        display: block;
        background-color: #111111;
        transition: all 0.3s ease;
}
#guardar-orden:hover {

    background-color: #ff00dd;
    transition: .2s ease;
}

/* Estilos para el título editable */
h2.editable {
    position: relative; /* Contenedor relativo para posicionar el ícono */
    cursor: pointer;
    margin: 0.2em;
    margin-top: 5px;
    display: inline-block; /* Ajustar el ancho al contenido */
    margin-left: 40px;
    text-transform: uppercase;
    
}

h2.editable .edit-icon {
    visibility: hidden; /* Ocultar por defecto */
    margin-left: 5px; /* Espacio entre el texto y el ícono */
    font-size: 1.2rem;
    color: #ffffff;
    cursor: pointer;
    display: inline-block; /* Mostrar como elemento en línea */
}

h2.editable:hover .edit-icon {
    visibility: visible; /* Mostrar al hacer hover */
}

/* Estilos para la tabla dentro de .lista-setlists */
#lista-setlists table {
    width: 100%;
    border-collapse: separate; /* Permite bordes redondeados en las celdas */
    border-spacing: 0; /* Elimina el espacio entre celdas */
    margin-top: 1rem;
    background: #2d2d2d; /* Fondo oscuro para la tabla */
    border-radius: 10px; /* Bordes redondeados para la tabla */
    overflow: hidden; /* Oculta los bordes que sobresalen */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Sombra para un efecto moderno */
}

.separador {
    width: 100%; /* Ocupa todo el ancho disponible */
    height: 2px; /* Grosor de la línea */
    background-color: var(--accent, #ccc); /* Color de la línea, puedes cambiarlo */
    margin: 20px 0; /* Espaciado arriba y abajo */
}

.lista-setlists th,
.lista-setlists td {
    padding: 0.8rem;
    text-align: center;
    border-bottom: 1px solid #444; /* Borde inferior sutil */
}

.lista-setlists th {
    background: var(--accent); /* Fondo del encabezado con el color de acento */
    color: var(--text); /* Texto blanco para contrastar */
    font-weight: bold;
    text-transform: uppercase; /* Texto en mayúsculas para los encabezados */
}

.lista-setlists td {

    color: var(--text); /* Texto blanco */
}

/* Efecto hover para las filas */
.lista-setlists tbody tr:hover {
    background: #404040; /* Fondo más claro al pasar el mouse */
    transition: background 0.3s ease; /* Transición suave */
}

/* Bordes redondeados para la primera y última celda de cada fila */
.lista-setlists tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.lista-setlists tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Estilo para el botón de eliminar dentro de la tabla */
.lista-setlists .delete-btn {
    color: var(--secondary); /* Color verde para el ícono de eliminar */
    cursor: pointer;
    transition: opacity 0.3s;
}

.lista-setlists .delete-btn:hover {
    opacity: 0.8; /* Efecto hover para el ícono de eliminar */
}

/* Estilos para el arrastre (dragging) */
#lista-setlists table tbody tr.dragging {
    border: 2px solid #ff00ff !important; 
    opacity: 0.7 !important; /* Opacidad reducida */
    background-color: #ff00ff !important; /* Fondo morado */
    cursor: grabbing !important; /* Cursor de mano cerrada */
}

#lista-setlists table tbody tr.dragging {
    cursor: grab; /* Cursor de mano abierta (listo para arrastrar) */
}


/* Ajustes para la versión móvil */
@media (max-width: 768px) {
    .seccion-listas-creadas {
        position: fixed; /* Fijar en la pantalla */
        top: 290px; /* Espacio desde la parte superior */
        left: 10px; /* Espacio desde la izquierda */
        right: 10px; /* Espacio desde la derecha */
        width: calc(100% - 40px); /* Ajustar el ancho para respetar los márgenes */
        padding: 0.5rem; /* Reducir el padding para móvil */
        font-size: 0.8em; /* Reducir el tamaño de la fuente */
        margin-top: 0; /* Eliminar margen superior */
        border: 2px solid #ff00ff; /* Borde para resaltar */
        display: none;
    }

    #ver-listas-creadasmov {
        padding: 0.8rem; /* Reducir el padding del botón en móvil */
        width: calc(100% - 15px); /* Ajustar el ancho para respetar los márgenes */
        display: block;
    }
}



/* Estilos para la versión móvil */
@media (max-width: 768px) {
    .titulo-principal {
        display: none; /* Ocultar el título en móvil */
    }

    .contenedor-principal {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2px; /* Añadir un margen interno para evitar que el contenido toque los bordes */
    }

    .seccion-crear-setlist {
        position: fixed; /* Fijar en la pantalla */
        font-size: 0.8em;
        top: 10px; /* Espacio desde la parte superior */
        left: 10px; /* Espacio desde la izquierda */
        right: 10px; /* Espacio desde la derecha */
        width: calc(100% - 30px); /* Ajustar el ancho para respetar los márgenes */
        background: #2d2d2d; /* Mantener el fondo */
        padding: 0.1rem; /* Restaurar el padding original */
        border-radius: 10px; /* Restaurar bordes redondeados */
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.479); /* Restaurar sombra */
        z-index: 1000; /* Asegurar que esté por encima de otros elementos */
        margin-bottom: 0; /* Eliminar margen inferior */
        display: flex;
        flex-direction: column;
        align-items: center; /* Centrar horizontalmente */
        justify-content: center; /* Centrar verticalmente */
        text-align: center; /* Centrar el texto */
        border: 2px solid #ff00ff;
    }

    .seccion-derecha {
        margin-top: 270px; /* Espacio para el div fijo (ajustar según el tamaño de .seccion-crear-setlist) */   
        margin-left: 0; /* Quita el margen en móvil */
        padding: 0 5px; /* Añadir margen interno */
        gap: 0.5em;
    }

    .seccion-agregar, .seccion-setlist-master {
        margin-top: 10px;
    }

     /* Ajustar el margen entre el borde del div y la tabla */
     .seccion-setlist-master {
        padding: 0.5rem; /* Reducir el padding interno del div */
    }

    /* Ocultar columnas "Número de pista" y "Acciones" en móvil */
    .seccion-setlist-master th:nth-child(2), /* Número de pista */
    .seccion-setlist-master td:nth-child(2), /* Número de pista */
    .seccion-setlist-master th:nth-child(6), /* Acciones */
    .seccion-setlist-master td:nth-child(6) { /* Acciones */
        display: none;
    }

    /* Reducir aún más el tamaño de la fuente de la tabla */
    .seccion-setlist-master table {
        font-size: 12px; /* Tamaño de fuente más pequeño */
    }

    /* Ajustar el padding de las celdas */
    .seccion-setlist-master th,
    .seccion-setlist-master td {
        padding: 0.3rem; /* Reducir el padding para ahorrar espacio */
    }

    h2 {
            font-size: 30px;


    }
}
 

/* Desactivar el zoom en la versión móvil */
@media (max-width: 768px) {
    html, body {
        touch-action: manipulation; /* Evitar el zoom con gestos táctiles */
    }

    meta[name="viewport"] {
        content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"; /* Desactivar zoom */
    }
}

/* Estilos para la tabla dentro de lista-setlists en la versión móvil */
@media (max-width: 768px) {
    .lista-setlists table {
        font-size: 10px; /* Reducir el tamaño de la fuente */
        width: 100%; /* Asegurar que la tabla ocupe el 100% del ancho disponible */
        margin: 0; /* Eliminar márgenes laterales */
    }

    .lista-setlists th,
    .lista-setlists td {
        padding: 0.2rem; /* Reducir el padding de las celdas */
    }

    .lista-setlists th {
        font-size: 11px; /* Reducir el tamaño de la fuente de los encabezados */
    }

    .lista-setlists td {
        font-size: 11px; /* Reducir el tamaño de la fuente de las celdas */
    }

    /* Ajustar el margen lateral del contenedor de la tabla */
    .lista-setlists {
        padding: 0.2rem; /* Reducir el padding interno del div */
        margin: 0 4px; /* Reducir los márgenes laterales */
    }


    .titulo-screados {
    font-size: 2.5rem;

}

}

#duracion-total {
    font-size: 1.2em;
    font-weight: bold;
    color: #00ff00;
    margin: 10px 0;
    text-align: center;
}


/* Fondo desenfocado */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo gris con opacidad */
    backdrop-filter: blur(5px); /* Efecto de desenfoque */
    display: none; /* Ocultar por defecto */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegurar que esté por encima de todo */
}

/* Modal */
#modal {
    background: rgb(10, 10, 10);
    border-radius: 15px; /* Bordes redondeados */
    width: 600px; /* Ancho de la modal */
    height: auto; /* Alto de la modal */
    padding: 10px;
    text-align: center;
    position: relative;
    border: solid 2px #ff00ff;
    padding-bottom: 25px;
}

/* Botón para cerrar la modal */
#cerrar-modal {
    position: absolute;
    top: 0px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Título de la modal */
#modal-titulo {
    margin-top: 20px;
    font-size: 24px;
    color: #ff00ff;;
}

/* Texto de la modal */
#modal-texto {
    margin-top: 10px;
    font-size: 18px;
}

/* Estilos para el scrollbar de la modal */
#modal-texto::-webkit-scrollbar {
    width: 10px; /* Ancho del scrollbar */
}

#modal-texto::-webkit-scrollbar-track {
    background: #2d2d2d; /* Fondo del track (parte estática) acorde al gris oscuro */
    border-radius: 10px; /* Bordes redondeados */
}

#modal-texto::-webkit-scrollbar-thumb {
    background: var(--accent); /* Color magenta para el thumb (parte móvil) */
    border-radius: 10px; /* Bordes redondeados */
    border: 2px solid #2d2d2d; /* Borde oscuro para contraste */
}

#modal-texto::-webkit-scrollbar-thumb:hover {
    background: var(--secondary); /* Cambia a verde al pasar el mouse */
}

/* Soporte para Firefox */
#modal-texto {
    scrollbar-width: thin; /* Hace el scrollbar más delgado */
    scrollbar-color: var(--accent) #2d2d2d; /* Color del thumb y track */
}

@media (max-width: 768px) {
    /* Fondo desenfocado */
    #modal-overlay {
        backdrop-filter: blur(3px); /* Menos desenfoque para mejor rendimiento */
    }

    /* Modal */
    #modal {
        width: 95%; /* Ocupar casi todo el ancho */
        max-width: 100%; /* Evitar que se salga */
        max-height: 90vh; /* Máximo 90% del alto de pantalla */
        padding: 15px 10px 25px; /* Ajustar padding */
        border-width: 1px; /* Borde más fino */
    }

    /* Botón para cerrar */
    #cerrar-modal {
        right: 5px;
        font-size: 24px; /* Más grande para fácil tapping */
        padding: 10px; /* Área de toque más grande */
    }

    /* Título */
    #modal-titulo {
        font-size: 30px;
        margin-top: 15px;
        padding: 0 15px; /* Añadir padding para evitar que toque bordes */
    }

    /* Contenido */
    th, td  {
        font-size: 12px;
        max-height: 70vh; /* Limitar altura para evitar desbordamiento */
        overflow-y: auto; /* Scroll si es necesario */
        padding: 0 8px; /* Padding lateral */
    }

    th  {
        background: #f300b6;
    }

    /* Scrollbar - más delgada en móviles */
    #modal-texto::-webkit-scrollbar {
        width: 5px;
    }

    /* Botones dentro de la modal */
    #modal button:not(#cerrar-modal) {
        padding: 12px 10px; /* Más grandes para fácil tapping */
        margin: 2px 5px; /* Espaciado adecuado */
        font-size: 14px; /* Texto legible */
    }

    /* Tablas dentro de la modal */
    #modal table {
        font-size: 14px; /* Texto más pequeño */
    }

    /* Ajustes específicos para pantallas muy pequeñas */
    @media (max-width: 480px) {
        #modal {
            border-radius: 10px; /* Bordes menos redondeados */
        }
        
        #modal-titulo {
            font-size: 30px;
        }
        
        #modal-texto {
            font-size: 15px;
        }
    }
}   

/* Evitar zoom en inputs en iOS */
@media (max-width: 768px) {
    #modal input, #modal textarea, #modal select {
        font-size: 16px; /* Tamaño mínimo para evitar zoom automático en iOS */
    }
    
    /* Mejorar el área de toque para botones */
    button {
        min-height: 44px; /* Tamaño mínimo recomendado para áreas táctiles */
    }
}

/* Asegurar que la modal sea visible con teclado abierto */
@media (max-height: 500px) {
    #modal {
        max-height: 80vh;
        overflow-y: auto;
    }
}


.barra-carga.activa {
    display: block; /* Mostrar cuando esté activa */
}

.icon-hidden {
    visibility: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 30%;
    left: 0;
    transform: translateY(-50%); /* Centrado vertical */
    width: 60px; /* Ancho inicial (solo íconos) */
    background: #2d2d2d;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: width 0.3s ease; /* Transición suave al expandirse */
    z-index: 1000; /* Por encima de otros elementos */

}

/* Estilos específicos para ul dentro de sidebar */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Estilos específicos para li dentro de sidebar */
.sidebar li {
    display: block; /* Sobreescribimos el flex global */
    margin: 0; /* Eliminamos márgenes no deseados */
    padding: 0; /* Eliminamos padding no deseado */
    background: none; /* Quitamos el fondo global */
    border-radius: 0; /* Quitamos bordes redondeados globales */
    transition: background 0.3s ease; /* Transición para el fondo */
}

/* Fondo al hacer hover en li */
.sidebar li:hover {
    background: #404040; /* Fondo más claro al hacer hover */

    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Estilos para los enlaces */
.sidebar a {
    display: flex;
    align-items: center;
    padding: 15px;
    color: var(--text);
    text-decoration: none;
    overflow: hidden; /* Evita que el texto sobresalga antes de la animación */
}

/* Transición para ícono, logo y texto */
.sidebar a .material-icons,
.sidebar a .sidebar-logo,
.sidebar a span {
    transition: transform 0.3s ease; /* Transición solo para desplazamiento */
}

/* Hover sobre cada enlace: mover ícono y texto */
.sidebar li:hover a .material-icons,
.sidebar li:hover a .sidebar-logo,
.sidebar li:hover a span {
    transform: translateX(15px); /* Desplazar 15px a la derecha */
}

/* Íconos */
.sidebar .material-icons {
    font-size: 24px;
    color: var(--accent); /* Color magenta */
}

/* Logo */
.sidebar-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Texto */
.sidebar span {
    margin-left: 10px;
    font-family: 'Big Shoulders Stencil', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    white-space: nowrap; /* Evita que el texto se divida en líneas */
    opacity: 0; /* Oculto por defecto */
    transform: translateX(-20px); /* Desplazado a la izquierda inicialmente */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Animación para opacidad y posición */
}

/* Expansión al hacer hover en el sidebar */
.sidebar:hover {
    width: 250px; /* Ancho expandido */
}

/* Mostrar y animar texto al hacer hover en el sidebar */
.sidebar:hover span {
    opacity: 1; /* Mostrar texto */
    transform: translateX(0); /* Mover a su posición original */
}

/* Ocultar en móviles */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
}

footer {
    text-align: center;
    padding: 15px 0;
    background: #222;
    color: #fff;
    font-size: 0.85em;
    margin-top: 40px;
}


