/* ===============================================
   GUÍAS DE VIAJE - DISEÑO: NEON GLASS LUXURY
   Estilo avanzado con Glassmorphism y efectos Neon
=============================================== */

.guias-grid-section {
    position: relative;
    background-image: url('../../assets/images/vista_principal/montana7colores.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    min-height: 600px;
    color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

/* Superposición más oscura y degradado para mejorar legibilidad */
.guias-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 1;
}

.guias-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    /* Invertido visualmente: Tarjetas izquierda, Texto derecha */
    gap: 60px;
    align-items: center;
    width: 100%;
}

/* --- COLUMNA DERECHA: TEXTO --- */
.guias-content-left {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.guias-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    border: none;
    color: #ffffff;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.guias-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.guias-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #f0f0f0;
    /* Más claro para contraste */
    font-weight: 500;
    /* Más peso */
    margin-bottom: 40px;
    max-width: 90%;
}

/* Botón principal rediseñado */
.guias-link-main {
    background: #2cbf6c;
    /* Verde Esmeralda Personalizado */
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 18px 40px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 20px rgba(44, 191, 108, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guias-link-main:hover {
    transform: translateY(-3px);
    background: #2ecc71;
    box-shadow: 0 10px 30px rgba(44, 191, 108, 0.6);
}

.guias-link-main i {
    transition: transform 0.3s ease;
}

.guias-link-main:hover i {
    transform: translateX(5px);
}

/* --- COLUMNA IZQUIERDA: CUADRÍCULA (Tarjetas) --- */
.guias-grid-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
}

/* --- TARJETA LUXURY NEON MEJORADA (EDICIÓN VERDE) --- */
.guia-card-item {
    --card-glow: #2ecc71;
    /* Verde Esmeralda por Defecto */
    background: rgba(5, 20, 10, 0.85);
    /* Fondo Bosque Profundo Oscuro */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-top: 1px solid rgba(163, 230, 53, 0.5);
    /* Luz cenital */
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6),
        inset 0 10px 30px -10px rgba(46, 204, 113, 0.15);
    /* Brillo interno suave */
    height: 100%;
    cursor: pointer;
}

/* Luz ambiental interna */
.guia-card-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--card-glow), transparent 60%);
    opacity: 0.15;
    transition: opacity 0.5s;
    z-index: 0;
    pointer-events: none;
}

.guia-card-item:hover {
    transform: translateY(-10px);
    border-color: var(--card-glow);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8),
        0 0 30px -5px rgba(46, 204, 113, 0.3),
        inset 0 0 20px rgba(46, 204, 113, 0.2);
}

.guia-card-item:hover::after {
    opacity: 0.4;
}

/* Iconos más grandes con Brillo */
.guia-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.5s;
    z-index: 2;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.guia-icon-wrapper i {
    font-size: 2.8rem;
    color: #fff;
    z-index: 2;
    transition: all 0.5s;
    filter: drop-shadow(0 0 5px var(--card-glow));
}

/* Animación de Pulso */
.guia-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--card-glow);
    opacity: 0;
    transition: 0.5s;
    box-sizing: border-box;
}

.guia-card-item:hover .guia-icon-wrapper {
    background: var(--card-glow);
    border-color: var(--card-glow);
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--card-glow);
}

.guia-card-item:hover .guia-icon-wrapper i {
    color: #05140a;
    /* Texto oscuro sobre brillo */
    filter: none;
}

/* Textos */
.guia-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    transition: 0.3s;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.guia-card-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-weight: 400;
    position: relative;
    z-index: 2;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.8em;
}

/* Paleta unificada: Todo en Verde Esmeralda */


/* --- RESPONSIVE Y SCROLL MÓVIL --- */

/* Indicadores de desplazamiento (Puntos) */
.guias-scroll-indicators {
    display: none;
    /* Oculto en escritorio */
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    /* Espacio sobre los puntos */
    width: 100%;
    order: 5;
    /* Asegurar que se mantenga abajo */
}

.scroll-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-dot.active {
    background: #249F57;
    transform: scale(1.2);
    width: 25px;
    border-radius: 10px;
}

@media (max-width: 1100px) {
    .guias-container {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 30px;
    }

    .guias-content-left {
        order: 1;
        text-align: center;
        align-items: center;
        padding-left: 0;
        margin-bottom: 20px;
    }

    .guias-badge {
        margin: 0 auto 20px;
    }

    .guias-description {
        margin: 0 auto 30px;
    }

    .guias-grid-right {
        order: 2;
    }
}

@media (max-width: 768px) {
    .guias-grid-section {
        padding: 40px 0;
    }

    /* Diseño de desplazamiento horizontal para móvil con perspectiva */
    .guias-grid-right {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-top: 30px;
        padding-bottom: 30px;
        /* Espacio mínimo para sombra */
        margin: 0 -20px;
        padding-left: 50vw;
        /* Centrar primer ítem */
        padding-right: 50vw;
        /* Centrar último ítem */
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        perspective: 1000px;
        /* Profundidad para efecto 3D */
    }

    .guias-grid-right .guia-card-item {
        /* Restablecer márgenes para lógica de centrado */
        margin-left: -125px;
        /* Mitad del ancho de la tarjeta (250/2) para centrar correctamente con padding-left 50vw */
    }

    .guias-grid-right::-webkit-scrollbar {
        display: none;
    }

    .guia-card-item {
        min-width: 250px;
        max-width: 250px;
        scroll-snap-align: center;
        min-height: 320px;
        /* Bezier personalizado para sensación premium */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        transform-origin: center center;
        /* Estado inicial manejado por JS, pero valores por defecto */
    }

    .guias-scroll-indicators {
        display: flex;
        margin-top: 0px;
        /* Mostrar puntos en móvil con espaciado reducido */
    }

    .guias-title {
        font-size: 2.2rem;
    }
}