/* search-ranking: estilos migrados preservando el diseño original. */

/* ==========================================================
   SEARCH RANKING
   SEARCH ENGINE EXPERIENCE
   ========================================================== */


/* ==========================================================
   1. VARIABLES Y CONFIGURACIÓN GENERAL
   ========================================================== */

body.article-page.search-ranking-page {
    --search-bg: #f7f4ee;
    --search-surface: #ffffff;
    --search-text: #171512;
    --search-muted: #777168;
    --search-soft: #a49d92;

    --search-gold: #b98b42;
    --search-gold-light: #d7b879;

    --search-line: rgba(23, 21, 18, 0.12);
    --search-line-strong: rgba(23, 21, 18, 0.2);

    --search-shadow:
        0 30px 80px rgba(50, 42, 31, 0.1);

    overflow-x: hidden;

    background: var(--search-bg);
    color: var(--search-text);
}


body.article-page.search-ranking-page main {
    overflow: hidden;
}


body.article-page.search-ranking-page * {
    box-sizing: border-box;
}


/* ==========================================================
   2. HERO
   ========================================================== */

body.article-page .search-hero {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: calc(100vh - 90px);
    padding: 140px 24px 110px;

    overflow: hidden;

    background:
        radial-gradient(circle at 50% 44%,
            rgba(185, 139, 66, 0.12),
            transparent 32%),
        linear-gradient(180deg,
            #fbf9f5 0%,
            #f4efe7 100%);

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


/* Cuadrícula muy ligera de fondo */

body.article-page .search-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(23, 21, 18, 0.025) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(23, 21, 18, 0.025) 1px,
            transparent 1px);

    background-size: 70px 70px;

    mask-image:
        radial-gradient(circle at center,
            black 0%,
            transparent 72%);

    pointer-events: none;
}


/* Halo decorativo */

body.article-page .search-hero::after {
    content: "";

    position: absolute;
    top: 52%;
    left: 50%;

    width: 760px;
    height: 760px;

    border: 1px solid rgba(185, 139, 66, 0.12);
    border-radius: 50%;

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

    pointer-events: none;
}


/* ==========================================================
   3. CONTENEDOR DEL HERO
   ========================================================== */

body.article-page .search-hero-container {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: min(100%, 1050px);
    margin: 0 auto;

    text-align: center;
}


/* Etiqueta superior */

body.article-page .search-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    color: var(--search-gold);

    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.2em;

    text-transform: uppercase;
}


/* Línea decorativa bajo la etiqueta */

body.article-page .search-label::after {
    content: "";

    width: 44px;
    height: 1px;
    margin-left: 15px;

    background: var(--search-gold);
}


/* ==========================================================
   4. TÍTULO
   ========================================================== */

body.article-page .search-hero h1 {
    max-width: 1050px;
    margin: 34px 0 0;

    color: var(--search-text);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(4rem, 7.3vw, 7.8rem);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.052em;
}


body.article-page .search-hero h1 span {
    display: block;
}


body.article-page .search-hero h1 .gold {
    margin-top: 10px;

    color: var(--search-gold);

    font-size: 0.84em;
}


/* ==========================================================
   5. DESCRIPCIÓN
   ========================================================== */

body.article-page .search-hero-container>p {
    max-width: 720px;
    margin: 38px auto 0;

    color: var(--search-muted);

    font-size: 0.88rem;
    line-height: 1.9;
}


/* ==========================================================
   6. BARRA DE BÚSQUEDA
   ========================================================== */

body.article-page .search-bar {
    position: relative;

    display: flex;
    align-items: center;

    width: min(100%, 760px);
    min-height: 76px;
    margin-top: 48px;
    padding: 0 26px;

    overflow: hidden;

    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 255, 255, 0.9));

    border: 1px solid rgba(82, 67, 47, 0.14);
    border-radius: 999px;

    box-shadow:
        0 24px 70px rgba(58, 45, 28, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


body.article-page .search-bar:hover {
    border-color: rgba(185, 139, 66, 0.36);

    box-shadow:
        0 30px 85px rgba(58, 45, 28, 0.16),
        0 0 0 6px rgba(185, 139, 66, 0.06);

    transform: translateY(-3px);
}


/* Icono de búsqueda creado con CSS */

body.article-page .search-bar::before {
    content: "";

    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    border: 1.8px solid var(--search-gold);
    border-radius: 50%;
}


body.article-page .search-bar::after {
    content: "";

    position: absolute;
    left: 43px;
    top: 43px;

    width: 8px;
    height: 1.8px;

    background: var(--search-gold);
    border-radius: 999px;

    transform: rotate(45deg);
    transform-origin: left center;
}


/* Ocultamos el SVG vacío del HTML */

body.article-page .search-bar svg {
    display: none;
}


/* Campo de búsqueda */

body.article-page .search-bar input {
    flex: 1;

    min-width: 0;
    margin-left: 22px;
    padding: 0;

    background: transparent;
    border: 0;
    outline: 0;

    color: var(--search-text);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.16rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}


/* Pequeña tecla Enter */

body.article-page .search-bar span {
    flex: 0 0 auto;

    padding: 8px 11px;

    background: #f3eee5;
    border: 1px solid rgba(23, 21, 18, 0.1);
    border-radius: 9px;

    color: var(--search-muted);

    font-size: 0.6rem;
    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* Texto bajo la búsqueda */

body.article-page .search-hero-container>small {
    margin-top: 18px;

    color: var(--search-soft);

    font-size: 0.58rem;
    letter-spacing: 0.1em;

    text-transform: uppercase;
}


/* ==========================================================
   7. SEARCH PROCESS
   ========================================================== */

body.article-page .search-process {
    position: relative;

    padding: 120px 24px;

    background: #171512;
    color: #fff;
}


body.article-page .process-container {
    width: min(100%, 880px);
    margin: 0 auto;
}


/* Cabecera del proceso */

body.article-page .search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


body.article-page .search-loading>span {
    color: rgba(255, 255, 255, 0.94);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    font-weight: 500;
    letter-spacing: -0.035em;
}


/* Barra de progreso */

body.article-page .progress-bar {
    position: relative;

    width: min(100%, 680px);
    height: 3px;
    margin-top: 36px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.12);
}


body.article-page .progress {
    width: 46%;
    height: 100%;

    background:
        linear-gradient(90deg,
            var(--search-gold),
            var(--search-gold-light));

    box-shadow:
        0 0 25px rgba(185, 139, 66, 0.55);

    animation:
        search-progress 4.8s ease-in-out infinite;
}


@keyframes search-progress {

    0% {
        width: 8%;
        transform: translateX(-15%);
    }

    50% {
        width: 68%;
    }

    100% {
        width: 16%;
        transform: translateX(560%);
    }

}


/* Estados */

body.article-page .search-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;

    margin-top: 62px;
}


body.article-page .search-status>div {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 84px;
    padding: 20px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);

    color: rgba(255, 255, 255, 0.7);

    font-size: 0.66rem;
    line-height: 1.6;
    letter-spacing: 0.04em;

    text-align: center;

    animation:
        status-breathe 4s ease-in-out infinite;
}


body.article-page .search-status>div:nth-child(2) {
    animation-delay: 0.5s;
}


body.article-page .search-status>div:nth-child(3) {
    animation-delay: 1s;
}


@keyframes status-breathe {

    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.09);
        transform: translateY(0);
    }

    50% {
        border-color: rgba(185, 139, 66, 0.42);
        transform: translateY(-5px);
    }

}


/* ==========================================================
   8. RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

    body.article-page .search-hero {
        min-height: auto;
        padding: 145px 22px 100px;
    }

    body.article-page .search-hero h1 {
        font-size: clamp(3.4rem, 10vw, 5.6rem);
        line-height: 0.92;
    }

    body.article-page .search-status {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-right: auto;
        margin-left: auto;
    }

}


@media (max-width: 600px) {

    body.article-page .search-hero {
        padding: 125px 18px 80px;
    }

    body.article-page .search-label {
        font-size: 0.52rem;
        line-height: 1.5;
    }

    body.article-page .search-label::after {
        display: none;
    }

    body.article-page .search-hero h1 {
        margin-top: 28px;

        font-size: clamp(3rem, 15vw, 4.3rem);
        line-height: 0.9;
    }

    body.article-page .search-hero h1 .gold {
        margin-top: 15px;
    }

    body.article-page .search-hero-container>p {
        margin-top: 30px;

        font-size: 0.78rem;
        line-height: 1.8;
    }

    body.article-page .search-bar {
        min-height: 64px;
        margin-top: 38px;
        padding: 0 20px;
    }

    body.article-page .search-bar input {
        margin-left: 18px;

        font-size: 0.82rem;
    }

    body.article-page .search-bar::after {
        left: 37px;
        top: 37px;
    }

    body.article-page .search-process {
        padding: 90px 18px;
    }

    body.article-page .search-loading>span {
        font-size: 2.7rem;
    }

}

/* ==========================================================
   CORRECCIÓN DE ESTRUCTURA
   Evita que articles.css limite esta experiencia
   ========================================================== */

body.search-ranking-page {
    width: 100%;
    margin: 0;
}

body.search-ranking-page main {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

body.search-ranking-page main>section {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
}


/* ==========================================================
   HERO COMPLETAMENTE CENTRADO
   ========================================================== */

body.search-ranking-page .search-hero {
    width: 100%;
    min-height: 100svh;

    padding: 120px 40px 90px;
}

body.search-ranking-page .search-hero-container {
    width: min(100%, 1180px) !important;
    max-width: 1180px !important;

    margin: 0 auto !important;

    text-align: center !important;
}

body.search-ranking-page .search-hero h1 {
    width: 100%;
    max-width: 1120px;

    margin-right: auto;
    margin-left: auto;

    font-size: clamp(3.8rem, 6vw, 6.7rem);
    line-height: 0.92;

    text-align: center !important;
}

body.search-ranking-page .search-hero-container>p {
    margin-right: auto;
    margin-left: auto;

    text-align: center !important;
}

body.search-ranking-page .search-bar {
    margin-right: auto;
    margin-left: auto;
}


/* ==========================================================
   RECORRIDO DE LA BÚSQUEDA
   No se presenta como un artículo tradicional
   ========================================================== */

body.search-ranking-page .search-overview {
    position: relative;

    padding: 135px 32px 150px;

    overflow: hidden;

    background:
        radial-gradient(circle at center,
            rgba(185, 139, 66, 0.1),
            transparent 42%),
        #f7f4ee;
}

body.search-ranking-page .search-overview .article-container {
    width: min(100%, 1180px) !important;
    max-width: 1180px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    text-align: center;
}

body.search-ranking-page .search-overview h2 {
    max-width: 900px;
    margin: 0 auto 85px;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3rem, 5vw, 5.4rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.04em;

    text-align: center;
}


/* Línea que conecta las tres señales */

body.search-ranking-page .overview-grid {
    position: relative;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;

    width: 100%;
}

body.search-ranking-page .overview-grid::before {
    content: "";

    position: absolute;
    top: 64px;
    left: 16%;
    right: 16%;

    height: 1px;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(185, 139, 66, 0.55),
            transparent);
}


/* Cada señal funciona como un nodo */

body.search-ranking-page .overview-grid article {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-height: 330px;
    padding: 45px 34px;

    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(70, 55, 35, 0.12);
    border-radius: 28px;

    box-shadow:
        0 25px 70px rgba(50, 40, 28, 0.07);

    text-align: center;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

body.search-ranking-page .overview-grid article:hover {
    transform: translateY(-10px);

    border-color: rgba(185, 139, 66, 0.4);

    box-shadow:
        0 35px 90px rgba(50, 40, 28, 0.12);
}


/* Nodos circulares */

body.search-ranking-page .overview-grid .icon {
    display: grid;
    place-items: center;

    width: 76px;
    height: 76px;
    margin-bottom: 34px;

    background: #171512;
    border: 1px solid rgba(185, 139, 66, 0.45);
    border-radius: 50%;

    font-size: 1.45rem;

    box-shadow:
        0 0 0 10px #f7f4ee,
        0 0 0 11px rgba(185, 139, 66, 0.22);
}

body.search-ranking-page .overview-grid h3 {
    margin: 0;

    color: #171512;

    font-family: "Cormorant Garamond", serif;
    font-size: 2.1rem;
    font-weight: 500;
}

body.search-ranking-page .overview-grid p {
    max-width: 290px;
    margin: 22px auto 0;

    color: var(--search-muted);

    font-size: 0.78rem;
    line-height: 1.9;
}


/* ==========================================================
   ECOSISTEMA DIGITAL
   ========================================================== */

body.search-ranking-page .digital-ecosystem {
    padding: 140px 32px 160px;

    background: #171512;
    color: #ffffff;
}

body.search-ranking-page .digital-ecosystem .article-container {
    width: min(100%, 1120px) !important;
    max-width: 1120px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    text-align: center;
}

body.search-ranking-page .digital-ecosystem h2 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3.3rem, 5.5vw, 6rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.04em;

    text-align: center;
}

body.search-ranking-page .digital-ecosystem .article-container>p {
    max-width: 700px;
    margin: 30px auto 90px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 0.82rem;
    line-height: 1.9;
}


/* Composición central */

body.search-ranking-page .ecosystem {
    position: relative;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        ". maps ."
        "reviews business website"
        ". social .";
    gap: 70px 90px;
    align-items: center;

    min-height: 580px;
    padding: 60px;
}


/* Líneas horizontal y vertical */

body.search-ranking-page .ecosystem::before,
body.search-ranking-page .ecosystem::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    z-index: 0;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(185, 139, 66, 0.55),
            transparent);
}

body.search-ranking-page .ecosystem::before {
    width: 75%;
    height: 1px;

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

body.search-ranking-page .ecosystem::after {
    width: 1px;
    height: 75%;

    background:
        linear-gradient(180deg,
            transparent,
            rgba(185, 139, 66, 0.55),
            transparent);

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


/* Posiciones */

body.search-ranking-page .ecosystem .maps {
    grid-area: maps;
}

body.search-ranking-page .ecosystem .website {
    grid-area: website;
}

body.search-ranking-page .ecosystem .business {
    grid-area: business;
}

body.search-ranking-page .ecosystem .reviews {
    grid-area: reviews;
}

body.search-ranking-page .ecosystem .social {
    grid-area: social;
}


/* Apariencia de los nodos */

body.search-ranking-page .ecosystem>div {
    position: relative;
    z-index: 2;

    display: grid;
    place-items: center;

    min-height: 120px;
    padding: 24px;

    background: #211f1b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.22);
}

body.search-ranking-page .ecosystem .business {
    min-height: 180px;

    background:
        radial-gradient(circle,
            rgba(185, 139, 66, 0.22),
            transparent 70%),
        #211f1b;

    border-color: rgba(185, 139, 66, 0.58);
    border-radius: 50%;

    color: #ffffff;

    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    letter-spacing: 0;
    text-transform: none;

    box-shadow:
        0 0 70px rgba(185, 139, 66, 0.17);
}

body.search-ranking-page .connections {
    display: none;
}


/* ==========================================================
   RESPONSIVE DE LAS NUEVAS SECCIONES
   ========================================================== */

@media (max-width: 850px) {

    body.search-ranking-page .overview-grid {
        grid-template-columns: 1fr;
        max-width: 580px;
        margin: 0 auto;
    }

    body.search-ranking-page .overview-grid::before {
        display: none;
    }

    body.search-ranking-page .ecosystem {
        grid-template-columns: 1fr;
        grid-template-areas:
            "business"
            "maps"
            "website"
            "reviews"
            "social";

        gap: 20px;

        min-height: auto;
        padding: 20px 0;
    }

    body.search-ranking-page .ecosystem::before,
    body.search-ranking-page .ecosystem::after {
        display: none;
    }

    body.search-ranking-page .ecosystem .business {
        width: 190px;
        min-height: 190px;

        margin: 0 auto 25px;
    }

}

@media (max-width: 600px) {

    body.search-ranking-page .search-hero {
        padding-right: 18px;
        padding-left: 18px;
    }

    body.search-ranking-page .search-hero h1 {
        font-size: clamp(3rem, 14vw, 4.4rem);
    }

    body.search-ranking-page .search-overview,
    body.search-ranking-page .digital-ecosystem {
        padding-right: 18px;
        padding-left: 18px;
    }

}

/* ==========================================================
   CONTACT BUTTON
   ========================================================== */

body.search-ranking-page .article-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 72px;
    padding: 18px 34px;

    background: transparent;

    border: 1px solid rgba(185, 139, 66, 0.75);
    border-radius: 999px;

    color: #ffffff;

    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

body.search-ranking-page .article-contact-button:hover {
    background: var(--search-gold);
    border-color: var(--search-gold);

    color: #171512;

    transform: translateY(-4px);

    box-shadow:
        0 18px 50px rgba(185, 139, 66, 0.22);
}

body.search-ranking-page .article-contact-button:focus-visible {
    outline: 2px solid var(--search-gold);
    outline-offset: 5px;
}

@media (max-width: 600px) {

    body.search-ranking-page .article-contact-button {
        width: 100%;
        max-width: 330px;

        margin-top: 55px;
        padding: 17px 24px;
    }

}

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

body.search-ranking-page .scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    margin: 58px auto 0;

    padding: 0;
    background: transparent;
    cursor: pointer;

    border: 1px solid rgba(185, 139, 66, 0.38);
    border-radius: 50%;

    opacity: .78;

    transition:
        transform .35s ease,
        border-color .35s ease,
        opacity .35s ease;

    animation: scroll-indicator-float 2.2s ease-in-out infinite;
}

body.search-ranking-page .scroll-indicator:hover {
    border-color: var(--search-gold);
    transform: translateY(4px);
    opacity: 1;
}

body.search-ranking-page .scroll-indicator span {
    width: 10px;
    height: 10px;

    border-right: 1.5px solid var(--search-gold);
    border-bottom: 1.5px solid var(--search-gold);

    transform: rotate(45deg) translate(-2px, -2px);
}

@keyframes scroll-indicator-float {

    0%,
    100% {
        opacity: 0.48;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(8px);
    }

}

@media (max-width: 600px) {

    body.search-ranking-page .scroll-indicator {
        width: 42px;
        height: 42px;
        margin-top: 45px;
    }

}

/* ==========================================================
   DARK THEME — SEARCH RANKING
   ========================================================== */

body.article-page.search-ranking-page {
    transition:
        background-color 0.45s ease,
        color 0.45s ease;
}


/* Variables principales */

body.article-page.dark-theme.search-ranking-page {
    --search-bg: #141311;
    --search-surface: #24211d;
    --search-text: #f4ecdf;
    --search-muted: #b8ac9c;
    --search-soft: #887f73;

    --search-gold: #c79a4b;
    --search-gold-light: #dfc489;

    --search-line: rgba(223, 196, 137, 0.14);
    --search-line-strong: rgba(223, 196, 137, 0.25);

    --search-shadow:
        0 30px 85px rgba(0, 0, 0, 0.38);

    background-color: var(--search-bg);
    color: var(--search-text);
}


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

body.article-page.dark-theme .search-hero {
    background:
        radial-gradient(circle at 50% 44%,
            rgba(199, 154, 75, 0.14),
            transparent 32%),
        linear-gradient(180deg,
            #1c1a17 0%,
            #131210 100%);

    border-bottom-color: var(--search-line);
}


body.article-page.dark-theme .search-hero::before {
    background-image:
        linear-gradient(rgba(223, 196, 137, 0.035) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(223, 196, 137, 0.035) 1px,
            transparent 1px);
}


body.article-page.dark-theme .search-hero::after {
    border-color: rgba(223, 196, 137, 0.12);
}


body.article-page.dark-theme .search-hero h1 {
    color: var(--search-text);
}


body.article-page.dark-theme .search-hero-container>p {
    color: var(--search-muted);
}


body.article-page.dark-theme .search-hero-container>small {
    color: var(--search-soft);
}


/* ==========================================================
   SEARCH BAR
   ========================================================== */

body.article-page.dark-theme .search-bar {
    background:
        linear-gradient(180deg,
            rgba(43, 39, 34, 0.98),
            rgba(31, 29, 25, 0.96));

    border-color: rgba(223, 196, 137, 0.18);

    box-shadow:
        0 28px 75px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


body.article-page.dark-theme .search-bar:hover {
    border-color: rgba(223, 196, 137, 0.42);

    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.5),
        0 0 0 6px rgba(199, 154, 75, 0.07);
}


body.article-page.dark-theme .search-bar input {
    color: var(--search-text);
}


body.article-page.dark-theme .search-bar span {
    background: #171512;

    border-color: rgba(223, 196, 137, 0.16);

    color: var(--search-muted);
}


/* ==========================================================
   SEARCH PROCESS
   ========================================================== */

body.article-page.dark-theme .search-process {
    background:
        radial-gradient(circle at 50% 40%,
            rgba(199, 154, 75, 0.08),
            transparent 34%),
        #0d0c0a;

    color: #fffaf0;
}


body.article-page.dark-theme .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}


body.article-page.dark-theme .progress {
    background:
        linear-gradient(90deg,
            #9d6e27,
            var(--search-gold-light));
}


body.article-page.dark-theme .search-status div {
    color: rgba(255, 250, 240, 0.62);
}


body.article-page.dark-theme .scroll-indicator {
    border-color: rgba(223, 196, 137, 0.35);
}


body.article-page.dark-theme .scroll-indicator:hover {
    background: rgba(223, 196, 137, 0.08);

    border-color: var(--search-gold-light);
}


/* ==========================================================
   OVERVIEW
   ========================================================== */

body.article-page.dark-theme .search-overview {
    background:
        linear-gradient(180deg,
            #181613,
            #131210);
}


body.article-page.dark-theme .search-overview h2 {
    color: var(--search-text);
}


body.article-page.dark-theme .overview-grid article {
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.018));

    border-color: rgba(223, 196, 137, 0.16);

    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.27);
}


body.article-page.dark-theme .overview-grid article:hover {
    border-color: rgba(223, 196, 137, 0.42);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.38);
}


body.article-page.dark-theme .overview-grid h3 {
    color: var(--search-text);
}


body.article-page.dark-theme .overview-grid p {
    color: var(--search-muted);
}


body.article-page.dark-theme .overview-grid .icon {
    background: rgba(199, 154, 75, 0.1);

    border-color: rgba(223, 196, 137, 0.19);
}


/* ==========================================================
   DIGITAL ECOSYSTEM
   ========================================================== */

body.article-page.dark-theme .digital-ecosystem {
    background:
        radial-gradient(circle at 50% 50%,
            rgba(199, 154, 75, 0.08),
            transparent 37%),
        #0f0e0c;
}


body.article-page.dark-theme .digital-ecosystem h2 {
    color: var(--search-text);
}


body.article-page.dark-theme .digital-ecosystem>.article-container>p {
    color: var(--search-muted);
}


body.article-page.dark-theme .ecosystem>div {
    background:
        linear-gradient(145deg,
            rgba(42, 38, 33, 0.98),
            rgba(25, 23, 20, 0.98));

    border-color: rgba(223, 196, 137, 0.2);

    color: var(--search-text);

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.34);
}


body.article-page.dark-theme .ecosystem .business {
    background:
        linear-gradient(145deg,
            #c79a4b,
            #795421);

    border-color: var(--search-gold-light);

    color: #fffaf0;

    box-shadow:
        0 25px 70px rgba(157, 110, 39, 0.24);
}


/* ==========================================================
   CTA
   ========================================================== */

body.article-page.dark-theme .article-contact-button {
    background: var(--search-gold);

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

    color: #17120b;
}


body.article-page.dark-theme .article-contact-button:hover {
    background: var(--search-gold-light);

    border-color: var(--search-gold-light);

    box-shadow:
        0 18px 45px rgba(199, 154, 75, 0.22);
}

/* ==========================================================
   DARK THEME FINAL OVERRIDES
   Debe permanecer al final de search-ranking.css
   ========================================================== */

body.search-ranking-page.dark-theme {
    --search-bg: #11100e;
    --search-surface: #24211d;
    --search-text: #f5eee3;
    --search-muted: #b7ad9f;
    --search-soft: #8f877d;
    --search-line: rgba(223, 196, 137, 0.16);
    --search-line-strong: rgba(223, 196, 137, 0.28);

    background: #11100e;
    color: var(--search-text);
}


/* HERO */

body.search-ranking-page.dark-theme .search-hero {
    background:
        radial-gradient(circle at 50% 44%,
            rgba(185, 139, 66, 0.15),
            transparent 34%),
        linear-gradient(180deg,
            #1c1916 0%,
            #11100e 100%);
}

body.search-ranking-page.dark-theme .search-hero::before {
    background-image:
        linear-gradient(rgba(223, 196, 137, 0.035) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(223, 196, 137, 0.035) 1px,
            transparent 1px);
}

body.search-ranking-page.dark-theme .search-hero::after {
    border-color: rgba(223, 196, 137, 0.12);
}

body.search-ranking-page.dark-theme .search-hero h1 {
    color: var(--search-text);
}

body.search-ranking-page.dark-theme .search-hero-container>p {
    color: var(--search-muted);
}

body.search-ranking-page.dark-theme .search-hero-container>small {
    color: var(--search-soft);
}


/* SEARCH BAR */

body.search-ranking-page.dark-theme .search-bar {
    background:
        linear-gradient(180deg,
            #2a2722 0%,
            #201d19 100%);

    border-color: rgba(223, 196, 137, 0.2);

    box-shadow:
        0 28px 75px rgba(0, 0, 0, 0.42);
}

body.search-ranking-page.dark-theme .search-bar input {
    color: var(--search-text);
    background: transparent;
}

body.search-ranking-page.dark-theme .search-bar span {
    background: #171512;
    color: var(--search-muted);
    border-color: rgba(223, 196, 137, 0.18);
}


/* SEARCH EXPERIENCE */

body.search-ranking-page.dark-theme .search-experience {
    background: #11100e;
}


/* PRIMERA PESTAÑA NEGRA */

body.search-ranking-page.dark-theme .search-process {
    background:
        radial-gradient(circle at center,
            rgba(185, 139, 66, 0.08),
            transparent 38%),
        #0d0c0a;
}


/* OVERVIEW: ESTA ERA LA PARTE QUE VOLVÍA A IVORY */

body.search-ranking-page.dark-theme .search-overview {
    background:
        radial-gradient(circle at center,
            rgba(185, 139, 66, 0.09),
            transparent 42%),
        #171512;
}

body.search-ranking-page.dark-theme .search-overview h2 {
    color: var(--search-text);
}

body.search-ranking-page.dark-theme .overview-grid article {
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018));

    border-color: rgba(223, 196, 137, 0.17);

    box-shadow:
        0 22px 58px rgba(0, 0, 0, 0.3);
}

body.search-ranking-page.dark-theme .overview-grid article:hover {
    border-color: rgba(223, 196, 137, 0.48);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.42);
}

body.search-ranking-page.dark-theme .overview-grid h3 {
    color: var(--search-text);
}

body.search-ranking-page.dark-theme .overview-grid p {
    color: var(--search-muted);
}

body.search-ranking-page.dark-theme .overview-grid .icon {
    background: rgba(199, 154, 75, 0.1);
    border-color: rgba(223, 196, 137, 0.2);
}


/* SEGUNDA PESTAÑA NEGRA */

body.search-ranking-page.dark-theme .digital-ecosystem {
    background:
        radial-gradient(circle at center,
            rgba(185, 139, 66, 0.08),
            transparent 42%),
        #0d0c0a;
}

body.search-ranking-page.dark-theme .digital-ecosystem h2 {
    color: var(--search-text);
}

body.search-ranking-page.dark-theme .digital-ecosystem .article-container>p {
    color: var(--search-muted);
}


/* ELEMENTOS DEL ECOSISTEMA */

body.search-ranking-page.dark-theme .ecosystem>div {
    background:
        linear-gradient(145deg,
            #2a2722,
            #1b1916);

    border-color: rgba(223, 196, 137, 0.2);
    color: var(--search-text);

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.38);
}

body.search-ranking-page.dark-theme .ecosystem .business {
    background:
        linear-gradient(145deg,
            #c79a4b,
            #74501f);

    border-color: #dfc489;
    color: #fffaf0;

    box-shadow:
        0 25px 70px rgba(157, 110, 39, 0.26);
}


/* HEADER */

body.search-ranking-page.dark-theme header {
    background: rgba(17, 16, 14, 0.96);
    border-bottom-color: rgba(223, 196, 137, 0.12);
}

body.search-ranking-page.dark-theme header a,
body.search-ranking-page.dark-theme header button {
    color: var(--search-text);
}