/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

/* Variables CSS */
:root {
    --primary: #ff3e7f;
    --secondary: #00ffaa;
    --accent: #ffcc00;
    --dark: #252638;
    --darker: #191a27;
    --light: #f5f5f7;
    --shadow: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}








/* Header y navegación */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(25, 26, 39, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 5%;
    background: rgba(25, 26, 39, 0.95);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(0, 255, 170, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 255, 170, 0.8), 0 0 30px rgba(0, 255, 170, 0.6);
    }
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 2rem;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}











body {
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(37, 38, 56, 0.8), rgba(25, 26, 39, 0.95));
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    min-height: 80vh;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

h1 {
    color: var(--secondary);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

.section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: -1;
    transition: transform 0.5s;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 9px 0 rgba(0, 0, 0, 0.2);
}

.btn:hover::before {
    transform: rotate(45deg) translateX(50%) translateY(50%);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background-color: var(--dark);
    color: var(--light);
}

.btn-danger:hover {
    background-color: #353746; /* Un tono ligeramente más claro de gris oscuro */
}

.btn-success {
    background-color: var(--secondary);
    color: var(--dark);
}

.btn-success:hover {
    background-color: #00cc88;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--light);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 16px;
    background-color: rgba(37, 38, 56, 0.7);
    color: var(--light);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 62, 127, 0.2);
}

.profile-info {
    background-color: rgba(37, 38, 56, 0.5);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.profile-info div {
    margin-bottom: 10px;
}

.profile-info span.label {
    font-weight: 500;
    width: 100px;
    display: inline-block;
    color: var(--secondary);
}

.avatar-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--primary);
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(37, 38, 56, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 20px;
}

.hidden {
    display: none;
}

.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--secondary);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.avatar-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.login-section, .profile-section {
    transition: opacity 0.5s;
}

.fade-out {
    opacity: 0;
}

.loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: rgba(245, 245, 247, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 0 10px;
    }

    h1 {
        font-size: 1.8rem;
    }
}







.reservations-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #9cce93;
}

.reservations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.reservations-table th,
.reservations-table td {
    padding: 10px 20px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    min-width: 100px;
}

.reservations-table th {
    background-color: #00cc88;
    font-weight: bold;
}

.reservations-table tr:hover {
    background-color: #00cc88;
}

#loadingReservations,
#noReservations {
    padding: 15px;
    text-align: center;
    color: #666;
}

.hidden {
    display: none;
}
