/* Botoneria SanValentin: rectangular, borde dorado fino, relleno al pasar el mouse */
button.py-2.px-4,
button.py-2.px-3 {
    background: rgba(203, 170, 131, 0.14);
    color: #fff;
    border: 1px solid #cbaa83;
    border-radius: 0;
    font-family: "Poppins Bold", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button.py-2.px-4:hover,
button.py-2.px-3:hover,
button.py-2.px-4:focus-visible,
button.py-2.px-3:focus-visible {
    background: #cbaa83;
    color: #121212;
}

/* Paginacion de galerias: rayitas con barra de progreso */
.swiper-pagination-bullets.swiper-pagination-disfrutar,
.swiper-pagination-bullets.swiper-pagination-platos,
.swiper-pagination-bullets.swiper-pagination-celebraciones,
.swiper-pagination-bullets.swiper-pagination-promociones {
    --sv-prog: 5s;
}

.swiper-pagination-bullets.swiper-pagination-salones {
    --sv-prog: 4s;
}

.swiper-pagination-bullets.swiper-pagination-disfrutar .swiper-pagination-bullet,
.swiper-pagination-bullets.swiper-pagination-platos .swiper-pagination-bullet,
.swiper-pagination-bullets.swiper-pagination-salones .swiper-pagination-bullet,
.swiper-pagination-bullets.swiper-pagination-celebraciones .swiper-pagination-bullet,
.swiper-pagination-bullets.swiper-pagination-promociones .swiper-pagination-bullet {
    width: 16px;
    height: 3px;
    margin: 0 3px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    transform: none;
    position: relative;
    overflow: hidden;
}

.swiper-pagination-bullets.swiper-pagination-disfrutar .swiper-pagination-bullet-active,
.swiper-pagination-bullets.swiper-pagination-platos .swiper-pagination-bullet-active,
.swiper-pagination-bullets.swiper-pagination-salones .swiper-pagination-bullet-active,
.swiper-pagination-bullets.swiper-pagination-celebraciones .swiper-pagination-bullet-active,
.swiper-pagination-bullets.swiper-pagination-promociones .swiper-pagination-bullet-active {
    width: 34px;
    transform: none;
}

.swiper-pagination-bullets.swiper-pagination-disfrutar .swiper-pagination-bullet-active::after,
.swiper-pagination-bullets.swiper-pagination-platos .swiper-pagination-bullet-active::after,
.swiper-pagination-bullets.swiper-pagination-salones .swiper-pagination-bullet-active::after,
.swiper-pagination-bullets.swiper-pagination-celebraciones .swiper-pagination-bullet-active::after,
.swiper-pagination-bullets.swiper-pagination-promociones .swiper-pagination-bullet-active::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background: #cbaa83;
    transform-origin: left center;
    animation: svProg var(--sv-prog, 5s) linear forwards;
}

@keyframes svProg {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .swiper-pagination-bullets .swiper-pagination-bullet-active::after {
        animation: none;
    }
}

/* Boton compuesto WhatsApp + Reserva Ahora: diseno original de la marca */
.position-img + a button,
.position-img + a button.py-2 {
    background: #cbaa83;
    color: #345650;
    border: 0;
    border-radius: 0;
    font-family: "Poppins Bold", sans-serif;
    font-size: 1rem;
    letter-spacing: normal;
    text-transform: uppercase;
    padding: 8px 24px;
}

.position-img + a button:hover,
.position-img + a button:focus-visible {
    background: #d8bd9b;
    color: #345650;
}

.swiper-pagination-bullets.swiper-pagination-disfrutar,
.swiper-pagination-bullets.swiper-pagination-platos,
.swiper-pagination-bullets.swiper-pagination-salones,
.swiper-pagination-bullets.swiper-pagination-celebraciones,
.swiper-pagination-bullets.swiper-pagination-promociones {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.position-img + a button {
    white-space: nowrap;
}

/* Boton flotante Reservar (solo movil) */
.fab-reservar {
    display: none;
}

@media (max-width: 767px) {
    .fab-reservar {
        position: fixed;
        right: 16px;
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        z-index: 11;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 42px;
        padding: 0 16px;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: #cbaa83;
        color: #121212;
        font-family: "Poppins Bold", sans-serif;
        font-size: 11.5px;
        letter-spacing: 0.12em;
        line-height: 1;
        text-transform: uppercase;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
        opacity: 0;
        transform: translateY(24px);
        pointer-events: none;
        transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .fab-reservar svg {
        flex: none;
        width: 17px;
        height: 17px;
    }

    .fab-reservar.is-visible {
        opacity: 1;
        transform: none;
        pointer-events: auto;
        animation: fabHalo 3.2s ease-out 0.6s infinite;
    }

    .fab-reservar::after {
        content: "";
        position: absolute;
        top: 0;
        left: -70%;
        width: 45%;
        height: 100%;
        background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
        transform: skewX(-20deg);
        pointer-events: none;
        animation: fabBrillo 5.5s ease-in-out 1s infinite;
    }

    @keyframes fabHalo {
        0% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(203, 170, 131, 0.55); }
        70%, 100% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 0 14px rgba(203, 170, 131, 0); }
    }

    @keyframes fabBrillo {
        0%, 62% { left: -70%; }
        100% { left: 140%; }
    }

    .fab-reservar:active {
        background: #d8bd9b;
    }

    .fab-reservar:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 3px;
    }

    body.sv-menu-open .fab-reservar {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .fab-reservar,
    .fab-reservar.is-visible {
        transition: none;
        animation: none;
    }

    .fab-reservar::after {
        display: none;
    }
}

/* Areas tactiles de 24px+ para las rayitas de paginacion (la linea visible sigue siendo de 3px) */
.swiper-pagination-bullets.swiper-pagination-disfrutar .swiper-pagination-bullet,
.swiper-pagination-bullets.swiper-pagination-platos .swiper-pagination-bullet,
.swiper-pagination-bullets.swiper-pagination-salones .swiper-pagination-bullet,
.swiper-pagination-bullets.swiper-pagination-celebraciones .swiper-pagination-bullet,
.swiper-pagination-bullets.swiper-pagination-promociones .swiper-pagination-bullet {
    box-sizing: content-box;
    margin: 0;
    padding: 11px 4px;
    background-clip: content-box;
    overflow: visible;
}

.swiper-pagination-bullets.swiper-pagination-disfrutar .swiper-pagination-bullet-active::after,
.swiper-pagination-bullets.swiper-pagination-platos .swiper-pagination-bullet-active::after,
.swiper-pagination-bullets.swiper-pagination-salones .swiper-pagination-bullet-active::after,
.swiper-pagination-bullets.swiper-pagination-celebraciones .swiper-pagination-bullet-active::after,
.swiper-pagination-bullets.swiper-pagination-promociones .swiper-pagination-bullet-active::after {
    left: 4px;
    top: 11px;
    bottom: 11px;
    width: calc(100% - 8px);
}
