* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom cursor active - only hide default cursor when custom is ready */
.custom-cursor-active * {
    cursor: none !important;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa;
    color: #000;
    overflow-x: hidden;
}

/* ==================== CUSTOM CURSOR ==================== */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #c41e3a;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(196, 30, 58, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(2.5);
    background: #fff;
    mix-blend-mode: difference;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(196, 30, 58, 0.1);
}

.cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
}

.cursor-follower.click {
    width: 30px;
    height: 30px;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

    .cursor,
    .cursor-follower {
        display: none;
    }

    * {
        cursor: auto;
    }
}

/* ==================== CONTAINER GLOBAL ==================== */
.container {
    max-width: 1500px;
    width: 90%;
    margin: 0 auto;
}

/* ==================== HEADER ==================== */
.header {
    background: #000000;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 0;
}

.header .container {
    max-width: 1500px;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo-top {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-rutas {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.logo-mundial {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.logo-by {
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
}

.dashboard-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dashboard-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.dashboard-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

/* ==================== HERO / SLIDER ==================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(180, 30, 70, 0.85) 0%, rgba(100, 20, 50, 0.6) 50%, transparent 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 600px;
    z-index: 10;
    padding: 20px;
}

.slide-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 8vw, 90px);
    line-height: 0.95;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}

.slide-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 450px;
}

.btn-detalle {
    display: inline-block;
    background: #c41e3a;
    color: #fff;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-detalle:hover {
    background: #a01830;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 20px;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot.active {
    background: #fff;
    border-color: #fff;
    width: 30px;
    border-radius: 5px;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .header-nav {
        gap: 20px;
    }

    .nav-item span {
        display: none;
    }

    .nav-item svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .logo-rutas {
        font-size: 12px;
    }

    .logo-mundial {
        font-size: 26px;
    }

    .logo-by {
        font-size: 9px;
    }

    .hero {
        height: 85vh;
        min-height: 500px;
    }

    .slide-content {
        left: 0;
        right: 0;
        padding: 20px;
        max-width: 100%;
    }

    .slide-title {
        font-size: clamp(35px, 10vw, 55px);
    }

    .slide-description {
        font-size: 13px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }

    .slider-dots {
        bottom: 30px;
        gap: 6px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .slider-dot.active {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: clamp(30px, 12vw, 45px);
    }

    .btn-detalle {
        padding: 12px 25px;
        font-size: 12px;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .slider-dots {
        gap: 4px;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
    }

    .slider-dot.active {
        width: 18px;
    }
}

/* ==================== SEARCH SECTION ==================== */
.search-section {
    background: #f8f9fa;
    padding: 40px 0;
}

.search-container {
    width: 100%;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.search-box input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    text-transform: uppercase;
}

.filter-btn:hover {
    border-color: #D52B1E;
    color: #D52B1E;
}

.filter-btn.active {
    background: #000000;
    color: #fff;
    border-color: #000000;
}

/* Variantes de color para filtros */
.filter-btn.filter-blue:hover {
    border-color: #2962FF;
    color: #2962FF;
}

.filter-btn.filter-green:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.filter-btn.filter-purple:hover {
    border-color: #5B2DE0;
    color: #5B2DE0;
}

.filter-btn.filter-coral:hover {
    border-color: #EF6C50;
    color: #EF6C50;
}

/* ==================== EXPLORA POR ESTILO ==================== */
.explora-section {
    background: #f8f9fa;
    padding: 0 0 20px;
}

.explora-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
}

/* ==================== BANNER SECTION ==================== */
.banner-section {
    background: #f8f9fa;
    padding: 60px 0 50px;
    margin-top: 40px;
}

.banner {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 20px;
    /* overflow: hidden; */
}

.banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    /* position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; */
}

.banner-image.desktop {
    display: block;
}

.banner-image.mobile {
    display: none;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    max-width: 400px;
    z-index: 10;
}

.banner-tag {
    display: inline-block;
    background: #c41e3a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.banner-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    color: #fff;
    line-height: 1;
    margin-bottom: 12px;
}

.banner-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 20px;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: #c41e3a;
    color: #fff;
    transform: translateX(5px);
}

.banner-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.banner-btn:hover svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .banner-image.desktop {
        display: none;
    }

    .banner-image.mobile {
        display: block;
    }

    .banner {
        /* height: 350px; */
        border-radius: 6px;
    }

    .banner-overlay {
        width: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    }

    .banner-content {
        left: 20px;
        right: 20px;
        top: 30px;
        transform: none;
        max-width: none;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-description {
        font-size: 13px;
    }
}

/* ==================== RUTAS GRID SECTION ==================== */
.rutas-section {
    background: #f8f9fa;
    padding: 0 0 60px;
}

.rutas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ruta-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    cursor: pointer;
}

.ruta-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

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

.ruta-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.ruta-card:hover .ruta-card-image img {
    transform: scale(1.05);
}

/* Overlay curvo cinematográfico con filtro azul */
.ruta-card-image-overlay {
    position: absolute;
    top: 0;
    left: -40%;
    width: 60%;
    height: 100%;
    background: rgba(20, 30, 48, 0.95);
    z-index: 1;
    clip-path: ellipse(100% 100% at 0% 50%);
    filter: sepia(100%) hue-rotate(180deg) saturate(200%);
}

.ruta-card-duration {
    position: relative;
    display: inline-block;
    background: #D52B1E;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Eliminar icono de play */
.ruta-card-duration::before {
    display: none;
}

.ruta-card-location {
    position: relative;
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ruta-card-location svg {
    display: none;
}

.ruta-card-fav-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    z-index: 3;
}

.ruta-card-fav-indicator svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    opacity: 0.9;
}

.ruta-card-name {
    position: relative;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 8px 0 12px;
    letter-spacing: 0.5px;
}

/* Highlight para palabras específicas del título */
.ruta-card-name .highlight {
    color: #27A550;
}

/* Línea decorativa */
.ruta-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #D52B1E 0%, #D52B1E 33%, #fff 33%, #fff 66%, #27A550 66%, #27A550 100%);
    z-index: 4;
}

.ruta-card-body {
    padding: 18px;
}

.ruta-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ruta-card-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: capitalize;
    /*background: #e0e0e0;
    color: #333;*/
}

/* Colores de tags según contenido */
.ruta-card-tag[data-tag*="futbol"],
.ruta-card-tag[data-tag*="fútbol"],
.ruta-card-tag[data-tag*="partido"] {
    background: #27A550;
    color: #fff;
}

.ruta-card-tag[data-tag*="gastro"],
.ruta-card-tag[data-tag*="comida"],
.ruta-card-tag[data-tag*="restaurante"] {
    background: #EF6C50;
    color: #fff;
}

.ruta-card-tag[data-tag*="cultura"],
.ruta-card-tag[data-tag*="museo"],
.ruta-card-tag[data-tag*="arte"] {
    background: #B39DDB;
    color: #5B2DE0;
}

.ruta-card-tag[data-tag*="naturaleza"],
.ruta-card-tag[data-tag*="playa"],
.ruta-card-tag[data-tag*="aventura"] {
    background: #C6FF00;
    color: #0F3D3E;
}

.ruta-card-tag[data-tag*="tour"],
.ruta-card-tag[data-tag*="recorrido"] {
    background: #80DEEA;
    color: #0A1F5C;
}

.ruta-card-tag[data-tag*="historia"],
.ruta-card-tag[data-tag*="histórico"] {
    background: #EFADA0;
    color: #5D2020;
}

.ruta-card-tag[data-tag*="familia"],
.ruta-card-tag[data-tag*="niños"] {
    background: #42A5F5;
    color: #fff;
}

.ruta-card-tag[data-tag*="nocturno"],
.ruta-card-tag[data-tag*="noche"] {
    background: #5B2DE0;
    color: #fff;
}

.ruta-card-tag[data-tag*="compras"],
.ruta-card-tag[data-tag*="shopping"] {
    background: #C060A1;
    color: #fff;
}

.ruta-card-tag[data-tag*="estadio"] {
    background: #0326DE;
    color: #fff;
}

.ruta-card-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.ruta-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0326DE;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.ruta-card-link:hover {
    gap: 10px;
}

.ruta-card-link-editorial {
    color: #722F37;
}

.ruta-card-link-editorial:hover {
    color: #5D2020;
}

.ruta-card-link svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 1024px) {
    .rutas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .rutas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ruta-card-image {
        height: 160px;
    }

    .ruta-card-name {
        font-size: 18px;
    }
}

/* ==================== RESPONSIVE NUEVAS SECCIONES ==================== */
@media (max-width: 768px) {
    .search-section {
        padding: 30px 0;
    }

    .search-box input {
        padding: 14px 18px 14px 45px;
        font-size: 13px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .explora-section {
        padding: 0 0 15px;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 11px;
    }
}

/* ==================== MODAL RUTA ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) rotate(-90deg);
    transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-close-btn.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) rotate(0deg);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1) rotate(90deg);
}

.modal-close-btn svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2.5;
}

@media (max-width: 768px) {
    .modal-close-btn {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
    }

    .modal-close-btn svg {
        width: 20px;
        height: 20px;
    }
}

.modal-ruta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90vh;
    background: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 1001;
    display: flex;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}

.modal-ruta.active {
    transform: translateY(0);
}

/* Modal Left - Info */
.modal-left {
    width: 45%;
    max-width: 500px;
    padding: 30px 35px;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-left::-webkit-scrollbar {
    width: 6px;
}

.modal-left::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-left::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.modal-location {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c41e3a;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-action-btn:hover {
    border-color: #c41e3a;
    background: #fff5f7;
}

.modal-action-btn svg {
    width: 18px;
    height: 18px;
    stroke: #333;
}

.modal-action-btn:hover svg {
    stroke: #c41e3a;
}

.modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 38px;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 15px;
}

.modal-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.modal-section-title svg {
    width: 20px;
    height: 20px;
    stroke: #c41e3a;
}

/* Timeline Itinerario */
.itinerario-timeline {
    position: relative;
    padding-left: 25px;
    flex: 1;
}

.itinerario-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 30px;
    width: 2px;
    background: #e0e0e0;
}

.itinerario-item {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.itinerario-item:hover {
    border-color: #c41e3a;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.1);
}

.itinerario-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 22px;
    width: 12px;
    height: 12px;
    background: #c41e3a;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #c41e3a;
}

.itinerario-item:last-child::before {
    background: #fff;
    border-color: #c41e3a;
}

.itinerario-day {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.itinerario-dates {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #D52B1E;
    margin-bottom: 6px;
}

.itinerario-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.itinerario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.itinerario-tag {
    background: #f0f0f0;
    border: none;
    color: #000000;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: lowercase;
}

.itinerario-tag.tag-fe {
    background: #fff3e0;
    color: #e65100;
}

.itinerario-tag.tag-tour {
    background: #e3f2fd;
    color: #1565c0;
}

.itinerario-tag.tag-autobus {
    background: #fce4ec;
    color: #c2185b;
}

.itinerario-tag.tag-museo {
    background: #f3e5f5;
    color: #7b1fa2;
}

.itinerario-tag.tag-gastronomia {
    background: #fff8e1;
    color: #ff8f00;
}

.itinerario-tag.tag-naturaleza {
    background: #e8f5e9;
    color: #2e7d32;
}

.itinerario-tag.tag-futbol {
    background: #e8eaf6;
    color: #3949ab;
}

.itinerario-tag.tag-historia {
    background: #efebe9;
    color: #5d4037;
}

.itinerario-tag.tag-cultura {
    background: #fce4ec;
    color: #ad1457;
}

.itinerario-tag.tag-arte {
    background: #f3e5f5;
    color: #6a1b9a;
}

.itinerario-tag.tag-arquitectura {
    background: #e0f2f1;
    color: #00695c;
}

.itinerario-tag.tag-experiencia {
    background: #fff3e0;
    color: #ef6c00;
}

/* Modal Footer */
.modal-footer {
    padding-top: 20px;
    margin-top: auto;
}

.btn-guardar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    padding: 16px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-guardar:hover {
    background: #c41e3a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.3);
}

.btn-guardar svg {
    width: 18px;
    height: 18px;
}

/* Modal Right - Map */
.modal-right {
    flex: 1;
    position: relative;
    background: #e8e8e8;
}

.modal-map {
    width: 100%;
    height: 100%;
}

/* Mapbox Custom Markers */
.mapbox-marker {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* Simplified marker for better performance (no pulse animation) */
.mapbox-marker-simple {
    position: relative;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mapbox-marker-simple:hover {
    transform: scale(1.1);
}

.mapbox-marker-simple .marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid #fff;
}

/* Legacy marker with pulse (kept for compatibility but not used in optimized version) */
.marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid #fff;
    z-index: 2;
    animation: markerBounce 0.5s ease-out;
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(196, 30, 58, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes markerBounce {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* MapLibre Popup Styles */
.maplibregl-popup-content {
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-width: 220px;
}

.maplibregl-popup-content strong {
    color: #1a1a1a;
    font-size: 13px;
}

.maplibregl-popup-close-button {
    font-size: 18px;
    padding: 5px 10px;
}

.maplibregl-ctrl-bottom-right {
    bottom: 20px;
    right: 10px;
}

.modal-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    z-index: 10;
}

.modal-back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.modal-back-btn svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

/* Map Markers */
.map-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.map-marker::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
}

.map-marker.marker-1 {
    top: 35%;
    left: 15%;
}

.map-marker.marker-2 {
    top: 40%;
    right: 10%;
}

.map-route-line {
    position: absolute;
    top: 38%;
    left: 20%;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #c41e3a 0%, #c41e3a 100%);
    opacity: 0.6;
}

/* Modal Responsive */
@media (max-width: 900px) {
    .modal-ruta {
        flex-direction: column;
        height: 95vh;
    }

    .modal-left {
        width: 100%;
        max-width: none;
        height: 50%;
        padding: 25px 20px;
        order: 2;
    }

    .modal-right {
        width: 100%;
        height: 50%;
        order: 1;
        border-radius: 24px 24px 0 0;
    }

    .modal-title {
        font-size: 32px;
    }

    .modal-back-btn {
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .modal-ruta {
        flex-direction: column;
        height: 92vh;
        border-radius: 0;
    }

    .modal-left {
        width: 100%;
        height: 55%;
        padding: 20px 15px;
        order: 2;
    }

    .modal-right {
        width: 100%;
        height: 45%;
        border-radius: 0;
        order: 1;
    }

    .modal-title {
        font-size: 26px;
    }

    .modal-description {
        font-size: 13px;
    }

    .itinerario-item {
        padding: 15px;
    }

    .modal-action-btn {
        width: 36px;
        height: 36px;
    }

    .btn-guardar {
        padding: 14px 25px;
        font-size: 13px;
    }
}

/* ==================== CALENDAR OPTIONS MODAL ==================== */
.calendar-options-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.calendar-options-content {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.calendar-options-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.calendar-options-content>p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.calendar-options-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.calendar-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.calendar-option-btn svg {
    width: 24px;
    height: 24px;
}

.calendar-option-btn.google {
    background: #4285f4;
    color: #fff;
}

.calendar-option-btn.google:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(66, 133, 244, 0.4);
}

.calendar-option-btn.ics {
    background: #1a1a1a;
    color: #fff;
}

.calendar-option-btn.ics:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.calendar-options-note {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.calendar-options-close {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-options-close:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}