/* Base styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: transparent;
    color: #333;
    padding-top: 0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 900%;
    height: 100%;
    background-image: url('fotos/bg.jpg');
    background-size: 17% 100%;
    background-position: center 100%;
    background-repeat: repeat-x;
    animation: panorama 80s linear infinite;
    z-index: -1;
    transform: scale(1.1);
}

/* Container for navigation */
.container-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logo styling */
.logo img {
    height: 50px;
}

/* Navigation bar */
.navbar nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar nav ul li {
    margin: 0 15px;
}

.navbar nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

/* Language selector */
.language-selector {
    position: relative;
    background-color: #000000;
    border-radius: 4px;
}

.language-selector select {
    padding: 8px 12px 8px 35px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    min-width: 100px;
}

.language-selector::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 15px;
    background-image: var(--flag-url);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.language-selector select:hover {
    background-color: #333;
}

.language-selector select option {
    padding: 8px;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
}

/* Slideshow container */
.slideshow-container {
    max-width: 1400px;
    height: auto;
    width: 96%;
    position: relative;
    margin: 20px auto;
    background-color: transparent;
    padding: 0;
}

/* Slides */
.mySlides {
    display: none;
    /*aspect-ratio: 16/9;*/
}

.mySlides img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    vertical-align: middle;
    border-radius: 15px;
}

/* Caption text */
.text {
    color: #ffffff;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.3);
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: rgba(187, 187, 187, 0.7);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: rgba(113, 113, 113, 0.9);
}

/* Sections */
section:not(.hero-section) {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    margin: 20px;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1, h2, h3 {
    
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Call to action buttons */
.call-to-action {
    display: flex;
    justify-content: center;
}

.cta-button {
    padding: 15px 30px;
    background: linear-gradient(45deg, #000000, #333333);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #333333, #000000);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #ffffff;
    color: #fffdfd;
}

.cta-button.secondary:hover {
    background: #000000;
    color: white;
}

/* Mission and vision section */
.mission-vision {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

.mission, .vision {
    flex: 1;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.mission:hover, .vision:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mission h2, .vision h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.mission h2::after, .vision h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

.mission p, .vision p {
    color: #555;
    line-height: 1.7;
    font-size: 1.1em;
    text-align: center;
}

/* Ajustes responsivos para la sección de misión y visión */
@media (max-width: 768px) {
    .mission-vision {
        flex-direction: column;
        gap: 20px;
        margin: 20px auto;
    padding: 20px;
        min-height: auto;
    }

    .mission, .vision {
        width: 100%;
        max-width: 100%;
        padding: 30px;
        margin: 0;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .mission h2, .vision h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .mission p, .vision p {
        font-size: 1em;
        padding: 0 10px;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .mission-vision {
        padding: 15px;
    }

    .mission, .vision {
        padding: 20px;
    }

    .mission h2, .vision h2 {
        font-size: 1.3em;
    }

    .mission p, .vision p {
        font-size: 0.95em;
        line-height: 1.5;
    }
}

/* Itineraries section */
#itineraries {
    padding: 40px 20px;
    background-color: #fff;
    margin-top: 80px;
}

#itineraries h2 {
    text-align: center;
    color: #007BFF;
    margin-bottom: 30px;
    font-size: 2em;
}

.itinerary {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.itinerary h3 {
    color: #007BFF;
    margin-bottom: 20px;
    font-size: 24px;
}

.itinerary p {
    margin: 10px 0;
    line-height: 1.6;
    color: #333;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar nav ul {
        flex-direction: column;
    }

    .navbar nav ul li {
        margin: 10px 0;
    }

    .mission-vision {
        flex-direction: column;
    }

    .mission, .vision {
        width: 100%;
        margin-bottom: 20px;
    }

    .call-to-action {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-button {
        width: 80%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo img {
        height: 40px;
    }

    .navbar nav ul li a {
        font-size: 16px;
    }
}
/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Hide the navigation menu on mobile devices */
@media (max-width: 768px) {
    .navbar {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .navbar.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}
/* Ensure sections have a minimum height */

/* Adjustments for smaller screens */
@media (max-width: 768px) {
section {
        min-height: auto;
        padding: 30px 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    h3 {
        font-size: 1.5em;
    }
    
    p {
        font-size: 1em;
    }
}

/* Footer Styles */
.footer {
    background-color: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #007BFF;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007BFF;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
    flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin: 10px 0;
    }

    .social-links {
    justify-content: center;
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /*background-color: rgba(0, 0, 0, 0.7);*/
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: #000000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styles */
.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Main navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007BFF;
}

/* Language selector */
.language-selector select {
    padding: 8px 4px;
    padding-right: 8px; /* Espacio para la flecha */
    border: none;
    border-radius: 4px;
    background-color: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    display: flex;
    align-items: center;
    min-width: 60px;
}

.language-selector select:hover {
    background-color: #333;
}

.language-selector select option {
    padding: 8px;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
}

/* Ajuste del contenedor del selector */
.language-selector {
    background-color: #000000;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #000000;
        z-index: 1000;
        padding-top: 80px;
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .main-nav ul li {
        text-align: center;
        margin: 0;
    }

    .main-nav ul li a {
        font-size: 24px;
        color: white;
        padding: 10px 20px;
    }

    /* Estilo del botón hamburguesa */
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 10px;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 2px;
        background-color: white;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    /* Animación del botón hamburguesa */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Animación del menú */
    .main-nav ul li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .main-nav.active ul li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Delay en la animación de cada elemento del menú */
    .main-nav ul li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav ul li:nth-child(2) { transition-delay: 0.2s; }
    .main-nav ul li:nth-child(3) { transition-delay: 0.3s; }
    .main-nav ul li:nth-child(4) { transition-delay: 0.4s; }
    .main-nav ul li:nth-child(5) { transition-delay: 0.5s; }
}

/* Hero Section - completamente transparente */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.123), rgba(0, 0, 0, 0.123)), url('fotos/machu.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    padding: 80px 20px;
    margin: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    border-radius: 12px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2em;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 40vh;
        ;
       
    }
    
    .slideshow-container {
        margin: 10px auto;
    }
    
    .hero-content {
        padding: 20px;
        width: 90%;
    }
    
    .hero-content h1 {
        font-size: 2.5em;
    }
    
    .hero-content p {
        font-size: 1em;
    }
}

@keyframes panorama {
    0% {
        transform: translateX(0) scale(1.1);
    }
    100% {
        transform: translateX(-50%) scale(1.1);
    }
}

/* Mejoras para la timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
    opacity: 0.3;
    display: block;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin: 40px 0;
}

.timeline-dot {
    position: absolute;
    left: 21px;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #3498db;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
    animation: pulse 2s infinite;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-left: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-content h3 i {
    color: #3498db;
}

.timeline-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 40px;
        margin: 20px 0;
    }

    .timeline-dot {
        left: 11px;
        width: 16px;
        height: 16px;
    }
}

/* Mejoras para los itinerarios */
.itineraries-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.itinerary-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.itinerary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.itinerary-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.itinerary-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.itinerary-content h3 {
    margin: 0 0 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.itinerary-content p {
    color: #666;
    margin: 0 0 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.itinerary-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.itinerary-highlights {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.highlight-tag {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #555;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.itinerary-card:hover .highlight-tag {
    background-color: #3498db;
    color: white;
}

/* Timeline modal mejorado */
.timeline-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.timeline-modal.active {
    opacity: 1;
}

.timeline-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-modal.active .timeline-wrapper {
    transform: translate(-50%, -50%) scale(1);
}

.timeline-container {
    height: 100%;
    overflow-y: auto;
    padding: 0 20px 30px;
    scrollbar-width: thin;
    scrollbar-color: #3498db #f1f1f1;
    scroll-behavior: smooth;
}

.timeline-nav {
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.timeline-nav button {
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.2);
}

.timeline-nav button:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.timeline-nav button:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.close-timeline {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-size: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2c3e50;
}

.close-timeline:hover {
    background: #f8f9fa;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .timeline-nav {
    padding: 15px;
        display: flex;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .timeline-nav button {
        padding: 8px 15px;
        font-size: 0.9em;
        flex: 1;
        max-width: 120px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #3498db;
        color: white;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        width: auto !important;
    }

    .timeline-nav span {
        font-size: 1em;
        font-weight: 500;
        flex: 2;
        text-align: center;
    }

    .timeline-wrapper {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        transform: none;
    }

    .timeline-container {
        padding-top: 60px;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .close-timeline {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
        z-index: 1001;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .timeline-nav {
        padding: 10px;
    }

    .timeline-nav button {
        padding: 8px 10px;
        font-size: 0.85em;
        max-width: 100px;
    }

    .timeline-nav span {
        font-size: 0.9em;
    }
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* Estilos para el scroll personalizado */
.timeline-container::-webkit-scrollbar {
    width: 8px;
}

.timeline-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animaciones mejoradas */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideIn {
    from { 
        transform: translateX(-100%); 
        opacity: 0;
    }
    to { 
        transform: translateX(0); 
        opacity: 1;
    }
}

.timeline-item {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.animate-in {
    animation: fadeIn 0.8s ease forwards;
}

.timeline-modal {
    transition: opacity 0.5s ease;
}

.timeline-container {
    animation: slideIn 0.8s ease;
}

.timeline-dot {
    transition: transform 0.5s ease, background-color 0.5s ease;
}

.timeline-item.animate-in .timeline-dot {
    transform: scale(1.2);
    background-color: #3498db;
}

.timeline-content {
    transition: all 0.5s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.close-timeline {
    transition: all 0.5s ease;
}

.close-timeline:hover {
    transform: rotate(90deg);
    background: #f8f9fa;
}

/* Estilos del Blog */
#blog {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('fotos/catarata-de-gocta_portada.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 20px;
    margin: 0;
    min-height: 100vh;
    color: #ffffff;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.blog-post {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-post h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.blog-post-content {
    padding: 20px 0;
}

.blog-post-content p {
    color: #ffffff;
        line-height: 1.6;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.blog-post ul {
    list-style: none;
    padding: 0;
}

.blog-post ul li {
    margin: 12px 0;
    padding-left: 20px;
    position: relative;
}

.blog-post ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #007BFF;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(0, 123, 255, 0.7);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: rgba(0, 123, 255, 0.9);
    transform: translateX(5px);
}

/* Etiquetas del blog */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.blog-tag {
    padding: 4px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.9em;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-post {
        margin-bottom: 20px;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .slideshow-container {
        width: 95%;
    }
    
    .mySlides img {
        height: auto;
        max-height: 500px;
    }
    
    .itineraries-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .mySlides img {
        max-height: 400px;
    }
    
    .itineraries-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .itinerary-image {
        height: 180px;
    }
    
    .itinerary-content h3 {
        font-size: 1.3rem;
    }
    
    .itinerary-content p {
        font-size: 0.95rem;
    }
    
    .highlight-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .mySlides img {
        max-height: 300px;
    }
    
    .itineraries-container {
        grid-template-columns: 1fr;
    }
    
    .itinerary-card {
        max-width: 100%;
    }
    
    .itinerary-image {
        height: 200px;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-content p {
        font-size: 0.9em;
    }
}

/* Estilos para el modal mejorado */
.modal {
    display: none;
        position: fixed;
    z-index: 9999;
        top: 0;
    left: 0;
        width: 100%;
    height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    border-radius: 8px;
}

/* Botones de navegación del modal */
.modal-prev, .modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.modal-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.modal-prev {
    left: 0;
}

.modal-prev:hover, .modal-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.close-modal {
        position: absolute;
    top: 15px;
    right: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1000;
}

.close-modal:hover {
    color: #bbb;
    text-decoration: none;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
        text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }
    
    .modal-prev, .modal-next {
        font-size: 24px;
        padding: 12px;
    }
    
    .close-modal {
        font-size: 30px;
        top: 10px;
        right: 10px;
    }
}

/* Estilos para la página de deportes */
* Estilos modernos para la página de deportes */
#sports-page {
    background-color: #000;
    color: #fff;
}

/* Secciones generales */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Grid de actividades */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.activity-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-card:hover {
    transform: translateY(-10px);
}

.activity-card i {
    background: linear-gradient(45deg, #007bff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5em;
    margin-bottom: 15px;
}

/* Tarjetas de beneficios */
.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.benefit-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.benefit-card i {
    background: linear-gradient(45deg, #007bff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5em;
    margin-bottom: 15px;
}

/* Sección CTA */
.cta-section {
    background: linear-gradient(45deg, #007bff, #00ff88);
    padding: 80px 20px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #000;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .activities-grid,
    .benefits-container {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Estilos para la sección de paquetes */
.packages-section {
    padding: 80px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('fotos/machu.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.package-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.package-item {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.package-item:hover {
    transform: translateY(-10px);
}

.package-item i {
    background: linear-gradient(45deg, #007bff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5em;
    margin-bottom: 15px;
}

/* Estilos para la sección Por qué elegirnos */
.why-us-section {
    padding: 80px 20px;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
}

.why-us-container {
    max-width: 1000px;
    margin: 0 auto;
}

.why-us-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.why-us-content p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .package-features {
        grid-template-columns: 1fr;
    }

    .why-us-content {
        padding: 20px;
    }
}

/* Ajustes para el texto en secciones con fondo blanco */
.intro-section {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

.intro-section .text-content p {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.altitude-training {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

.altitude-training .text-content p {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.section-header h2 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.activity-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-card h3 {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.activity-card p {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.benefits-section {
    background: rgba(0, 0, 0, 0.7);
}

.benefit-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-card h3 {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.benefit-card p {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.packages-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('fotos/machu.jpeg');
}

.package-item {
    background: rgba(0, 0, 0, 0.6);
}

.package-item h3 {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.package-item p {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Efecto hover mejorado para las tarjetas */
.activity-card:hover,
.benefit-card:hover,
.package-item:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Ajuste para los iconos */
.activity-card i,
.benefit-card i,
.package-item i {
    background: linear-gradient(45deg, #007bff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5em;
    margin-bottom: 15px;
}

/* Ajustes para mejorar la legibilidad del texto */
.intro-section,
.altitude-training,
.benefits-section,
.packages-section,
.why-us-section {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px 20px;
}

/* Estilo base para todos los textos */
.text-content p,
.section-header h2,
.activity-card h3,
.activity-card p,
.benefit-card h3,
.benefit-card p,
.package-item h3,
.package-item p,
.why-us-content p {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Estilos específicos para los encabezados */
.section-header h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

/* Estilos para las tarjetas */
.activity-card,
.benefit-card,
.package-item {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

/* Efecto hover para las tarjetas */
.activity-card:hover,
.benefit-card:hover,
.package-item:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Ajuste para los párrafos */
.text-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Fondo con overlay para las secciones */
.intro-section::before,
.altitude-training::before,
.benefits-section::before,
.packages-section::before,
.why-us-section::before {
    content: '';
    position: absolute;
    border-radius: 10px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7));
    z-index: -1;
}

/* Contenedor con efecto glassmorfismo */
.content-container {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* Mejoras para la carga de la página */
.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    z-index: 9999;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Estilos para el botón de "Ver itinerario" */
.view-itinerary-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: #3498db;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.view-itinerary-btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Mejoras para la accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Mejoras para el rendimiento en dispositivos móviles */
@media (max-width: 768px) {
    body::before {
        animation: panorama 120s linear infinite;
    }
}
/* Estilos generales para modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 15px 0;
}

.terms-content {
    line-height: 1.6;
}

.terms-content h2 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.terms-content p {
    margin-bottom: 15px;
    color: #555;
}

/* Estilos para el footer */


.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0px;
    bottom: 0;
    width: 300px;
    height: 2px;
    background-color: #3498db;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    color: #ecf0f1;
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
    color: #3498db;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #95a5a6;
}
 /* ===== ESTILOS PARA EL CONTENEDOR DE ITINERARIOS ===== */
            /* Contenedor principal que organiza las tarjetas de itinerarios en una cuadrícula */
.itineraries-container {
                max-width: 1200px;
                margin: 2rem auto;
                padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 2rem;
}

            /* ===== ESTILOS PARA LAS TARJETAS DE ITINERARIOS ===== */
            /* Tarjeta individual que muestra la información de un itinerario */
.itinerary-card {
                background: #fff;
    border-radius: 15px;
    overflow: hidden;
                box-shadow: 0 4px 15px rgba(0,0,0,0.1);
                transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
                position: relative;
}

            /* Efecto al pasar el cursor sobre la tarjeta */
.itinerary-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

            /* Imagen de la tarjeta de itinerario */
.itinerary-image {
    width: 100%;
                height: 250px;
    object-fit: cover;
                transition: transform 0.5s ease;
            }

            /* Efecto de zoom suave al pasar el cursor sobre la imagen */
            .itinerary-card:hover .itinerary-image {
                transform: scale(1.05);
            }

            /* Contenedor del contenido textual de la tarjeta */
.itinerary-content {
                padding: 1.5rem;
            }

            /* Título del itinerario */
            .itinerary-content h3 {
                margin: 0 0 0.5rem;
                color: #333;
                font-size: 1.5rem;
            }

            /* Descripción del itinerario */
            .itinerary-content p {
                color: #666;
                margin: 0;
                line-height: 1.6;
            }

            /* Etiqueta de precio que se muestra en la esquina superior derecha */
            .itinerary-price {
                position: absolute;
                top: 1rem;
                right: 1rem;
                background: rgba(255,255,255,0.9);
                padding: 0.5rem 1rem;
                border-radius: 25px;
                font-weight: bold;
                color: #333;
            }

            /* Contenedor de etiquetas de destacados */
            .itinerary-highlights {
                margin-top: 1rem;
                display: flex;
                gap: 1rem;
                flex-wrap: wrap;
            }

            /* Etiquetas individuales que muestran destinos o características destacadas */
            .highlight-tag {
                background: #f0f0f0;
                padding: 0.3rem 0.8rem;
                border-radius: 15px;
                font-size: 0.9rem;
                color: #555;
            }

            /* ===== ESTILOS PARA EL MODAL DE TIMELINE ===== */
            /* Modal principal que se muestra al hacer clic en un itinerario */
.timeline-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
                height: 100vh;
                background: rgba(0, 0, 0, 0.95);
                z-index: 9999;
                opacity: 0;
                transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
                backdrop-filter: blur(5px);
            }

            /* Clase que se añade cuando el modal está activo */
            .timeline-modal.active {
                opacity: 1;
            }

            /* Contenedor del modal con posición fija y centrado */
            .timeline-wrapper {
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 800px;
                max-height: 85vh;
                background: #fff;
                border-radius: 20px;
                overflow: hidden;
                box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
                transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            }

            /* Animación del contenedor cuando el modal está activo */
            .timeline-modal.active .timeline-wrapper {
                transform: translate(-50%, -50%) scale(1);
            }

            /* Contenedor con scroll para el contenido del timeline */
            .timeline-container {
                height: 100%;
                overflow-y: auto;
                padding: 0 20px 30px;
                scrollbar-width: thin;
                scrollbar-color: #3498db #f1f1f1;
                scroll-behavior: smooth;
            }

            /* Barra de navegación fija en la parte superior del timeline */
            .timeline-nav {
                background: #fff;
                padding: 20px;
                border-bottom: 1px solid #eee;
                display: flex;
                justify-content: space-between;
                align-items: center;
                position: sticky;
                top: 0;
                z-index: 2;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
            }

            /* Botones de navegación (anterior/siguiente día) */
            .timeline-nav button {
                padding: 12px 24px;
                background: #3498db;
    color: white;
                border: none;
                border-radius: 30px;
                cursor: pointer;
                font-weight: 500;
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                display: flex;
                align-items: center;
                gap: 8px;
                box-shadow: 0 2px 5px rgba(52, 152, 219, 0.2);
            }

            /* Efecto al pasar el cursor sobre los botones de navegación */
            .timeline-nav button:hover:not(:disabled) {
                background: #2980b9;
                transform: translateY(-2px);
                box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
            }

            /* Estilo para botones deshabilitados */
            .timeline-nav button:disabled {
                background: #e0e0e0;
                cursor: not-allowed;
                opacity: 0.7;
                transform: none;
                box-shadow: none;
            }

            /* ===== ESTILOS PARA EL TIMELINE ===== */
            /* Contenedor principal del timeline */
            .timeline {
                padding: 30px 20px;
                position: relative;
            }

            /* Eliminación de la línea vertical del timeline */
            .timeline::before {
                content: '';
    position: absolute;
                left: 30px;
                top: 0;
                bottom: 0;
                width: 2px;
                background: #3498db;
                opacity: 0.3;
                display: block;
            }

            /* Elemento individual del timeline (cada día) */
            .timeline-item {
                position: relative;
                padding-left: 60px;
                margin: 40px 0;
            }

            /* Clase que se añade cuando el elemento está visible */
            .timeline-item.animate-in {
                opacity: 1;
                transform: translateY(0);
            }

            /* Punto indicador para cada día en el timeline */
            .timeline-dot {
                position: absolute;
                left: 21px;
                width: 20px;
                height: 20px;
                background: white;
                border: 3px solid #3498db;
                border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
                animation: pulse 2s infinite;
            }

            /* Animación del punto cuando el elemento está visible */
            .timeline-item.animate-in .timeline-dot {
                transform: scale(1.2);
                box-shadow: 0 0 0 6px rgba(52, 152, 219, 0.3);
                animation: pulse 2s infinite;
            }

            /* Animación de pulso para los puntos del timeline */
            @keyframes pulse {
                0% {
                    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
                }
                70% {
                    box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
                }
                100% {
                    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
                }
            }

            /* Contenedor del contenido de cada día */
            .timeline-content {
                background: #fff;
                padding: 25px;
                border-radius: 15px;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                border: 1px solid #eee;
                position: relative;
                overflow: hidden;
                margin-left: 20px;
            }

            /* Gradiente de fondo para el contenido al hacer hover */
            .timeline-content::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), transparent);
                opacity: 0;
                transition: opacity 0.4s ease;
            }

            /* Efecto al pasar el cursor sobre el contenido */
            .timeline-content:hover {
                transform: translateY(-5px);
                box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
                border-color: #3498db;
            }

            /* Mostrar el gradiente al hacer hover */
            .timeline-content:hover::before {
                opacity: 1;
            }

            /* Título del contenido de cada día */
            .timeline-content h3 {
                margin: 0 0 15px 0;
                color: #2c3e50;
                font-size: 1.4em;
                display: flex;
                align-items: center;
                gap: 12px;
                position: relative;
            }

            /* Icono dentro del título */
            .timeline-content h3 i {
                color: #3498db;
                font-size: 1.2em;
                transition: transform 0.4s ease;
            }

            /* Efecto al pasar el cursor sobre el icono */
            .timeline-content:hover h3 i {
                transform: scale(1.2);
            }

            /* Párrafo de descripción dentro del contenido */
            .timeline-content p {
                margin: 0;
                color: #555;
                line-height: 1.7;
                font-size: 1.05em;
                position: relative;
            }

            /* ===== ESTILOS PARA EL BOTÓN DE CIERRE ===== */
            /* Botón X para cerrar el modal */
            .close-timeline {
                position: absolute;
                top: 15px;
                right: 15px;
                width: 40px;
                height: 40px;
                background: white;
                border: none;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
    cursor: pointer;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
                z-index: 10000;
                font-size: 24px;
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                color: #2c3e50;
            }

            /* Efecto al pasar el cursor sobre el botón de cierre */
            .close-timeline:hover {
                background: #f8f9fa;
                transform: rotate(90deg) scale(1.1);
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
            }

            /* ===== ESTILOS RESPONSIVOS ===== */
            /* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
                /* Ajuste del contenedor del modal en móviles */
                .timeline-wrapper {
                    width: 100%;
                    height: 100vh;
                    max-height: 100vh;
                    border-radius: 0;
                    top: 0;
                    left: 0;
                    transform: translateY(20px);
                }

                /* Animación del contenedor en móviles */
                .timeline-modal.active .timeline-wrapper {
                    transform: translateY(0);
                }

                /* Ajuste del botón de cierre en móviles */
                .close-timeline {
                    top: 10px;
                    right: 10px;
                    width: 35px;
                    height: 35px;
                    font-size: 20px;
                }

                /* Ajuste de la barra de navegación en móviles */
                .timeline-nav {
                    padding: 15px;
                }

                /* Ajuste de los botones de navegación en móviles */
                .timeline-nav button {
                    padding: 10px 20px;
                    font-size: 0.9em;
                }

                /* Ajuste de los elementos del timeline en móviles */
                .timeline-item {
                    padding-left: 40px;
                }

                /* Ajuste de los puntos del timeline en móviles */
                .timeline-dot {
                    left: 10px;
                }

                /* Ajuste del contenido del timeline en móviles */
    .timeline-content {
                    margin-left: 10px;
                }

                /* Ajuste del título del contenido en móviles */
                .timeline-content h3 {
                    font-size: 1.2em;
                }

                /* Ajuste del texto del contenido en móviles */
                .timeline-content p {
                    font-size: 1em;
                }
            }

            /* ===== ESTILOS PARA EL CUERPO CUANDO EL MODAL ESTÁ ABIERTO ===== */
            body.modal-open {
                overflow: hidden;
                position: fixed;
                width: 100%;
                height: 100%;
                touch-action: none;
            }

            /* ===== ANIMACIONES ===== */
            /* Animación de entrada para el modal */
            @keyframes modalFadeIn {
                from {
                    opacity: 0;
                    transform: translate(-50%, -48%);
                }
                to {
                    opacity: 1;
                    transform: translate(-50%, -50%);
                }
            }

            /* Aplicación de la animación al contenedor del modal */
            .timeline-wrapper {
                animation: modalFadeIn 0.3s ease forwards;
            }

            /* ===== ESTILOS PARA LA BARRA DE DESPLAZAMIENTO PERSONALIZADA ===== */
            /* Ancho de la barra de desplazamiento */
            .timeline-container::-webkit-scrollbar {
                width: 8px;
            }

            /* Fondo de la barra de desplazamiento */
            .timeline-container::-webkit-scrollbar-track {
                background: #f1f1f1;
                border-radius: 4px;
            }

            /* Color del "pulgar" de la barra de desplazamiento */
            .timeline-container::-webkit-scrollbar-thumb {
                background: #888;
                border-radius: 4px;
            }

            /* Color del "pulgar" al pasar el cursor */
            .timeline-container::-webkit-scrollbar-thumb:hover {
                background: #555;
            }

            /* ===== ANIMACIONES ADICIONALES ===== */
            /* Animación de entrada para elementos del timeline */
            @keyframes fadeIn {
                from { 
                    opacity: 0; 
                    transform: translateY(20px); 
                }
                to { 
                    opacity: 1; 
                    transform: translateY(0); 
                }
            }

            /* Animación de entrada lateral para el contenedor */
            @keyframes slideIn {
                from { 
                    transform: translateX(-100%); 
                    opacity: 0;
                }
                to { 
                    transform: translateX(0); 
                    opacity: 1;
                }
            }

            /* Aplicación de la animación a los elementos del timeline */
            .timeline-item {
                opacity: 0;
                transition: opacity 0.5s ease, transform 0.5s ease;
            }

            /* Clase que activa la animación de entrada */
            .timeline-item.animate-in {
                animation: fadeIn 0.8s ease forwards;
            }

            /* Transición para el modal */
            .timeline-modal {
                transition: opacity 0.5s ease;
            }

            /* Animación para el contenedor del timeline */
            .timeline-container {
                animation: slideIn 0.8s ease;
            }

            /* Transición para los puntos del timeline */
            .timeline-dot {
                transition: transform 0.5s ease, background-color 0.5s ease;
            }

            /* Efecto para los puntos cuando el elemento está visible */
            .timeline-item.animate-in .timeline-dot {
                transform: scale(1.2);
                background-color: #3498db;
            }

            /* Transición para el contenido del timeline */
            .timeline-content {
                transition: all 0.5s ease;
            }

            /* Efecto al pasar el cursor sobre el contenido */
            .timeline-content:hover {
                transform: translateY(-5px);
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            }

            /* Transición para el botón de cierre */
            .close-timeline {
                transition: all 0.5s ease;
            }

            /* Efecto al pasar el cursor sobre el botón de cierre */
            .close-timeline:hover {
                transform: rotate(90deg);
                background: #f8f9fa;
            }

            /* ===== ESTILOS BASE DEL TIMELINE MODAL ===== */
.timeline-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
                height: 100vh;
                background: rgba(0, 0, 0, 0.95);
                z-index: 9999;
                opacity: 0;
                transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
                backdrop-filter: blur(5px);
            }

            .timeline-modal.active {
                opacity: 1;
            }

            /* ===== CONTENEDOR PRINCIPAL ===== */
            .timeline-wrapper {
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%) scale(0.95);
                width: 90%;
    max-width: 800px;
                max-height: 85vh;
    background: #fff;
                border-radius: 20px;
                overflow: hidden;
                box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
                transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
                animation: modalFadeIn 0.3s ease forwards;
            }

            .timeline-modal.active .timeline-wrapper {
                transform: translate(-50%, -50%) scale(1);
            }

            /* ===== CONTENEDOR DEL TIMELINE ===== */
            .timeline-container {
                height: 100%;
                overflow-y: auto;
                padding: 0 20px 30px;
                scrollbar-width: thin;
                scrollbar-color: #3498db #f1f1f1;
                scroll-behavior: smooth;
                animation: slideIn 0.8s ease;
            }

            /* ===== BARRA DE NAVEGACIÓN ===== */
            .timeline-nav {
                background: #fff;
    padding: 20px;
                border-bottom: 1px solid #eee;
                display: flex;
                justify-content: space-between;
                align-items: center;
                position: sticky;
                top: 0;
                z-index: 2;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
                backdrop-filter: blur(10px);
            }

            .timeline-nav button {
                padding: 12px 24px;
                background: #3498db;
                color: white;
                border: none;
                border-radius: 30px;
                cursor: pointer;
                font-weight: 500;
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                display: flex;
                align-items: center;
                gap: 8px;
                box-shadow: 0 2px 5px rgba(52, 152, 219, 0.2);
            }

            .timeline-nav button:hover:not(:disabled) {
                background: #2980b9;
                transform: translateY(-2px);
                box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
            }

            .timeline-nav button:disabled {
                background: #e0e0e0;
                cursor: not-allowed;
                opacity: 0.7;
                transform: none;
                box-shadow: none;
            }

            /* ===== BOTÓN DE CIERRE ===== */
            .close-timeline {
    position: absolute;
                top: 15px;
                right: 15px;
                width: 40px;
                height: 40px;
                background: white;
                border: none;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
                z-index: 10000;
                font-size: 24px;
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                color: #2c3e50;
            }

            .close-timeline:hover {
                background: #f8f9fa;
                transform: rotate(90deg) scale(1.1);
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
            }

            /* ===== ELEMENTOS DEL TIMELINE ===== */
.timeline-item {
                opacity: 0;
                transition: opacity 0.5s ease, transform 0.5s ease;
                padding-left: 40px;
    position: relative;
            }

            .timeline-item.animate-in {
                animation: fadeIn 0.8s ease forwards;
}

.timeline-dot {
                width: 20px;
                height: 20px;
                background: white;
                border: 3px solid #3498db;
    border-radius: 50%;
    position: absolute;
                left: 21px;
                top: 25px;
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
            }

            .timeline-item.animate-in .timeline-dot {
                transform: scale(1.2);
                box-shadow: 0 0 0 6px rgba(52, 152, 219, 0.3);
                animation: pulse 2s infinite;
            }

            /* ===== CONTENIDO DEL TIMELINE ===== */
.timeline-content {
    background: #fff;
                padding: 25px;
                border-radius: 15px;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                border: 1px solid #eee;
                position: relative;
                overflow: hidden;
                margin-left: 20px;
            }

            .timeline-content::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), transparent);
                opacity: 0;
                transition: opacity 0.4s ease;
            }

            .timeline-content:hover {
                transform: translateY(-5px);
                box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
                border-color: #3498db;
            }

            .timeline-content:hover::before {
                opacity: 1;
            }

            .timeline-content h3 {
                margin: 0 0 15px 0;
                color: #2c3e50;
                font-size: 1.4em;
                display: flex;
                align-items: center;
                gap: 12px;
                position: relative;
            }

            .timeline-content h3 i {
                color: #3498db;
                font-size: 1.2em;
                transition: transform 0.4s ease;
            }

            .timeline-content:hover h3 i {
                transform: scale(1.2);
            }

            .timeline-content p {
                margin: 0;
                color: #555;
                line-height: 1.7;
                font-size: 1.05em;
                position: relative;
            }

            /* ===== SCROLLBAR PERSONALIZADA ===== */
            .timeline-container::-webkit-scrollbar {
                width: 8px;
            }

            .timeline-container::-webkit-scrollbar-track {
                background: #f1f1f1;
                border-radius: 4px;
            }

            .timeline-container::-webkit-scrollbar-thumb {
                background: #888;
                border-radius: 4px;
            }

            .timeline-container::-webkit-scrollbar-thumb:hover {
                background: #555;
            }

            /* ===== ANIMACIONES ===== */
            @keyframes modalFadeIn {
                from {
                    opacity: 0;
                    transform: translate(-50%, -48%);
                }
                to {
                    opacity: 1;
                    transform: translate(-50%, -50%);
                }
            }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

            @keyframes slideIn {
                from { 
                    transform: translateX(-100%); 
                    opacity: 0;
                }
                to { 
                    transform: translateX(0); 
                    opacity: 1;
                }
            }

            @keyframes pulse {
                0% {
                    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
                }
                70% {
                    box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
                }
                100% {
                    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
                }
            }

            /* ===== ESTILOS PARA MÓVIL ===== */
@media (max-width: 768px) {
                .timeline-wrapper {
                    width: 100%;
                    height: 100vh;
                    max-height: 100vh;
                    border-radius: 0;
                    top: 0;
                    left: 0;
                    transform: translateY(20px);
                }

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

                .close-timeline {
                    top: 10px;
                    right: 10px;
                    width: 35px;
                    height: 35px;
                    font-size: 20px;
                }

                .timeline-nav {
                    padding: 15px;
                }

                .timeline-nav button {
                    padding: 10px 15px;
                    font-size: 0.9em;
                }
                
                .timeline-nav span {
                    font-size: 0.9em;
    }

    .timeline-item {
                    padding-left: 40px;
                }

                .timeline-dot {
                    left: 10px;
                }

                .timeline-content {
                    margin-left: 10px;
                }

                .timeline-content h3 {
                    font-size: 1.2em;
                }

                .timeline-content p {
                    font-size: 1em;
                }
            }

            /* ===== ESTILOS PARA EL BODY CUANDO EL MODAL ESTÁ ABIERTO ===== */
            body.modal-open {
                overflow: hidden;
                position: fixed;
                width: 100%;
                height: 100%;
                touch-action: none;
            }

            /* ===== ESTILOS RESPONSIVOS PARA MÓVILES ===== */
            @media (max-width: 768px) {
                /* Ajustes generales */
                body {
                    font-size: 14px;
                }

                /* Contenedor principal */
                .container {
                    padding: 0 15px;
                    width: 100%;
                }

                /* Header y navegación */
                .header {
                    padding: 10px 0;
                }

                .header-container {
                    padding: 0 15px;
                }

                .logo img {
                    height: 35px;
                }

                .main-nav {
                    display: none;
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100vh;
                    background: rgba(0, 0, 0, 0.95);
                    z-index: 1000;
                    padding-top: 80px;
                }

                .main-nav.active {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                }

                .main-nav ul {
                    flex-direction: column;
                    gap: 20px;
                }

                .nav-link {
                    font-size: 1.2em;
                    padding: 15px 30px;
                }

                /* Hero section */
                .hero-section {
                    height: 0vh;
                    padding: 0px 0;
                }

                .hero-content {
                    padding: 0px;
                    width: 90%;
                }

                .hero-content h1 {
                    font-size: 2em;
                    margin-bottom: 15px;
                }

                .hero-content p {
                    font-size: 1em;
                    line-height: 1.5;
                }

                /* Itinerarios */
                .itineraries-container {
                    grid-template-columns: 1fr;
                    gap: 20px;
                    padding: 15px;
                }

                .itinerary-card {
                    margin: 0;
                }

                .itinerary-image {
                    height: 200px;
                }

                .itinerary-content {
                    padding: 15px;
                }

                .itinerary-content h3 {
                    font-size: 1.3em;
                }

                .itinerary-price {
                    font-size: 0.9em;
                    padding: 5px 15px;
                }

                .highlight-tag {
                    font-size: 0.8em;
                    padding: 3px 10px;
                }

                /* Timeline Modal */
                .timeline-modal {
                    padding: 0;
                }

                .timeline-wrapper {
                    width: 100%;
                    height: 100vh;
                    max-height: 100vh;
                    border-radius: 0;
                    top: 0;
                    left: 0;
                    transform: translateY(20px);
                }

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

                .timeline-container {
                    padding: 0 15px 20px;
                }

                .timeline-nav {
                    padding: 15px;
                    flex-direction: column;
                    gap: 10px;
                }

                .timeline-nav button {
                    width: 100%;
                    justify-content: center;
                    padding: 10px 15px;
                    font-size: 0.9em;
                }

                .timeline-nav span {
                    font-size: 0.9em;
                    text-align: center;
                }

                .close-timeline {
                    top: 10px;
                    right: 10px;
                    width: 35px;
                    height: 35px;
                    font-size: 20px;
                }

                .timeline-item {
                    padding-left: 30px;
                    margin: 20px 0;
                }

                .timeline-dot {
                    left: 8px;
                    width: 16px;
                    height: 16px;
                }

                .timeline-content {
                    margin-left: 10px;
                    padding: 15px;
                }

                .timeline-content h3 {
                    font-size: 1.1em;
                    margin-bottom: 10px;
                }

                .timeline-content p {
                    font-size: 0.95em;
                    line-height: 1.5;
                }
               
                /* Botones y CTAs */
                .cta-button {
                    
                    padding: 12px 20px;
                    font-size: 0.9em;
                }

                .view-itinerary-btn {
                    width: 100%;
                    text-align: center;
                    padding: 10px 15px;
                    font-size: 0.9em;
                }

                /* Mejoras de rendimiento */
                * {
                    -webkit-tap-highlight-color: transparent;
                }

                .timeline-container {
                    -webkit-overflow-scrolling: touch;
                }

                /* Optimizaciones de animaciones */
                .timeline-item {
                    transition: opacity 0.3s ease, transform 0.3s ease;
                }

                .timeline-content {
                    transition: transform 0.3s ease, box-shadow 0.3s ease;
                }

                .timeline-content:hover {
                    transform: translateY(-3px);
                }

                /* Ajustes de accesibilidad */
                .nav-link,
                .cta-button,
                .view-itinerary-btn,
                .timeline-nav button {
                   
                    min-width: 44px;
                }

                /* Mejoras de scroll */
                .timeline-container::-webkit-scrollbar {
                    width: 4px;
                }

                .timeline-container::-webkit-scrollbar-thumb {
                    background: #3498db;
                }
            }

            /* ===== ESTILOS PARA PANTALLAS MUY PEQUEÑAS ===== */
            @media (max-width: 480px) {
                .hero-content h1 {
                    font-size: 1.8em;
                }

                .itinerary-image {
                    height: 180px;
                }

                .timeline-content h3 {
                    font-size: 1em;
                }

                .timeline-content p {
                    font-size: 0.9em;
                }

                .footer-section h4 {
                    font-size: 1.1em;
                }
            }

            /* ===== ESTILOS PARA ORIENTACIÓN HORIZONTAL EN MÓVILES ===== */
            @media (max-height: 500px) and (orientation: landscape) {
                .timeline-wrapper {
                    height: 100vh;
                    max-height: none;
                }

                .timeline-nav {
                    position: sticky;
                    top: 0;
                }

                .timeline-container {
                    height: calc(100vh - 70px);
    }
}

/* Ajustes específicos para el modal en móvil */
@media (max-width: 768px) {
    .timeline-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y pinch-zoom;
    }

    .timeline-wrapper {
        width: 100%;
        height: auto;
        min-height: 100%;
        position: relative;
        margin: 0;
        border-radius: 0;
        background: #fff;
        overflow-y: visible;
        transform: none !important;
        touch-action: pan-y pinch-zoom;
    }

    .timeline-container {
        padding-top: 60px;
        padding-bottom: 20px;
        height: auto;
        min-height: calc(100vh - 60px);
        overflow-y: visible;
        background: #fff;
        touch-action: pan-y pinch-zoom;
    }
}

/* Ajuste del body cuando el modal está abierto */
body.modal-open {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
}

/* Ajustes para mejorar la interactividad en móviles */
.itinerary-card {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.timeline-nav button,
.close-timeline {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.timeline-content {
    touch-action: pan-y pinch-zoom;
}

.custom-activities-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('fotos/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem 2rem;
    margin: 2rem 0;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner-content p {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Estilos responsivos para el banner */
@media (max-width: 768px) {
    .custom-activities-banner {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }

    .banner-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .custom-activities-banner {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }

    .banner-content p {
        font-size: 1rem;
    }
}

/* Estilos para la sección Acerca de Nosotros */
#about {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('fotos/danzantes-de-tijeras_portada.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    padding: 80px 20px;
    margin: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
}

#about h2 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

.mission-vision {
    background: rgb(61 59 59 / 50%);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mission, .vision {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mission h3, .vision h3,
.mission p, .vision p {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Ajustes responsive */
@media (max-width: 768px) {
    #about {
        background-attachment: scroll;
        padding: 60px 15px;
    }
    
    .mission-vision {
        padding: 20px;
    }
}

/* Sección Home/Inicio */
#home {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('fotos/convento-de-santa-catalina.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 20px;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

/* Sección Tours/Viajes */
#tours {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('fotos/fortaleza-de-sacsayhuaman_portada.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 20px;
    margin: 0;
    min-height: 100vh;
    color: #ffffff;
}

/* Sección Contacto */
#contact {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('fotos/cosecha-de-\ cafe-organico_portada.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 20px;
    margin: 0;
    min-height: 100vh;
    color: #ffffff;
}

/* Estilos comunes para todas las secciones */
section {
    position: relative;
}

section h2 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    text-align: center;
    font-size: 2.5em;
}

section .content-container {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    max-width: 1200px;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    section {
        background-attachment: scroll;
        padding: 60px 15px;
    }
    
    section .content-container {
        padding: 20px;
    }
    
    section h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    section h2 {
        font-size: 1.8em;
    }
    
    section .content-container {
        padding: 15px;
    }
}
