* {
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at top left, rgba(166, 119, 43, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(90, 22, 22, 0.22), transparent 35%),
        linear-gradient(135deg, #050505 0%, #101010 45%, #1a120d 100%);
    color: #f3ead7;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        linear-gradient(45deg, #fff 1px, transparent 1px),
        linear-gradient(-45deg, #fff 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: -1;
}

header {
    align-items: center;
    background: rgba(5, 5, 5, 0.94);
    border-bottom: 1px solid #8b6a2f;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: space-between;
    padding: 20px 8%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

a {
    color: inherit;
    text-decoration: none;
}

.logo {
    color: #d7aa4a;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(215, 170, 74, 0.35);
}

.logo::before {
    content: "✂ ";
    color: #f2d28a;
}

nav {
    align-items: center;
    display: flex;
    gap: 18px;
}

nav a {
    color: #e8dcc6;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

nav a::after {
    background: #d7aa4a;
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
    width: 100%;
}

nav a:hover {
    color: #d7aa4a;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

main {
    margin: 0 auto;
    max-width: 1180px;
    padding: 42px 20px 70px;
}

#descripcionFiltro {
    color: #c9bda7;
    font-size: 0.95rem;
    margin: 0 0 22px;
}

.cabecera {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cabecera h1,
main h1 {
    color: #f3ead7;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

.cabecera h1::after,
main h1::after {
    background: #d7aa4a;
    content: "";
    display: block;
    height: 4px;
    margin-top: 14px;
    width: 110px;
}

/* PAGINACIÓN */
#paginacionReservas {
    margin-top: 1.2rem;
    display: flex;
    gap: .6rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#paginacionReservas button {
    background: #0c0c0c;
    border: 1px solid rgba(215, 170, 74, 0.4);
    border-radius: 0;
    color: #d7aa4a;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0.6px;
    margin-top: 0;
    padding: .7rem 1rem;
    text-transform: uppercase;
    transition: 0.2s ease;
}

#paginacionReservas button:hover:not(:disabled) {
    background: #d7aa4a;
    color: #050505;
    transform: translateY(-2px);
}

#paginacionReservas button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

#paginacionReservas .info-paginacion {
    color: #c9bda7;
    font-weight: 900;
    padding: .6rem .9rem;
}

/* LAYOUT */
.layout {
    display: grid;
    gap: 24px;
    grid-template-columns: 360px 1fr;
}

.panel {
    background:
        linear-gradient(180deg, #171717, #0c0c0c);
    border: 1px solid rgba(215, 170, 74, 0.28);
    border-left: 5px solid #d7aa4a;
    border-radius: 0;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    padding: 26px;
    position: relative;
}

.panel::after {
    content: "✂";
    bottom: -18px;
    color: rgba(215, 170, 74, 0.06);
    font-size: 100px;
    position: absolute;
    right: 20px;
}

.panel h2,
.panel h3 {
    color: #d7aa4a;
    font-weight: 900;
    letter-spacing: 1.2px;
    margin-top: 0;
    position: relative;
    text-transform: uppercase;
}

label {
    color: #d7aa4a;
    display: block;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.7px;
    margin-top: 14px;
    position: relative;
    text-transform: uppercase;
}

input,
select,
textarea {
    background: #080808;
    border: 1px solid rgba(215, 170, 74, 0.35);
    border-radius: 0;
    color: #f3ead7;
    font-size: 15px;
    margin-top: 7px;
    padding: 12px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #d7aa4a;
    box-shadow: 0 0 18px rgba(215, 170, 74, 0.18);
    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

button {
    background: #d7aa4a;
    border: 1px solid #d7aa4a;
    border-radius: 0;
    color: #050505;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 1px;
    margin-top: 14px;
    padding: 12px 15px;
    position: relative;
    text-transform: uppercase;
    transition: 0.2s ease;
}

button:hover {
    background: #f4cf73;
    border-color: #f4cf73;
    box-shadow: 0 0 25px rgba(215, 170, 74, 0.25);
    transform: translateY(-2px);
}

/* CALENDARIO */
.calendario-cabecera {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    position: relative;
}

.calendario-cabecera h2 {
    color: #f3ead7;
    font-weight: 900;
    letter-spacing: 1.2px;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}

.calendario-cabecera button {
    background: transparent;
    border: 1px solid rgba(215, 170, 74, 0.55);
    color: #d7aa4a;
    margin-top: 0;
}

.calendario-cabecera button:hover {
    background: #d7aa4a;
    color: #050505;
}

.leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 18px 0;
    position: relative;
}

.leyenda span {
    align-items: center;
    color: #c9bda7;
    display: flex;
    font-size: 14px;
    gap: 7px;
}

.punto {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: inline-block;
    height: 11px;
    width: 11px;
}

.calendario-mes {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-bottom: 26px;
    position: relative;
}

.nombre-dia {
    color: #d7aa4a;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-align: center;
    text-transform: uppercase;
}

.dia {
    align-items: flex-start;
    background:
        linear-gradient(180deg, #171717, #0c0c0c);
    border: 1px solid rgba(215, 170, 74, 0.22);
    border-radius: 0;
    color: #f3ead7;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: space-between;
    margin-top: 0;
    min-height: 78px;
    padding: 10px;
    text-align: left;
    transition: 0.2s ease;
}

.dia:hover {
    border-color: #d7aa4a;
    transform: translateY(-2px);
}

.dia strong {
    color: #f3ead7;
    font-size: 18px;
}

.dia span {
    color: #c9bda7;
    font-size: 12px;
}

/* ESTADOS DEL CALENDARIO */
.dia.disponible,
.punto.disponible {
    background: linear-gradient(180deg, #16351f, #0b1f11);
}

.dia.limitado,
.punto.limitado {
    background: linear-gradient(180deg, #4a3812, #211807);
}

.dia.completo,
.punto.completo {
    background: linear-gradient(180deg, #4a1712, #230907);
}

.dia.cerrado,
.punto.cerrado {
    background: linear-gradient(180deg, #252525, #111);
}

.dia.seleccionado {
    border-color: #d7aa4a;
    box-shadow:
        0 0 0 2px rgba(215, 170, 74, 0.25),
        0 0 22px rgba(215, 170, 74, 0.2);
}

.vacio-calendario {
    background: transparent;
    border: 0;
}

/* BOTONES ESPECIALES */
#limpiar,
.editar {
    background: transparent;
    border: 1px solid rgba(215, 170, 74, 0.55);
    color: #d7aa4a;
}

#limpiar:hover,
.editar:hover {
    background: #d7aa4a;
    color: #050505;
}

.eliminar {
    background: #8f241c;
    border-color: #8f241c;
    color: #fff;
}

.eliminar:hover {
    background: #c0392b;
    border-color: #c0392b;
}

/* RESERVAS */
.reserva {
    align-items: center;
    background:
        linear-gradient(180deg, #171717, #0c0c0c);
    border: 1px solid rgba(215, 170, 74, 0.28);
    border-left: 4px solid #d7aa4a;
    border-radius: 0;
    color: #f3ead7;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 18px;
    position: relative;
    transition: 0.2s ease;
}

.reserva:hover {
    border-color: #d7aa4a;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
    transform: translateY(-3px);
}

.reserva p,
.reserva small,
.vacio {
    color: #c9bda7;
}

.acciones {
    display: flex;
    gap: 8px;
}

.bloqueada {
    background: rgba(215, 170, 74, 0.08);
    border-left: 4px solid #d7aa4a;
    color: #c9bda7;
    display: block;
    padding: 10px 12px;
}

.error {
    background: rgba(179, 38, 30, 0.12);
    border-left: 4px solid #d35a4a;
    color: #ff8a7a;
    font-weight: bold;
    margin-top: 14px;
    padding: 10px 12px;
}

.ok {
    background: rgba(40, 125, 60, 0.12);
    border-left: 4px solid #3fa35b;
    color: #77d98b;
    font-weight: bold;
    margin-top: 14px;
    padding: 10px 12px;
}

/* RESPONSIVE */
@media (max-width: 820px) {
    header,
    .cabecera,
    .reserva {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    main {
        padding: 28px 14px 50px;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .calendario-mes {
        gap: 5px;
    }

    .dia {
        min-height: 58px;
        padding: 7px;
    }

    .dia span {
        display: none;
    }

    .acciones {
        flex-wrap: wrap;
        margin-top: 10px;
    }
}