body {
    background: #070b14;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #d7deea
}

.hero {
    padding: 6rem 0 4rem;
    background: radial-gradient(ellipse at top, #1b2a52 0, #070b14 70%)
}

.hero h1 {
    font-weight: 300;
    letter-spacing: .05em
}

.card-foto {
    background: #0e1424;
    border: 1px solid #1f2a44;
    transition: transform .2s, border-color .2s;
    overflow: hidden
}

.card-foto:hover {
    transform: translateY(-4px);
    border-color: #6ea8fe
}

.card-foto img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%
}

.dato-label {
    color: #8ea0c0;
    width: 42%
}

.panel {
    background: #0e1424;
    border: 1px solid #1f2a44;
    border-radius: .5rem
}

footer {
    border-top: 1px solid #1f2a44;
    color: #8ea0c0
}

.lupa {
    position: absolute;
    top: .5rem;
    right: .5rem;
    opacity: .85
}

.lb-body {
    height: calc(100vh - 72px)
}

.lb-scroll {
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center
}

.lb-img {
    max-width: 100%;
    max-height: 100%;
    cursor: zoom-in
}

.lb-scroll.zoomed {
    display: block
}

.lb-scroll.zoomed .lb-img {
    max-width: none;
    max-height: none;
    width: 200%;
    cursor: zoom-out
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    border: 0;
    font-size: 2.5rem;
    padding: .2rem 1rem;
    border-radius: .4rem
}

.lb-prev {
    left: .5rem
}

.lb-next {
    right: .5rem
}

.mapa-wrap {
    overflow-x: auto;
    border: 1px solid #1f2a44;
    border-radius: .5rem;
    background: #050810
}

#mapa {
    min-width: 900px;
    width: 100%;
    height: auto;
    display: block
}

#mapa .obj {
    cursor: pointer
}

#mapa text {
    font-family: system-ui, sans-serif
}

/* cielo.html: popup propio, redimensionable y movible */
#pop {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 320px;
    height: 380px;
    min-width: 220px;
    min-height: 180px;
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    resize: both;
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 50;
    background: #0e1424;
    border: 1px solid #6ea8fe;
    border-radius: .5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .6);
    color: #d7deea;
    font: 14px system-ui, sans-serif
}

#pop.on {
    display: flex
}

#pop .ph {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .6rem;
    background: #16213b;
    cursor: move;
    user-select: none;
    flex: 0 0 auto
}

#pop .ph b {
    flex: 1;
    font-size: .95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

#pop .px {
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer
}

#pop .pb {
    padding: .6rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto
}

#pop img {
    flex: 1 1 auto;
    min-height: 60px;
    width: 100%;
    object-fit: cover;
    border-radius: .3rem
}

#pop .pt {
    flex: 0 0 auto;
    font-size: .85rem
}

.rank {
    position: absolute;
    top: .5rem;
    left: .5rem;
    font-size: 1.8rem;
    line-height: 1;
    filter: drop-shadow(0 1px 3px #000)
}

/* secciones: actividades, blog, divulgación */
.ph-img {
    aspect-ratio: 16/9;
    width: 100%;
    background: radial-gradient(circle at 30% 40%, #2b3f7a 0, #0a1126 70%)
}

.card-cont img,
.card-cont .ph-img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%
}

.fecha-box {
    min-width: 68px;
    text-align: center;
    background: #16213b;
    border-radius: .5rem;
    padding: .4rem .5rem;
    line-height: 1.1
}

.fecha-box b {
    display: block;
    font-size: 1.6rem
}

.fecha-box span {
    font-size: .75rem;
    text-transform: uppercase;
    color: #8ea0c0
}

.pasada {
    opacity: .7
}

.contenido-texto {
    font-size: 1.05rem;
    line-height: 1.7
}

.contenido-texto img {
    max-width: 100%;
    height: auto
}

.contenido-texto iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0
}

.contenido-texto blockquote {
    border-left: 4px solid var(--bs-border-color);
    padding-left: 1rem;
    color: var(--bs-secondary-color)
}

.contenido-texto pre {
    background: rgba(0, 0, 0, .35);
    padding: .75rem;
    border-radius: .375rem;
    overflow-x: auto
}

/* Menú lateral */
.app-shell {
    display: flex;
    min-height: 100vh
}

.app-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column
}

.app-content>footer {
    margin-top: auto
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #0b1220;
    border-bottom: 1px solid #1f2a44
}

.sidebar {
    --bs-offcanvas-bg: #0b1220;
    --bs-offcanvas-width: 270px;
    border-right: 1px solid #1f2a44
}

.sidebar-wrap {
    display: contents
}

.side-brand {
    display: block;
    padding: 1.25rem 1.25rem .5rem;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .03em
}

.side-logo {
    display: block;
    width: 150px;
    height: auto;
    margin: 0 auto;
    transition: transform .2s
}

.side-brand:hover .side-logo {
    transform: scale(1.04)
}

.side-brand small {
    display: block;
    font-size: .72rem;
    font-weight: 400;
    color: #8ea0c0;
    letter-spacing: .12em;
    text-transform: uppercase
}

.side-menu {
    padding: .5rem .75rem 1.5rem;
    font-size: .8rem;
}

.side-group {
    padding: 1rem .5rem .35rem;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6b7da0
}

.side-sep {
    border-color: #1f2a44;
    margin: 1rem 0 .5rem
}

.side-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .75rem;
    margin-bottom: 2px;
    border-radius: .5rem;
    color: #c3cde0;
    text-decoration: none;
    border-left: 3px solid transparent
}

.side-link:hover {
    background: #121b31;
    color: #fff
}

.side-link.active {
    background: #16213b;
    color: #fff;
    border-left-color: #6ea8fe
}

.side-social {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .25rem .5rem .5rem
}

.side-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 1px solid #1f2a44;
    background: #121b31;
    color: #c3cde0;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s, transform .15s
}

.side-social-link:hover,
.side-social-link:focus-visible {
    background: #16213b;
    border-color: #6ea8fe;
    color: #6ea8fe;
    transform: translateY(-2px)
}

.side-ico {
    width: 1.4rem;
    text-align: center
}

@media(min-width:992px) {
    .sidebar-wrap {
        display: block;
        flex: 0 0 270px;
        width: 270px;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        background: #0b1220;
        border-right: 1px solid #1f2a44
    }

    .sidebar {
        border-right: 0
    }
}

/* Tablas de datos de la foto (adquisición, equipo, lugar, posición): letra más pequeña */
.tabla-datos {
    font-size: .85rem
}

.tabla-datos th,
.tabla-datos td {
    padding-top: .11rem;
    padding-bottom: .11rem
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Galería de campo amplio y panorámicas: 3 por fila, sin recortar la imagen */
.pano-card .pano-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2/1;
    object-fit: contain;
    background: #05080f
}

.pano-card:hover {
    transform: none
}
