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

* {
    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: linear-gradient(135deg, var(--primary), #0f4c8a);
    color: white;
    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: space-between;
    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;
    margin-bottom: 2rem;
}

.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);
}

/* Categories */
.categories {
    margin: 2rem 0;
}

.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);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    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: var(--dark);
    color: white;
    padding: 3rem 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;
        width: unset;
        max-width: 40%;
    }
}

.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: 200px;
    /* Ancho de la tarjeta (ajustar según tu diseño) */
    position: relative;
}

.my-carousel-item img {
    width: 100%;
    display: block;
    border-radius: 5px;
    height: 240px;
    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: -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;
}

.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;
}