:root {
    --primary: #1e40af;
    --secondary: #f59e0b;
    --accent: #dc2626;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --dorado: #bfa37e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body,
html {
    height: 100vh;
}

body {
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: white;
    color: var(--primary);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary);
}

.search-bar {
    display: flex;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    padding: 5px 15px;
}

.search-bar input {
    border: none;
    outline: none;
    padding: 8px;
    width: 200px;
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 5rem 1rem;
}

.hero .main-title {
    padding: 0 0 4rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background: var(--secondary);
    color: var(--dark);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e69500;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.filter-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Places Grid */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.place-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.place-image {
    height: 200px;
    overflow: hidden;
}

.place-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.place-card:hover .place-image img {
    transform: scale(1.1);
}

.place-content {
    padding: 1.5rem;
}

.place-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.place-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.place-description {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.place-details {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.place-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.place-link:hover {
    color: var(--accent);
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 2rem auto;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    animation: modalFade 0.3s;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.modal-header {
    padding: 1.5rem;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

.modal-images {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.modal-main-image {
    grid-row: span 2;
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.modal-secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.modal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 5px;
}

/* Footer */
footer {
    background: white;
    color: var(--gray);
    padding: 1.5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.copyright a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover,
.copyright a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .modal-images {
        grid-template-columns: 1fr;
    }

    .modal-info {
        grid-template-columns: 1fr;
    }
}

.place-category {
    text-transform: capitalize;
}

.mobile-nav {
    width: 100%;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav a {
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.menu-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

#menu-list {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;

}

#menu-list.open {
    max-height: 300px;
}

@media (min-width: 768px) {
    .mobile-nav {
        flex: 1 1 auto;
    }
}

.truncate-text-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate-text-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/**------------------**/

.my-carousel-container {
    /* Contenedor principal para posicionar botones */
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    /* O el ancho deseado */
    padding: 0;
    /* Espacio para los botones */
}

.my-carousel-track-container {
    /* La "ventana" visible del carrusel, oculta lo que se desborda */
    overflow: hidden;
    width: 100%;
}

.my-carousel-track {
    /* La cinta de imágenes. Usamos Flexbox para alinear los items horizontalmente */
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    transition: transform 0.3s ease-in-out;
    /* Agrega una transición suave al desplazamiento */
}

.my-carousel-item {
    /* Define el tamaño de cada tarjeta/imagen */
    flex-shrink: 0;
    /* Evita que las imágenes se encojan */
    margin-right: 5px;
    /* Espacio entre imágenes */
    width: 100px;
    /* Ancho de la tarjeta (ajustar según tu diseño) */
    position: relative;
}

.my-carousel-item img {
    width: 100%;
    display: block;
    border-radius: 5px;
    height: 120px;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
}

.my-carousel-btn {
    /* Estilo básico para los botones */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.my-carousel-section {
    margin-top: 2.5rem;
}

.my-carousel-name {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    transition: 0.3s;
    overflow: hidden;
    border-radius: 5px;
    z-index: 100;
}

.my-carousel-item:hover .my-carousel-name {
    opacity: 1;
}

.my-carousel-item:hover a img {
    filter: blur(2px);
}

.my-carousel-name>* {
    margin: auto;
}

.modal-secondary-image {
    display: inline-block;
    max-width: 25%;
}

.modal-secondary-image img {
    cursor: pointer;
}

.mobile-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    padding: 10px 0;
    background-color: white;
}

.logos-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    position: relative;

    /**efecto al inicio y final del contenedor */
    mask-image: linear-gradient(to right,
            transparent,
            black 10%,
            black 90%,
            transparent);
    -webkit-mask-image: linear-gradient(to right,
            transparent,
            black 10%,
            black 90%,
            transparent);
}

.logos {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
}

.logos img {
    height: 45px;
    width: auto;
    flex-shrink: 0;
    display: block;
    padding: 0 5px;
}

.is-overflowing .logos {
    justify-content: flex-start;
    width: max-content;
    animation: scroll-infinite 50s linear infinite;
}

@keyframes scroll-infinite {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-33.3333%);
    }
}

.is-overflowing:hover .logos {
    animation-play-state: paused;
}

.logo,
.search-bar {
    flex: 0 0 auto;
    flex-shrink: 0;
}


/* Ajuste de la barra */
.navbar.rounded-pill {
    max-width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0);
    /* Sutil borde para definirla */
}

/* Estilo para el punto indicador de página activa */
.active-dot {
    width: 4px;
    height: 4px;
    background-color: white;
    border-radius: 50%;
    margin-top: 2px;
}

/* Efecto hover suave */
.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}


/* Estilos específicos para las tarjetas de la imagen */

.custom-card {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 200px;
    max-height: 250px;
    transition: transform 0.3s ease;
    box-shadow:
        0px 4px 12px rgba(0, 0, 0, 0.05),
        0px 1px 3px rgba(0, 0, 0, 0.03);
}

.custom-card:hover {
    transform: translateY(-5px);
}

.card-img-container {
    position: relative;
    width: 40%;
    min-width: 140px;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    overflow: hidden;
}

.card-body-custom {
    width: 60%;
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.badge-category {
    display: inline-block;
    background: #1e293b; 
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    width: fit-content;
}

.category-gastronomy {
    background: #8b5e3c;
}


.card-title-custom {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}


.card-actions {
    display: flex;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    flex-direction: column;
}

.card-actions span {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-icon-top {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #bfa37e;
    font-size: 1.2rem;
    opacity: 0.7;
}


.play-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    z-index: 2;
}

.play-overlay i {
    font-size: 1.5rem;
    vertical-align: middle;
}

@media (max-width: 576px) {
    .custom-card {
        flex-direction: row;
        min-height: 150px;
        max-height: 200px;
    }

    .card-title-custom {
        font-size: 1.1rem;
    }

    .card-body-custom {
        padding: 1rem;
    }

    /* Hero Section */
    .hero {
        padding: 2rem 1rem;
    }
}


.search-container {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.glass-search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 10px 25px;

    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #333;
    font-size: 1.1rem;
    padding: 5px 10px;
}


.search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.search-icon-btn {
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-icon-btn:hover {
    transform: scale(1.1);
    color: #000;
}

.texto-dorado {
    color: #bfa37e;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-title {
    text-shadow: #000 0px 0px 10px;
    padding: 0 !important;
}

.fixed-bottom {
    position: sticky;
    align-items: center;
    flex-direction: column;
}

.copyright a {
    color: var(--secondary);
}

/* Efecto Glassmorphism Claro */
.glass-nav {
    background: rgba(255, 255, 255, 0.4) !important;
    /* Blanco muy translúcido */
    backdrop-filter: blur(15px);
    /* Desenfoque del fondo */
    -webkit-backdrop-filter: blur(15px);
    /* Soporte para Safari */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Borde sutil brillante */
}

/* Punto indicador oscuro para el diseño claro */
.active-dot-dark {
    width: 5px;
    height: 5px;
    background-color: #1e293b;
    /* Color dark de tu paleta */
    border-radius: 50%;
    margin-top: 2px;
}

/* Ajuste de color para iconos no activos en fondo claro */
.glass-nav .text-secondary {
    color: rgba(30, 41, 59, 0.6) !important;
    /* Gris azulado con transparencia */
}

/* Color para iconos activos */
.glass-nav .text-dark {
    color: #1e293b !important;
}

.custom-divider {
    background-color: #0b3453;
    height: 75px;
    margin-bottom: -60px;
}