/* Banderas en Windows: Windows no tiene emojis de banderas y muestra letras
   ("IT", "ES"). Esta fuente solo contiene las banderas; el resto del texto
   sigue usando la fuente normal. */
@font-face {
    font-family: "Twemoji Country Flags";
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
    src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.8/dist/TwemojiCountryFlags.woff2") format("woff2");
    font-display: swap;
}

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

    body {
    font-family: "Twemoji Country Flags", 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%232e7d32' stroke-opacity='0.10' stroke-width='2.2'%3E%3Ccircle cx='200' cy='200' r='150'/%3E%3Ccircle cx='200' cy='200' r='95'/%3E%3Cpath d='M200 50 L200 350 M50 200 L350 200 M94 94 L306 306 M306 94 L94 306'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(rgba(232, 245, 233, 0.70), rgba(232, 245, 233, 0.70)),
        url("../img/fondo.jpg");
    background-size: 400px 400px, cover, cover;
    background-position: center, center, center;
    background-repeat: repeat, no-repeat, no-repeat;
    background-attachment: scroll, fixed, fixed;
    background-color: #e8f5e9;
    color: #1e293b;
    line-height: 1.6;
}

    .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Cristal blanco translúcido con línea verde abajo */
    background-color: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 2px 18px rgba(27, 94, 32, 0.10);
    border-bottom: 3px solid #2e7d32;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 8px 40px;
}

.navbar.scrolled {
    padding: 4px 40px;
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 24px rgba(27, 94, 32, 0.12);
}

    .navbar-container {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

  

    /* ================= NAV LINKS (versión escritorio) ================= */
    .nav-links {
        display: flex;
        list-style: none;
        gap: 6px;
    }

    .nav-links li a {
        text-decoration: none;
        white-space: nowrap;
        color: #1e293b;
        font-weight: 500;
        font-size: 15px;
        padding: 8px 12px;
        border-radius: 20px;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .nav-links li a:hover {
        color: #1b5e20;
        background: #e8f5e9;
    }

    /* Al saltar a una sección desde el menú, que el navbar fijo no tape el título */
    .contenido [id] {
        scroll-margin-top: 110px;
    }

    /* Sección en la que está el lector (la marca js/ciudades1.js) */
    .nav-links li a.activo {
        color: #1b5e20;
        background: #e8f5e9;
        box-shadow: inset 0 0 0 1px #c8e6c9;
    }

    /* ================= BOTÓN HAMBURGUESA ================= */
    .hamburger {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 45px;
        height: 45px;
        cursor: pointer;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1002;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
        background: #1e293b;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 4px;
    }

    .hamburger:hover {
        background: #f1f5f9;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Overlay para móvil */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

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

    /* ================= HEADER DESTINO ================= */
    .header-destino {
        margin-top: 100px;
        height: 400px;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
        position: relative;
        border-radius: 30px;
        margin-left: 20px;
        margin-right: 20px;
        overflow: hidden;
    }

    .header-destino::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
    }

    .header-text {
        position: relative;
        z-index: 2;
    }

    .header-text h1 {
        font-size: 48px;
        margin-bottom: 10px;
        font-family: "Twemoji Country Flags", 'Playfair Display', serif;
        font-weight: 700;
        letter-spacing: -0.3px;
    }

    .header-text p {
        font-size: 20px;
        font-weight: 300;
    }

    /* ================= CONTENIDO PRINCIPAL ================= */
    .contenido {
    max-width: 900px;
    margin: auto;
    padding: 60px 25px;
    background: rgba(144, 181, 147, 0.30); /* deja ver la foto del body */
    backdrop-filter: blur(3px);             /* opcional: desenfoca un poco lo de detrás */
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

    /* Párrafos con Poppins: algo más pequeños y con más aire */
    .contenido p {
        font-size: 15px;
        line-height: 1.8;
    }

    /* Mismo estilo que .section-title: todos los títulos de sección iguales */
    .contenido h2 {
        font-family: "Twemoji Country Flags", 'Playfair Display', serif;
        font-size: 1.8rem;
        font-weight: 600;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
        color: #1b5e20;
        border-left: 6px solid #2e7d32;
        padding-left: 1rem;
    }

    /* Separador entre secciones: línea fina verde con un avión en el centro */
    .separador {
        position: relative;
        height: 24px;
        max-width: 280px;
        margin: 44px auto;
        border: 0;
        background:
            linear-gradient(#a5d6a7, #a5d6a7) left center / 42% 2px no-repeat,
            linear-gradient(#a5d6a7, #a5d6a7) right center / 42% 2px no-repeat;
    }

    .separador::after {
        content: "\f072";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) rotate(-10deg);
        color: #2e7d32;
        font-size: 16px;
    }

    .ventaja {
    color: #1b5e20;     /* Verde oscuro (contraste 6,9:1) */
    font-size: 0.8rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #c8e6c9;
}

.desventaja {
    color: #b91c1c;     /* Rojo oscuro (contraste 5,7:1) */
    font-size: 0.8rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #c8e6c9;
}

.coche {
    color: #37474f;
    font-size: 0.8rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #c8e6c9;
}
    /* ================= BOTONES ================= */
    /* Botón secundario ("Ver…", "Más información"): borde verde, fondo blanco */
    .boton-hotel {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #ffffff;
        color: #2e7d32;
        border: 2px solid #2e7d32;
        padding: 9px 18px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        line-height: 1.3;
        margin-top: 10px;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
                    transform 0.2s ease, box-shadow 0.2s ease;
    }

    /* Icono de enlace externo (abren en otra web) */
    .boton-hotel::after {
        content: "\f35d";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.75em;
    }

    .boton-hotel:hover {
        background: #2e7d32;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(27, 94, 32, 0.25);
    }

    /* Contorno visible al navegar con teclado */
    .boton-hotel:focus-visible {
        outline: 3px solid #ffb703;
        outline-offset: 3px;
    }

    /* Botón principal "Comprar entradas": verde relleno con icono de entrada */
    .boton-hotel.boton-comprar {
        background: #2e7d32;
        color: #ffffff;
        white-space: nowrap;
        box-shadow: 0 3px 10px rgba(46, 125, 50, 0.25);
    }

    .boton-hotel.boton-comprar::before {
        content: "\f3ff";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }

    .boton-hotel.boton-comprar:hover {
        background: #1b5e20;
        border-color: #1b5e20;
    }

    /* ================= TARJETAS ================= */
    .tarjeta {
        display: flex;
        gap: 25px;
        background: #ffffff;
        padding: 20px;
        border-radius: 20px;
        margin-bottom: 30px;
        align-items: center;
        border: 1px solid #c8e6c9;
        box-shadow: 0 4px 14px rgba(27, 94, 32, 0.06);
    }

    .tarjeta-img img {
        width: 220px;
        height: 220px;
        object-fit: cover;
        border-radius: 15px;
    }

    .tarjeta-texto {
        flex: 1;
    }

    .tarjeta-texto h3 {
        margin-bottom: 10px;
        color: #1b5e20;
    }

    /* Recuadros "📌 ¡Importante!": fondo crema y raya ámbar */
    .aviso {
        margin-top: 15px;
        font-size: 14px;
        line-height: 1.55;
        color: #5d4037;
        background: #fff8e1;
        padding: 12px 16px;
        border-radius: 12px;
        border: 1px solid #ffe08a;
        border-left: 4px solid #ffb703;
    }

    .aviso strong {
        color: #8a5a00;
    }

    /* ================= CONSEJO VIAJERO ================= */
    /* Verde = consejo (los avisos "¡Importante!" son ámbar) */
    .consejo-viajero {
        background: #f1f8f1;
        border: 1px solid #c8e6c9;
        border-left: 5px solid #2e7d32;
        color: #1e293b;
        padding: 18px 22px;
        margin: 30px 0;
        border-radius: 16px;
        font-size: 15px;
        line-height: 1.65;
    }

    /* Etiqueta "💡 Consejo viajero:" */
    .consejo-viajero > b {
        color: #1b5e20;
        font-size: 1.05rem;
    }

    .consejo-viajero > p:first-of-type {
        margin-top: 6px;
    }

    .consejo-viajero p + p {
        margin-top: 10px;
    }

    .consejo-viajero strong {
        color: #1b5e20;
    }

    /* ================= MAPA ================= */
    .mapa {
        max-width: 900px;
        margin: 50px auto;
        padding: 15px;
        background: #e8f5e9;
        border: 1px solid #c8e6c9;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(27, 94, 32, 0.10);
    }

    .mapa iframe {
        width: 100%;
        height: 450px;
        border-radius: 15px;
        border: none;
    }

    /* ================= GALERIA ================= */
    /* Mosaico: cada foto mantiene su forma original, sin recortes */
    .galeria {
        columns: 3;
        column-gap: 14px;
        margin-top: 30px;
    }

    .galeria a {
        display: block;
        break-inside: avoid;
        margin-bottom: 14px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(27, 94, 32, 0.10);
    }

    .galeria img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform 0.4s ease;
        cursor: zoom-in;
    }

    .galeria a:hover img {
        transform: scale(1.05);
    }

    /* ================= SECCIONES ================= */
    .section-title {
        font-family: "Twemoji Country Flags", 'Playfair Display', serif;
        font-size: 1.8rem;
        font-weight: 600;
        margin: 2rem 0 1.5rem 0;
        border-left: 6px solid #2e7d32;
        padding-left: 1rem;
        color: #1b5e20;
    }

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

    /* Tarjetas de alojamiento y sabores */
    /* Columna flexible: el pie queda siempre abajo aunque el texto sea más corto */
    .precio-card, .card.sabor {
        background: white;
        border-radius: 24px;
        overflow: hidden;
        border: 1px solid #c8e6c9;
        box-shadow: 0 4px 14px rgba(27, 94, 32, 0.06);
        display: flex;
        flex-direction: column;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

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

    /* Cabecera verde: el título blanco se lee bien (antes 2,1:1 sobre salvia) */
    .precio-card .card-header, .card.sabor .card-header {
        background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
        padding: 1rem 1.5rem;
    }

    .precio-card .card-header h3, .card.sabor .card-header h3 {
        font-family: "Twemoji Country Flags", 'Playfair Display', serif;
        font-size: 1.4rem;
        font-weight: 700;
        color: white;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .precio-card .destino-badge, .card.sabor .destino-badge {
        background: rgba(255,255,255,0.18);
        color: white;
        font-size: 0.7rem;
        padding: 0.2rem 0.8rem;
        border-radius: 40px;
    }

    .precio-card .card-content, .card.sabor .card-content {
        padding: 1.2rem 1.5rem;
        background: #ffffff;
        flex: 1;
    }

    .precio-alojamiento, .card.sabor .precio {
        background: #e8f5e9;
        border: 1px solid #c8e6c9;
        display: inline-block;
        padding: 0.2rem 0.8rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 0.8rem;
        color: #1b5e20;
    }

    /* "✅ Ideal para:" — mismo tamaño que el resto, en una caja blanca */
    .alojamiento-ideal {
        font-size: 0.85rem;
        line-height: 1.45;
        color: #1e293b;
        background: #f1f8f1;
        border-radius: 10px;
        padding: 0.5rem 0.75rem;
        margin: 0.2rem 0 0.6rem;
    }

    .alojamiento-ideal strong {
        color: #1b5e20;
    }

    .alojamiento-descripcion, .card.sabor .historia {
        font-size: 0.85rem;
        line-height: 1.4;
        color: #2c2418;
        margin-bottom: 0.8rem;
    }

    .card.sabor .moraleja {
        padding: 0.6rem 1rem;
        border-radius: 16px;
        font-size: 0.85rem;
        font-weight: 500;
        margin-top: 1rem;
        color: #1b5e20;
        background: #f1f8f1;
        border-left: 3px solid #2e7d32;
    }

    .precio-card .card-footer, .card.sabor .card-footer {
        padding: 0.8rem 1.5rem 1.2rem;
        background: #f1f8f1;
        border-top: 1px solid #c8e6c9;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .tag-icon {
        background: #ffffff;
        border: 1px solid #c8e6c9;
        color: #1b5e20;
        font-size: 0.75rem;
        padding: 4px 12px;
        border-radius: 20px;
    }

    .map-link {
        text-decoration: none;
        color: #e74c3c;
        font-weight: 600;
        font-size: 0.95rem;
    }

    /* Icono (pin) del botón "Ver en mapa" */
    .map-link i {
        color: #e74c3c;
        font-size: 1.1rem;
        margin-right: 3px;
        vertical-align: -2px;
    }

    /* Sección de precios (3 columnas) */
    .pais-fila {
        background: white;
        border-radius: 24px;
        margin-bottom: 2.5rem;
        overflow: hidden;
        border: 1px solid #c8e6c9;
        box-shadow: 0 4px 14px rgba(27, 94, 32, 0.06);
    }

    /* Cabecera verde, igual que las tarjetas (antes salvia con título blanco 2,1:1) */
    .pais-header {
        background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
        padding: 1rem 2rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    /* "Temporada 2026", "invierno · 3 días"... */
    .pais-fecha {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
    }

    .pais-nombre {
        font-family: "Twemoji Country Flags", 'Playfair Display', serif;
        font-size: 1.6rem;
        font-weight: 700;
        color: white;
    }

    .tres-columnas {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        background: #ffffff;
    }

    /* Un solo fondo para todo el bloque (antes las columnas eran más oscuras) */
    .columna {
        padding: 1.5rem;
        background: transparent;
    }

    .columna:first-child {
        border-right: 1px solid #c8e6c9;
    }

    .columna:last-child {
        border-left: 1px solid #c8e6c9;
    }

    .columna-titulo {
        font-family: "Twemoji Country Flags", 'Playfair Display', serif;
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 8px;
        border-bottom: 2px dashed #c8e6c9;
        padding-bottom: 0.5rem;
        color: #1b5e20;
    }

    .sabor-plato {
        font-weight: 700;
        font-size: 1rem;
        color: #1b5e20;
        margin: 0.8rem 0 0.2rem;
    }

    .sabor-precio {
        background: #e8f5e9;
        border: 1px solid #c8e6c9;
        color: #1b5e20;
        display: inline-block;
        padding: 0.15rem 0.7rem;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 600;
        margin: 0.3rem 0;
    }

    .sabor-historia {
        font-size: 0.85rem;
        line-height: 1.4;
        color: #3e3324;
    }

    .proxima-item {
        margin-bottom: 1rem;
        padding-left: 0.5rem;
        border-left: 2px solid #c8e6c9;
    }

    /* Sin raya lateral cuando el bloque solo contiene un botón */
    .proxima-item:has(> .boton-hotel:only-child) {
        border-left: none;
        padding-left: 0;
    }

    .proxima-item strong {
        color: #1b5e20;
        display: block;
        font-size: 0.85rem;
    }

    /* Texto bajo cada título de las columnas (consejos para ahorrar, etc.),
       al mismo tamaño que el resto de la columna */
    .proxima-texto {
        font-size: 0.85rem;
        line-height: 1.5;
        color: #3e3324;
        margin-top: 2px;
    }

    /* Consejo pequeño dentro de las columnas: mini recuadro verde */
    .proxima-item.consejo {
        background: #f1f8f1;
        border-left: 3px solid #2e7d32;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .proxima-item.consejo strong {
        color: #1b5e20;
    }

/* ================= APLICACIONES (app-card) ================= */
.apps-intro {
    text-align: center;
    font-size: 1rem;
    color: #4a3a28;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.apps-grid {
    margin-bottom: 2rem;
}

.app-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 32px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #c8e6c9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.app-card .card-header {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    padding: 1rem 1.5rem;
}

.app-card .card-header h3 {
    font-family: "Twemoji Country Flags", 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.app-card .destino-badge {
    background: rgba(255,255,255,0.25);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
}

.app-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.8rem;
}

.app-descripcion {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #2c2418;
    margin-bottom: 1rem;
}

.app-ventajas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.5rem;
}

.ventaja-tag {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #1b5e20;
    font-weight: 500;
}

.boton-app {
    display: inline-block;
    background: #2e7d32;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: 0.3s;
    width: 100%;
    text-align: center;
}

.boton-app i {
    margin-right: 8px;
}

.boton-app:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.app-card .card-content {
    padding: 1.2rem 1.5rem;
    background: #ffffff;
    flex: 1;
}

.app-card .card-footer {
    padding: 0.8rem 1.5rem 1.2rem;
    background: #f1f8f1;
    border-top: 1px solid #c8e6c9;
}

/* Responsive para aplicaciones */
@media (max-width: 768px) {
    .app-ventajas {
        gap: 6px;
    }
    .ventaja-tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.6rem;
    }
    .boton-app {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

    /* ================= RESPONSIVE ================= */
    @media (max-width: 968px) {
        .navbar {
            padding: 8px 20px;
        }

        .navbar.scrolled {
            padding: 4px 20px;
        }

        .logo img {
            height: 75px;
        }

        .hamburger {
            display: flex;
        }

        .nav-links {
            position: fixed;
            top: 0;
            left: -100%;
            width: 80%;
            max-width: 320px;
            height: 100vh;
            background: white;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
            padding: 80px 20px 30px;
            margin: 0;
            box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
            transition: left 0.3s ease;
            z-index: 1001;
            overflow-y: auto;
            gap: 15px;
        }

        .nav-links.active {
            left: 0;
        }

        .nav-links li {
            width: 100%;
        }

        .nav-links a {
            display: block;
            padding: 10px 12px;
            font-size: 16px;
        }

        .header-destino {
            margin-top: 96px;
            height: 300px;
            margin-left: 15px;
            margin-right: 15px;
        }

        .header-text h1 {
            font-size: 32px;
        }

        .header-text p {
            font-size: 16px;
        }

        .contenido {
            padding: 30px 20px;
            margin: 0 15px;
        }

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

        .tarjeta-img img {
            width: 100%;
            height: auto;
        }

        .tres-columnas {
            grid-template-columns: 1fr;
        }

        .columna:first-child,
        .columna:last-child {
            border: none;
            border-top: 1px solid #c8e6c9;
        }

        .cards-grid {
            grid-template-columns: 1fr;
        }

        .galeria {
            columns: 2;
        }
    }

    @media (max-width: 600px) {
        .header-destino {
            height: 250px;
        }

        .header-text h1 {
            font-size: 24px;
        }

        .header-text p {
            font-size: 14px;
        }

        .galeria {
            columns: 2;
            column-gap: 10px;
        }
    }

    /* Animaciones */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .card, .tarjeta, .pais-fila {
        animation: fadeInUp 0.6s ease backwards;
    }

/* ================= MENÚ MÓVIL: .nav-links LATERAL ================= */
@media (max-width: 968px) {
    /* Fondo en degradado suave, esquina redondeada y sombra verdosa */
    .nav-links {
        background: linear-gradient(180deg, #ffffff 0%, #f1f8f1 55%, #e8f5e9 100%);
        padding: 150px 18px 30px;
        border-radius: 0 24px 24px 0;
        box-shadow: 8px 0 30px rgba(27, 94, 32, 0.18);
    }

    /* Cabecera del panel: solo la ilustración del avión y el globo */
    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 130px;
        background:
            url("../img/fondo1.jpg") center bottom -20px / auto 165px no-repeat,
            #fff;
        border-bottom: 3px solid #2e7d32;
        border-radius: 0 24px 0 0;
    }

    /* Fondo de detrás del panel: oscuro y algo desenfocado */
    .menu-overlay.active {
        background: rgba(15, 47, 68, 0.45);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }

    /* Secciones como tarjetas con un icono en un círculo verde */
    .nav-links {
        gap: 8px;
    }

    .nav-links li a {
        display: flex;
        align-items: center;
        gap: 12px;
        background: #fff;
        border: 1px solid #e0eee0;
        border-radius: 14px;
        padding: 12px 14px;
        font-size: 15px;
    }

    .nav-links li a::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        width: 30px;
        height: 30px;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #e8f5e9;
        color: #2e7d32;
        font-size: 13px;
    }

    .nav-links li a[href="#guia"]::before        { content: "\f05a"; } /* información */
    .nav-links li a[href="#alojamiento"]::before { content: "\f236"; } /* cama */
    .nav-links li a[href="#visitar"]::before     { content: "\f279"; } /* mapa */
    .nav-links li a[href="#precios"]::before     { content: "\f153"; } /* euro */
    .nav-links li a[href="#comida"]::before      { content: "\f2e7"; } /* cubiertos */
    .nav-links li a[href="#comer"]::before       { content: "\f54e"; } /* restaurante */
    .nav-links li a[href="#consejos"]::before    { content: "\f0eb"; } /* bombilla */
    .nav-links li a[href="#galeria"]::before     { content: "\f03e"; } /* foto */

    /* Sección en la que está el lector, en verde */
    .nav-links li a.activo {
        background: #2e7d32;
        border-color: #2e7d32;
        color: #fff;
        box-shadow: none;
    }

    .nav-links li a.activo::before {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
}

    /* Tarjetas de consejos con icono (Oporto) */
    .galeria-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        margin: 10px 0 20px;
    }

    .card-img {
        background: #fff;
        border: 1px solid #c8e6c9;
        border-radius: 18px;
        padding: 22px;
        text-align: center;
        box-shadow: 0 4px 14px rgba(27, 94, 32, 0.06);
    }

    .card-img-icono {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #e8f5e9;
        color: #2e7d32;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        margin-bottom: 12px;
    }

    .card-img h3 {
        font-size: 1.05rem;
        color: #1b5e20;
        margin-bottom: 6px;
    }

    .card-img p {
        font-size: 14px;
        line-height: 1.6;
        margin: 0;
    }

    @media (max-width: 600px) {
        .galeria-cards {
            grid-template-columns: 1fr;
        }
    }

    /* Vídeos del viaje (verticales): portada y controles, sin descargar hasta darle al play */
    .video-viaje {
        max-width: 340px;
        margin: 28px auto;
    }

    .video-viaje video {
        display: block;
        width: 100%;
        aspect-ratio: 9 / 16;
        object-fit: cover;
        background: #0f2f44;
        border-radius: 20px;
        box-shadow: 0 12px 30px rgba(27, 94, 32, 0.18);
    }

    /* Pantallas medianas (portátiles pequeños, tablets en horizontal): menú más compacto
       para que las 8 secciones quepan en una línea */
    @media (min-width: 969px) and (max-width: 1250px) {
        .nav-links {
            gap: 2px;
        }

        .nav-links li a {
            font-size: 13px;
            padding: 6px 7px;
        }

        .navbar .logo img {
            height: 60px;
        }
    }

    /* ================= OTRAS GUÍAS (al final de cada destino) ================= */
    .relacionadas {
        max-width: 1000px;
        margin: 50px auto 0;
        padding: 0 20px;
    }

    .relacionadas h2 {
        font-family: "Twemoji Country Flags", 'Playfair Display', serif;
        font-size: 1.8rem;
        font-weight: 600;
        color: #1b5e20;
        text-align: center;
        margin: 0 0 24px;
    }

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

    .relacionada {
        position: relative;
        display: block;
        aspect-ratio: 4 / 3;
        border-radius: 20px;
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 8px 22px rgba(27, 94, 32, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

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

    .relacionada:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgba(27, 94, 32, 0.22);
    }

    .relacionada:hover img {
        transform: scale(1.06);
    }

    .relacionada:focus-visible {
        outline: 3px solid #ffb703;
        outline-offset: 3px;
    }

    .relacionada-texto {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 50px 16px 14px;
        color: #fff;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .relacionada-texto strong {
        font-family: "Twemoji Country Flags", 'Poppins', sans-serif;
        font-size: 18px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .relacionada-texto small {
        font-size: 13px;
        opacity: 0.95;
    }

    @media (max-width: 768px) {
        .relacionadas-grid {
            grid-template-columns: 1fr;
            gap: 14px;
        }

        .relacionada {
            aspect-ratio: 16 / 9;
        }
    }

    /* ================= VISOR DE FOTOS (sustituye a Lightbox) ================= */
    .visor {
        position: fixed;
        inset: 0;
        z-index: 3000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 60px 80px;
        background: rgba(6, 18, 10, 0.97);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    .visor[hidden] {
        display: none;
    }

    .visor-figura {
        margin: 0;
        max-width: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .visor-img {
        max-width: 100%;
        max-height: calc(100vh - 140px);
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .visor-img.visible {
        opacity: 1;
    }

    .visor-pie {
        color: #e8f5e9;
        font-size: 14px;
        text-align: center;
    }

    .visor-boton {
        position: absolute;
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .visor-boton:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .visor-boton:focus-visible {
        outline: 3px solid #ffb703;
        outline-offset: 3px;
    }

    .visor-boton[hidden] {
        display: none;
    }

    .visor-cerrar {
        top: 18px;
        right: 18px;
    }

    .visor-anterior {
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
    }

    .visor-siguiente {
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
    }

    @media (max-width: 600px) {
        .visor {
            padding: 70px 10px 90px;
        }

        /* En el móvil las flechas van abajo, para no tapar la foto */
        .visor-anterior,
        .visor-siguiente {
            top: auto;
            bottom: 24px;
            transform: none;
        }

        .visor-anterior {
            left: calc(50% - 64px);
        }

        .visor-siguiente {
            right: calc(50% - 64px);
        }
    }

    /* Fecha de actualización y tiempo de lectura bajo el título de cada guía */
    .header-text .header-meta {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 16px;
        font-size: 14px;
        font-weight: 500;
    }

    .header-meta span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 6px 14px;
        border-radius: 30px;
        background: rgba(0, 0, 0, 0.35);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }

    @media (max-width: 600px) {
        .header-text .header-meta {
            font-size: 12px;
            gap: 6px;
            margin-top: 10px;
        }

        .header-meta span {
            padding: 4px 10px;
        }
    }

    /* Cabecera de las guías en tablet y móvil: altura mínima (crece si el texto es largo) */
    @media (max-width: 968px) {
        .header-destino {
            height: auto;
            min-height: 300px;
            padding: 28px 0;
        }
    }

    @media (max-width: 600px) {
        .header-destino {
            min-height: 250px;
            padding: 22px 0;
        }
    }
