html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f1ea;
    color: #2b2b2b;
    line-height: 1.6;
}

header {
    min-height: 100vh;
    background-color: #263238;
    color: white;
    display: flex;
    flex-direction: column;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 7%;
}

.logo {
    margin: 0;
    font-size: 28px;
}

.menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    text-decoration: underline;
}

.hero {
    width: 86%;
    max-width: 850px;
    margin: auto;
    text-align: center;
    padding: 70px 20px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.1;
    margin: 15px 0 20px;
}

.hero > p:not(.etiqueta) {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 20px;
}

.etiqueta,
.subtitulo {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: bold;
}

.etiqueta {
    color: #e7c98f;
}

.subtitulo {
    color: #8a6840;
    margin-bottom: 8px;
}

.boton {
    display: inline-block;
    padding: 14px 26px;
    background-color: #e7c98f;
    color: #263238;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.boton:hover {
    transform: translateY(-3px);
}

main section {
    width: 86%;
    max-width: 1150px;
    margin: 60px auto;
    padding: 50px;
    background-color: white;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

section h2 {
    margin-top: 0;
    font-size: 36px;
    line-height: 1.2;
}

.contenido-seccion {
    max-width: 720px;
}

.habitaciones-grid,
.servicios-grid,
.opiniones-grid {
    display: grid;
    gap: 24px;
    margin-top: 30px;
}

.habitaciones-grid {
    grid-template-columns: repeat(3, 1fr);
}

.servicios-grid {
    grid-template-columns: repeat(4, 1fr);
}

.opiniones-grid {
    grid-template-columns: repeat(2, 1fr);
}

.habitacion,
.servicio,
.opinion {
    margin: 0;
    padding: 28px;
    background-color: #f7f3ec;
    border-radius: 12px;
}

.habitacion,
.servicio {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.habitacion:hover,
.servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.habitacion h3,
.servicio h3 {
    margin-top: 0;
}

.precio {
    color: #8a6840;
    font-size: 21px;
    font-weight: bold;
}

.destacada {
    position: relative;
    border: 2px solid #c6a66b;
}

.recomendado {
    display: inline-block;
    margin-top: 0;
    padding: 5px 10px;
    background-color: #c6a66b;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.opinion p {
    font-size: 18px;
    font-style: italic;
}

.opinion footer {
    margin-top: 15px;
    font-weight: bold;
}

.reserva-contenido {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: bold;
    margin-top: 5px;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #cbc3b8;
    border-radius: 6px;
    font: inherit;
}

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

button {
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background-color: #263238;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #37474f;
}

.footer-principal {
    padding: 50px 20px;
    background-color: #263238;
    color: white;
    text-align: center;
}

.footer-principal h2 {
    margin-top: 0;
}

.copyright {
    margin-top: 30px;
    color: #c7c7c7;
    font-size: 14px;
}

@media (max-width: 900px) {
    .habitaciones-grid {
        grid-template-columns: 1fr;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reserva-contenido {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 46px;
    }
}

@media (max-width: 650px) {
    nav {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
        .menu-btn {
        display: block;
                        }

.menu {
    display: none;
    flex-direction: column;
    width: 100%;
}

.menu.activo {
    display: flex;
}
    }

    .menu {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .hero {
        width: 92%;
        padding: 55px 15px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero > p:not(.etiqueta) {
        font-size: 18px;
    }

    main section {
        width: 92%;
        margin: 35px auto;
        padding: 30px 20px;
    }

    section h2 {
        font-size: 30px;
    }

    .servicios-grid,
    .opiniones-grid {
        grid-template-columns: 1fr;
    }
}

.habitacion img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

#mensaje-formulario {
    margin-top: 15px;
    font-weight: bold;
    color: #8a6840;
    text-align: center;
}

/* ================= Header del panel ================= */
.admin-header {
    background-color: #263238;
    color: white;
    padding: 15px 30px;       /* más compacto */
    font-family: Arial, sans-serif;
    line-height: 1.2;
    margin-bottom: 20px;      /* espacio hacia contenido */
}

.admin-header h1 {
    font-size: 28px;          /* tamaño del título más reducido */
    margin: 0;
}

.admin-header p {
    font-size: 16px;
    margin: 2px 0 0 0;
}

/* ================= Controles del panel ================= */
.panel-controles {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.panel-controles select {
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* ================= Contenedor de reservas ================= */
.panel-reservas {
    width: 90%;
    max-width: 1000px;
    margin: auto;
}

#lista-reservas {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ================= Tarjetas de reserva ================= */
.reserva {
    background-color: #37474f;
    color: #f5f5f5;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reserva:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

.reserva h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.reserva p, .reserva small {
    margin: 2px 0;
    font-size: 14px;
}

/* Botón eliminar */
.reserva button.eliminar {
    margin-top: 8px;
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    background-color: #e53935;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.reserva button.eliminar:hover {
    background-color: #b71c1c;
}

/* ================= Responsive ================= */
@media (max-width: 700px) {
    .panel-controles {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .reserva {
        padding: 10px 12px;
    }

    .reserva h3 {
        font-size: 16px;
    }

    .reserva p, .reserva small {
        font-size: 13px;
    }
}

/* Encabezado exclusivo del panel de administración */
header.admin-header {
    min-height: auto;
    height: auto;
    display: block;
    padding: 20px 40px;
    margin: 0 0 25px;
    background-color: #263238;
    color: white;
}

header.admin-header h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
}

header.admin-header p {
    margin: 8px 0 0;
    font-size: 18px;
}

#contador-reservas {
    font-weight: bold;
    color: #263238;
}

.sin-reservas {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    text-align: center;
    color: #666;
}

.reserva .eliminar {
    width: auto;
    margin-top: 15px;
    padding: 9px 14px;
    background-color: #c62828;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.reserva .eliminar:hover {
    background-color: #8e0000;
}

.reserva-encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.reserva-encabezado h3 {
    margin: 0;
}

.estado {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.estado-pendiente {
    background-color: #fff3cd;
    color: #856404;
}

.estado-confirmada {
    background-color: #d4edda;
    color: #155724;
}

.estado-cancelada {
    background-color: #f8d7da;
    color: #721c24;
}

.acciones-reserva {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-top: 18px;
}

.acciones-reserva label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.estado-reserva {
    min-width: 150px;
    padding: 9px;
    border: 1px solid #cbc3b8;
    border-radius: 6px;
    font: inherit;
}

@media (max-width: 650px) {
    .reserva-encabezado,
    .acciones-reserva {
        flex-direction: column;
        align-items: stretch;
    }

    .estado {
        width: fit-content;
    }

    .estado-reserva {
        width: 100%;
    }
}
