:root {
    --primary: #2c3e50;
    --secondary: #e67e22;
    --accent: #27ae60;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --whatsapp: #25d366;
    --whatsapp-hover: #1ea952;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* White Navbar */
.glass-nav {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--light);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 65px !important;
    /* Logo más grande */
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--secondary) !important;
}

.nav-link:hover::after {
    width: 70%;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(4px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://trayenchiloe.cl/assets/images/slide/01.jpg') no-repeat center center;
    background-size: cover;
    height: 90vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .lead {
        font-size: 1.1rem;
    }

    .hero {
        height: auto;
        padding: 100px 0;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-primary:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    color: white !important;
    transform: translateY(-2px);
}

/* Sticky WhatsApp */
.whatsapp-sticky {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    background-color: var(--whatsapp);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.whatsapp-sticky:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.1);
}

.whatsapp-sticky svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Gallery Lightbox (Vanilla) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Custom Alert */
.alert-not-operative {
    background-color: #fce4e4;
    border-left: 5px solid #cc0000;
    color: #cc0000;
}

/* Navbar CTA Mobile */
@media (max-width: 991px) {
    .nav-cta-desktop {
        display: none;
    }

    .navbar-brand img {
        height: 45px !important;
    }

    .navbar-brand {
        margin-right: 0;
        margin-left: 10px;
    }

    .container {
        justify-content: flex-start !important;
    }

    .navbar-toggler {
        border: none;
        padding-left: 0;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }
}

/* Lightbox Custom Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--secondary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 40px;
    padding: 20px;
    cursor: pointer;
    z-index: 10001;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--secondary);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 25px;
        padding: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        right: 15px;
        top: 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Footer Styles */
.footer-review-link:hover img {
    transform: scale(1.05);
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    transition: all 0.3s ease;
    display: inline-block;
}

footer ul li a:hover {
    color: white !important;
    text-decoration: underline !important;
    transform: translateX(5px);
}