.mountains-table{
    max-width:900px;
    margin:50px auto;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 8px 30px rgba(0,0,0,.12);
}

.mountains-table table{
    width:100%;
    border-collapse:collapse;
}

.mountains-table thead{
    background:linear-gradient(90deg,#6b1fa5,#ef2d8c);
    color:white;
}

.mountains-table th{
    padding:18px;
    font-size:18px;
    font-weight:500;
    text-align:left;
}

.mountains-table td{
    padding:15px 18px;
    border-bottom:1px solid #ececec;
    color:#555;
}

.mountains-table tbody tr{
    transition:.25s;
}

.mountains-table tbody tr:hover{
    background:#fff1f8;
}

.mountains-table a{
    color:#6b1fa5;
    text-decoration:none;
    font-weight:500;
}

.mountains-table a:hover{
    color:#ef2d8c;
}

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    padding:25px;
    background:#fafafa;
}

.pagination button{
    background:#ef2d8c;
    color:white;
    border:none;
    width:42px;
    height:42px;
    border-radius:50%;
    cursor:pointer;
    font-size:18px;
    transition:.25s;
}

.pagination button:hover:not(:disabled){
    background:#6b1fa5;
}

.pagination button:disabled{
    opacity:.35;
    cursor:not-allowed;
}

.pagination span{
    color:#6b1fa5;
    font-weight:600;
}

/* ───── Modal de cumbre ───── */

.mountain-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(20,5,35,.72);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    animation:fadeInOverlay .22s ease;
}

@keyframes fadeInOverlay{
    from{opacity:0}
    to{opacity:1}
}

.mountain-modal{
    background:#fff;
    border-radius:18px;
    width:min(640px, 94vw);
    max-height:90vh;
    overflow-y:auto;
    box-shadow:0 24px 64px rgba(107,31,165,.35);
    animation:slideUpModal .28s cubic-bezier(.34,1.56,.64,1);
    position:relative;
}

@keyframes slideUpModal{
    from{opacity:0;transform:translateY(30px) scale(.96)}
    to{opacity:1;transform:translateY(0) scale(1)}
}

/* Botón cerrar */
.mountain-modal__close{
    position:absolute;
    top:12px;
    right:14px;
    z-index:10;
    background:rgba(255,255,255,.85);
    border:none;
    width:34px;
    height:34px;
    border-radius:50%;
    font-size:16px;
    line-height:1;
    cursor:pointer;
    color:#6b1fa5;
    box-shadow:0 2px 8px rgba(0,0,0,.18);
    transition:.2s;
}
.mountain-modal__close:hover{
    background:#ef2d8c;
    color:#fff;
    transform:rotate(90deg);
}

/* Imagen */
.mountain-modal__image-wrap{
    position:relative;
    height:260px;
    border-radius:18px 18px 0 0;
    overflow:hidden;
}
.mountain-modal__image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.mountain-modal__image-placeholder{
    width:100%;
    height:100%;
    background:linear-gradient(135deg,#6b1fa5,#ef2d8c);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:56px;
    color:rgba(255,255,255,.45);
}
.mountain-modal__image-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(to top, rgba(20,5,35,.78) 40%, transparent 100%);
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:18px 20px 14px;
}
.mountain-modal__title{
    color:#fff;
    font-size:1.5rem;
    font-weight:700;
    margin:0 0 4px;
    text-shadow:0 1px 4px rgba(0,0,0,.4);
}
.mountain-modal__category{
    display:inline-block;
    background:linear-gradient(90deg,#6b1fa5,#ef2d8c);
    color:#fff;
    font-size:.75rem;
    font-weight:600;
    padding:2px 10px;
    border-radius:20px;
    letter-spacing:.04em;
}

/* Cuerpo */
.mountain-modal__body{
    padding:22px 24px 28px;
}

/* Stats */
.mountain-modal__stats{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:18px;
}
.mountain-modal__stat{
    flex:1 1 auto;
    min-width:90px;
    background:#f8f2ff;
    border-radius:12px;
    padding:12px 14px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
    text-align:center;
}
.mountain-modal__stat i{
    color:#ef2d8c;
    font-size:1rem;
    margin-bottom:2px;
}
.mountain-modal__stat-value{
    font-size:1rem;
    font-weight:700;
    color:#6b1fa5;
    line-height:1;
}
.mountain-modal__stat-label{
    font-size:.7rem;
    color:#999;
    text-transform:uppercase;
    letter-spacing:.05em;
}

/* Autoría */
.mountain-modal__description{
    font-size:.88rem;
    color:#555;
    line-height:1.65;
    border-top:1px solid #f0e6ff;
    border-bottom:1px solid #f0e6ff;
    padding:14px 0;
    margin-bottom:16px;
}

/* Autoría */
.mountain-modal__authorship{
    font-size:.8rem;
    color:#aaa;
    margin-bottom:18px;
    text-align:center;
}
.mountain-modal__authorship i{
    color:#ef2d8c;
}

/* Botón enlace */
.mountain-modal__link{
    display:block;
    text-align:center;
    background:linear-gradient(90deg,#6b1fa5,#ef2d8c);
    color:#fff !important;
    text-decoration:none;
    border-radius:30px;
    padding:13px 24px;
    font-weight:600;
    font-size:.95rem;
    letter-spacing:.03em;
    transition:.25s;
    box-shadow:0 4px 18px rgba(239,45,140,.3);
}
.mountain-modal__link:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 28px rgba(107,31,165,.35);
    color:#fff !important;
}

/* Loading spinner */
.mountain-modal__loading{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:60px 24px;
    color:#6b1fa5;
    gap:16px;
}
.mountain-modal__spinner{
    width:44px;
    height:44px;
    border:4px solid #f0e6ff;
    border-top-color:#6b1fa5;
    border-radius:50%;
    animation:spin .7s linear infinite;
}
@keyframes spin{
    to{transform:rotate(360deg)}
}
