/* --- ESTILOS PARA LA PÁGINA DE RUTAS TURÍSTICAS --- */

:root {
    /* Puedes re-usar los colores de tu hoja de estilos principal si quieres */
    --RT-color-primario: #004a99; /* Un azul profundo */
    --RT-color-secundario: #e7337c; /* Rosa/Magenta */
    --RT-color-fondo: #f4f7f6;
    --RT-color-texto: #333;
    --RT-color-blanco: #ffffff;
    font-family: poppins; 
}

.RT-main-container {
    width: 100%;
    overflow: hidden; /* Para contener las animaciones */
}

/* --- 1. Estilos del Hero --- */
.RT-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url(Media/gruta_2.webp);
    /* CAMBIA ESTO: Usa una imagen tuya, ej: url('Media/Cascada.webp') */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto parallax */
    color: var(--RT-color-blanco);
}

.RT-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay oscuro */
    z-index: 1;
}

.RT-hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
    animation: RT-fade-in-up 1s ease-out;
}

.RT-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.RT-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    max-width: 600px;
    margin: 1rem auto 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* --- 2. Selector de Rutas --- */
.RT-selector-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: -80px auto 3rem auto; /* -80px para que se monte sobre el hero */
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.RT-route-button {
    background-color: var(--RT-color-blanco);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    font-family: poppins; 
}

.RT-route-button:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.RT-route-button.active {
    border-color: var(--RT-color-secundario);
    box-shadow: 0 8px 20px rgba(231, 51, 124, 0.2);
}

.RT-button-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.RT-button-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--RT-color-primario);
    margin: 0.5rem 0;
}

.RT-button-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* --- 3. Contenedor de Contenido --- */
.RT-content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem 1.5rem;
}

.RT-route-content {
    display: none; /* Oculto por defecto */
    background-color: var(--RT-color-blanco);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.RT-route-content.active {
    display: block; /* Visible */
    animation: RT-fade-in 0.6s ease;
}

.RT-content-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--RT-color-primario);
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--RT-color-secundario);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.RT-content-intro {
    font-size: 1.15rem;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

.RT-content-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--RT-color-texto);
    margin-bottom: 1.5rem;
}

.RT-subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--RT-color-primario);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.RT-point-list {
    list-style-type: none;
    padding-left: 0;
}

.RT-point-item {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--RT-color-texto);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 2rem;
}

.RT-point-item::before {
    content: '›'; /* Pequeña flecha */
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--RT-color-secundario);
}

/* --- Animaciones --- */
@keyframes RT-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes RT-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Responsividad (Móvil) --- */
@media (max-width: 900px) {
    .RT-selector-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
        gap: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 600px) {
    .RT-hero {
        height: 50vh;
        background-attachment: scroll; /* Parallax no funciona bien en móvil */
    }

    .RT-selector-container {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        margin-top: -60px;
    }

    .RT-route-content {
        padding: 1.5rem;
    }

    .RT-content-title {
        font-size: 1.75rem;
    }
}