/* =====================================
   GPX - CONTENEDOR
===================================== */

.gpx-module {
    width: 100%;
    max-width: 1400px;
    margin: 25px auto;
    font-family: inherit;
}

.gpx-activity {
    background: #fff;
    border: 1px solid #e6ebef;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(20,40,60,.08);
}

/* =====================================
   ENCABEZADO
===================================== */

.gpx-title {
    background: linear-gradient(120deg,#172b3a,#254c63);
    color: #fff;
    padding: 20px 25px;
    font-size: 21px;
    font-weight: 700;
}

/* =====================================
   ESTADÍSTICAS - UNA SOLA FILA
===================================== */

.gpx-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    padding: 16px 20px;
}

.gpx-stat {
    background: #f2f7fa;
    border: 1px solid #e5edf2;
    border-radius: 10px;
    padding: 12px 9px;
    min-width: 0;
    text-align: center;
}

.gpx-stat-icon {
    color: #2476a5;
    font-size: 17px;
    margin-bottom: 4px;
}

.gpx-stat span {
    display: block;
    color: #647987;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.gpx-stat strong {
    display: block;
    color: #193f55;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
    overflow-wrap: anywhere;
}

/* =====================================
   MAPA - GRANDE
===================================== */

.gpx-map {
    display: block;
    position: relative;
    width: calc(100% - 40px);
    height: 900px;
    min-height: 900px;
    margin: 0 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #e8eef1;
    z-index: 1;
}

/* =====================================
   PERFIL DE ELEVACIÓN
===================================== */

.gpx-profile {
    margin: 20px;
    padding: 20px;
    background: #f6f8fa;
    border: 1px solid #e8edf0;
    border-radius: 12px;
}

.gpx-profile h4 {
    margin: 0 0 18px;
    color: #25465b;
    font-size: 16px;
    font-weight: 700;
}

.gpx-profile canvas {
    display: block;
    width: 100%;
    height: 180px;
}

/* =====================================
   ERRORES
===================================== */

.gpx-error {
    padding: 16px 20px;
    margin: 15px 0;
    border-radius: 10px;
    color: #9f3030;
    background: #fff1f1;
    border: 1px solid #f3d0d0;
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 1000px) {

    .gpx-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .gpx-map {
        height: 650px;
        min-height: 650px;
    }

}

/* =====================================
   MÓVILES
===================================== */

@media (max-width: 600px) {

    .gpx-title {
        padding: 17px;
        font-size: 19px;
    }

    .gpx-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        padding: 12px;
    }

    .gpx-stat {
        padding: 11px 5px;
    }

    .gpx-stat strong {
        font-size: 16px;
    }

    .gpx-stat span {
        font-size: 8px;
    }

    .gpx-map {
        width: calc(100% - 24px);
        height: 500px;
        min-height: 500px;
        margin: 0 12px;
    }

    .gpx-profile {
        margin: 12px;
        padding: 14px;
    }

}

/* Tarjeta sin cabecera */

.gpx-activity {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    overflow: hidden;
    padding-top: 8px;
}

/* Estadísticas compactas */

.gpx-stats {
    margin-bottom: 12px;
}

/* Mapa */

.gpx-map {
    width: calc(100% - 40px);
    height: 900px;
    min-height: 900px;
    margin: 0 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #e8eef1;
}

/* Perfil */

.gpx-profile {
    display: block;
    min-height: 240px;
    margin: 20px;
    padding: 20px;
    background: #f5f8fa;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
}

.gpx-profile h4 {
    display: block;
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 700;
    color: #25465b;
}

.gpx-profile canvas {
    display: block;
    width: 100%;
    height: 180px;
}

@media (max-width: 600px) {

    .gpx-map {
        width: calc(100% - 24px);
        height: 500px;
        min-height: 500px;
        margin: 0 12px;
    }

    .gpx-profile {
        margin: 12px;
    }

}

.gpx-activity {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    overflow: hidden;
    padding: 10px 0;
}

.gpx-map {
    display: block;
    position: relative;
    width: calc(100% - 40px);
    height: 900px;
    min-height: 900px;
    margin: 0 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #e8eef1;
    z-index: 1;
}

.gpx-profile {
    display: block;
    margin: 20px;
    padding: 20px;
    min-height: 240px;
    background: #f5f8fa;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
}

.gpx-profile h4 {
    margin: 0 0 20px;
    font-size: 17px;
    color: #25465b;
}

.gpx-profile canvas {
    display: block;
    width: 100%;
    height: 180px;
}

@media (max-width: 1000px) {
    .gpx-map {
        height: 650px;
        min-height: 650px;
    }
}

@media (max-width: 600px) {
    .gpx-map {
        width: calc(100% - 24px);
        height: 500px;
        min-height: 500px;
        margin: 0 12px;
    }

    .gpx-profile {
        margin: 12px;
    }
}

