/**********************************************************
   Moovle — Reglas nuevas para páginas de RUTA
   Para añadir a continuación de style.css.
   Reutiliza las variables ya definidas en :root
   (--primary, --secondary, --accent, --bg, --ink, --muted,
   --line, --card-bg, --card-hov) — no se define ninguna
   variable nueva.
   **********************************************************/

/**********************************************************
   REGLAS GENERALES PARA TODAS LAS PÁGINAS DE RUTA
   Estas reglas anulan, solo en páginas de ruta (este archivo
   no se carga en index.html/app.html/Academy), un tratamiento
   del sitio con el que no estamos conformes: el texto en
   mayúsculas completas en las etiquetas pequeñas de diseño
   (categorías, kickers, "curiosidades", etc.). Se mantiene el
   tamaño reducido y el tracking de letras, pero el texto se
   muestra tal como se escribe en el HTML, con mayúsculas y
   minúsculas correctas.
   **********************************************************/
.ma-label,
.ma-course-cat,
.ma-divider span,
.ma-card-label {
    text-transform: none !important;
}

.ma-label {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

.ma-divider span {
    font-size: 0.8rem !important;
}

.ma-course-cat {
    font-size: 0.85rem !important;
}


/* ── Migas de pan ── */
.ma-route-crumb {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.ma-route-crumb a { color: var(--muted); }
.ma-route-crumb a:hover { color: var(--ink); }
.ma-route-crumb i { font-size: 0.6rem; margin: 0 0.3rem; opacity: 0.5; }


/* ── Hero de ruta: imagen de fondo sobre el hero estándar ── */
.ma-route-hero {
    background-size: cover;
    background-position: center;
}


/* ── Meta rápida (paradas / duración / distancia) ── */
.ma-route-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin: 0 0 2rem;
    padding: 0;
}

.ma-route-meta li {
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ma-route-meta i {
    color: var(--accent);
    font-size: 0.9rem;
}


/* ── Ficha de producción asociada (película/serie) ── */
.ma-route-production {
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 1.6rem;
}

.ma-route-production-poster {
    width: 100px;
    height: 148px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.ma-route-production-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0.2rem 0 0.15rem;
}

.ma-route-production-meta {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

.ma-route-production-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 0.8rem;
}

.ma-route-production-link {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--ink);
}

.ma-route-production-link i {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform .2s;
}

.ma-route-production-link:hover i { transform: translateX(3px); }

@media (max-width: 576px) {
    .ma-route-production { flex-direction: column; }
    .ma-route-production-poster { width: 84px; height: 124px; }
}


/* ── Lista de paradas del itinerario ── */
.ma-route-stops {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ma-route-stop {
    display: grid;
    grid-template-columns: 56px 160px 1fr 44px;
    gap: 1.4rem;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: border-color .25s, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}

.ma-route-stop::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background: var(--accent);
    transition: width .3s ease;
}

.ma-route-stop:hover {
    border-color: rgba(107,191,184,.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
}

.ma-route-stop:hover::after { width: 100%; }

.ma-route-stop-number {
    font-size: 1.4rem;
    font-weight: 200;
    color: var(--line);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.ma-route-stop-img {
    width: 160px;
    height: 110px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.ma-route-stop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.ma-route-stop:hover .ma-route-stop-img img { transform: scale(1.05); }

.ma-route-stop-scene {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.ma-route-stop-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.3rem;
}

.ma-route-stop-place {
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.ma-route-stop-place i { color: var(--accent); margin-right: 0.3rem; }

.ma-route-stop-text {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0.6rem;
    max-width: 620px;
}

.ma-route-stop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ma-route-tag {
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--muted);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 0.2rem 0.55rem;
}

.ma-route-stop-map {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1rem;
    transition: border-color .2s, color .2s;
}

.ma-route-stop-map:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.ma-route-stops-more {
    text-align: center;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .ma-route-stop {
        grid-template-columns: 40px 1fr;
        grid-template-areas:
            "num img"
            "body body";
    }
    .ma-route-stop-number { grid-area: num; }
    .ma-route-stop-img { grid-area: img; width: 100%; height: 140px; }
    .ma-route-stop-body { grid-area: body; }
    .ma-route-stop-map { display: none; }
}


/* ── Mapa de la ruta ── */
.ma-route-map {
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    height: 420px;
}

.ma-route-map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--bg-alt);
    color: var(--muted);
}

.ma-route-map-placeholder i { font-size: 1.8rem; color: var(--accent); }

.ma-route-map-placeholder span {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    max-width: 300px;
    text-align: center;
}

.ma-route-map iframe,
.ma-route-map img {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
