/* =========================================================
   DEPTO SHOWER
   ESTILO GENERAL
========================================================= */

:root {
    --crema: #fffaf7;
    --crema-oscuro: #f8eee9;

    --rosa-claro: #f6dfe2;
    --rosa: #d9959e;
    --rosa-oscuro: #9c5c67;

    --terracota: #c98270;
    --terracota-oscuro: #9f5d50;

    --vino: #613b43;

    --texto: #4b3a3d;
    --texto-suave: #806f72;

    --blanco: #ffffff;

    --verde: #6c9a82;
    --verde-claro: #e5f1e9;

    --rojo: #b75d68;
    --rojo-claro: #fae5e8;

    --borde: #ead9d6;

    --sombra-suave:
        0 8px 30px rgba(97, 59, 67, 0.08);

    --radio: 18px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background:
        linear-gradient(
            180deg,
            var(--crema) 0%,
            #fffdfc 100%
        );

    color: var(--texto);

    font-family:
        "Inter",
        Arial,
        sans-serif;

    line-height: 1.6;
}


/* =========================================================
   TIPOGRAFÍA
========================================================= */

h1,
h2,
h3 {
    margin-top: 0;

    color: var(--vino);

    line-height: 1.2;
}


h1 {
    font-family: "Caveat", cursive;

    font-size: clamp(
        3rem,
        7vw,
        5.2rem
    );

    font-weight: 600;

    margin-bottom: 10px;
}


h2 {
    font-family: "Caveat", cursive;

    font-size: clamp(
        2.3rem,
        5vw,
        3.4rem
    );

    font-weight: 600;
}


h3 {
    font-size: 1.15rem;
}


p {
    margin-top: 0;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.encabezado {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f8dfe2 0%,
            #f9ebe6 48%,
            #f8eee9 100%
        );

    padding:
        80px
        24px
        75px;

    text-align: center;

    border-bottom:
        1px solid
        var(--borde);
}


.encabezado::before,
.encabezado::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.32);
}


.encabezado::before {
    top: -80px;
    left: -50px;
}


.encabezado::after {
    right: -50px;
    bottom: -100px;
}


.encabezado-contenido {
    position: relative;

    z-index: 1;

    width: min(
        100%,
        820px
    );

    margin: 0 auto;
}


.etiqueta-superior {
    margin-bottom: 10px;

    color: var(--rosa-oscuro);

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


.subtitulo {
    max-width: 650px;

    margin:
        0 auto
        22px;

    color: var(--vino);

    font-size: 1.15rem;

    font-weight: 500;
}


.descripcion {
    max-width: 680px;

    margin:
        0 auto
        25px;

    color: var(--texto-suave);

    font-size: 1rem;
}


.mensaje-final {
    margin-bottom: 0;

    color: var(--terracota);

    font-family: "Caveat", cursive;

    font-size: 1.8rem;
}


/* =========================================================
   CONTENIDO
========================================================= */

.contenido-principal {
    width: min(
        calc(100% - 32px),
        1180px
    );

    margin: 0 auto;

    padding:
        65px
        0
        80px;
}


/* =========================================================
   SECCIONES
========================================================= */

.seccion-regalos {
    margin-bottom: 70px;
}


.titulo-seccion {
    max-width: 720px;

    margin:
        0 auto
        38px;

    text-align: center;
}


.titulo-seccion h2 {
    margin-bottom: 12px;
}


.titulo-seccion > p:last-child {
    color: var(--texto-suave);

    margin-bottom: 0;
}


/* =========================================================
   GRID DE REGALOS
========================================================= */

.grid-regalos {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                250px,
                1fr
            )
        );

    gap: 28px;

    width: 100%;
}


/* =========================================================
   TARJETA DE REGALO
========================================================= */

.tarjeta-regalo {
    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: var(--blanco);

    border:
        1px solid
        var(--borde);

    border-radius:
        var(--radio);

    box-shadow:
        var(--sombra-suave);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.tarjeta-regalo:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 14px 38px
        rgba(97, 59, 67, 0.13);
}


.tarjeta-regalo img {
    display: block;

    width: 100%;

    height: 220px;

    object-fit: cover;

    background:
        var(--crema-oscuro);
}


.contenido-tarjeta {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 24px;
}


.contenido-tarjeta h3 {
    margin-bottom: 10px;
}


.estado {
    display: inline-flex;

    align-self: flex-start;

    padding:
        5px
        12px;

    margin-bottom: 12px;

    border-radius: 999px;

    font-size: 0.78rem;

    font-weight: 700;
}


.estado-disponible {
    color: #52765f;

    background:
        var(--verde-claro);
}


.estado-reservado {
    color: var(--rosa-oscuro);

    background:
        var(--rosa-claro);
}


.reservado-por {
    margin-bottom: 12px;

    color: var(--texto-suave);

    font-size: 0.88rem;
}


.link-referencia {
    margin-bottom: 20px;

    color: var(--rosa-oscuro);

    font-size: 0.9rem;

    font-weight: 600;

    text-decoration: none;
}


.link-referencia:hover {
    text-decoration: underline;
}


/* =========================================================
   BOTONES
========================================================= */

button {
    font-family: inherit;

    cursor: pointer;
}


.btn-reservar,
.btn-confirmar,
.btn-principal {
    width: 100%;

    border: 0;

    border-radius: 12px;

    padding:
        13px
        18px;

    background:
        var(--rosa-oscuro);

    color: var(--blanco);

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.btn-reservar {
    margin-top: auto;
}


.btn-reservar:hover,
.btn-confirmar:hover,
.btn-principal:hover {
    background:
        var(--terracota-oscuro);

    transform:
        translateY(-1px);
}


.btn-reservar:disabled {
    cursor: not-allowed;

    background:
        #d8c9ca;

    color:
        #806f72;

    transform: none;
}


.btn-confirmar:disabled,
.btn-principal:disabled {
    cursor: wait;

    opacity: 0.65;

    transform: none;
}


/* =========================================================
   MENSAJES
========================================================= */

.mensaje-carga,
.mensaje-vacio {
    grid-column: 1 / -1;

    padding: 40px;

    color: var(--texto-suave);

    text-align: center;

    background: var(--blanco);

    border:
        1px solid
        var(--borde);

    border-radius:
        var(--radio);
}


.mensaje-error {
    padding: 15px 18px;

    color: #914b55;

    background:
        var(--rojo-claro);

    border:
        1px solid
        #efc7cd;

    border-radius: 12px;
}


.mensaje-admin {
    margin-top: 15px;

    font-size: 0.9rem;
}


.mensaje-admin.exito {
    color: #52765f;
}


.mensaje-admin.error {
    color: var(--rojo);
}


/* =========================================================
   NOTA FINAL
========================================================= */

.nota-final {
    max-width: 760px;

    margin:
        0 auto;

    padding:
        38px
        30px;

    background:
        var(--rosa-claro);

    border-radius:
        var(--radio);

    text-align: center;
}


.nota-final h2 {
    margin-bottom: 10px;
}


.nota-final p {
    margin-bottom: 0;

    color: var(--texto-suave);
}


/* =========================================================
   FOOTER
========================================================= */

.pie-pagina {
    padding:
        30px
        24px
        40px;

    color: var(--texto-suave);

    text-align: center;

    border-top:
        1px solid
        var(--borde);
}


.pie-pagina p {
    margin-bottom: 12px;
}


.enlace-admin,
.pie-pagina a {
    color: var(--rosa-oscuro);

    font-size: 0.85rem;

    text-decoration: none;
}


.enlace-admin:hover,
.pie-pagina a:hover {
    text-decoration: underline;
}


/* =========================================================
   MODAL
========================================================= */

.modal {
    position: fixed;

    z-index: 1000;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(67, 43, 48, 0.45);

    backdrop-filter:
        blur(4px);
}


.modal.oculto {
    display: none;
}


.modal-contenido {
    position: relative;

    width: min(
        100%,
        500px
    );

    max-height: 90vh;

    overflow-y: auto;

    padding:
        42px
        34px
        32px;

    background:
        var(--crema);

    border-radius:
        22px;

    box-shadow:
        0 25px 70px
        rgba(49, 30, 35, 0.25);

    text-align: center;
}


.cerrar-modal {
    position: absolute;

    top: 14px;
    right: 16px;

    width: 40px;
    height: 40px;

    border: 0;

    border-radius: 50%;

    background:
        var(--rosa-claro);

    color:
        var(--vino);

    font-size: 1.7rem;

    line-height: 1;

    cursor: pointer;
}


.cerrar-modal:hover {
    background:
        var(--rosa);

    color:
        var(--blanco);
}


.nombre-regalo-modal {
    margin:
        18px
        0;

    padding:
        15px;

    background:
        var(--rosa-claro);

    border-radius:
        12px;

    color:
        var(--vino);

    font-weight: 700;
}


.instruccion-modal {
    color:
        var(--texto-suave);
}


/* =========================================================
   FORMULARIOS
========================================================= */

.form-reserva,
.formulario-admin,
.formulario-login {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


.campo-formulario {
    display: flex;

    flex-direction: column;

    gap: 7px;

    text-align: left;
}


.campo-formulario label,
.form-reserva label {
    color:
        var(--vino);

    font-size: 0.9rem;

    font-weight: 700;
}


input {
    width: 100%;

    padding:
        13px
        14px;

    border:
        1px solid
        var(--borde);

    border-radius:
        11px;

    background:
        var(--blanco);

    color:
        var(--texto);

    font-family:
        inherit;

    font-size:
        1rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


input:focus {
    border-color:
        var(--rosa);

    box-shadow:
        0 0 0 4px
        rgba(217, 149, 158, 0.16);
}


.nota-modal {
    margin-top: 20px;

    color:
        var(--texto-suave);

    font-size: 0.78rem;
}


/* =========================================================
   LOGIN
========================================================= */

.pagina-login {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        30px 20px;

    background:
        linear-gradient(
            135deg,
            #f8dfe2,
            #fffaf7
        );
}


.contenedor-login {
    width: 100%;

    max-width: 480px;
}


.login-tarjeta {
    padding:
        48px
        40px;

    background:
        var(--blanco);

    border:
        1px solid
        var(--borde);

    border-radius:
        22px;

    box-shadow:
        0 18px 55px
        rgba(97, 59, 67, 0.12);

    text-align: center;
}


.login-tarjeta h1 {
    margin-bottom: 5px;
}


.subtitulo-login {
    margin-bottom: 30px;

    color:
        var(--texto-suave);
}


.volver-inicio {
    display: inline-block;

    margin-top: 24px;

    color:
        var(--rosa-oscuro);

    font-size: 0.9rem;

    text-decoration: none;
}


.volver-inicio:hover {
    text-decoration: underline;
}


/* =========================================================
   ADMINISTRACIÓN
========================================================= */

.usuario-activo {
    margin-top: 15px;

    color:
        var(--texto-suave);

    font-size: 0.9rem;
}


.usuario-activo strong {
    color:
        var(--rosa-oscuro);
}


hr {
    width: 100%;

    margin:
        60px
        0;

    border: 0;

    border-top:
        1px solid
        var(--borde);
}


/* =========================================================
   TABLA ADMIN
========================================================= */

.tabla-contenedor {
    width: 100%;

    overflow-x: auto;

    background:
        var(--blanco);

    border:
        1px solid
        var(--borde);

    border-radius:
        var(--radio);

    box-shadow:
        var(--sombra-suave);
}


table {
    width: 100%;

    border-collapse: collapse;

    min-width: 700px;
}


th,
td {
    padding:
        15px
        18px;

    text-align: left;

    border-bottom:
        1px solid
        var(--borde);
}


th {
    background:
        var(--rosa-claro);

    color:
        var(--vino);

    font-size:
        0.82rem;

    text-transform:
        uppercase;

    letter-spacing:
        0.04em;
}


tr:last-child td {
    border-bottom: 0;
}


.btn-eliminar {
    padding:
        8px
        12px;

    border: 0;

    border-radius:
        9px;

    background:
        var(--rojo-claro);

    color:
        var(--rojo);

    font-weight:
        700;
}


.btn-eliminar:hover {
    background:
        #f2ccd1;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .encabezado {
        padding:
            60px
            20px
            55px;
    }


    .contenido-principal {
        width:
            calc(100% - 28px);

        padding-top:
            45px;
    }


    .grid-regalos {
        grid-template-columns:
            1fr;

        gap: 20px;
    }


    .tarjeta-regalo img {
        height: 210px;
    }


    .modal {
        padding:
            14px;
    }


    .modal-contenido {
        padding:
            40px
            22px
            25px;
    }


    .login-tarjeta {
        padding:
            38px
            24px;
    }


    .nota-final {
        padding:
            30px
            22px;
    }

}


@media (max-width: 420px) {

    h1 {
        font-size:
            3.1rem;
    }


    .contenido-principal {
        width:
            calc(100% - 22px);
    }


    .contenido-tarjeta {
        padding:
            20px;
    }

}