/* ============================================
   JOYA TOURS PERÚ - ESTILOS PRINCIPALES
   ============================================ */


/* =========================
   FUENTES IMPORTADAS
   Carga Playfair Display y Quicksand desde Google Fonts
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');


/* =========================
   RESET GENERAL
   Elimina márgenes y paddings por defecto del navegador
   y aplica box-sizing global para facilitar el layout
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
    padding-top: 117px; /* Compensa la altura fija del top-bar (47px) + header (70px) */
    line-height: 1.3;
    color: #333;
}

/* Todos los títulos usan Quicksand como fuente principal */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero h1 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}


/* =========================
   TOP BAR (REDES SOCIALES, CONTACTO)
   Barra fija en la parte superior con información
   de contacto, redes sociales y botón de WhatsApp.
   Se oculta al hacer scroll hacia abajo.
   ========================= */
.top-bar {
    background: #0d5675;
    color: white;
    padding: 0.8rem 0;
    font-size: 0.85rem;
    transition: all 0.3s;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Mayor que el header para quedar encima */
}

/* Clase añadida por JS al hacer scroll: oculta la top-bar deslizándola hacia arriba */
.top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Contenedor interno con ancho máximo y distribución horizontal */
.top-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Cada ítem de info (teléfono, dirección) con su icono */
.top-info-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.info-text {
    color: white;
    font-size: 0.85rem;
}

/* Burbuja circular que envuelve cada ícono de información */
.icon-bubble {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.icon-bubble:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Reflejo de luz diagonal en hover */
.icon-bubble::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.icon-bubble:hover::before {
    transform: translateX(100%);
}

/* Íconos dentro de burbujas: se muestran en blanco */
.icon-bubble img {
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}

.icon-bubble:hover img {
    transform: scale(1.1);
}

/* Contenedor de los íconos de redes sociales */
.social {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

/* Burbuja de cada red social en la top-bar */
.social-bubble {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-bubble:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px) scale(1.05);
}

/* Reflejo de luz en hover para redes sociales */
.social-bubble::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.social-bubble:hover::before {
    transform: translateX(100%);
}

/* Íconos de redes sociales en blanco */
.social-bubble img {
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}

.social-bubble:hover img {
    transform: scale(1.1);
}

/* Botón de WhatsApp en la top-bar */
.whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #20bd5a;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

/* Responsive top-bar: tablet */
@media (max-width: 968px) {
    .top-content {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .top-info-item {
        gap: 0.4rem;
    }

    .icon-bubble,
    .social-bubble {
        width: 28px;
        height: 28px;
    }

    .icon-bubble img,
    .social-bubble img {
        width: 12px;
        height: 12px;
    }

    .info-text {
        font-size: 0.8rem;
    }

    /* Selector de idioma más compacto en tablet */
    .current-lang {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
    }
}

/* Responsive top-bar: móvil — layout en columna */
@media (max-width: 768px) {
    .top-bar {
        font-size: 0.75rem;
        padding: 0.6rem 0;
    }

    .top-content {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 1rem;
    }

    .top-info-item {
        width: 100%;
        justify-content: center;
    }

    .social {
        gap: 0.6rem;
    }

    .icon-bubble,
    .social-bubble {
        width: 30px;
        height: 30px;
    }
}


/* ============================================
   HEADER PRINCIPAL
   Barra de navegación fija debajo de la top-bar.
   Al hacer scroll cambia a fondo oscuro (clase .scrolled)
   y sube al tope de la pantalla.
   ============================================ */
header {
    background: linear-gradient(135deg, rgba(37, 136, 153, 0.08), rgba(51, 223, 117, 0.08));
    position: fixed;
    width: 100%;
    top: 47px; /* Altura de la top-bar */
    height: 70px;
    display: flex;
    align-items: center;
    z-index: 999; /* Menor que la top-bar (1000) */
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
}

/* Estado inicial: fondo translúcido blanco */
header.at-top {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 252, 255, 0.95));
    backdrop-filter: blur(10px);
}

/* Estado al hacer scroll: fondo azul oscuro y posicionado en top:0 */
header.scrolled {
    background: linear-gradient(135deg, #0d5675, #0a4a64, #083c50);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    top: 0;
    backdrop-filter: none;
}

nav {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}


/* ============================================
   LOGO
   El logo muestra imagen + texto. Cambia a blanco
   cuando el header está en modo scrolled.
   ============================================ */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    color: #0d5675;
}

.logo img {
    height: 50px;
    width: auto;
    transition: filter 0.3s;
}

header.scrolled .logo {
    color: white;
}

header.scrolled .logo img {
    filter: brightness(0) invert(1); /* Logo se vuelve blanco en fondo oscuro */
}


/* ============================================
   MENÚ DE NAVEGACIÓN
   Links de la barra con efecto hover tipo píldora.
   En móvil se convierte en menú vertical desplegable.
   ============================================ */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #0d5675;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: linear-gradient(135deg, #0d5675, #04a2e1);
    color: white;
    border-radius: 30px;
}

header.scrolled nav ul li a {
    color: white;
}

header.scrolled nav ul li a:hover {
    background: white;
    color: #0d5675;
}

/* Botón hamburguesa — solo visible en móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #0d5675;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

header.scrolled .menu-toggle {
    color: white;
}


/* =========================
   HERO (SECCIÓN PRINCIPAL)
   Pantalla completa con imagen de fondo,
   gradiente de opacidad, título y botones de acción
   ========================= */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(13, 86, 117, 0.4), rgba(4, 76, 114, 0.5)),
                url("../public/image/hero/portada-principal.png");
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


/* =========================
   BOTONES GENERALES
   .btn = botón amarillo principal
   .btn-outline = variante con borde blanco (para fondo oscuro)
   ========================= */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: #f2aa21;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(242, 170, 33, 0.4);
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #39b671;
    transform: translate(0, 0px);
    box-shadow: 2px -2px 5px 0 rgba(222, 235, 42, 0.925), -2px 2px 5px 0 rgba(236, 240, 9, 0.794);
}

.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
    margin-left: 0.8rem;
}

.btn-outline:hover {
    background: white;
    color: #0d5675;
}


/* =========================
   SECCIONES GENERALES
   Padding y ancho máximo compartido por todas las secciones
   ========================= */
section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Título de sección con línea decorativa degradada debajo */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: #0d5675;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Línea decorativa degradada centrada debajo del título */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #f2aa21, #39b671);
    border-radius: 2px;
}


/* =========================
   TABS DE CATEGORÍAS
   Filtros de tours: Todos / Full Day / Multi-día
   El tab activo tiene fondo azul
   ========================= */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 1rem 2rem;
    background: #f8f9fa;
    border: 1px solid #928c8c;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: #0d5675;
}

.category-tab:hover,
.category-tab.active {
    background: #0d5675;
    color: white;
    border-color: #0d5675;
    transform: translate(0, -4px);
    box-shadow: 2px -2px 7px 0 rgba(16, 226, 253, 0.5), -2px 2px 7px 0 rgba(3, 98, 153, 0.794);
}

/* Íconos de las pestañas de categoría */
.icon-todostour,
.icon-fullday,
.icon-multiday {
    height: 30px;
    margin-right: 8px;
    vertical-align: middle;
}

.icon-todostour,
.icon-fullday {
    width: 30px;
}

.icon-multiday {
    width: 35px;
}


/* =========================
   GRID DE DESTINOS
   Rejilla adaptable de tarjetas de tours
   ========================= */
.destinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Tarjeta de tour con sombra y elevación en hover */
.destino-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.destino-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Contenedor de imagen del tour con altura fija */
.destino-img {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #39b671, #0d5675);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0; /* Bordes redondeados solo arriba */
}

/* Badge de tipo de tour (Full Day, Multi-día) — actualmente oculto,
   reemplazado por .duracion-badge y .descuento-badge */
.destino-badge {
    display: none;
}

/* Contenido textual de la tarjeta */
.destino-content {
    padding: 1rem 1.2rem 1.2rem 1.2rem;
}

.destino-content h3 {
    color: #0d5675;
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.6rem;
}

.destino-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Íconos pequeños dentro de las cards de destinos */
.icon-destinosinicio {
    width: 16px;
    height: 16px;
    margin-right: 3px;
    vertical-align: middle;
}

/* Íconos medianos para los botones de acción */
.icon-destacado {
    width: 20px;
    height: 20px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Imagen de portada del tour: cubre todo el contenedor sin distorsión */
.imagen-destinosportada {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================
   DURACIÓN - VERSIÓN HÍBRIDA
   En desktop muestra el horario completo con íconos separados.
   En móvil muestra un formato compacto (ej: "Full Day", "4D/3N")
   ========================= */
.duracion {
    color: #f2aa21;
    font-weight: 600;
    margin-bottom: 1rem;
    background: #fff8e6;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.duracion img {
    flex-shrink: 0;
    vertical-align: middle;
}

/* Versión desktop: visible por defecto */
.duracion-desktop {
    display: inline-flex;
}

/* Versión móvil: oculta por defecto */
.duracion-mobile {
    display: none;
}

@media (max-width: 768px) {
    .duracion {
        font-size: 0.85rem;
        padding: 0.3rem 0.8rem;
        gap: 0.3rem;
    }

    /* En móvil: se invierte la visibilidad */
    .duracion-desktop {
        display: none;
    }

    .duracion-mobile {
        display: inline-flex;
    }
}

/* Características incluidas en el tour (íconos + texto) */
.destino-features {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.feature-item {
    font-size: 0.9rem;
    color: #666;
}

/* Precio principal de la tarjeta (formato simple) */
.precio {
    font-size: 1.8rem;
    color: #39b671;
    font-weight: bold;
    margin: 1rem 0;
}

.precio-small {
    font-size: 0.9rem;
    color: #999;
    font-weight: normal;
}


/* =========================
   BADGES EN CARDS
   Badge de descuento (esquina derecha) y
   badge de duración (esquina izquierda)
   ========================= */

/* Badge de descuento con animación de pulso */
.descuento-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    animation: pulseDiscount 2s infinite;
}

@keyframes pulseDiscount {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

/* Badge de duración (ej: "4D/3N") */
.duracion-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, rgba(233, 211, 15, 0.95), #f2aa21);
    box-shadow: 2px -2px 5px 0 rgba(222, 235, 42, 0.925), -2px 2px 5px 0 rgba(236, 240, 9, 0.794);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  
    animation: pulseDiscount 2s infinite;
}

/* Responsive para badges */
@media (max-width: 768px) {
    .descuento-badge {
        top: 10px;
        right: 10px;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .duracion-badge {
        top: 10px;
        left: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}


/* =========================
   PRECIOS CON ANTES/AHORA
   Bloque de precio con tachado del precio anterior
   y precio actual destacado. Usado en tours con descuento.
   ========================= */

/* Bloque de precio con tachado anterior y precio actual destacado */
.precio-container {
    margin: 0.8rem 0;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 1px solid rgba(13, 86, 117, 0.1);
    line-height: 1.2;
}

.precio-antes {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.precio-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

.precio-tachado {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.precio-ahora {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
    line-height: 1.1;
}

.precio-valor {
    font-size: 2rem;
    color: #39b671;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
}

.precio-texto {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Efecto hover en el precio de la card */
.destino-card:hover .precio-valor {
    color: #2e8b57;
    transform: scale(1.05);
    transition: all 0.3s;
}

/* Responsive precio */
@media (max-width: 768px) {
    .precio-valor {
        font-size: 1.7rem;
    }
}


/* =========================
   BOTONES DUALES EN CARDS
   Dos botones al pie de cada tarjeta de tour:
   "Ver Detalles" (borde azul) y "Reservar" (verde)
   ========================= */
.destino-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Botón "Ver Detalles" — estilo outline */
.btn-detalles {
    flex: 1;
    background: transparent;
    color: #0d5675;
    border: 1.2px solid #0d5675;
    padding: 0.5rem 0.6rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    display: inline-block;
    font-size: 0.95rem;
}

/* Ícono dentro del botón "Ver Detalles" */
.btn-detalles img {
    transition: filter 0.3s;
}

.btn-detalles:hover {
    background: #0d5675;
    color: white;
    transform: translate(0, -4px);
    box-shadow: 2px -2px 7px 0 rgba(16, 226, 253, 0.5), -2px 2px 7px 0 rgba(3, 98, 153, 0.794);
}

/* El ícono se invierte a blanco al hacer hover */
.btn-detalles:hover img {
    filter: brightness(0) invert(1);
}

/* Botón "Reservar" — estilo relleno verde */
.btn-reservar-rapido {
    flex: 1;
    background: linear-gradient(135deg, #39b671, #2ea05e);
    color: white;
    border: none;
    padding: 0.5rem 0.6rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.btn-reservar-rapido:hover {
    background: linear-gradient(135deg, #2ea05e, #278a4f);
    transform: translate(0, -4px);
    box-shadow: 2px -2px 7px 0 rgba(14, 204, 77, 0.5), -2px 2px 7px 0 rgba(6, 189, 37, 0.794);
}

/* En móvil los botones se apilan en columna */
@media (max-width: 768px) {
    .destino-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-detalles,
    .btn-reservar-rapido {
        width: 100%;
    }
}


/* =========================
   SERVICIOS - CARDS CON FLIP 3D
   Al hacer hover la tarjeta gira 180° para mostrar
   la cara posterior con la descripción del servicio
   ========================= */

/* Grid de 3 columnas en desktop */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* La perspectiva 3D se aplica al contenedor para que el flip se vea natural */
.servicio-card {
    perspective: 1000px;
    height: 350px;
    cursor: pointer;
}

/* Inner card: el elemento que realmente rota */
.servicio-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 10px;
}

.servicio-card:hover .servicio-card-inner {
    transform: rotateY(180deg);
}

/* Propiedades comunes a cara frontal y posterior */
.servicio-card-front,
.servicio-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* CARA FRONTAL: imagen con título en la parte inferior */
.servicio-card-front {
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

/* Gradiente oscuro en la parte inferior de la cara frontal para legibilidad */
.servicio-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
    border-radius: 10px;
}

/* Título visible en la cara frontal */
.servicio-titulo {
    position: relative;
    z-index: 2;
    color: rgb(255, 255, 255);
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* CARA POSTERIOR: centrada, con overlay azul y texto descriptivo */
.servicio-card-back {
    transform: rotateY(180deg); /* Empieza girada para que al hover quede al frente */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Overlay azul semitransparente sobre la imagen de fondo */
.servicio-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 86, 117, 0.92);
    z-index: 1;
    border-radius: 10px;
}

/* Contenido textual de la cara posterior */
.servicio-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.servicio-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #f2aa21;
    font-weight: bold;
}

.servicio-content p {
    font-size: 0.95rem;
    line-height: 1.3;
    color: white;
}

/* Responsive servicios: 3 → 2 → 1 columna */
@media (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .servicio-card { height: 320px; }
    .servicio-titulo { font-size: 1.3rem; }
    .servicio-content h3 { font-size: 1.3rem; }
    .servicio-content p { font-size: 0.9rem; }
}

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

    .servicio-card { height: 300px; }
    .servicio-titulo { font-size: 1.2rem; }
    .servicio-content h3 { font-size: 1.2rem; }
    .servicio-content p { font-size: 0.85rem; }
}


/* =========================
   CARRUSEL DESTINOS MÁS SOLICITADOS
   Slider horizontal con clonado para efecto infinito.
   Incluye botones prev/next y puntos indicadores.
   ========================= */
.carousel-container {
    position: relative;
    max-width: 1500px;
    margin: 3rem auto 0;
    padding: 0 80px;
    overflow: hidden;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 10px;
    padding: 20px 15px;
}

.sugerencias-slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.4s ease;
}

/* Tarjeta individual del carrusel */
.sugerencia-card {
    width: 280px;
    flex-shrink: 0; /* No se encoge: el slider controla el desplazamiento */
    background: rgb(248, 245, 234);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.sugerencia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

/* Imagen de fondo del carrusel con altura fija */
.sugerencia-imagen {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.sugerencia-content {
    padding: 1.5rem;
}

.sugerencia-content h3 {
    color: #0d5675;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.sugerencia-duracion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.sugerencia-duracion img {
    flex-shrink: 0;
}

.sugerencia-precio {
    color: #39b671;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Botones de navegación prev/next del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 86, 117, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: #0d5675;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive carrusel */
@media (max-width: 1200px) {
    .carousel-container {
        max-width: 1100px;
        padding: 0 70px;
    }
    .sugerencia-card { width: 300px; }
}

@media (max-width: 968px) {
    .carousel-container {
        max-width: 750px;
        padding: 0 60px;
    }
    .sugerencia-card { width: 300px; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1.5rem; }
    .carousel-btn.prev { left: 8px; }
    .carousel-btn.next { right: 8px; }
}

@media (max-width: 768px) {
    .carousel-container {
        max-width: 650px;
        padding: 0 50px;
    }
    .sugerencia-card { width: 260px; }
    .sugerencias-slider { gap: 1.5rem; }
}

@media (max-width: 480px) {
    .carousel-container {
        max-width: 380px;
        padding: 0 50px;
    }
    .sugerencia-card { width: 280px; }
    .sugerencias-slider { gap: 1rem; }
    .carousel-btn { width: 35px; height: 35px; font-size: 1.3rem; }
    .carousel-btn.prev { left: 5px; }
    .carousel-btn.next { right: 5px; }
}


/* =========================
   INDICADORES DEL CARRUSEL
   Puntos debajo del carrusel que muestran la posición actual.
   El punto activo se alarga para diferenciarse visualmente.
   ========================= */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.carousel-indicator:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

/* Indicador activo: más ancho y con forma de cápsula */
.carousel-indicator.active {
    background: #0d5675;
    width: 30px;
    border-radius: 5px;
}

/* Efecto ripple al hacer clic en un indicador */
.carousel-indicator:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(13, 86, 117, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    from { width: 0; height: 0; opacity: 1; }
    to   { width: 30px; height: 30px; opacity: 0; }
}

/* Responsive indicadores */
@media (max-width: 768px) {
    .carousel-indicators {
        gap: 0.4rem;
        margin-top: 1.5rem;
    }
    .carousel-indicator { width: 8px; height: 8px; }
    .carousel-indicator.active { width: 24px; }
}


/* =========================
   STATS (Estadísticas)
   Tres métricas destacadas: años, clientes, destinos
   ========================= */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem auto 0;
    max-width: 1000px;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, #0d5675, #044c72);
    border-radius: 10px;
    color: white;
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(13, 86, 117, 0.9);
}

.stat-number {
    font-size: 3.5rem;
    color: #f2aa21;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: white;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* En móvil las stats se apilan en una columna */
@media (max-width: 768px) {
    .stats { grid-template-columns: 1fr; }
}


/* =========================
   CERTIFICACIONES Y AUTORIZACIONES
   Grid de cards con logo, título y número de certificación
   ========================= */
.certificaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.certificacion-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.certificacion-card:hover {
    border-color: #f2aa21;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(242, 170, 33, 0.2);
}

.cert-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #0d5675;
}

.cert-imagen {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
}

.cert-title {
    color: #0d5675;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.cert-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cert-number {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: #f8f9fa;
    border-radius: 20px;
    color: #0d5675;
    font-weight: 600;
    font-size: 0.9rem;
}


/* =========================
   TESTIMONIOS
   Grid de tarjetas de reseñas con avatar,
   texto, nombre y estrellas de calificación
   ========================= */
#testimonios {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.testimonio-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

/* Comillas decorativas grandes en la parte superior */
.comillas {
    font-size: 4rem;
    color: #0d5675;
    opacity: 0.2;
    line-height: 0.5;
    font-family: Georgia, serif;
}

.testimonio-texto {
    color: #555;
    font-size: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

/* Fila del autor con avatar circular e información */
.testimonio-autor {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

/* Avatar con iniciales del autor */
.autor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d5675, #39b671);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.autor-info h4 {
    margin: 0;
    color: #0d5675;
    font-size: 1rem;
    font-weight: 600;
}

.autor-info p {
    margin: 0;
    color: #888;
    font-size: 0.85rem;
}

/* Fila de estrellas de calificación */
.estrellas {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.estrellas img {
    width: 20px;
    height: 20px;
}

/* Responsive testimonios: 3 → 2 → 1 columna */
@media (max-width: 1024px) {
    .testimonios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .testimonio-card { padding: 1.5rem; }
}

@media (max-width: 768px) {
    .testimonios-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .testimonios-pagination { flex-direction: column; gap: 1rem; }
    .testimonios-pagination .pagination-btn { width: 100%; max-width: 250px; }
}


/* =========================
   PAGINACIÓN DE TESTIMONIOS
   Controles de prev/next y puntos indicadores
   para navegar entre páginas de reseñas
   ========================= */
.testimonios-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* Botones prev/next de testimonios */
.testimonios-pagination .pagination-btn {
    background: #0d5675;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.testimonios-pagination .pagination-btn:hover:not(:disabled) {
    background: #083c50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 86, 117, 0.3);
}

.testimonios-pagination .pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Contenedor de puntos de testimonios */
.testimonios-pagination .pagination-dots {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

/* Punto individual */
.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-dot:hover {
    background: #0d5675;
    opacity: 0.7;
}

/* Punto activo: más ancho con forma de cápsula */
.pagination-dot.active {
    background: #0d5675;
    width: 30px;
    border-radius: 10px;
}

/* Texto "Mostrando X de Y" en testimonios */
.testimonios-pagination .pagination-info {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}


/* =========================
   MODAL LIBRO DE RECLAMACIONES
   Modal de pantalla completa con formulario legal
   para registrar reclamos o quejas de clientes
   ========================= */
.modal {
    display: none; /* Se muestra con JS: style.display = 'block' */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Contenedor blanco del modal centrado */
.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* Header del modal Libro de Reclamaciones */
.modal-header {
    background: linear-gradient(135deg, #0d5675 0%, #044c72 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.modal-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

/* Botón de cierre X en la esquina del modal */
.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 2rem;
}

/* Sección del formulario con fondo gris claro */
.form-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.form-section h3 {
    color: #0d5675;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Grupo de radio buttons (Reclamo / Queja) */
.radio-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.8rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

/* Caja de información informativa azul claro */
.alert-info {
    background: #e3f2fd;
    border-left: 4px solid #04a2e1;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #0d5675;
}

/* Grupo de campo de formulario */
.form-group {
    margin-bottom: 0.6rem;
}

/* Fila de dos campos lado a lado */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

/* Etiquetas de los campos */
label {
    display: block;
    margin-bottom: 0.3rem;
    color: #0d5675;
    font-weight: 600;
}

/* Asterisco rojo para campos obligatorios */
.required {
    color: #fb0707;
}

/* Estilos base para todos los campos de formulario */
input,
textarea,
select {
    width: 100%;
    padding: 0.6rem;
    border: 1.8px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0d5675;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Botón de envío del formulario de reclamaciones */
.btn-submit {
    width: 100%;
    background: #39b671;
    color: white;
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #0d5675;
}

/* Responsive del modal de reclamaciones */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .form-row { grid-template-columns: 1fr; }
    .modal-header h2 { font-size: 1.3rem; }
    .radio-group { flex-direction: column; gap: 1rem; }
}


/* =========================
   MODAL DE RESERVA RÁPIDA
   Modal pequeño centrado que permite seleccionar
   fecha y número de personas para enviar la
   reserva directamente por WhatsApp
   ========================= */

/* Overlay oscuro con blur de fondo */
.modal-overlay {
    display: none; /* Se activa añadiendo la clase .active */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

/* Contenedor del modal de reserva */
.modal-reserva {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Botón circular X para cerrar el modal */
.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: #f0f0f0;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #666;
    font-weight: bold;
    z-index: 10;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #fb0707;
    color: white;
    transform: rotate(90deg);
}

/* Header del modal de Reserva Rápida (sobreescribe el .modal-header base) */
.modal-reserva .modal-header {
    background: none; /* Sin gradiente: el modal de reserva tiene fondo blanco */
    color: inherit;
    padding: 0;
    border-radius: 0;
    position: static;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Nombre del tour en el modal de reserva */
.modal-tour-name {
    color: #0d5675;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

/* Precio del tour en el modal de reserva */
.modal-tour-precio {
    color: #39b671;
    font-size: 2.2rem;
    font-weight: bold;
}

/* Texto "por persona" en tamaño pequeño */
.modal-tour-precio-small {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

/* Formulario del modal de reserva */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.modal-form-group {
    display: flex;
    flex-direction: column;
}

.modal-form-group label {
    color: #0d5675;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.modal-form-group input,
.modal-form-group select {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.modal-form-group input:focus,
.modal-form-group select:focus {
    outline: none;
    border-color: #0d5675;
    box-shadow: 0 0 0 4px rgba(13, 86, 117, 0.1);
}

/* Botón de confirmar reserva por WhatsApp */
.modal-btn-reservar {
    background: linear-gradient(135deg, #39b671, #2ea05e);
    color: white;
    border: none;
    padding: 1.3rem;
    font-size: 1.15rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.modal-btn-reservar:hover {
    background: linear-gradient(135deg, #2ea05e, #278a4f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 182, 113, 0.4);
}

/* Responsive del modal de reserva */
@media (max-width: 768px) {
    .modal-reserva {
        width: 95%;
        padding: 2rem 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-tour-name  { font-size: 1.5rem; }
    .modal-tour-precio { font-size: 1.9rem; }
    .modal-close { width: 35px; height: 35px; font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .modal-form-group input,
    .modal-form-group select {
        font-size: 16px; /* Previene el zoom automático en iOS */
    }
}


/* =========================
   PAGINACIÓN DE TOURS
   Controles de navegación para el grid de destinos.
   Se genera dinámicamente por JavaScript.
   ========================= */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    gap: 1.2rem;
}

.pagination-info {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.pagination-info strong {
    color: #0d5675;
}

/* Fila de botones de número de página */
.pagination {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Botón de página individual */
.pagination-btn {
    background: white;
    color: #0d5675;
    border: 2px solid #e0e0e0;
    padding: 0.7rem 1.3rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 48px;
    font-size: 0.95rem;
}

.pagination-btn:hover:not(.active):not(:disabled) {
    border-color: #0d5675;
    background: #f0f8fa;
    transform: translateY(-2px);
}

/* Página activa resaltada en azul */
.pagination-btn.active {
    background: #0d5675;
    color: white;
    border-color: #0d5675;
    box-shadow: 0 4px 12px rgba(13, 86, 117, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Puntos "..." de elipsis entre páginas */
.pagination-dots {
    padding: 0.7rem;
    color: #999;
    font-weight: bold;
}

/* Clase aplicada por JS para ocultar tours fuera de la página actual */
.destino-card.hidden-page {
    display: none !important;
}

/* Responsive paginación */
@media (max-width: 768px) {
    .pagination { gap: 0.4rem; }
    .pagination-btn { padding: 0.6rem 1rem; min-width: 42px; font-size: 0.9rem; }
    .pagination-info { font-size: 0.85rem; text-align: center; }
}

@media (max-width: 480px) {
    .pagination-btn { padding: 0.5rem 0.8rem; min-width: 38px; font-size: 0.85rem; }
}


/* =========================
   FOOTER BASE
   Estilo del footer genérico (base). En la página principal
   se usa .footer-improved con imagen de fondo.
   ========================= */
footer {
    background: url('../public/images/footer-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 3rem 5% 1rem;
    position: relative;
}

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

.footer-section h4 {
    color: #f2aa21;
    margin-bottom: 1.5rem;
}

.footer-section h5 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: normal;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: #f2aa21;
    padding-left: 0.5rem;
}

/* FIX: .social-circle son <a> dentro de .footer-section y heredan
   display:block y margin-bottom de .footer-section a, lo que rompe
   el centrado del ícono. Se sobreescriben aquí. */
.footer-section .social-circle {
    display: flex;
    margin-bottom: 0;
}

.footer-section .social-circle:hover {
    color: inherit;
    padding-left: 0;
}


.social-links {
    display: flex;
    gap: 1.5rem;
    font-size: 2rem;
    margin-top: 1rem;
}


.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
}

.footer-btn img {
    filter: brightness(0) invert(1);
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #f2aa21;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* FRANJA OSCURA INFERIOR */
.footer-bottom {
    background: rgba(0, 0, 0, 0.65); /* Oscurecido */
    text-align: center;
    padding: 1rem;
    color: white;
    position: relative;
    z-index: 2;
}

/* Overlay del footer base (solo cuando no se usa .footer-improved) */
footer:not(.footer-improved)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

footer:not(.footer-improved) > * {
    position: relative;
    z-index: 2;
}


.libro-btn:hover {
    border-color: #f2aa21;
}

.protegeme-btn:hover {
    border-color: #39b671;
}


/* Barra de copyright */
.copyright {
    background: rgba(0, 0, 0, 0.35);
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 3;
}

.copyright p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}

.copyright-secondary {
    opacity: 0.7;
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
}


/* =========================
   FOOTER MEJORADO CON IMAGEN DE FONDO
   El footer principal de la página de inicio.
   Usa una imagen de fondo con overlay de gradiente azul.
   ========================= */
.footer-improved {
    position: relative;
    color: white;
    padding: 4rem 0 0;
    margin-top: 4rem;
    overflow: hidden;
}

/* Capa de imagen de fondo absoluta */
.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Overlay azul semitransparente sobre la imagen */
.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 86, 117, 0.95) 0%, rgba(8, 60, 80, 0.95) 100%);
    z-index: 1;
}

/* Grid de 4 columnas del footer */
.footer-content-improved {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 3rem;
}

/* Logo del footer en blanco */
.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    filter: brightness(0) invert(1);
}


/* Redes sociales circulares */
.footer-social-circles {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.social-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    overflow: hidden;
}

.social-circle::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s;
}

.social-circle:hover::before { transform: scale(1); }

.social-circle:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-circle img {
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.social-circle:hover img { transform: scale(1.1); }
.social-circle.facebook:hover  { background: #1877f2; border-color: #1877f2; }
.social-circle.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #e1306c; }
.social-circle.tiktok:hover    { background: #000; border-color: #69c9d0; }
.social-circle.youtube:hover   { background: #ff0000; border-color: #ff0000; }
.social-circle.linkedin:hover  { background: #0077b5; border-color: #0077b5; }




/* Métodos de pago en el footer */
.metodos-pago { margin-top: 2rem; }
.metodos-pago h4 { font-size: 1rem; margin-bottom: 1rem; color: white; }

.pago-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.pago-item {
    background: white;
    padding: 0.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    height: 40px;
}

.pago-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pago-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* Modal de afiche Protégeme (imagen grande) */
.modal-affiche {
    max-width: 1100px;
    width: 95%;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

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

.affiche-imagen {
    width: 100%;
    height: auto;
    max-height: 180vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Botón de cierre específico para el modal de afiche */
.modal-affiche .modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: white;
    color: #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    border: 3px solid #0d5675;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive footer */
@media (max-width: 1024px) {
    .footer-content-improved {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .pago-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .footer-content-improved { grid-template-columns: 1fr; }
    .footer-social-circles { justify-content: center; }
    .social-circle { width: 45px; height: 45px; }
    .pago-grid { grid-template-columns: repeat(3, 1fr); }
}


/* =========================
   WHATSAPP FLOTANTE
   Botón verde fijo en la esquina inferior derecha
   para contacto directo por WhatsApp
   ========================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    z-index: 999;
    transition: all 0.3s;
}

.whatsapp-float:hover { transform: scale(1.15); }

.whatsapp-float img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s;
}

.whatsapp-float:hover img { transform: scale(1.1); }


/* =========================
   HERO MEJORADO
   Botones de acción y buscador inteligente del hero
   ========================= */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Contenedor del buscador centrado en el hero */
.hero-search-container {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto 3rem;
    position: relative;
}

/* Buscador: completamente transparente en reposo, solo borde */
.hero-search {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    padding: 0.5rem;
    transition: all 0.4s;
}

/* Al hacer clic se vuelve blanco y se muestran los resultados */
.hero-search.active {
    background: white;
    border-color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Campo de texto del buscador */
#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: white;
    outline: none;
}

.hero-search.active #searchInput { color: #333; }

#searchInput::placeholder { color: rgba(255, 255, 255, 0.8); }
.hero-search.active #searchInput::placeholder { color: #999; }

/* Botón de buscar (solo visible cuando el buscador está activo) */
.search-btn {
    background: #f2aa21;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: none; /* Se muestra con .active en el padre */
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.hero-search.active .search-btn { display: block; }
.search-btn:hover { background: #d99a1a; }

/* Panel de resultados de búsqueda */
.search-results {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s;
    z-index: 100;
}

.search-results.show {
    max-height: 500px;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Grid de resultados del buscador (4 columnas) */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Tarjeta individual de resultado */
.search-result-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.search-result-item:hover {
    background: #0d5675;
    color: white;
    transform: translateY(-3px);
}

.search-result-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.search-result-item h4 {
    font-size: 0.9rem;
    margin: 0;
}


/* =========================
   CARACTERÍSTICAS DEL HERO
   4 íconos con texto que resumen los beneficios
   de la agencia (tours, atención, clientes, precios).
   ========================= */
.hero-features {
    position: absolute;
    bottom: 10px; /* los pega abajo */
    left: 50%;
    transform: translateX(-50%);
    
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 900px;
}

.hero-feature {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: transparent;
    backdrop-filter: none;
  
    border-radius: 15px;
    transition: all 0.3s;
}

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


/* Íconos en blanco sobre el fondo oscuro del hero */
.hero-feature img {
    filter: brightness(0) invert(1);
}

.hero-feature span {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

/* Responsive buscador y características del hero */
@media (max-width: 968px) {
    .search-results-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-features { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 768px) {
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .search-results-grid { grid-template-columns: 1fr; }
    .hero-features {
        position: static; 
        transform: none;
        margin-top: 2rem;
    }
}


/* =========================
   RESPONSIVE GENERAL (MÓVIL)
   Reglas globales que se aplican en pantallas
   menores a 768px para toda la página
   ========================= */
@media (max-width: 768px) {
    /* El body reduce su padding-top porque la top-bar desaparece */
    body { padding-top: 70px; }

    /* La top-bar se oculta completamente en móvil */
    .top-bar { display: none; }

    /* El header pasa a estar en top:0 al no tener top-bar */
    header { top: 0; }

    /* El botón hamburguesa se muestra en móvil */
    .menu-toggle { display: block; }

    /* El menú se muestra como desplegable vertical */
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0d5675;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    nav ul.active { display: flex; }
    nav ul li { padding: 1rem 0; }
    nav ul li a { color: white; }

    .hero h1 { font-size: 2.5rem; }
    .hero p  { font-size: 1.1rem; }

    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
    }

    .carousel-container { padding: 0 40px; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .sugerencia-card { min-width: 250px; }
}


/* ============================================
   CSS MEJORADO PARA PÁGINAS LEGALES
   AGREGAR AL FINAL DE styles.css
   ============================================ */

/* =========================
   HERO COMPACTO DE PÁGINAS LEGALES
   ========================= */

.legal-hero-compacto {
    position: relative;
    height: 280px; /* Más compacto que el hero normal (400px) */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0; /* No necesita margen negativo porque el body ya tiene padding-top */
}

.legal-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 86, 117, 0.62), rgba(8, 60, 80, 0.62));
}

.legal-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 2rem;
    max-width: 800px;
}

.breadcrumb-legal {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.breadcrumb-legal a {
    color: #f2aa21;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-legal a:hover {
    color: #fff;
}

.legal-hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.legal-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
}


/* =========================
   CONTENEDOR LEGAL
   ========================= */

.legal-content {
    padding: 3rem 0;
    background: #f8f9fa;
}

.legal-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar más estrecho */
    gap: 3rem;
}


/* =========================
   SIDEBAR COMPACTO (Índice)
   ========================= */

.legal-sidebar {
    position: sticky;
    top: 137px; /* top-bar (47px) + header (70px) + margen (20px) */
    height: fit-content;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.legal-sidebar h3 {
    color: #0d5675;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f2aa21;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* Espacio reducido entre items */
}

.legal-nav a {
    color: #555;
    text-decoration: none;
    padding: 0.6rem 0.8rem; /* Padding reducido */
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
    line-height: 1.4; /* Interlineado más compacto */
    border-left: 3px solid transparent;
}

.legal-nav a:hover {
    background: #f0f7fa;
    color: #0d5675;
    border-left-color: #f2aa21;
    padding-left: 1rem;
}

.legal-nav a.active {
    background: #f0f7fa;
    color: #0d5675;
    font-weight: 600;
    border-left-color: #0d5675;
}


/* =========================
   ARTÍCULO LEGAL (Contenido Principal)
   ========================= */

.legal-article {
    background: white;
    padding: 0.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.legal-section {
    margin-bottom: 0.3rem; /* Espacio reducido entre secciones */
    padding-bottom: 0.5rem;
    border-bottom: 0.8px solid #e9ecef;
}

.legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-article h2 {
    color: #0d5675;
    font-size: 1.8rem;
    margin-bottom: 1.2rem; /* Espacio reducido después del título */
    padding-top: 0.5rem; /* Padding superior reducido */
}

.legal-article h3 {
    color: #0d5675;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem; /* Espacios reducidos */
}

.legal-article p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-article ul {
    margin: 0.8rem 0 1rem 2rem;
    color: #555;
}

.legal-article li {
    margin-bottom: 0.6rem; /* Espacio reducido entre items */
    line-height: 1.6;
}


/* =========================
   TABLA LEGAL
   ========================= */

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.legal-table thead {
    background: #0d5675;
    color: white;
}

.legal-table th,
.legal-table td {
    padding: 0.9rem 1.2rem;
    text-align: left;
    border: 1px solid #dee2e6;
}

.legal-table th {
    font-weight: 600;
    font-size: 0.95rem;
}

.legal-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.legal-table tbody tr:hover {
    background: #e9ecef;
}


/* =========================
   CONTACTO LEGAL
   ========================= */

.legal-contact {
    background: linear-gradient(135deg, #f0f7fa, #e8f5f1);
    padding: 1.8rem;
    border-radius: 10px;
    border-left: 4px solid #0d5675;
    margin: 1.5rem 0;
}

.legal-contact p {
    margin: 0.5rem 0;
    color: #333;
}

.legal-contact strong {
    color: #0d5675;
}


/* =========================
   NOTA IMPORTANTE
   ========================= */

.nota-importante-legal {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #f2aa21;
    margin: 1.5rem 0;
}

.nota-importante-legal strong {
    color: #856404;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.nota-importante-legal ul {
    margin: 0.5rem 0 0 1.5rem;
}

.nota-importante-legal li {
    color: #856404;
    margin-bottom: 0.5rem;
}


/* =========================
   NOTA FOOTER LEGAL
   ========================= */

.legal-footer-note {
    background: #e8f5f1;
    padding: 1.8rem;
    border-radius: 10px;
    border-left: 4px solid #39b671;
    margin-top: 2.5rem;
}

.legal-footer-note p {
    margin: 0.5rem 0;
    color: #2e7d32;
    line-height: 1.6;
}

.legal-footer-note strong {
    color: #1b5e20;
}


/* =========================
   RESPONSIVE - PÁGINAS LEGALES
   ========================= */

@media (max-width: 1024px) {
    .legal-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .legal-sidebar {
        position: relative;
        top: 0;
        order: -1; /* Poner el índice primero en móvil */
    }
    
    .legal-hero-compacto {
        height: 240px;
    }
    
    .legal-hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .legal-hero-compacto {
        height: 200px;
    }
    
    .legal-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-subtitle {
        font-size: 0.9rem;
    }
    
    .legal-article {
        padding: 0.8rem;
    }
    
    .legal-article h2 {
        font-size: 1.5rem;
    }
    
    .legal-article h3 {
        font-size: 1.2rem;
    }
    
    .legal-container {
        padding: 0 1rem;
    }
    
    .legal-table {
        font-size: 0.85rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .legal-hero-compacto {
        height: 180px;
    }
    
    .legal-hero-content h1 {
        font-size: 1.5rem;
    }
    
    .breadcrumb-legal {
        font-size: 0.8rem;
    }
}

/* Tabla con 4 columnas (cookies): ajuste de ancho de columnas */
.legal-table td:first-child,
.legal-table th:first-child {
    width: 15%;
    font-family: monospace;
    font-size: 0.88rem;
}

.legal-table td:nth-child(2),
.legal-table th:nth-child(2) {
    width: 22%;
}


/* Nota al pie del artículo legal */
.legal-footer-note {
    background: #f0f7fa;
    border-left: 4px solid #0d5675;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-top: 1rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-footer-note p {
    margin-bottom: 0.5rem;
    color: #555;
}

.legal-footer-note p:last-child {
    margin-bottom: 0;
}


/* Responsive legal — móvil */
@media (max-width: 900px) {
    .legal-container {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

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

@media (max-width: 600px) {
    .legal-table {
        font-size: 0.85rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 0.6rem 0.8rem;
    }
}


/* =========================
   MEJORAS DE SCROLL SUAVE
   ========================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px; /* Para compensar header sticky */
}

.legal-section {
    scroll-margin-top: 150px;
}


/* =========================
   SELECTOR DE IDIOMA (en la top-bar, a la izquierda del botón WhatsApp)
   ========================= */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

/* Botón del idioma actual — hereda el estilo visual de la top-bar */
.current-lang {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 0.4rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
}

.current-lang:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Menú desplegable de opciones de idioma — se abre hacia abajo */
.lang-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 160px;
    z-index: 1100;
}

.lang-options.show { display: flex; }

/* Opción individual de idioma */
.lang-option {
    background: transparent;
    border: none;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: #333;
    width: 100%;
    text-align: left;
}

.lang-option:hover {
    background: #f0f7fa;
    color: #0d5675;
}

/* En móvil la top-bar se oculta, así que el selector también desaparece */
@media (max-width: 768px) {
    .language-selector { display: none; }
}
/* =========================
   HERO - LIBRO DE RECLAMACIONES
   Portada de la página libro-reclamaciones.html
   Usa imagen propia y altura reducida (no ocupa pantalla completa)
   ========================= */
.hero-libro {
    height: 55vh;
    background: linear-gradient(rgba(13, 86, 117, 0.55), rgba(4, 76, 114, 0.65)),
                url("../public/image/hero/portada-libro-reclamaciones.webp");
    background-size: cover;
    background-position: center;
}
