/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #2d2d2d;
    background-color: #f5f5f4;
}

/* Clase para ocultar elementos */
.oculto {
    display: none !important;
}

/* Contenedor principal */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem;
}

/* Pantalla de login */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #d4d4d4, #f5f5f4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container .card {
    max-width: 400px;
    width: 100%;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.login-container h2 {
    font-family: 'Playfair Display', serif;
    color: #2d2d2d;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-container label {
    font-weight: 600;
    color: #2d2d2d;
}

.login-container input {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.login-container input:focus {
    border-color: #4b5e40;
    outline: none;
}

.login-container button {
    padding: 0.75rem;
    background-color: #4b5e40;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.login-container button:hover {
    background-color: #a3b18a;
}

/* Navegación */
.menu-superior {
    background: #4b5e40;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.menu-items {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.menu-items a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.menu-items a:hover, .menu-items a.activo {
    color: #a3b18a;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #ffffff;
}

/* Botón de logout */
.logout-btn {
    padding: 0.5rem 1rem;
    background: #ffffff;
    color: #4b5e40;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.logout-btn:hover {
    background: #a3b18a;
    color: #ffffff;
}

/* Secciones */
.seccion {
    display: none;
}

.seccion.activa {
    display: block;
}

h3 {
    font-family: 'Playfair Display', serif;
    color: #2d2d2d;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

h4 {
    font-family: 'Playfair Display', serif;
    color: #4b5e40;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Banner */
.banner {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    background: rgba(75, 94, 64, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
}

.banner-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0;
}

/* Formulario de reservas */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

label {
    font-weight: 600;
    color: #2d2d2d;
}

input, select {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    border-color: #4b5e40;
    outline: none;
}

button {
    padding: 0.75rem;
    background: #4b5e40;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #a3b18a;
}

.nota {
    font-size: 0.9rem;
    color: #4b5e40;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #d4d4d4;
}

th {
    background: #4b5e40;
    color: white;
    font-family: 'Playfair Display', serif;
}

/* Footer */
footer {
    background: #2d2d2d;
    color: #d4d4d4;
    text-align: center;
    padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-superior {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .menu-items {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #4b5e40;
        padding: 1rem 0;
    }

    .menu-items.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .banner img {
        height: 150px;
    }

    .banner-text h1 {
        font-size: 1.8rem;
    }
}

/* Estilos para botón de cancelar */
.cancelar-btn {
    padding: 0.5rem 1rem;
    background: #e63946;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancelar-btn:hover {
    background: #b91c1c;
}

/* Estilos para notificaciones (toast) */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
}

.toast.exito {
    background: #2d6a4f;
}

.toast.error {
    background: #e63946;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Estilos para el modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
}

.modal-content p {
    margin-bottom: 2rem;
}

.modal-content button {
    margin: 0 0.5rem;
}

#confirmar-cancelar {
    background: #e63946;
}

#confirmar-cancelar:hover {
    background: #b91c1c;
}

#cerrar-modal {
    background: #4b5e40;
}

#cerrar-modal:hover {
    background: #a3b18a;
}

/* Estilos para el indicador de carga */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #d4d4d4;
    border-top: 4px solid #4b5e40;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Estilos para el calendario */
.calendario {
    margin-top: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    overflow-x: auto;
}

.calendario table {
    width: 100%;
    border-collapse: collapse;
}

.calendario th, .calendario td {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.calendario th {
    background: #4b5e40;
    color: white;
}

.calendario td {
    border: 1px solid #d4d4d4;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendario .hora-libre {
    background: #d4edda; /* Verde claro */
}

.calendario .hora-libre:hover {
    background: #c3e6cb;
}

.calendario .hora-ocupada {
    background: #f8d7da; /* Rojo claro */
    cursor: not-allowed;
}

.calendario .hora-seleccionada {
    background: #a3b18a; /* Verde más oscuro para selección */
    color: white;
}
