/* =========================================================
   OBSERVACHOCÓ
   RESPONSIVE.CSS
   Tablet + Mobile
   ========================================================= */


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

@media (max-width: 1180px) {

    .nav-list {

        gap: 0;

    }


    .nav-link {

        padding-left: 9px;

        padding-right: 9px;

        font-size: 13px;

    }


    .nav-link::after {

        left: 9px;

        right: 9px;

    }


    .brand-logo {

        width: 185px;

    }


    /* -----------------------------------------------------
       LO QUE ENCONTRARÁS
       ----------------------------------------------------- */

    .observatorio-grid {

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

    }

}


/* =========================================================
   HEADER MÓVIL
   ========================================================= */

@media (max-width: 1024px) {


    /* -----------------------------------------------------
       NAVBAR
       ----------------------------------------------------- */

    .nav-inner {

        min-height: 76px;

        gap: 20px;

    }


    .brand-logo {

        width: 170px;

        max-height: 58px;

    }


    /* -----------------------------------------------------
       BOTÓN HAMBURGUESA
       ----------------------------------------------------- */

    .mobile-menu-toggle {

        position: relative;

        z-index: 1100;

        display: flex;

        flex-direction: column;

        justify-content: center;

        align-items: center;

        width: 44px;

        height: 44px;

        padding: 8px;

        border: 0;

        border-radius: 50%;

        background: transparent;

        cursor: pointer;

    }


    .mobile-menu-toggle:hover {

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

    }


    .mobile-menu-toggle span {

        display: block;

        width: 20px;

        height: 1.8px;

        margin: 3px 0;

        background:
            var(--oc-blue);

        transition:
            transform 0.25s ease,
            opacity 0.2s ease;

    }


    /* -----------------------------------------------------
       HAMBURGUESA → X
       ----------------------------------------------------- */

    .mobile-menu-toggle[aria-expanded="true"]
    span:nth-child(1) {

        transform:
            translateY(4.8px)
            rotate(45deg);

    }


    .mobile-menu-toggle[aria-expanded="true"]
    span:nth-child(2) {

        opacity: 0;

    }


    .mobile-menu-toggle[aria-expanded="true"]
    span:nth-child(3) {

        transform:
            translateY(-4.8px)
            rotate(-45deg);

    }


    /* -----------------------------------------------------
       MENÚ FULLSCREEN
       ----------------------------------------------------- */

    .main-menu {

        position: fixed;

        inset: 0;

        z-index: 1050;

        display: flex;

        align-items: flex-start;

        justify-content: flex-start;

        width: 100%;

        height: 100dvh;

        padding-top: 100px;

        overflow-y: auto;

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

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-12px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;

    }


    .main-menu.is-open {

        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);

    }


    /* -----------------------------------------------------
       LISTA
       ----------------------------------------------------- */

    .nav-list {

        display: block;

        width:
            min(
                calc(100% - 48px),
                720px
            );

        margin:
            0 auto;

        padding:
            0 0 60px;

        list-style: none;

    }


    /* -----------------------------------------------------
       ITEM
       ----------------------------------------------------- */

    .nav-item {

        width: 100%;

        border-bottom:
            1px solid
            rgba(18, 59, 102, 0.10);

    }


    .nav-item:last-child {

        border-bottom: 0;

    }


    /* -----------------------------------------------------
       TIPOGRAFÍA MÓVIL
       ----------------------------------------------------- */

    .nav-link {

        position: relative;

        display: flex;

        align-items: center;

        justify-content: space-between;

        width: 100%;

        min-height: 70px;

        padding: 0;

        border: 0;

        background: transparent;

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

        font-family:
            -apple-system,
            BlinkMacSystemFont,
            "SF Pro Display",
            "SF Pro Text",
            "Helvetica Neue",
            Arial,
            sans-serif;

        font-size:
            clamp(
                27px,
                5vw,
                36px
            );

        font-weight: 600;

        line-height: 1.15;

        letter-spacing: -0.025em;

        text-decoration: none;

        text-align: left;

        white-space: normal;

    }


    /* -----------------------------------------------------
       QUITAR ESTILO DESKTOP
       ----------------------------------------------------- */

    .nav-link::after {

        display: none;

    }


    .nav-link:hover {

        color:
            var(--oc-blue);

    }


    /* -----------------------------------------------------
       FLECHA
       ----------------------------------------------------- */

    .dropdown-arrow {

        display: inline-flex;

        align-items: center;

        justify-content: center;

        flex-shrink: 0;

        width: 34px;

        height: 34px;

        margin-left: 20px;

        color:
            var(--oc-blue);

        font-size: 18px;

        font-weight: 400;

        line-height: 1;

        transition:
            transform 0.25s ease;

    }


    .has-dropdown.is-open
    .dropdown-arrow {

        transform:
            rotate(180deg);

    }


    /* -----------------------------------------------------
       DROPDOWN MÓVIL
       ----------------------------------------------------- */

    .dropdown-menu {

        position: static;

        display: none;

        width: 100%;

        min-width: 0;

        margin: 0;

        padding:
            0
            0
            15px
            20px;

        border: 0;

        border-left:
            2px solid
            var(--oc-gold);

        border-radius: 0;

        box-shadow: none;

        background: transparent;

        opacity: 1;

        visibility: visible;

        transform: none;

    }


    .has-dropdown:hover
    .dropdown-menu {

        display: none;

    }


    .has-dropdown.is-open
    .dropdown-menu {

        display: block;

    }


    /* -----------------------------------------------------
       SUBMENÚ
       ----------------------------------------------------- */

    .dropdown-menu a {

        display: flex;

        align-items: center;

        min-height: 48px;

        padding:
            7px 0;

        border-radius: 0;

        color:
            var(--oc-text);

        font-family:
            -apple-system,
            BlinkMacSystemFont,
            "SF Pro Text",
            "Helvetica Neue",
            Arial,
            sans-serif;

        font-size: 18px;

        font-weight: 500;

        line-height: 1.35;

        text-decoration: none;

    }


    .dropdown-menu a:hover {

        background: transparent;

        color:
            var(--oc-blue);

    }


    /* -----------------------------------------------------
       PARTICIPA
       ----------------------------------------------------- */

    .nav-link-participa {

        display: flex;

        width: auto;

        min-height: 56px;

        margin:
            22px 0 10px;

        padding:
            0 22px;

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

        border-radius: 4px;

        color:
            var(--oc-blue);

        font-size: 20px;

    }


    .nav-link-participa:hover {

        background:
            var(--oc-blue);

        color:
            var(--oc-white);

    }


    /* -----------------------------------------------------
       BUSCADOR
       ----------------------------------------------------- */

    .nav-search {

        margin-top: 10px;

        border-bottom: 0;

    }


    .search-button {

        display: flex;

        align-items: center;

        justify-content: flex-start;

        width: 100%;

        height: 60px;

        padding: 0;

        border-radius: 0;

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

    }


    .search-button:hover {

        background: transparent;

    }


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

    .hero {

        min-height: auto;

    }


    .hero-container {

        grid-template-columns: 1fr;

        gap: 20px;

        padding-top: 70px;

        padding-bottom: 70px;

    }


    .hero-content {

        max-width: 760px;

        margin:
            0 auto;

        text-align: center;

    }


    .hero-eyebrow {

        justify-content: center;

    }


    .hero-description {

        margin-left: auto;

        margin-right: auto;

    }


    .hero-actions {

        justify-content: center;

    }


    .hero-principles {

        justify-content: center;

    }


    .hero-visual {

        width:
            min(
                90vw,
                600px
            );

        margin:
            10px auto 0;

    }


    .hero-scroll {

        display: none;

    }


    /* =====================================================
       SECCIÓN OBSERVATORIO TABLET
       ===================================================== */

    .observatorio-section {

        padding:
            70px
            0
            78px;

    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 640px) {


    /* -----------------------------------------------------
       CONTENEDOR
       ----------------------------------------------------- */

    .container {

        width:
            calc(100% - 32px);

    }


    /* -----------------------------------------------------
       TOP BAR
       ----------------------------------------------------- */

    .top-bar-message {

        display: none;

    }


    .top-bar-inner {

        justify-content: flex-end;

        min-height: 32px;

    }


    /* -----------------------------------------------------
       NAVBAR
       ----------------------------------------------------- */

    .nav-inner {

        min-height: 70px;

    }


    .brand-logo {

        width: 165px;

        max-height: 54px;

    }


    /* -----------------------------------------------------
       MENÚ
       ----------------------------------------------------- */

    .main-menu {

        padding-top: 90px;

    }


    .nav-list {

        width:
            calc(100% - 40px);

    }


    .nav-link {

        min-height: 66px;

        font-size:
            clamp(
                25px,
                8vw,
                32px
            );

    }


    .dropdown-menu a {

        font-size: 17px;

    }


    /* =====================================================
       HERO MÓVIL
       ===================================================== */

    .hero-container {

        width:
            calc(100% - 32px);

        padding-top: 48px;

        padding-bottom: 40px;

    }


    .hero-eyebrow {

        font-size: 11px;

        letter-spacing: 0.12em;

    }


    .hero h1 {

        font-size:
            clamp(
                40px,
                12vw,
                54px
            );

        line-height: 1.01;

        letter-spacing: -0.045em;

    }


    .hero-description {

        margin-top: 22px;

        font-size: 16px;

        line-height: 1.55;

    }


    .hero-actions {

        flex-direction: column;

        align-items: stretch;

        margin-top: 28px;

    }


    .hero-button {

        width: 100%;

    }


    .hero-principles {

        margin-top: 32px;

    }


    .hero-principles span {

        padding:
            0 10px;

        font-size: 9px;

    }


    .hero-visual {

        width: 100%;

        margin-top: 10px;

    }


    .hero-mark {

        width: 235px;

        height: 235px;

    }


    .hero-data-point {

        font-size: 8px;

    }


    .hero-data-point span {

        width: 7px;

        height: 7px;

    }


    .point-one {

        left: 4%;

    }


    .point-two {

        right: 1%;

    }


    .point-three {

        right: 5%;

    }


    .point-four {

        left: 4%;

    }


    .hero-coordinate {

        font-size: 8px;

    }


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

    .observatorio-section {

        padding:
            52px
            0
            58px;

    }


    .observatorio-section-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 18px;

        margin-bottom: 28px;

    }


    .observatorio-section-link {

        padding-bottom: 0;

    }


    .observatorio-section-heading h2 {

        font-size: 27px;

    }


    .observatorio-grid {

        grid-template-columns: 1fr;

        gap: 10px;

    }


    .observatorio-card {

        min-height: 0;

        padding:
            21px
            20px
            20px;

    }


    .observatorio-card-icon {

        margin-bottom: 12px;

    }


    .observatorio-card p {

        max-width: 480px;

    }

}


/* =========================================================
   TABLET PEQUEÑA
   ========================================================= */

@media (max-width: 768px) {

    .observatorio-grid {

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

        gap: 12px;

    }


    .observatorio-card {

        min-height: 215px;

    }

}


/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
   ========================================================= */

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

    .mobile-menu-toggle span,
    .main-menu,
    .dropdown-arrow {

        transition: none;

    }

}

/* =========================================================
   OBSERVACHOCÓ
   RESPONSIVE — ¿QUÉ ESTÁ PASANDO?
   ========================================================= */


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

@media (max-width: 1100px) {

    .news-section {
        padding: 100px 0 110px;
    }


    .news-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }


    .news-secondary {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }


    .news-card {
        display: block;
    }


    .news-card-image {
        height: 210px;
        margin-bottom: 20px;
    }


    .news-card:last-child {
        border-bottom: 1px solid var(--oc-border);
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    .news-section {
        padding: 78px 0 85px;
    }


    .news-header {
        display: block;
        margin-bottom: 38px;
    }


    .news-heading h2 {
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.02;
    }


    .news-heading p {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.65;
    }


    .news-link {
        margin-top: 25px;
    }


    .news-grid {
        gap: 42px;
    }


    .news-image {
        height: 330px;
    }


    .news-feature-content {
        padding-top: 22px;
    }


    .news-feature-content h3 {
        font-size: 29px;
        line-height: 1.12;
    }


    .news-feature-content p {
        font-size: 15px;
    }


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


    .news-card {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 17px;
        padding-bottom: 25px;
    }


    .news-card-image {
        height: 110px;
        margin-bottom: 0;
    }


    .news-card-content h3 {
        margin-bottom: 12px;
        font-size: 17px;
    }


    .news-card-content time {
        font-size: 9px;
    }


    .news-card-category {
        margin-bottom: 6px;
        font-size: 9px;
    }


    .news-read-more {
        font-size: 12px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 430px) {

    .news-image {
        height: 280px;
    }


    .news-card {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 14px;
    }


    .news-card-image {
        height: 100px;
    }


    .news-card-content h3 {
        font-size: 16px;
    }

}