:root {
    --gold: #d4af37;
    --gold-dark: #b8911e;
    --bg: #ffffff;
    --text: #1a1a1a;
}

html,
body {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 45px 100px;
    background: transparent;
    transition: all 0.3s ease;
    z-index: 100;
}

.navbar.scrolled {
    background: var(--bg);
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 10px 100px;
    min-height: 100px;
    /* Ajusta altura al hacer scroll */
}

/* ===== LOGO ===== */
.logo {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 75px;
    max-width: 280px;
    transition: all 0.3s ease;
    position: absolute;
    left: 10px;
    top: -40px;
}

.default-logo {
    opacity: 1;
}

.scrolled-logo {
    opacity: 0;
}

.navbar.scrolled .default-logo {
    opacity: 0;
}

.navbar.scrolled .scrolled-logo {
    opacity: 1;
}

.navbar.scrolled .logo-img {
    height: 75px;
    /* 🔧 un poco más grande */
    transform: translateY(5px);
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    margin-right: 9px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: white;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    position: relative;
}

.navbar.scrolled .nav-links li a {
    color: var(--text);
}

/* Subrayado elegante */
.nav-links li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -6px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 40px;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    padding: 8px 0;
    display: none;
    flex-direction: column;
    min-width: 150px;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    color: white;
    padding: 10px 16px;
    display: block;
    font-size: 0.90rem;
}

.dropdown-menu li a:hover {
    background: var(--gold);
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.navbar.scrolled .dropdown-menu {
    background: white;
    border: 1px solid #ddd;
}

.navbar.scrolled .dropdown-menu li a {
    color: var(--text);
}

.navbar.scrolled .dropdown-menu li a:hover {
    background: var(--gold);
    color: white;
}

/* ===== MENU RESPONSIVE ===== */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .nav-toggle-label span {
        height: 3px;
        width: 26px;
        margin: 4px 0;
        background: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 70px;
        right: 0;
        padding: 12px 20px;
    }

    .nav-toggle:checked+.nav-toggle-label+.nav-links {
        display: flex;
    }

    .nav-toggle:checked+.nav-toggle-label span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle:checked+.nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked+.nav-toggle-label span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .navbar.scrolled .nav-links {
        background: white;
    }

    .navbar.scrolled .nav-links li a {
        color: var(--text);
    }

    /* Dropdown deshabilitado en móvil (se puede hacer toggle por JS si quieres) */
    .dropdown-menu {
        position: static;
        background: none;
        box-shadow: none;
        display: none !important;
    }

    .dropdown:hover .dropdown-menu {
        display: none !important;
    }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 50vh;
    background: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1800&q=60") no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.5;
}

/* ✅ Marca el link activo */
.nav-links a.active {
    color: #d4af37;
    /* dorado */
    font-weight: bold;
    position: relative;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: #d4af37;
}

.carousel-section {
    padding: 3rem 8%;
    background: #fff;
    text-transform: uppercase;
}


.section-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 5%;
    background: #fff;
    margin-bottom: 2.5rem;
}

/* TÍTULO IZQUIERDA */
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #7a6600;
    text-align: left;
    margin: 0;
    margin-left: -55px;
}

.section-header p {
    font-size: 1.1rem;
    line-height: 1.5;

    font-weight: 700;
    color: #444;
    text-align: center;
    margin: 0;
    white-space: pre-line;
}

.category-filter {
    display: flex;

    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-right: -55px;
}


.category-filter label {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.category-filter select {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    background: #f8f8f8;
    transition: all 0.3s ease;
}

.category-filter select:hover {
    border-color: #d4a017;
    box-shadow: 0 0 5px rgba(212, 160, 23, 0.5);
}

@media (max-width: 900px) {
    .section-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .category-filter {
        justify-content: center;
        margin-top: 1rem;
    }
}


.section-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #7a6600;
}


.carousel-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.tour-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.img-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}





.tour-card:hover {
    transform: translateY(-6px);
}

.overlay {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    transition: right 0.5s ease;
    padding: 1rem;
}

.img-container:hover .overlay {
    right: 0;
}

.overlay-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

.overlay-info p {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
    position: relative;
    padding-right: 2.5rem;
}

.overlay-info i {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #ffd700;
    color: #000;
    border-radius: 50%;
    padding: 8px;
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Info */
.card-info {
    padding: 1.2rem 1.4rem;
}

.card-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}

/* Footer: botón + precio */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d4a017;
    color: #fff;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    user-select: none;
}

.btn-card i {
    font-size: 1rem;
}

.btn-card:hover {
    background: #b38900;
    transform: translateY(-2px);
}

/* Precio */
.tour-price {
    text-align: right;
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: bold;
    color: #d4a017;
}

.tour-price strong {
    font-size: 1.6rem;
    color: #d4a017;
}

.tour-price span {
    display: block;
    font-size: 0.85rem;
    color: #666;
    text-transform: none;
    font-family: "Arial", sans-serif;
}