/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --whatsapp-color: #25d366;
    --whatsapp-hover: #20ba5a;
    --text-light: #ffffff;
    --text-muted: #e0e0e0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    background-color: #0b0a0a;
}

/* Blurred background to match colors dynamically with subtle Ken Burns motion */
.blurred-background {
    position: fixed;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background-image: url("Hotel alcala.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(60px) brightness(0.25);
    -webkit-filter: blur(60px) brightness(0.25);
    animation: slowZoomPan 40s infinite alternate ease-in-out;
    z-index: 0;
}

/* Ambient animated glow blobs for organic color movement */
.ambient-glows {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    -webkit-filter: blur(120px);
    opacity: 0.18; /* Extremely subtle and smooth */
}

/* Warm yellow glow (matching window lights) */
.glow-1 {
    top: -10%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(243, 198, 35, 0.45) 0%, rgba(243, 198, 35, 0) 70%);
    animation: moveBlob1 25s infinite alternate ease-in-out;
}

/* Sky blue/dusk glow (matching sky) */
.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, rgba(46, 126, 219, 0.4) 0%, rgba(46, 126, 219, 0) 70%);
    animation: moveBlob2 30s infinite alternate ease-in-out;
}

/* Sunset orange accent glow */
.glow-3 {
    top: 35%;
    right: 15%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(230, 92, 23, 0.3) 0%, rgba(230, 92, 23, 0) 70%);
    animation: moveBlob3 20s infinite alternate ease-in-out;
}

/* Dark overlay to add depth and text contrast */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
    z-index: 2;
}


/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 30px 20px 20px 20px;
    z-index: 2;
}

/* Flyer Wrapper and Image */
.flyer-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.flyer-img {
    display: block;
    width: 100%;
    max-width: 480px; /* Limits size on desktop */
    height: auto;
    max-height: 60vh; /* Keeps image within vertical limits on all screens */
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Call To Action Container & Button */
.cta-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

.btn-reserve {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--whatsapp-color) 0%, #1ebd54 100%);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-reserve::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.btn-reserve:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5),
                0 0 15px rgba(37, 211, 102, 0.3);
    background: linear-gradient(135deg, #2ae06d 0%, var(--whatsapp-hover) 100%);
}

.btn-reserve:hover::after {
    left: 120%;
    top: 120%;
}

.btn-reserve:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-reserve i {
    font-size: 1.45rem;
}

/* Footer Styles */
.hotel-footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hotel-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slowZoomPan {
    0% {
        transform: scale(1.05) translate(0, 0);
    }
    50% {
        transform: scale(1.15) translate(-1%, 2%);
    }
    100% {
        transform: scale(1.05) translate(1%, -1%);
    }
}

@keyframes moveBlob1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(15vw, 10vh) scale(1.15);
    }
    100% {
        transform: translate(-5vw, 20vh) scale(0.9);
    }
}

@keyframes moveBlob2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-12vw, -15vh) scale(1.2);
    }
    100% {
        transform: translate(8vw, -5vh) scale(0.95);
    }
}

@keyframes moveBlob3 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-15vw, 12vh) scale(0.85);
    }
    100% {
        transform: translate(5vw, -10vh) scale(1.1);
    }
}


/* Responsive Media Queries */

/* Small Mobile Screens (Width <= 360px) */
@media (max-width: 360px) {
    .main-container {
        padding: 15px 15px 10px 15px;
    }
    .flyer-wrapper {
        margin-bottom: 15px;
    }
    .flyer-img {
        border-radius: 12px;
        max-height: 55vh;
    }
    .btn-reserve {
        padding: 12px 20px;
        font-size: 1.05rem;
        gap: 8px;
    }
    .btn-reserve i {
        font-size: 1.25rem;
    }
}

/* Medium & Large Mobile Screens (Width <= 480px) */
@media (max-width: 480px) {
    .main-container {
        padding: 20px 15px 15px 15px;
    }
    .flyer-wrapper {
        margin-bottom: 20px;
    }
    .flyer-img {
        max-height: 58vh;
    }
    .btn-reserve {
        padding: 14px 28px;
        font-size: 1.15rem;
    }
    .hotel-footer p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Short height viewports / Landscape Mode (Height <= 680px) */
@media (max-height: 680px) {
    .main-container {
        padding: 15px 15px 10px 15px;
    }
    .flyer-wrapper {
        margin-bottom: 15px;
    }
    .flyer-img {
        max-height: 55vh; /* Keep image shorter so the button and footer fit without scrolling */
    }
    .btn-reserve {
        padding: 12px 24px;
        font-size: 1.1rem;
    }
}

/* Very short heights (Height <= 500px) */
@media (max-height: 500px) {
    .main-container {
        padding: 10px;
    }
    .flyer-wrapper {
        margin-bottom: 10px;
    }
    .flyer-img {
        max-height: 48vh;
    }
    .btn-reserve {
        padding: 10px 20px;
        font-size: 1rem;
    }
}
