/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: radial-gradient(circle at 30% 30%, #16213e, #0f172a 55%, #0a0f1f);
    color: #e2e8f0;
}

html {
    background: #0f172a;
}

body {
    background: transparent;
}

/* ===========================
   MAIN FRAME & LAYOUT
   =========================== */
.frame {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* ===========================
   BACKGROUND VIDEO & OVERLAY
   =========================== */
.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-video.active {
    opacity: 1;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(22, 33, 62, 0.3), rgba(15, 23, 42, 0.4) 55%, rgba(10, 15, 31, 0.5));
    z-index: -1;
    border-radius: inherit;
}

/* ===========================
   CENTRAL PHOTO
   =========================== */
.central-photo {
    width: min(220px, 45vw);
    height: min(220px, 45vw);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 12px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.central-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

/* ===========================
   ORBIT & BUTTONS
   =========================== */
.orbit {
    position: absolute;
    width: min(520px, 86vw);
    height: min(520px, 86vw);
    border-radius: 50%;
    display: grid;
    place-items: center;
    animation: breathe 10s ease-in-out infinite, spin 60s linear infinite;
}

.orbit::before {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.08));
}

.btn-cloud {
    position: absolute;
    width: 140px;
    max-width: 36vw;
    padding: 0.85em 1.1em;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.2px;
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    animation: counter-spin 60s linear infinite;
    --radius: calc(min(520px, 86vw) / 2);
    translate: calc(cos(var(--angle)) * var(--radius)) calc(sin(var(--angle)) * var(--radius));
}

.btn-cloud:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    animation: float-hover 2s ease-in-out infinite, counter-spin 60s linear infinite;
}

/* Button positions */
.btn-reservas {
    --angle: 270deg;
}

.btn-servicios {
    --angle: 330deg;
}

.btn-tarifas {
    --angle: 30deg;
}

.btn-contacto {
    --angle: 90deg;
}

.btn-galeria {
    --angle: 150deg;
}

.btn-quienes {
    --angle: 210deg;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes float-hover {

    0%,
    100% {
        transform: translateY(-4px) scale(1.02);
    }

    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

@keyframes spin {
    to {
        rotate: 360deg;
    }
}

@keyframes counter-spin {
    to {
        rotate: -360deg;
    }
}

/* ===========================
   MODAL STYLES
   =========================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    padding: 3rem 2rem;
    border-radius: 30px 30px 0 0;
    width: 100%;
    max-width: 900px;
    height: 80vh;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    position: relative;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

#modalTitle {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

#modalBody {
    line-height: 1.6;
    opacity: 0.9;
}

/* ===========================
   MODAL CONTENT STYLES
   =========================== */
/* Contact */
.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

.modal-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 300px;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-whatsapp {
    background: #25D366;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-maps {
    background: #4285F4;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-img:hover {
    transform: scale(1.05);
    z-index: 1;
}

/* Services */
.services-content {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.service-section {
    margin-bottom: 2rem;
}

.service-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Rates */
.rates-content {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.rate-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rate-card h3 {
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.rate-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    font-style: italic;
}

.rate-list {
    list-style: none;
}

.rate-list li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.extras-list {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.extras-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.rate-footer {
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.9;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
}

/* ===========================
   CAROUSEL STYLES
   =========================== */
.carousel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.carousel-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.carousel-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-close {
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* ===========================
   HEADER STYLES
   =========================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 100;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
    backdrop-filter: blur(10px);
}

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-brand {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.header-brand span {
    color: #84CC16;
}

/* ===========================
   FOOTER STYLES
   =========================== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    z-index: 100;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 100%);
    backdrop-filter: blur(10px);
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-btn-primary {
    background: linear-gradient(135deg, #84CC16 0%, #65a30d 100%);
    border-color: #84CC16;
}

.footer-btn-primary:hover {
    background: linear-gradient(135deg, #65a30d 0%, #4d7c0f 100%);
    box-shadow: 0 4px 20px rgba(132, 204, 22, 0.4);
}

.footer-btn i {
    font-size: 1.1rem;
}

/* ===========================
   RESPONSIVE STYLES
   =========================== */
/* Mobile */
@media (max-width: 640px) {
    .central-photo {
        width: min(180px, 60vw);
        height: min(180px, 60vw);
    }

    .orbit {
        width: min(380px, 92vw);
        height: min(380px, 92vw);
    }

    .btn-cloud {
        width: 120px;
        font-size: 0.95rem;
        --radius: calc(min(380px, 92vw) / 2);
    }

    header {
        padding: 0.8rem 1rem;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

    .header-brand {
        font-size: 1.1rem;
    }

    footer {
        padding: 0.8rem 1rem;
    }

    .footer-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .footer-btn i {
        font-size: 1.1rem;
    }
}

/* Desktop & Tablets */
@media (min-width: 768px) {
    .frame {
        width: auto;
        margin-inline: 10rem;
        border-radius: 30px;
        overflow: hidden;
    }

    header {
        left: 4rem;
        right: 4rem;
    }

    footer {
        left: 4rem;
        right: 4rem;
    }
}