/* =========================================================
   OBSERVACHOCÓ
   COMPONENTS.CSS
   Hero + componentes visuales
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.hero {

    position: relative;

    min-height:
        calc(100vh - 126px);

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            110deg,
            #FFFFFF 0%,
            #F7FAFC 52%,
            #EAF2F8 100%
        );

}


/* =========================================================
   GRID DE FONDO
   ========================================================= */

.hero-background-grid {

    position: absolute;

    inset: 0;

    opacity: 0.45;

    pointer-events: none;

    background-image:

        linear-gradient(
            rgba(18, 59, 102, 0.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(18, 59, 102, 0.035) 1px,
            transparent 1px
        );

    background-size:
        70px 70px;

}


/* =========================================================
   CONTENEDOR DEL HERO
   ========================================================= */

.hero-container {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(480px, 1.08fr);

    align-items: center;

    gap: 50px;

    min-height: 650px;

    padding-top: 60px;

    padding-bottom: 60px;

}


/* =========================================================
   CONTENIDO
   ========================================================= */

.hero-content {

    position: relative;

    z-index: 5;

    max-width: 680px;

}


.hero-eyebrow {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 22px;

    color:
        var(--oc-blue);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.16em;

    text-transform: uppercase;

}


.hero-eyebrow-line {

    width: 34px;

    height: 2px;

    background:
        var(--oc-gold);

}


.hero h1 {

    margin: 0;

    max-width: 720px;

    color:
        var(--oc-blue-dark);

    font-size:
        clamp(48px, 5.4vw, 78px);

    font-weight: 650;

    line-height: 0.99;

    letter-spacing: -0.045em;

}


.hero h1 span {

    display: block;

    color:
        var(--oc-blue);

}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.hero-description {

    max-width: 610px;

    margin:
        28px 0 0;

    color:
        var(--oc-text);

    font-size: 18px;

    line-height: 1.65;

}


/* =========================================================
   ACCIONES
   ========================================================= */

.hero-actions {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 34px;

}


.hero-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    min-height: 52px;

    padding:
        0 22px;

    border-radius: 4px;

    font-size: 14px;

    font-weight: 650;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;

}


.hero-button:hover {

    transform:
        translateY(-2px);

}


.hero-button-primary {

    background:
        var(--oc-blue);

    color:
        var(--oc-white);

}


.hero-button-primary:hover {

    background:
        var(--oc-blue-dark);

}


.hero-button-primary span {

    font-size: 18px;

    transition:
        transform 0.2s ease;

}


.hero-button-primary:hover span {

    transform:
        translateX(4px);

}


.hero-button-secondary {

    border:
        1px solid
        rgba(18, 59, 102, 0.35);

    background:
        rgba(255, 255, 255, 0.75);

    color:
        var(--oc-blue);

}


.hero-button-secondary:hover {

    border-color:
        var(--oc-blue);

    background:
        var(--oc-white);

}


/* =========================================================
   PRINCIPIOS
   ========================================================= */

.hero-principles {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 0;

    margin-top: 48px;

}


.hero-principles span {

    position: relative;

    padding:
        0 18px;

    color:
        var(--oc-gray);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.13em;

    text-transform: uppercase;

}


.hero-principles span:first-child {

    padding-left: 0;

}


.hero-principles span:not(:last-child)::after {

    content: "";

    position: absolute;

    top: 50%;

    right: 0;

    width: 3px;

    height: 3px;

    border-radius: 50%;

    background:
        var(--oc-gold);

}


/* =========================================================
   VISUAL DEL HERO
   ========================================================= */

.hero-visual {

    position: relative;

    width:
        min(100%, 690px);

    aspect-ratio:
        1 / 1;

    justify-self: center;

}


/* =========================================================
   ÓRBITAS
   ========================================================= */

.hero-orbit {

    position: absolute;

    top: 50%;

    left: 50%;

    border:
        1px solid
        rgba(18, 59, 102, 0.12);

    border-radius: 50%;

    transform:
        translate(-50%, -50%);

}


.hero-orbit-one {

    width: 76%;

    height: 76%;

}


.hero-orbit-two {

    width: 58%;

    height: 58%;

}


.hero-orbit-three {

    width: 90%;

    height: 90%;

    border-style: dashed;

    opacity: 0.55;

}


/* =========================================================
   MARCA CENTRAL
   ========================================================= */

.hero-mark {

    position: absolute;

    top: 50%;

    left: 50%;

    width: 330px;

    height: 330px;

    display: flex;

    align-items: center;

    justify-content: center;

    transform:
        translate(-50%, -50%);

}


.hero-mark-ring {

    position: absolute;

    inset: -12px;

    border:
        1px solid
        rgba(198, 164, 91, 0.6);

    border-radius: 50%;

    animation:
        heroPulse 4s ease-in-out infinite;

}


@keyframes heroPulse {

    0%,
    100% {

        transform:
            scale(1);

        opacity: 0.45;

    }

    50% {

        transform:
            scale(1.035);

        opacity: 0.9;

    }

}


.hero-logo {

    position: relative;

    z-index: 2;

    width: 100%;

    height: auto;

    filter:
        drop-shadow(
            0 18px 35px
            rgba(18, 59, 102, 0.12)
        );

}


/* =========================================================
   PUNTOS DE DATOS
   ========================================================= */

.hero-data-point {

    position: absolute;

    display: flex;

    align-items: center;

    gap: 9px;

    color:
        var(--oc-blue);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

}


.hero-data-point span {

    width: 9px;

    height: 9px;

    border:
        2px solid
        var(--oc-blue);

    border-radius: 50%;

    background:
        var(--oc-white);

    box-shadow:
        0 0 0 5px
        rgba(18, 59, 102, 0.08);

}


.point-one {

    top: 20%;

    left: 14%;

}


.point-two {

    top: 31%;

    right: 6%;

}


.point-three {

    bottom: 23%;

    right: 12%;

}


.point-four {

    bottom: 16%;

    left: 13%;

}


.point-four span {

    border-color:
        var(--oc-gold);

    box-shadow:
        0 0 0 5px
        rgba(198, 164, 91, 0.12);

}


/* =========================================================
   CONEXIONES
   ========================================================= */

.hero-connection {

    position: absolute;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(18, 59, 102, 0.25),
            transparent
        );

    transform-origin:
        left center;

}


.connection-one {

    width: 170px;

    top: 25%;

    left: 21%;

    transform:
        rotate(24deg);

}


.connection-two {

    width: 150px;

    top: 36%;

    right: 17%;

    transform:
        rotate(145deg);

}


.connection-three {

    width: 160px;

    bottom: 25%;

    left: 19%;

    transform:
        rotate(-22deg);

}


/* =========================================================
   COORDENADAS
   ========================================================= */

.hero-coordinate {

    position: absolute;

    color:
        rgba(18, 59, 102, 0.45);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.12em;

}


.coordinate-one {

    top: 10%;

    right: 18%;

}


.coordinate-two {

    bottom: 10%;

    right: 27%;

}


/* =========================================================
   SCROLL
   ========================================================= */

.hero-scroll {

    position: absolute;

    bottom: 24px;

    left: 50%;

    z-index: 5;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 9px;

    color:
        var(--oc-gray);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.12em;

    text-decoration: none;

    text-transform: uppercase;

    transform:
        translateX(-50%);

}


.hero-scroll-line {

    width: 1px;

    height: 30px;

    background:
        linear-gradient(
            var(--oc-gold),
            transparent
        );

}


/* =========================================================
   LO QUE ENCONTRARÁS
   OBSERVACHOCÓ
   ========================================================= */

.observatorio-section {

    padding:
        78px
        0
        86px;

    background:
        var(--oc-white);

}


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

.observatorio-section-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 34px;

}


.observatorio-section-heading {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.observatorio-section-kicker {

    margin-bottom: 7px;

    color:
        var(--oc-blue);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.14em;

    text-transform: uppercase;

}


.observatorio-section-heading h2 {

    margin: 0;

    color:
        var(--oc-blue-dark);

    font-size:
        clamp(28px, 3vw, 38px);

    font-weight: 700;

    line-height: 1.15;

    letter-spacing: -0.025em;

}


.observatorio-section-line {

    display: block;

    width: 52px;

    height: 3px;

    margin-top: 12px;

    background:
        var(--oc-gold);

}


/* =========================================================
   ENLACE SUPERIOR
   ========================================================= */

.observatorio-section-link {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    flex-shrink: 0;

    padding-bottom: 4px;

    color:
        var(--oc-blue);

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;

}


.observatorio-section-link span {

    font-size: 17px;

    line-height: 1;

}


.observatorio-section-link:hover {

    color:
        var(--oc-blue-dark);

    gap: 10px;

}


/* =========================================================
   GRID
   ========================================================= */

.observatorio-grid {

    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 14px;

}


/* =========================================================
   TARJETAS
   ========================================================= */

.observatorio-card {

    display: flex;

    flex-direction: column;

    min-height: 222px;

    padding:
        22px
        19px
        20px;

    background:
        var(--oc-blue-light);

    border:
        1px solid
        rgba(18, 59, 102, 0.035);

    border-radius: 4px;

    opacity: 0;

    transform:
        translateY(24px);

    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.22s ease,
        box-shadow 0.22s ease;

}


.observatorio-card.is-visible {

    opacity: 1;

    transform:
        translateY(0);

}


.observatorio-card:hover {

    transform:
        translateY(-3px);

    background:
        #EEF5FA;

    box-shadow:
        0 10px 24px
        rgba(18, 59, 102, 0.08);

}


/* =========================================================
   ENTRADA ESCALONADA
   ========================================================= */

.observatorio-card:nth-child(1) {
    transition-delay: 0ms;
}

.observatorio-card:nth-child(2) {
    transition-delay: 60ms;
}

.observatorio-card:nth-child(3) {
    transition-delay: 120ms;
}

.observatorio-card:nth-child(4) {
    transition-delay: 180ms;
}

.observatorio-card:nth-child(5) {
    transition-delay: 240ms;
}

.observatorio-card:nth-child(6) {
    transition-delay: 300ms;
}


/* =========================================================
   ICONO
   ========================================================= */

.observatorio-card-icon {

    display: flex;

    align-items: center;

    justify-content: flex-start;

    width: 42px;

    height: 42px;

    margin-bottom: 15px;

}


.observatorio-card-icon svg {

    width: 34px;

    height: 34px;

    fill: none;

    stroke:
        var(--oc-blue);

    stroke-width: 1.65;

    stroke-linecap: round;

    stroke-linejoin: round;

}


/* =========================================================
   TÍTULO
   ========================================================= */

.observatorio-card h3 {

    margin: 0;

    color:
        var(--oc-blue-dark);

    font-size: 15px;

    font-weight: 700;

    line-height: 1.25;

}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.observatorio-card p {

    margin:
        10px
        0
        0;

    color:
        var(--oc-text);

    font-size: 12.5px;

    line-height: 1.5;

}


/* =========================================================
   ENLACE DE TARJETA
   ========================================================= */

.observatorio-card-link {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-top: auto;

    padding-top: 16px;

    color:
        var(--oc-blue);

    font-size: 11.5px;

    font-weight: 700;

    text-decoration: none;

    transition:
        gap 0.2s ease,
        color 0.2s ease;

}


.observatorio-card-link span {

    font-size: 15px;

    line-height: 1;

}


.observatorio-card-link:hover {

    gap: 8px;

    color:
        var(--oc-blue-dark);

}


/* =========================================================
   REVEAL GENERAL
   ========================================================= */

.scroll-reveal {

    opacity: 0;

    transform:
        translateY(32px);

    filter:
        blur(3px);

    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);

}


.scroll-reveal.is-visible {

    opacity: 1;

    transform:
        translateY(0);

    filter:
        blur(0);

}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    .scroll-reveal,
    .scroll-reveal.is-visible,
    .observatorio-card,
    .observatorio-card.is-visible {

        opacity: 1;

        transform: none;

        filter: none;

        transition: none;

    }

}

/* =========================================================
   OBSERVACHOCÓ
   ¿QUÉ ESTÁ PASANDO EN EL CHOCÓ?
   ========================================================= */

.news-section {
    position: relative;
    padding: 120px 0 130px;
    background: var(--oc-white);
    overflow: hidden;
}


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

.news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 58px;
}


.news-heading {
    max-width: 760px;
}


.section-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--oc-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}


.news-heading h2 {
    margin: 0;
    color: var(--oc-blue);
    font-size: clamp(38px, 4vw, 62px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
}


.news-heading h2 span {
    display: block;
    color: var(--oc-blue-dark);
}


.news-heading p {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--oc-gray);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   ENLACE SALA DE PRENSA
   ========================================================= */

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;

    padding-bottom: 8px;

    border-bottom: 1px solid var(--oc-blue);

    color: var(--oc-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition:
        gap 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}


.news-link span {
    font-size: 20px;
    line-height: 1;
}


.news-link:hover {
    gap: 17px;
    color: var(--oc-gold);
    border-color: var(--oc-gold);
}


/* =========================================================
   GRID PRINCIPAL
   ========================================================= */

.news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    gap: 34px;
}


/* =========================================================
   NOTICIA PRINCIPAL
   ========================================================= */

.news-feature {
    min-width: 0;
}


.news-image {
    position: relative;
    display: block;
    height: 540px;
    overflow: hidden;
    background: var(--oc-blue-light);
    text-decoration: none;
}


.news-image img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;

    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}


.news-image:hover img {
    transform: scale(1.035);
}


.news-category {
    position: absolute;
    left: 24px;
    bottom: 24px;

    padding: 8px 13px;

    background: var(--oc-white);
    color: var(--oc-blue);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}


.news-feature-content {
    max-width: 850px;
    padding: 28px 5px 0;
}


.news-feature-content time,
.news-card-content time {
    display: block;
    margin-bottom: 13px;

    color: var(--oc-gray);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.11em;
}


.news-feature-content h3 {
    max-width: 800px;
    margin: 0;

    color: var(--oc-blue);

    font-size: clamp(28px, 3vw, 43px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}


.news-feature-content p {
    max-width: 680px;
    margin: 18px 0 22px;

    color: var(--oc-gray);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   NOTICIAS SECUNDARIAS
   ========================================================= */

.news-secondary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}


.news-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;

    padding-bottom: 24px;

    border-bottom: 1px solid var(--oc-border);
}


.news-card:last-child {
    border-bottom: 0;
}


.news-card-image {
    display: block;
    height: 145px;
    overflow: hidden;

    background: var(--oc-blue-light);
}


.news-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}


.news-card-image:hover img {
    transform: scale(1.04);
}


.news-card-content {
    min-width: 0;
}


.news-card-category {
    display: inline-block;
    margin-bottom: 9px;

    color: var(--oc-gold);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}


.news-card-content time {
    margin-bottom: 9px;
}


.news-card-content h3 {
    margin: 0 0 17px;

    color: var(--oc-blue);

    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
}


/* =========================================================
   ENLACE DE NOTICIA
   ========================================================= */

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--oc-blue);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        gap 0.25s ease,
        color 0.25s ease;
}


.news-read-more span {
    font-size: 17px;
    line-height: 1;
}


.news-read-more:hover {
    gap: 12px;
    color: var(--oc-gold);
}


/* =========================================================
   ANIMACIÓN DE ENTRADA
   ========================================================= */

.news-section .reveal {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}


.news-section .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.news-secondary .news-card:nth-child(2) {
    transition-delay: 0.08s;
}


.news-secondary .news-card:nth-child(3) {
    transition-delay: 0.16s;
}