/* Novedades: migración neutral a PHP; estilos exclusivos y base visual del origen. */
:root {
    --bg-page: #F3F5F8;
    --navy-dark: #001A3A;
    --gold: #CBA358;
    --gold-light: #DFB96E;
    --gold-dark: #B88E45;
    --gold-gradient: linear-gradient(
        135deg,
        #DFB96E 0%,
        #B88E45 100%
    );
    --white: #FFFFFF;
    --text: #4A5568;
    --muted: #64748B;
    --soft: #F8FAFC;
    --border: #E2E8F0;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    max-width: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.gx-news-surface {
    margin: 0;
    padding: 0;
    background: var(--bg-page);
    color: var(--navy-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

img,
svg,
video {
    max-width: 100%;
}

.gx-news-surface .bg-master-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-page);
}

.gx-news-surface .bg-architectural {
    position: absolute;
    inset: 0;
    background:
        url('/img/fondo-circuito.jpg')
        no-repeat center center;
    background-size: cover;
    opacity: 0.10;

    mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            transparent 95%
        ),
        linear-gradient(
            to left,
            black 50%,
            transparent 100%
        );

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            transparent 95%
        ),
        linear-gradient(
            to left,
            black 50%,
            transparent 100%
        );

    mask-composite: intersect;
    -webkit-mask-composite: source-in;

    pointer-events: none;
}
@media (max-width: 991px) {
    html, body.gx-news-surface { overflow-x: hidden; }
    body.gx-news-surface .main-wrapper { padding-bottom: 36px !important; }
    .gx-news-surface .bg-architectural { opacity: .075 !important; background-position: center top !important; }
}
@media (max-width: 640px) {
    body.gx-news-surface .main-wrapper { padding-bottom: 28px !important; }
}

.gx-news-main { width:100% !important; max-width:1200px !important; margin-left:auto !important; margin-right:auto !important; padding:0 !important; }
/* Hoja exclusiva de esta página. Barra y jerarquía: contrato visual de Tienda Gyalux. */
body.gx-news-surface .main-wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.gx-news-context.gx-context-bar {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    border-top: 1px solid rgba(0,26,58,.06);
    border-bottom: 1px solid rgba(0,26,58,.08);
    background: rgba(255,255,255,.74);
}
.gx-news-context .gx-context-bar-inner {
    width: 100%;
    max-width: 1200px;
    min-height: 46px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    align-items: center;
}
.gx-news-context .gx-context-item {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    color: #536174;
    font-size: .77rem;
    line-height: 1.3;
    text-align: center;
}
.gx-news-context .gx-context-item + .gx-context-item {
    border-left: 1px solid rgba(0,26,58,.08);
}
.gx-news-context .gx-context-item i {
    width: 13px;
    min-width: 13px;
    flex: 0 0 13px;
    color: #CBA358;
    font-size: .9rem;
    text-align: center;
}
.gx-news-page,
.gx-news-page * { box-sizing: border-box; }
.gx-news-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 84px;
    color: #10223A;
    font-family: 'Inter', sans-serif;
}
.gx-news-page h1,
.gx-news-page h2,
.gx-news-page h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #001A3A;
    letter-spacing: 0;
}
.gx-news-page p { color: #4A5568; }
.gx-news-page .eyebrow {
    display: block;
    margin: 0 0 20px;
    padding: 0;
    color: #CBA358;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 100;
    line-height: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
}
html body .gx-news-page h1 {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 35px !important;
    font-weight: 700 !important;
    line-height: 41.3px !important;
    letter-spacing: -0.45px !important;
}
html body .gx-news-page h2 {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 28.32px !important;
    letter-spacing: -0.45px !important;
}
html body .gx-news-page h3 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 17.92px !important;
    font-weight: 800 !important;
    line-height: 22.4px !important;
    letter-spacing: normal !important;
}

.gx-news-opening { max-width: 790px; margin-bottom: 34px; }
.gx-news-opening p { max-width: 750px; margin: 0; font-size: 1rem; line-height: 1.7; }
.gx-news-feature {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    overflow: hidden;
    border: 1px solid rgba(0,26,58,.10);
    border-radius: 9px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 44px rgba(0,26,58,.07);
}
.gx-news-page .gx-news-feature + .gx-news-feature { margin-top: 30px; }
.gx-news-page .gx-news-feature-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 18px;
}
.gx-news-page .gx-news-feature-meta .gx-news-feature-label { margin-bottom: 0; }
.gx-news-page .gx-news-date {
    color: #536174;
    font-size: .8rem;
    line-height: 1.4;
}
.gx-news-feature-art { min-height: 370px; overflow: hidden; background: #DCE5EC; }
.gx-news-feature-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 48% center;
}
.gx-news-feature-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 38px;
}
.gx-news-feature-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 10px;
    border-radius: 5px;
    background: #EAF0F5;
    color: #173C60;
    font-size: .72rem;
    font-weight: 600;
}
.gx-news-feature-copy > p { max-width: 530px; margin: 0; font-size: .95rem; line-height: 1.7; }
.gx-news-feature-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 19px;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
}
.gx-news-feature-bottom::before {
    content: "";
    display: block;
    flex-basis: 100%;
    height: 1px;
    background: rgba(0,26,58,.10);
}
.gx-news-price { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.gx-news-price strong {
    color: #001A3A;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}
.gx-news-price span { color: #536174; font-size: .8rem; line-height: 1.4; }
.gx-news-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid #001A3A;
    border-radius: 8px;
    background: #001A3A;
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .18s ease, transform .18s ease;
}
.gx-news-button:hover,
.gx-news-button:focus-visible { background: #0B3158; color: #fff; transform: translateY(-1px); }
.gx-news-button:focus-visible { outline: 2px solid #001A3A; outline-offset: 3px; }
@media (max-width: 800px) {
    .gx-news-feature { grid-template-columns: 1fr; }
    .gx-news-feature-art { min-height: 0; aspect-ratio: 16 / 9; }
    .gx-news-feature-copy { padding: 29px 30px; }
    .gx-news-feature-bottom { margin-top: 12px; }
}
@media (max-width: 640px) {
    .gx-news-opening { margin-bottom: 25px; }
    .gx-news-feature-copy { padding: 23px 20px 25px; }
    .gx-news-feature-label { margin-bottom: 14px; }
    .gx-news-button { width: 100%; }
}

@media (max-width: 1180px) {
    body.gx-news-surface .main-wrapper {
        width: calc(100% - 44px) !important;
        max-width: none !important;
    }
    .gx-news-context .gx-context-bar-inner { width: calc(100% - 44px); }
}
@media (max-width: 991px) {
    body.gx-news-surface .main-wrapper {
        width: calc(100% - 36px) !important;
    }
    .gx-news-context .gx-context-bar-inner {
        width: 100%;
        grid-template-columns: 1fr;
    }
    .gx-news-context .gx-context-item {
        min-height: 39px;
        justify-content: flex-start;
        padding-left: 22px;
        padding-right: 22px;
        text-align: left;
    }
    .gx-news-context .gx-context-item + .gx-context-item {
        border-left: 0;
        border-top: 1px solid rgba(0,26,58,.07);
    }
    .gx-news-page { width: 100%; padding: 0 0 58px; }
    html body .gx-news-page h1 { font-size: 35px !important; line-height: 41.3px !important; }
    html body .gx-news-page h2 { font-size: 24px !important; line-height: 28.32px !important; }
}
@media (max-width: 650px) {
    .gx-news-page { padding-left: 0; padding-right: 0; }
}
@media (max-width: 640px) {
    body.gx-news-surface .main-wrapper { width: calc(100% - 32px) !important; }
    .gx-news-context.gx-context-bar { margin-top: 24px; margin-bottom: 24px; }
    .gx-news-context .gx-context-item { font-size: .72rem; }
    .gx-news-page .eyebrow { margin-bottom: 11px !important; }
    html body .gx-news-page h1,
    html body .gx-news-page h2 {
        font-size: 23.2px !important;
        line-height: 27.376px !important;
        letter-spacing: -0.45px !important;
    }
    html body .gx-news-page h1 { margin-bottom: 16px !important; }
}
@media (max-width: 360px) {
    html body .gx-news-page h1 { font-size: 22.72px !important; line-height: 26.3552px !important; }
    html body .gx-news-page h2 { font-size: 20.48px !important; line-height: 24.576px !important; }
}
