@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    /* These will be overwritten by specific themes in header.php, but act as fallback */
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #00d2ff;
    --dark-bg: #0f0c29;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --gradient-main: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);

    /* New Vars */
    --bg-light: #f4f7f6;
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
}

/* Navbar Translucida */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* New Hero Section */
.hero-wrapper {
    position: relative;
    padding: 100px 0 150px;
    background: url('../img/pattern-bg.png'), var(--gradient-main);
    background-size: cover;
    color: white;
    text-align: center;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    margin-bottom: 50px;
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    margin-bottom: 40px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Cards Enhanced */
.product-card {
    border: none;
    border-radius: 25px;
    background: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    /* Suave sombra */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Efecto rebote */
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Neutral shadow */
    border: 2px solid var(--primary-color);
}

.product-img-container {
    height: 280px;
}

.btn-reserve {
    background: var(--gradient-main);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 700;
    transition: transform 0.2s;
}

.btn-reserve:hover {
    transform: scale(1.05);
}

/* How It Works Section */
.steps-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.step-card {
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s;
}

.step-card:hover {
    background: #f8f9fa;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    /* Softer background */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Float Pulse */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    width: 70px;
    height: 70px;
    font-size: 35px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.modal-content {
    border-radius: 25px;
    border: none;
    overflow: hidden;
}

/* --- PREMIUM DESIGN ENHANCEMENTS --- */

/* 1. Wave Dividers */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(130% + 1.3px);
    height: 60px;
}

.wave-divider.inverse {
    transform: rotate(180deg);
}

/* 2. Enhanced Hero Text */
.hero-hero-title-main {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    /* Fallback */
    font-weight: 900;
    letter-spacing: -2px;
}

@media (min-width: 992px) {
    .hero-title-main {
        font-size: 5rem;
    }
}

/* 3. Floating Shapes (Abstract) */
.shape-blob {
    position: absolute;
    filter: blur(50px);
    z-index: 0;
    opacity: 0.4;
    animation: moveBlob 10s infinite alternate;
}

.shape-blob-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: purple;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.shape-blob-2 {
    bottom: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: blue;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-duration: 15s;
}

@keyframes moveBlob {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(50px, 50px) rotate(20deg);
    }
}

/* 4. Glassmorphism Card Hover */
.product-card:hover {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color) !important;
}

/* --- MOBILE OPTIMIZATIONS (Responsive - AGGRESSIVE FIX) --- */
@media (max-width: 991px) {

    /* 1. Prevent Horizontal Scroll (The White Margin Killer) */
    html,
    body {
        max-width: 100vw;
        overflow-x: hidden !important;
        position: relative;
    }

    /* 2. Fix Floating Logo Position */
    .logo-container {
        position: relative !important;
        /* Stop floating */
        top: 0 !important;
        left: 0 !important;
        width: 60px !important;
        /* Smaller logo */
        height: 60px !important;
        margin-right: 15px;
        box-shadow: none !important;
        border: none !important;
    }

    .logo-container img {
        max-width: 50px !important;
        height: auto !important;
    }

    /* 3. Reset Navbar Padding */
    .navbar-brand {
        padding-left: 0 !important;
        /* Remove the space reserved for floating logo */
        margin-right: auto;
    }

    .navbar {
        padding: 10px 15px !important;
        height: auto !important;
        /* Let it grow if needed */
    }

    /* 4. Tame the Containers */
    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    /* 5. Fix Hero/Carousel Width */
    .hero-wrapper,
    .carousel,
    .carousel-inner,
    .carousel-item {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        /* Remove curves on mobile if they break layout */
    }

    /* 6. Fix Typography */
    h1,
    .display-1,
    .display-2,
    .display-3,
    .display-4 {
        font-size: 2rem !important;
        word-wrap: break-word;
        /* Prevent long words breaking layout */
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .col-12,
    .col-md-6,
    .col-lg-4 {
        padding-left: 0 !important;
        /* Let cards touch edges or use inner padding */
        padding-right: 0 !important;
    }
}