/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Estilos generales */
body {
    background-color: #fff;
    text-align: center;
    padding-top: 80px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 70px;
}

/* Logo */
.logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* Menú de navegación */
.nav-menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-menu ul li {
    display: inline-block;
}

.nav-menu ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.nav-menu ul li a:hover {
    background-color: pink;
    border-radius: 5px;
}

/* Menú usuario */
.menu-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-menu img {
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* Menú desplegable del usuario */
.user-dropdown {
    display: none;
    position: absolute;
    right: 20px;
    top: 70px;
    background: white;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 10px;
    width: 150px;
}

.user-dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

.user-dropdown a:hover {
    background-color: pink;
}

.user-dropdown.show {
    display: block;
}

/* Icono de menú en móviles */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
}

.menu-icon div {
    width: 40px;  /* Aumenta el ancho de las barras */
    height: 5px;  /* Aumenta el grosor */
    background-color: black;
    margin: 6px 0; /* Separa más las barras */
    transition: 0.3s;
    border-radius: 5px;
}

/* Menú lateral en móviles */
.nav-menu-mobile {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    padding-top: 80px;
}

.nav-menu-mobile ul {
    list-style: none;
    padding: 0;
}

.nav-menu-mobile ul li {
    padding: 15px;
    border-bottom: 1px solid #ccc;
}

.nav-menu-mobile ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.nav-menu-mobile.active {
    right: 0;
}
/* Botón de cierre del menú lateral */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: black;
    font-weight: bold;
}

.close-btn:hover {
    color: red;  /* Cambio de color al pasar el ratón */
}


/* Responsive para móviles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-icon {
        display: flex;
        table {
            display: block;
            overflow-x: auto;
            width: 100%;
        }
    
        table thead {
            display: none;
        }
    
        table tbody, table tr, table td {
            display: block;
            width: 100%;
        }
    
        table tr {
            margin-bottom: 20px;
            background: #f9f9f9;
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
    
        table td {
            text-align: left;
            padding: 10px 5px;
            font-size: 16px;
            border: none;
            border-bottom: 1px solid #ddd;
            position: relative;
        }
    
        table td::before {
            content: attr(data-label);
            font-weight: bold;
            display: block;
            margin-bottom: 5px;
            color: #333;
        }
    
        table td:last-child {
            border-bottom: none;
        }
    
        /* Botones dentro del td */
        td a,
        td form button {
            display: block;
            width: 100%;
            margin: 5px 0;
            padding: 10px;
            text-align: center;
            border-radius: 10px;
        }
    
        td form {
            margin: 0;
        }
    
        td form button {
            border: none;
            cursor: pointer;
        }
    }

    .horas-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 10px;
        margin-top: 10px;
        padding: 10px;
    }
    
    .hora-btn {
        background-color: #ffe0ed;
        border: 2px solid #ff7eb9;
        border-radius: 10px;
        padding: 10px 0;
        text-align: center;
        cursor: pointer;
        font-weight: bold;
        transition: 0.3s ease;
    }
    
    .hora-btn:hover {
        background-color: #ffb6d9;
        color: white;
    }
    
    .hora-btn.selected {
        background-color: #ff4fa2;
        color: white;
        border-color: #e60073;
    
}
}