/* Micrositio de cada observatorio (/observatorios/<slug>/).
   Todo va bajo .ocr y con el prefijo ocr- para no chocar con style.css, que
   da estilos globales a p, h1-h4 y a. En este sitio 1rem = 10px. */

.ocr {
    --ocr-teal: #037783;
    --ocr-deep: #105774;
    --ocr-navy: #082A39;
    --ocr-ink: #0b2a36;
    --ocr-muted: #51676f;
    --ocr-soft: #edf4f4;
    --ocr-line: #d6e3e4;
    --ocr-white: #ffffff;
    --ocr-magenta: #BF2C6A;
    --ocr-a: #1B7F3B;
    --ocr-b: #B45309;
    --ocr-c: #B91C1C;
    --ocr-sd: #5F6B73;
    --ocr-gutter: max(20px, 5vw);
    --ocr-header: 64px;

    font-family: 'Montserrat', sans-serif;
    color: var(--ocr-ink);
    background: var(--ocr-white);
}

.ocr p,
.ocr li,
.ocr dd {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    color: inherit;
}

.ocr h1, .ocr h2, .ocr h3, .ocr h4 {
    color: inherit;
    text-align: left;
    text-wrap: balance;
}

.ocr a { color: inherit; }
.ocr img { max-width: 100%; }

.ocr a:focus-visible,
.ocr button:focus-visible {
    outline: 3px solid var(--ocr-teal);
    outline-offset: 2px;
}

.ocr-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- Botones */

.ocr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, box-shadow .2s;
}

.ocr .ocr-btn--light { background: var(--ocr-white); color: var(--ocr-navy); }
.ocr .ocr-btn--light:hover { background: var(--ocr-soft); }
.ocr .ocr-btn--ghost { background: transparent; color: var(--ocr-white); box-shadow: inset 0 0 0 2px var(--ocr-white); }
.ocr .ocr-btn--ghost:hover { background: rgba(255, 255, 255, .15); }
.ocr .ocr-btn--teal { background: var(--ocr-teal); color: var(--ocr-white); }
.ocr .ocr-btn--teal:hover { background: var(--ocr-deep); }
.ocr .ocr-btn--outline { background: var(--ocr-white); color: var(--ocr-teal); box-shadow: inset 0 0 0 2px var(--ocr-teal); }
.ocr .ocr-btn--outline:hover { background: var(--ocr-teal); color: var(--ocr-white); }

.ocr-btn__icon { width: 20px; height: auto; }

.ocr-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--ocr-soft);
    color: var(--ocr-deep);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.ocr a.ocr-chip:hover { background: var(--ocr-teal); color: var(--ocr-white); }

/* ---------------------------------------------------------------- Portada */

.ocr-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(520px, 78vh, 760px);
    padding: 200px 0 56px;
    background-color: var(--ocr-navy);
    background-size: cover;
    background-position: center;
    color: var(--ocr-white);
}

.ocr-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(8, 42, 57, .9) 0%, rgba(8, 42, 57, .55) 45%, rgba(8, 42, 57, .08) 80%),
        linear-gradient(0deg, rgba(8, 42, 57, .55), rgba(8, 42, 57, 0) 45%),
        linear-gradient(180deg, rgba(8, 42, 57, .6), rgba(8, 42, 57, 0) 35%);
}

/* Mismo ancho y margen que las secciones, para que todo quede alineado. */
.ocr-hero__inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ocr-gutter);
}

.ocr-hero__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
}

.ocr-hero__logo {
    /* Sin esto, la columna de la portada estira la imagen a todo el ancho. */
    align-self: flex-start;
    width: 96px;
    height: 96px;
    object-fit: contain;
    padding: 8px;
    border-radius: 50%;
    background: var(--ocr-white);
    margin-bottom: 8px;
}

/* Logotipo en blanco: directo sobre la foto, sin círculo, en la esquina izquierda.
   Lleva .ocr delante para ganarle a «.ocr img { max-width: 100% }». */
.ocr .ocr-hero__logo--white {
    width: auto;
    height: 110px;
    max-width: min(280px, 100%);
    padding: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 1px 6px rgba(8, 42, 57, .5));
}

.ocr .ocr-hero__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.5;
}

.ocr .ocr-hero__name {
    font-size: clamp(56px, 9vw, 112px);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -0.02em;
    color: var(--ocr-white);
}

.ocr .ocr-hero__place {
    font-size: 19px;
    font-weight: 500;
}

.ocr-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
}

/* ---------------------------------------------------- Barra de secciones */

.ocr-subnav {
    position: sticky;
    top: var(--ocr-header);
    z-index: 50;
    background: var(--ocr-white);
    border-bottom: 1px solid var(--ocr-line);
}

.ocr-subnav__inner {
    display: flex;
    gap: 4px 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ocr-gutter);
    overflow-x: auto;
    scrollbar-width: none;
}

.ocr-subnav__inner::-webkit-scrollbar { display: none; }

.ocr .ocr-subnav a {
    flex: none;
    padding: 15px 0 13px;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--ocr-muted);
    text-decoration: none;
}

.ocr .ocr-subnav a:hover,
.ocr .ocr-subnav a.is-active {
    color: var(--ocr-teal);
    border-bottom-color: var(--ocr-teal);
}

/* -------------------------------------------------------------- Secciones */

.ocr-section {
    padding: 72px 0;
    scroll-margin-top: calc(var(--ocr-header) + 50px);
}

.ocr-section--band { background: var(--ocr-soft); }
.ocr-section--tight { padding: 48px 0 64px; }

.ocr-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ocr-gutter);
}

.ocr .ocr-title {
    margin-bottom: 32px;
    padding-left: 14px;
    border-left: 4px solid var(--ocr-teal);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ocr-teal);
}

.ocr-block { margin-top: 56px; }

.ocr-block__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    margin-bottom: 18px;
}

.ocr .ocr-block__head h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ocr-navy);
}

.ocr .ocr-block__head a {
    font-size: 14px;
    font-weight: 700;
    color: var(--ocr-teal);
}

.ocr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ----------------------------------------------------------------- El sitio */

/* Los dos párrafos de descripción ocupan todo el ancho: en dos columnas cuando
   hay ambos y, si solo hay uno, repartido en dos columnas de texto. */
.ocr-site {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px 56px;
    align-items: start;
}

.ocr-site > :only-child {
    grid-column: 1 / -1;
    columns: 2 32ch;
    column-gap: 56px;
}

.ocr-site > :only-child p { break-inside: avoid-column; }

.ocr .ocr-lead p {
    font-size: 18px;
    line-height: 1.65;
}

.ocr .ocr-text p { color: var(--ocr-ink); }

.ocr-lead p + p,
.ocr-text p + p,
.ocr-fact p + p { margin-top: 12px; }

.ocr-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 44px;
}

.ocr-fact { min-width: 0; }

.ocr .ocr-fact h3 {
    margin-bottom: 10px;
    padding-top: 12px;
    border-top: 3px solid var(--ocr-deep);
    font-size: 16px;
    font-weight: 700;
    color: var(--ocr-deep);
}

.ocr .ocr-fact p { color: var(--ocr-muted); font-size: 14.5px; }

/* --------------------------------------------------------------- Territorio */

.ocr-territory {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.ocr-territory--text { grid-template-columns: minmax(0, 1fr); }

.ocr-map {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ocr-line);
    border-radius: 10px;
    background: var(--ocr-white);
}

.ocr-map__canvas {
    width: 100%;
    height: clamp(340px, 52vh, 520px);
    background: #dfe8ea;
}

.ocr-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 10px 14px;
    border-top: 1px solid var(--ocr-line);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ocr-muted);
}

.ocr .ocr-legend[hidden] { display: none; }

.ocr-key {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: -1px;
}

.ocr-key--delimitation { background: rgba(191, 44, 106, .35); border: 2px solid #ff4f97; }
.ocr-key--anp { border: 2px dashed #4fb34f; }
.ocr-key--locality { background: rgba(255, 255, 255, .6); border: 1.5px solid #8a989c; }
.ocr-key--point { border-radius: 50%; background: var(--ocr-navy); }

.ocr-territory__side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.ocr-delimitations {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin: 0;
}

.ocr-delimitations div {
    padding-top: 10px;
    border-top: 1px solid var(--ocr-line);
}

.ocr-delimitations dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ocr-teal);
}

.ocr .ocr-delimitations dd {
    margin: 4px 0 0;
    font-size: 14.5px;
    line-height: 1.55;
}

.ocr .ocr-buoy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 16px 18px;
    border-radius: 10px;
    background: var(--ocr-navy);
    color: var(--ocr-white);
    text-decoration: none;
}

.ocr .ocr-buoy[hidden] { display: none; }

.ocr-buoy__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .85;
}

.ocr-buoy__values {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    font-variant-numeric: tabular-nums;
}

.ocr-buoy__values b {
    display: block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}

.ocr-buoy__values em {
    font-size: 12px;
    font-style: normal;
    opacity: .85;
}

.ocr-buoy__more {
    font-size: 13px;
    font-weight: 700;
}

.ocr .ocr-buoy:hover .ocr-buoy__more { text-decoration: underline; }

/* MapLibre: las ventanas emergentes heredan los p de style.css. */
.ocr .maplibregl-popup-content p { font-size: 13px; font-weight: 600; color: var(--ocr-ink); }

/* --------------------------------------------------------------- Resultados */

.ocr-report {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.ocr-report--solo { grid-template-columns: minmax(0, 1fr); }

.ocr-report__cover {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 14px 30px rgba(8, 42, 57, .22);
    transition: transform .2s;
}

.ocr-report__cover:hover { transform: translateY(-3px); }
.ocr-report__cover img { display: block; width: 100%; height: auto; }

.ocr-report__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.ocr .ocr-report__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ocr-navy);
}

.ocr .ocr-report__abstract { max-width: 70ch; color: var(--ocr-muted); }

.ocr-grades {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    max-width: 720px;
}

.ocr-grades__row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.ocr-grades__name {
    font-size: 13.5px;
    font-weight: 600;
}

.ocr-grades__bar {
    display: flex;
    gap: 2px;
    height: 22px;
}

.ocr-grades__bar i {
    display: grid;
    place-items: center;
    min-width: 34px;
    overflow: hidden;
    border-radius: 3px;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
    color: var(--ocr-white);
    white-space: nowrap;
}

.ocr-g--a { background: var(--ocr-a); }
.ocr-g--b { background: var(--ocr-b); }
.ocr-g--c { background: var(--ocr-c); }
.ocr-g--sd { background: var(--ocr-sd); }

.ocr .ocr-grades__key {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ocr-muted);
}

.ocr-grades__key i {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 5px;
    border-radius: 2px;
    vertical-align: -1px;
}

.ocr .ocr-editions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ocr-muted);
}

.ocr-infographics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ocr .ocr-infographic {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: var(--ocr-deep);
    color: var(--ocr-white);
    text-decoration: none;
}

.ocr-infographic img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.ocr-infographic:hover img { transform: scale(1.04); }

.ocr-infographic span {
    position: relative;
    width: 100%;
    padding: 28px 14px 12px;
    background: linear-gradient(0deg, rgba(8, 42, 57, .92), rgba(8, 42, 57, 0));
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
}

.ocr-pubs {
    display: flex;
    flex-direction: column;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.ocr .ocr-pubs li {
    display: grid;
    grid-template-columns: 150px 52px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 12px 0;
    border-top: 1px solid var(--ocr-line);
    font-size: 14.5px;
    line-height: 1.45;
}

.ocr .ocr-pubs li[hidden] { display: none; }
.ocr-pubs .ocr-chip { justify-self: start; white-space: normal; }

.ocr-pubs__year {
    font-weight: 700;
    color: var(--ocr-muted);
    font-variant-numeric: tabular-nums;
}

.ocr .ocr-pubs a:hover { color: var(--ocr-teal); text-decoration: underline; }

/* ------------------------------------------------------------------ Galería */

.ocr-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 190px;
    gap: 10px;
}

.ocr-gallery--1 { grid-template-columns: 1fr; grid-auto-rows: 420px; }
.ocr-gallery--2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 340px; }
.ocr-gallery--3 { grid-template-columns: 2fr 1fr; }
.ocr-gallery--4 { grid-template-columns: 2fr 1fr 1fr; }

.ocr-gallery--3 .ocr-tile:first-child,
.ocr-gallery--4 .ocr-tile:first-child,
.ocr-gallery--5 .ocr-tile:first-child { grid-row: span 2; }

.ocr-gallery--4 .ocr-tile:nth-child(4) { grid-column: span 2; }

.ocr .ocr-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: var(--ocr-navy);
    color: var(--ocr-white);
    text-decoration: none;
}

.ocr-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.ocr-tile:hover img { transform: scale(1.04); }

.ocr-tile__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 12px 10px;
    background: linear-gradient(0deg, rgba(8, 42, 57, .88), rgba(8, 42, 57, 0));
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}

.ocr-tile__more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 42, 57, .6);
    font-size: 18px;
    font-weight: 700;
}

.ocr-tile__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: rgba(8, 42, 57, .75);
    box-shadow: inset 0 0 0 2px var(--ocr-white);
}

.ocr-tile__play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -11px 0 0 -6px;
    border-left: 19px solid var(--ocr-white);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

.ocr-naturalist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 18px;
    padding: 16px 20px;
    border: 1px solid var(--ocr-line);
    border-radius: 10px;
    background: var(--ocr-white);
}

.ocr .ocr-naturalist p { font-weight: 600; }

/* Visor de la galería */
.ocr-lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 56px 72px 24px;
    border: 0;
    background: rgba(5, 22, 30, .96);
    color: var(--ocr-white);
}

.ocr-lightbox[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.ocr-lightbox::backdrop { background: rgba(5, 22, 30, .96); }

.ocr-lightbox__stage {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.ocr-lightbox__stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ocr-lightbox__stage iframe {
    width: min(100%, 1100px);
    aspect-ratio: 16 / 9;
    max-height: 100%;
    border: 0;
}

.ocr .ocr-lightbox__caption {
    min-height: 1.5em;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: var(--ocr-white);
}

.ocr-lightbox__btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--ocr-white);
    font-size: 18px;
    cursor: pointer;
}

.ocr-lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.ocr-lightbox__close { top: 12px; right: 12px; }
.ocr-lightbox__prev { top: 50%; left: 12px; margin-top: -24px; }
.ocr-lightbox__next { top: 50%; right: 12px; margin-top: -24px; }

/* ------------------------------------------------------------------- Equipo */

.ocr-team {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ocr .ocr-person {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    padding: 18px 16px;
    border: 1px solid var(--ocr-line);
    border-radius: 10px;
    background: var(--ocr-white);
}

.ocr .ocr-person[hidden] { display: none; }

.ocr-person__photo {
    display: grid;
    place-items: end center;
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--ocr-soft);
}

.ocr-person__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ocr-person__photo svg { width: 46px; height: 46px; fill: #9fb9bd; }

.ocr-person__role {
    margin-bottom: 4px;
    padding: 2px 7px;
    border-radius: 3px;
    background: var(--ocr-deep);
    color: var(--ocr-white);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ocr-person__name,
.ocr-person__inst { overflow-wrap: anywhere; }

.ocr-person__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ocr-navy);
}

.ocr-person__inst {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ocr-muted);
}

.ocr .ocr-person__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ocr-teal);
    text-decoration: none;
}

.ocr .ocr-person__link:hover { text-decoration: underline; }

.ocr-team__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-top: 22px;
}

.ocr .ocr-team__insts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

/* ---------------------------------------------------------------- Novedades */

.ocr-news {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ocr .ocr-news__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    text-decoration: none;
}

.ocr-news__item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity .2s;
}

.ocr-news__item:hover img { opacity: .88; }

.ocr-news__meta {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ocr-teal);
}

.ocr-news__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ocr-navy);
}

.ocr-news__item:hover .ocr-news__title { text-decoration: underline; }

/* ------------------------------------------------------------------- Cierre */

.ocr-contact {
    background: var(--ocr-teal);
    color: var(--ocr-white);
}

.ocr-contact__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding-top: 36px;
    padding-bottom: 36px;
}

.ocr .ocr-contact p {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.ocr-others {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ocr .ocr-other {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--ocr-navy);
    background-size: cover;
    background-position: center;
    color: var(--ocr-white);
    text-decoration: none;
}

.ocr-other span {
    width: 100%;
    padding: 30px 14px 12px;
    background: linear-gradient(0deg, rgba(8, 42, 57, .9), rgba(8, 42, 57, 0));
    font-size: 15px;
    font-weight: 700;
    transition: padding .2s;
}

.ocr-other:hover span { padding-bottom: 18px; }

/* ============================================================ Listado
   /observatorios/: mismas piezas que el micrositio (portada, secciones,
   botones, mapa) más las propias, con el prefijo ocrs-. */

/* Portada: una franja por observatorio, con su foto. */
.ocrs-hero { min-height: clamp(500px, 72vh, 700px); }

.ocrs-slices {
    position: absolute;
    inset: 0;
    display: flex;
}

.ocrs-slices span {
    flex: 1 1 0;
    min-width: 0;
    background-color: var(--ocr-navy);
    background-size: cover;
    background-position: center;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .28);
}

.ocrs-slices span:last-child { box-shadow: none; }

.ocrs-hero .ocr-hero__shade {
    background:
        linear-gradient(100deg, rgba(8, 42, 57, .94) 0%, rgba(8, 42, 57, .78) 38%, rgba(8, 42, 57, .25) 72%, rgba(8, 42, 57, .1) 100%),
        linear-gradient(0deg, rgba(8, 42, 57, .6), rgba(8, 42, 57, 0) 45%),
        linear-gradient(180deg, rgba(8, 42, 57, .65), rgba(8, 42, 57, 0) 35%);
}

.ocrs-hero__content { max-width: 720px; }

.ocr .ocrs-hero__title {
    font-size: clamp(38px, 5.4vw, 72px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--ocr-white);
}

.ocr .ocrs-hero__lead {
    max-width: 34em;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.5;
}

/* Tarjetas: todas del mismo tamaño, cuatro por renglón; el último renglón,
   si queda incompleto, se centra. La región va escrita en cada tarjeta. */
.ocrs-cards {
    --ocrs-gap: 20px;
    --ocrs-columns: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--ocrs-gap);
}

.ocr .ocrs-card {
    position: relative;
    display: flex;
    flex: 0 0 calc((100% - (var(--ocrs-columns) - 1) * var(--ocrs-gap)) / var(--ocrs-columns));
    align-items: flex-end;
    min-width: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--ocr-navy);
    background-size: cover;
    background-position: center;
    color: var(--ocr-white);
    text-decoration: none;
}

/* La foto se oscurece abajo para leer el nombre; al pasar el cursor, un poco más. */
.ocrs-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(8, 42, 57, .94) 0%, rgba(8, 42, 57, .4) 50%, rgba(8, 42, 57, 0) 75%),
        linear-gradient(180deg, rgba(8, 42, 57, .5) 0%, rgba(8, 42, 57, 0) 32%);
    transition: background-color .25s;
}

.ocrs-card:hover::before,
.ocrs-card:focus-visible::before { background-color: rgba(8, 42, 57, .28); }

.ocrs-card__logo {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 62px;
    height: 62px;
    padding: 6px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--ocr-white);
}

/* Logotipo en blanco: directo sobre la foto, sin círculo. */
.ocrs-card__logo--white {
    object-position: left center;
    width: auto;
    max-width: 150px;
    height: 60px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 1px 5px rgba(8, 42, 57, .55));
}

.ocrs-card__region {
    margin-bottom: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .9;
}

.ocrs-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 20px;
}

.ocrs-card__name {
    font-size: clamp(21px, 1.9vw, 26px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.ocrs-card__place {
    font-size: 15px;
    font-weight: 500;
}

.ocrs-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13.5px;
    font-weight: 700;
}

.ocrs-card__more i { transition: transform .2s; }
.ocrs-card:hover .ocrs-card__more i { transform: translateX(4px); }

/* Mapa nacional con un marcador por observatorio. */
.ocrs-map__canvas { height: clamp(380px, 60vh, 560px); }

.ocr .ocrs-marker {
    display: block;
    width: 16px;
    height: 16px;
    border: 3px solid var(--ocr-white);
    border-radius: 50%;
    background: var(--ocr-magenta);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .5);
    cursor: pointer;
}

/* La etiqueta se coloca a la derecha, izquierda, arriba o abajo del punto. */
.ocrs-marker__label {
    position: absolute;
    top: 50%;
    left: calc(100% + 7px);
    transform: translateY(-50%);
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ocr-white);
    color: var(--ocr-navy);
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.ocrs-marker[data-side="left"] .ocrs-marker__label { left: auto; right: calc(100% + 7px); }
/* Sin espacio: la etiqueta se oculta a la vista pero se conserva para lectores de pantalla. */
.ocrs-marker[data-side="none"] .ocrs-marker__label { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; }
.ocrs-marker[data-side="top"] .ocrs-marker__label { top: auto; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); }
.ocrs-marker[data-side="bottom"] .ocrs-marker__label { top: calc(100% + 7px); left: 50%; transform: translateX(-50%); }

.ocr .ocrs-marker:hover,
.ocr .ocrs-marker:focus-visible { background: var(--ocr-teal); z-index: 2; }

.ocrs-marker:hover .ocrs-marker__label,
.ocrs-marker:focus-visible .ocrs-marker__label { background: var(--ocr-teal); color: var(--ocr-white); }

/* Qué son y objetivos. */
.ocrs-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 32px 64px;
    align-items: start;
    margin-bottom: 44px;
}

.ocr .ocrs-goals__title {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ocr-deep);
}

.ocrs-goals ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ocr .ocrs-goals li {
    position: relative;
    padding: 14px 0 14px 30px;
    border-top: 1px solid var(--ocr-line);
    font-size: 15.5px;
    line-height: 1.55;
}

.ocrs-goals li:first-child { border-top: 3px solid var(--ocr-deep); }

.ocrs-goals li::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ocr-teal);
}

/* --------------------------------------------------------------- Adaptable */

@media (max-width: 1000px) {
    .ocr-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ocr-territory { grid-template-columns: minmax(0, 1fr); }
    .ocr-site { grid-template-columns: minmax(0, 1fr); }
    .ocr-site > :only-child { columns: auto; }
    .ocrs-about { grid-template-columns: minmax(0, 1fr); }
    .ocrs-cards { --ocrs-columns: 3; }
}

@media (max-width: 760px) {
    .ocr { --ocr-header: 41px; }
    .ocr-hero { padding-top: 170px; padding-bottom: 40px; }
    .ocr-hero__logo { width: 76px; height: 76px; }
    .ocr-section { padding: 52px 0; }
    .ocr-report { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .ocr-report__cover { max-width: 200px; }
    .ocr-grades__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .ocr-infographics,
    .ocr-news,
    .ocr-others { grid-template-columns: minmax(0, 1fr); }
    .ocr .ocr-pubs li { grid-template-columns: minmax(0, 1fr) auto; }
    .ocr .ocr-pubs li > :last-child { grid-column: 1 / -1; }
    /* En teléfono, una tarjeta por renglón con la foto a la izquierda. */
    .ocr-team { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ocr .ocr-person {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 2px;
        align-items: start;
        padding: 14px;
    }
    .ocr-person > :not(.ocr-person__photo) { grid-column: 2; justify-self: start; }
    .ocr-person__photo { grid-row: 1 / span 4; width: 56px; height: 56px; margin: 0; }
    .ocr-person__photo svg { width: 40px; height: 40px; }
    .ocr .ocr-person__link { margin-top: 4px; padding-top: 4px; }
    .ocr-team__insts { margin-left: 0; }
    .ocr-gallery,
    .ocr-gallery--3,
    .ocr-gallery--4,
    .ocr-gallery--5 { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
    .ocr-gallery--2,
    .ocr-gallery--1 { grid-auto-rows: 220px; }
    .ocr-gallery .ocr-tile:first-child { grid-column: span 2; grid-row: span 2; }
    .ocr-gallery--1 .ocr-tile:first-child,
    .ocr-gallery--2 .ocr-tile:first-child { grid-column: auto; grid-row: auto; }
    .ocr-gallery--4 .ocr-tile:nth-child(4) { grid-column: span 2; }
    .ocrs-cards { --ocrs-columns: 2; --ocrs-gap: 14px; }
    .ocr .ocr-hero__logo--white { width: auto; height: 84px; max-width: min(220px, 100%); }
    .ocrs-marker__label { font-size: 11.5px; padding: 4px 9px; }
    .ocr .ocrs-hero__lead { font-size: 17px; }
    .ocr-lightbox { padding: 64px 12px 20px; }
    .ocr-lightbox__prev,
    .ocr-lightbox__next { top: auto; bottom: 12px; margin-top: 0; }
}

@media (max-width: 520px) {
    /* En teléfono, una tarjeta por renglón: todas siguen midiendo lo mismo. */
    .ocrs-cards { --ocrs-columns: 1; }
    .ocr .ocrs-card { aspect-ratio: 4 / 3; }
    .ocrs-card__name { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .ocr *, .ocr *::before, .ocr *::after { transition: none !important; }
    html { scroll-behavior: auto; }
}
