/* --- ESTILOS PARA LA PÁGINA DE RUTAS TURÍSTICAS --- */

:root {
    --RT-color-primario: #004a99; /* Azul profundo */
    --RT-color-secundario: #e7337c; /* Rosa/Magenta */
    --RT-color-fondo: #f4f7f6;
    --RT-color-texto: #333;
    --RT-color-blanco: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.RT-main-container {
    width: 100%;
    overflow-x: hidden;
}

/* --- 1. Estilos del Hero --- */
.RT-hero {
    position: relative;
    width: 100%;
    height: 50vh; /* Reducido un poco para dar prioridad a las cartas */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url(Media/gruta_2.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    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.4);
    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(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.RT-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    max-width: 700px;
    margin: 1rem auto 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* --- 2. Nuevo Selector de Rutas (Cards) --- */
.RT-selector-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* Encabezado con líneas rosas */
.RT-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%;
}

.RT-line {
    height: 4px;
    width: 100px;
    background-color: var(--RT-color-secundario);
    border-radius: 2px;
}

.RT-section-title {
    color: var(--RT-color-secundario);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-transform: none; /* Según imagen */
}

/* Grid de Cartas */
.RT-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Estilo de la Carta Individual */
.RT-route-card {
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background-color: #eee; /* Fallback */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.RT-route-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Imagen de fondo de la carta */
.RT-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.RT-route-card:hover .RT-card-bg {
    transform: scale(1.05);
}

/* Overlay gradiente */
.RT-card-overlay {
    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.6) 50%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

/* Estado activo (seleccionado) */
.RT-route-card.active {
    box-shadow: 0 0 0 4px var(--RT-color-secundario), 0 15px 30px rgba(0,0,0,0.3);
}

.RT-route-card.active .RT-card-overlay {
    background: linear-gradient(to bottom, rgba(231,51,124,0.1) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.9) 100%);
}

/* Contenido de texto dentro de la carta */
.RT-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    z-index: 2;
    color: var(--RT-color-blanco);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.RT-card-kicker {
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.RT-card-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.RT-card-desc {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
    max-width: 90%;
}

/* Icono de flecha */
.RT-card-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.RT-card-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--RT-color-blanco);
    transform: translateX(2px); /* Ajuste visual */
}

.RT-route-card:hover .RT-card-icon {
    background-color: var(--RT-color-secundario);
    transform: scale(1.1);
}

/* --- 3. Contenedor de Contenido (Texto abajo) --- */
.RT-content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem 1.5rem;
}

.RT-route-content {
    display: none;
    background-color: var(--RT-color-blanco);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--RT-color-secundario);
}

.RT-route-content.active {
    display: block;
    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;
    /* Ya no lleva borde abajo porque el contenedor tiene borde arriba */
}

.RT-content-intro {
    font-size: 1.15rem;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    border-left: 4px solid #ddd;
    padding-left: 1rem;
}

.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: 1rem;
    position: relative;
    padding-left: 2rem;
}

.RT-point-item::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--RT-color-secundario);
    font-size: 1.5rem;
    line-height: 1;
    top: -2px;
}

/* --- 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 --- */
@media (max-width: 1100px) {
    .RT-cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }
    .RT-route-card {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .RT-hero {
        height: 40vh;
        background-attachment: scroll;
    }
    
    .RT-section-title {
        font-size: 1.8rem;
    }
    
    .RT-line {
        width: 40px;
    }
    
    .RT-cards-grid {
        grid-template-columns: 1fr; /* 1 columna */
        gap: 2rem;
    }

    .RT-route-card {
        height: 380px; /* Un poco más altas para que luzcan en móvil */
    }
    
    .RT-route-content {
        padding: 1.5rem;
    }
}