/* ============================= */
/* RESET */
/* ============================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================= */
/* VARIABLES */
/* ============================= */

:root {
    --bg-page: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-soft: #f8fafc;
    --border-soft: #dbe4ee;
    --border-ui: #e2e8f0;

    --text-main: #334155;
    --text-strong: #0f172a;
    --text-muted: #475569;

    --ojs-blue: #2f4e7a;
    --ojs-blue-dark: #1f3555;
    --ojs-blue-deep: #162d4a;
    --ojs-blue-accent: #2c5aa0;
    --button-blue: #2563eb;
    --button-blue-dark: #1d4ed8;

    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
    --shadow-medium: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.18);
}

/* ============================= */
/* TIPOGRAFÍA */
/* ============================= */

body {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-page);
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

h1,
h2,
h3,
h4 {
    font-family: 'Spectral', Georgia, serif;
    font-weight: 500;
    color: var(--text-strong);
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
}

a {
    color: var(--ojs-blue-accent);
    text-decoration: none;
}

a:hover {
    color: var(--ojs-blue-deep);
}

/* ============================= */
/* HEADER */
/* ============================= */

.site-header {
    background: #f5f7fa;
    border-bottom: 1px solid var(--border-ui);
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
}

/* LOGO */

.logo {
    height: 64px;
    width: auto;
}

/* BUSCADOR */

.header-search {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.header-search input {
    padding: 0.4rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.header-search button {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    background: var(--button-blue);
    color: white;
    cursor: pointer;
}

.header-search button:hover {
    background: var(--button-blue-dark);
}

/* ============================= */
/* NAV */
/* ============================= */

.site-nav {
    background: var(--ojs-blue) !important;
}

.site-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.7rem 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    background: transparent;
}

.site-nav a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
    background: var(--ojs-blue-deep);
    color: #dbe7ff !important;
}

/* ============================= */
/* MAIN */
/* ============================= */

main {
    background: var(--bg-surface);
    border-radius: 14px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-medium);
}

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

.hero-ojs {
    background:
        linear-gradient(rgba(47, 78, 122, 0.88), rgba(47, 78, 122, 0.88)),
        url("/static/images/hero-ojs.8ab86b75e6a3.svg");
    background-size: cover;
    background-position: center;
    padding: 5rem 2rem;
    border-radius: 14px;
    margin-bottom: 3rem;
    color: white;
}

.hero-content {
    max-width: 650px;
}

.hero-ojs h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-ojs p {
    font-size: 1.15rem;
    opacity: 0.92;
    color: white;
}

/* ============================= */
/* BOTONES */
/* ============================= */

.cta-button,
.btn-primary {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.9rem 1.8rem;
    background: var(--button-blue);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

.cta-button:hover,
.btn-primary:hover {
    background: var(--button-blue-dark);
    color: white;
}

.secondary-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    border: 1px solid var(--border-ui);
    color: var(--text-main);
    background: #fff;
    font-weight: 600;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background: var(--bg-soft);
    color: var(--text-strong);
}

/* ============================= */
/* SERVICIOS HOME */
/* ============================= */

.home-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--border-soft);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================= */
/* PÁGINAS INTERIORES */
/* ============================= */

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-strong);
}

.page-intro {
    max-width: 900px;
    margin-bottom: 2.2rem;
}

.page-intro p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.page-intro p:last-child {
    margin-bottom: 0;
}

.page-intro p:first-child {
    font-size: 1.14rem;
    color: var(--text-main);
}

.page-intro p:last-child {
    font-weight: 500;
    color: var(--text-strong);
}

.page-intro strong {
    color: var(--text-strong);
}

/* ============================= */
/* SERVICIOS PAGE */
/* ============================= */

.services-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.services-content .stream-block {
    margin: 0;
}

.services-content .stream-block-heading {
    margin-top: 1.8rem;
    margin-bottom: 0.35rem;
}

.services-content .stream-block-heading:first-child {
    margin-top: 0.5rem;
}

.services-content .stream-block-heading h2,
.services-content .stream-block-heading h3,
.services-content .stream-block-heading h4 {
    font-family: 'Spectral', Georgia, serif;
    font-weight: 600;
    font-size: 2.1rem;
    line-height: 1.15;
    color: var(--text-strong);
    margin: 0;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #cbd5e1;
    letter-spacing: -0.02em;
}

.services-content .stream-block-paragraph {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 1.5rem 1.7rem;
    box-shadow: var(--shadow-soft);
}

.services-content .stream-block-paragraph p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
}

.services-content .stream-block-paragraph p:last-child {
    margin-bottom: 0;
}

.services-content .stream-block-paragraph ul,
.services-content .stream-block-paragraph ol {
    margin: 0.8rem 0 0 1.4rem;
    padding: 0;
}

.services-content .stream-block-paragraph li {
    margin-bottom: 0.7rem;
    line-height: 1.7;
    color: var(--text-main);
}

.services-content .stream-block-paragraph li::marker {
    color: var(--ojs-blue-deep);
}

/* ============================= */
/* CONTACTO HOME */
/* ============================= */

.home-contact {
    margin-top: 3.5rem;
    padding: 2.8rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--ojs-blue), var(--ojs-blue-deep));
    color: white;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
}

.home-contact h2 {
    color: white;
    margin-bottom: 1rem;
}

.home-contact p {
    max-width: 720px;
    margin: 0 auto 1.5rem auto;
    opacity: 0.92;
    line-height: 1.8;
}

.home-contact__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================= */
/* CONTACT PAGE */
/* ============================= */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2rem;
}

.contact-copy,
.contact-form-card {
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row label {
    font-weight: 600;
}

.form-row input,
.form-row textarea,
.form-row select {
    padding: 0.9rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.form-row textarea {
    resize: vertical;
    min-height: 160px;
}

/* ============================= */
/* REVISTAS / NOSOTROS */
/* ============================= */

.revistas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.revista-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.about-section {
    max-width: 700px;
    line-height: 1.7;
}

/* ============================= */
/* DOI SEARCH */
/* ============================= */

.doi-search-box {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.doi-search-box form {
    display: flex;
    gap: 10px;
    max-width: 600px;
}

.doi-search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.doi-search-box input:focus {
    border-color: var(--button-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.doi-search-box button {
    background: var(--button-blue);
    color: white;
    padding: 0.75rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doi-search-box button:hover {
    background: var(--button-blue-dark);
}

.input-group {
    display: flex;
    max-width: 650px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: white;
}

.input-group input {
    flex: 1;
    padding: 0.9rem 1rem;
    border: none;
    font-size: 0.95rem;
    outline: none;
}

.input-group input:focus {
    background: var(--bg-soft);
}

.input-group button {
    background: var(--button-blue);
    color: white;
    padding: 0 1.4rem;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.input-group button:hover {
    background: var(--button-blue-dark);
}

.input-group:focus-within {
    border-color: var(--button-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ============================= */
/* FOOTER */
/* ============================= */

.site-footer {
    margin-top: 2rem;
    background: #e2e8f0;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    color: var(--text-muted);
}

.site-footer a {
    color: var(--text-main);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
    color: var(--text-main);
}

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

.services-cta {
    margin-top: 1rem;
    padding: 2.6rem 2rem;
    background: linear-gradient(135deg, var(--ojs-blue-deep), var(--text-strong));
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.services-cta h2 {
    color: white;
    font-size: 1.7rem;
    margin-bottom: 0.9rem;
}

.services-cta p {
    max-width: 760px;
    margin: 0 auto 1.5rem auto;
    opacity: 0.92;
    line-height: 1.8;
}

.services-cta a {
    display: inline-block;
    padding: 0.95rem 2rem;
    background: var(--button-blue);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.services-cta a:hover {
    background: var(--button-blue-dark);
    transform: translateY(-2px);
    color: white;
}

/* ============================= */
/* SERVICIOS PREMIUM LAYOUT */
/* ============================= */

.services-page {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.services-hero {
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 0.5rem;
}

.service-card-premium {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.service-card-header {
    padding: 1.4rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border-ui);
    background: linear-gradient(135deg, #f8fafc, #eef4fb);
}

.service-card-header h2 {
    margin: 0;
    font-family: 'Spectral', Georgia, serif;
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-strong);
    letter-spacing: -0.02em;
}

.service-card-body {
    padding: 1.4rem 1.5rem 1.6rem 1.5rem;
}

.service-card-body p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.service-card-body p:last-child {
    margin-bottom: 0;
}

.service-card-body ul,
.service-card-body ol {
    margin: 0.8rem 0 0 1.35rem;
    padding: 0;
}

.service-card-body li {
    margin-bottom: 0.7rem;
    line-height: 1.7;
    color: var(--text-main);
}

.service-card-body li::marker {
    color: var(--button-blue);
}

/* ============================= */
/* HOME BENEFITS */
/* ============================= */

.home-benefits,
.home-services-section {
    margin-top: 3rem;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-kicker {
    font-size: 0.8rem;
    color: var(--button-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.section-lead {
    max-width: 760px;
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-strong);
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.75;
}

/* ============================= */
/* TOOLS SECTION */
/* ============================= */

.tools-section {
    margin: 3rem 0;
}

.tools-section .container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 18px;
}

.tools-section h2 {
    margin-bottom: 0.75rem;
}

.tools-section .section-lead {
    margin-bottom: 1.5rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--bg-soft);
    border: 1px solid var(--border-ui);
    border-radius: 14px;
    padding: 1.5rem;
}

.tool-card h3 {
    margin-bottom: 0.75rem;
}

.tool-card p {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.tool-card .btn {
    display: inline-block;
    padding: 0.65rem 1rem;
    background: var(--ojs-blue-deep);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tool-card .btn:hover {
    background: var(--ojs-blue);
    color: #ffffff;
}

.featured-tool-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

.featured-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.tool-card__tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    background: #e0f2fe;
    color: #0369a1;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* ============================= */
/* NUEVA HOME */
/* ============================= */

.hero-home {
    padding: 4rem 0 3rem;
}

.hero-home__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-home__content {
    max-width: 560px;
}

.hero-home__eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--button-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-home h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-home__lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
}

.hero-home__actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-home__highlights {
    margin-top: 1.25rem;
    list-style: none;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-left: 0;
}

.hero-home__highlights li {
    margin-bottom: 0.45rem;
    position: relative;
    padding-left: 1.1rem;
}

.hero-home__highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--button-blue);
    font-weight: 700;
}

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

.hero-dashboard {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--border-soft);
}

.hero-dashboard__top {
    display: flex;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.hero-dashboard__top span {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
}

.hero-dashboard__label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hero-dashboard__card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    border-radius: 12px;
    background: var(--bg-soft);
    margin-bottom: 0.7rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.hero-dashboard__card:hover {
    border-color: var(--border-soft);
    transform: translateY(-2px);
}

.hero-dashboard__icon {
    width: 36px;
    height: 36px;
    background: var(--button-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hero-dashboard__text h3 {
    font-size: 0.95rem;
    margin: 0 0 0.15rem 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--text-strong);
}

.hero-dashboard__text p {
    font-size: 0.78rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
}

.hero-dashboard__footer {
    margin-top: 0.8rem;
    font-size: 0.78rem;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

.hero-dashboard__status {
    color: #16a34a;
    font-weight: 700;
}

/* ============================= */
/* AUTHORITY STRIP */
/* ============================= */

.authority-strip {
    margin-top: 3rem;
    padding: 1.8rem;
    background: #0f172a;
    color: white;
    border-radius: 16px;
}

.authority-strip__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.authority-strip__item strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.authority-strip__item span {
    font-size: 0.9rem;
    opacity: 0.82;
    line-height: 1.6;
    display: block;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .home-services,
    .revistas-grid,
    .services-grid,
    .benefits-grid,
    .authority-strip__inner {
        grid-template-columns: 1fr;
    }

    .hero-home__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-home__content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .site-header-inner {
        flex-direction: column;
        align-items: center;
    }

    .site-nav-inner {
        justify-content: center;
    }

    main {
        padding: 1.5rem;
    }

    .page-header {
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .services-content .stream-block-heading h2,
    .services-content .stream-block-heading h3,
    .services-content .stream-block-heading h4 {
        font-size: 1.6rem;
    }

    .services-content .stream-block-paragraph {
        padding: 1.1rem 1.2rem;
    }

    .services-content .stream-block-paragraph p,
    .page-intro p {
        font-size: 1rem;
    }

    .service-card-header h2 {
        font-size: 1.5rem;
    }

    .service-card-body {
        padding: 1.15rem 1.2rem 1.3rem 1.2rem;
    }

    .services-cta {
        padding: 2rem 1.2rem;
    }

    .services-cta h2 {
        font-size: 1.4rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .hero-home {
        padding: 2.5rem 0 2rem;
    }

    .hero-home h1 {
        font-size: 2.2rem;
    }

    .hero-home__actions,
    .home-contact__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-home__actions a,
    .home-contact__actions a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .doi-search-box form,
    .input-group {
        flex-direction: column;
    }

    .doi-search-box button,
    .input-group button {
        width: 100%;
        padding: 0.8rem;
    }
}

/* =========================================
   BLOG ARTICLES
   ========================================= */

.blog-article-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 72px;
}

.blog-article-card {
    max-width: 920px;
    margin: 0 auto;
    background: #fbfbfc;
    border: 1px solid #d9dee7;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    padding: 64px 72px 56px;
}

.blog-article-header {
    margin-bottom: 34px;
}

.blog-article-title {
    font-size: 3.1rem;
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--text-strong);
}

.blog-article-date {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin: 0 0 24px;
}

.blog-article-intro {
    max-width: 760px;
    font-size: 1.1rem;
    line-height: 1.85;
    color: #23324a;
    margin-bottom: 26px;
}

.blog-article-intro p {
    margin: 0;
}

.blog-article-content {
    max-width: 760px;
    font-size: 1.12rem;
    line-height: 1.95;
    color: var(--text-main);
}

.blog-article-content p {
    margin: 0 0 1.45rem;
}

.blog-article-content h2 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin: 2.5rem 0 1rem;
    color: var(--text-strong);
}

.blog-article-content h3 {
    font-size: 1.35rem;
    line-height: 1.35;
    margin: 2rem 0 0.85rem;
    color: #15345b;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 0 0 1.5rem 1.4rem;
    padding: 0;
}

.blog-article-content li {
    margin-bottom: 0.65rem;
}

.blog-article-content a {
    color: #1d4f91;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-article-content blockquote {
    margin: 2rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #2f568f;
    background: #f1f5f9;
    color: #334155;
}

.blog-article-content strong {
    color: var(--text-strong);
}

.blog-article-cta {
    margin-top: 3.2rem;
    padding: 34px;
    background: linear-gradient(135deg, #0f2744 0%, #14345c 100%);
    color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(15, 39, 68, 0.18);
}

.blog-article-cta h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1.55rem;
}

.blog-article-cta p {
    margin: 0 0 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

.blog-article-cta-button {
    display: inline-block;
    background: #2f6fed;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
}

.blog-article-cta-button:hover {
    background: #245ed0;
}

@media (max-width: 900px) {
    .blog-article-card {
        padding: 42px 32px 38px;
    }

    .blog-article-title {
        font-size: 2.45rem;
    }

    .blog-article-intro {
        font-size: 1.04rem;
    }

    .blog-article-content {
        font-size: 1.02rem;
        line-height: 1.8;
    }

    .blog-article-content h2 {
        font-size: 1.5rem;
    }

    .blog-article-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .blog-article-wrap {
        padding: 28px 16px 44px;
    }

    .blog-article-card {
        padding: 28px 20px 26px;
        border-radius: 14px;
    }

    .blog-article-title {
        font-size: 2rem;
    }

    .blog-article-intro,
    .blog-article-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .blog-article-cta {
        padding: 24px 20px;
    }
}

/* =========================================
   FORMULARIO - MOBILE FIX
   ========================================= */

@media (max-width: 640px) {

    form {
        width: 100%;
    }

    form input,
    form select,
    form textarea {
        width: 100%;
        font-size: 16px;
        padding: 12px 14px;
        border-radius: 8px;
        box-sizing: border-box;
    }

    form label {
        display: block;
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .form-row,
    .form-group,
    .row {
        display: block !important;
        width: 100%;
    }

    .form-row > div,
    .form-group > div {
        width: 100% !important;
        margin-bottom: 14px;
    }

    .form-row.two-columns {
        display: block;
    }

    textarea {
        min-height: 120px;
        resize: vertical;
    }

    form button,
    form input[type="submit"] {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        border-radius: 8px;
    }
}

/* =========================================
   TOP BAR + HEADER MEJORADO
   ========================================= */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #1f3555;
    color: #ffffff;
}

.top-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.top-bar-inner p {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
}

.top-bar-link {
    display: inline-block;
    background: #ffffff;
    color: #1f3555;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.top-bar-link:hover {
    background: #eef4fb;
    color: #16283f;
}

.site-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-ui);
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
}

.site-brand {
    display: inline-flex;
    align-items: center;
}

.header-cta {
    display: inline-block;
    padding: 0.75rem 1.2rem;
    background: var(--button-blue);
    color: #ffffff;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.header-cta:hover {
    background: var(--button-blue-dark);
    color: #ffffff;
}

.site-nav {
    background: var(--ojs-blue) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.site-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.8rem 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    background: transparent;
}

.site-nav a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    background: var(--ojs-blue-deep);
    color: #dbe7ff !important;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        text-align: center;
    }

    .site-header-inner {
        flex-direction: column;
        align-items: center;
    }

    .header-cta {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   TOP BAR REFINADA SEGÚN MODELO
   ========================================= */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #1f3555;
    color: #ffffff;
    width: 100%;
    box-shadow: none;
}

.top-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.95rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.top-bar-message {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.top-bar-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.top-bar-message p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.top-bar-message strong {
    font-weight: 800;
    color: #ffffff;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.top-bar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
}

.top-bar-link:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    transform: translateY(-1px);
}

.top-bar-link--ghost {
    background: #ffffff;
    color: #111827;
    border-color: #ffffff;
}

.top-bar-link--ghost:hover {
    background: #eef4fb;
    color: #111827;
}

/* pequeño ajuste visual del header para respirar mejor debajo de la barra */

.site-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-ui);
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.15rem 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 0.85rem 1rem;
    }

    .top-bar-message {
        justify-content: center;
    }

    .top-bar-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* =========================================
   HEADER MODERNO SIN BARRA AZUL PESADA
   ========================================= */

.site-header--modern {
    background: #f8fafc;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.site-header-inner--modern {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.35rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-nav-modern {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.site-nav-modern a {
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.site-nav-modern a:hover {
    color: #111827;
    transform: translateY(-1px);
}

.site-nav-modern a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #1f3555;
    transition: width 0.22s ease;
}

.site-nav-modern a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-btn--primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.header-btn--primary:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 74px;
    width: auto;
    max-width: 260px;
    display: block;
}

/* apagar visualmente la barra azul antigua si quedara algo heredado */
.site-nav {
    background: transparent !important;
    box-shadow: none !important;
}

.site-nav-inner {
    display: none !important;
}

/* refinamiento top bar para que converse mejor con el header */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #1f3555;
    color: #ffffff;
    width: 100%;
    box-shadow: none;
}

.top-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.top-bar-message {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.top-bar-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.top-bar-message p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.top-bar-message strong {
    font-weight: 800;
    color: #ffffff;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.top-bar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 0.68rem 1.15rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
}

.top-bar-link:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    transform: translateY(-1px);
}

.top-bar-link--ghost {
    background: #ffffff;
    color: #111827;
    border-color: #ffffff;
}

.top-bar-link--ghost:hover {
    background: #fff7ed;
    color: #111827;
}

@media (max-width: 980px) {
    .site-header-inner--modern {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }

    .site-nav-modern {
        flex-wrap: wrap;
        gap: 1rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 0.9rem 1rem;
    }

    .top-bar-message {
        justify-content: center;
    }

    .top-bar-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .site-header-inner--modern {
        padding: 1.1rem 1rem;
    }

    .site-nav-modern {
        justify-content: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .header-btn--primary {
        width: 100%;
        max-width: 260px;
    }
}

/* =========================================
   FAQ HOME
   ========================================= */

.home-faq {
    margin-top: 3.2rem;
    padding: 0.5rem 0 0;
}

.home-faq__heading {
    text-align: center;
    margin-bottom: 1.8rem;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 1.25rem;
    font-weight: 700;
    color: var(--text-strong);
    position: relative;
    padding-right: 3rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: #f97316;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-answer {
    padding: 0 1.25rem 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* =========================================
   PROMO FINAL HOME
   ========================================= */

.home-promo {
    margin-top: 3.4rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #f97316 0%, #f97316 100%);
    border-radius: 22px;
    padding: 3.2rem 1.5rem;
    color: #ffffff;
    box-shadow: 0 20px 48px rgba(249, 115, 22, 0.18);
}

.home-promo__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.home-promo h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.85rem;
}

.home-promo > .home-promo__inner > p {
    max-width: 760px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
    font-size: 1.05rem;
}

.home-promo__card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    color: var(--text-main);
    border-radius: 18px;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.home-promo__card h3 {
    color: #ea580c;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.home-promo__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1rem;
    text-align: left;
}

.home-promo__features li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 0.96rem;
}

.home-promo__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #16a34a;
    font-weight: 700;
}

.home-promo__actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 180px;
}

.promo-btn--primary {
    background: #f97316;
    color: #ffffff;
}

.promo-btn--primary:hover {
    background: #ea580c;
    color: #ffffff;
    transform: translateY(-1px);
}

.promo-btn--secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-ui);
}

.promo-btn--secondary:hover {
    background: var(--bg-soft);
    color: var(--text-strong);
}

@media (max-width: 768px) {
    .home-promo {
        padding: 2.3rem 1rem;
    }

    .home-promo h2 {
        font-size: 1.65rem;
    }

    .home-promo__features {
        grid-template-columns: 1fr;
    }

    .promo-btn {
        width: 100%;
    }
}

/* =========================================
   FOOTER MEJORADO
   ========================================= */

.site-footer--enhanced {
    margin-top: 2.4rem;
    background: linear-gradient(180deg, #eef3f8 0%, #e5edf6 100%);
    border-radius: 20px;
    padding: 0;
    color: var(--text-main);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.footer-shell {
    padding: 2.2rem 2rem 1.2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr;
    gap: 2rem;
    align-items: start;
}

.footer-brand__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    display: block;
}

.footer-brand__text {
    max-width: 360px;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 0.96rem;
}

.footer-nav h3,
.footer-contact h3,
.footer-tech h3 {
    font-size: 1rem;
    margin-bottom: 0.85rem;
    color: var(--text-strong);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.55rem;
}

.footer-nav a,
.footer-contact a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: #2563eb;
}

.footer-contact p {
    margin-bottom: 0.6rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.footer-contact p:first-of-type {
    color: var(--text-main);
    font-weight: 700;
}

.footer-tech__card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbe4f0;
    border-left: 4px solid var(--ojs-blue);
    border-radius: 10px;
    padding: 1.05rem 1.05rem 1rem;
    box-shadow: none;
}

.footer-tech__link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ojs-blue-deep);
    text-decoration: none;
    font-weight: 800;
    margin-bottom: 0.7rem;
    letter-spacing: 0;
}

.footer-tech__link:hover {
    color: var(--ojs-blue);
}

.footer-wagtail-logo {
    height: 28px;
    width: auto;
    display: block;
}

.footer-tech__card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.93rem;
}

.footer-bottom {
    margin-top: 1.7rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .footer-shell {
        padding: 1.6rem 1.2rem 1rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .footer-brand__text {
        max-width: 100%;
    }

    .footer-tech__link {
        flex-wrap: wrap;
    }
}

/* =============================
   LANGUAGE SWITCH
   ============================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
}

.lang-link {
    text-decoration: none;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    transition: color 0.2s ease;
}

.lang-link:hover {
    color: #2563eb;
}

.lang-separator {
    color: #94a3b8;
    font-weight: 600;
    line-height: 1;
}

/* mover switch al top bar */

.lang-switch--top {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
    padding: 0.55rem 0.8rem;
}

.lang-switch--top .lang-link {
    color: #ffffff;
    font-weight: 700;
}

.lang-switch--top .lang-link:hover {
    color: #ffffff;
    opacity: 0.85;
}

.lang-switch--top .lang-separator {
    color: rgba(255, 255, 255, 0.75);
}

.topbar-text,
.js-topbar-cta {
    transition: opacity 0.3s ease;
}

.contact-form button {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Hover */
.contact-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Click */
.contact-form button:active {
    transform: scale(0.97);
}

/* Full width (opcional pero recomendable) */
.contact-form .form-actions {
    margin-top: 20px;
}

.contact-form .form-actions button {
    width: 100%;
}

/* CONTACT BUTTON FORCE STYLE */
.contact-page .contact-form .form-actions button,
.contact-page .contact-form button[type="submit"] {
    display: inline-block;
    width: 100%;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 26px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.25s ease;
}

.contact-page .contact-form .form-actions button:hover,
.contact-page .contact-form button[type="submit"]:hover {
    background: #1e40af !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35) !important;
}

.contact-page .contact-form .form-actions button:active,
.contact-page .contact-form button[type="submit"]:active {
    transform: scale(0.98);
}

.contact-page .contact-form .form-actions {
    margin-top: 20px;
}

.content-card a,
.page-header-card a {
    display: inline-block;
    margin-top: 10px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* =========================
   MOBILE FIX – ANNOUNCEMENTS
   journals.cl
   ========================= */
@media (max-width: 768px) {
    div[class*="grid"],
    div[class*="cards"],
    div[class*="announcement"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    div[class*="grid"] > *,
    div[class*="cards"] > *,
    div[class*="announcement"] > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 100% !important;
        box-sizing: border-box !important;
    }
}

/* =========================
   PUBLIC EDITORIAL SYSTEM
   journals.cl public pages
   ========================= */

.site-editorial {
    --editorial-ivory: #f8fafc;
    --editorial-paper: #ffffff;
    --editorial-blue: #1f3555;
    --editorial-blue-deep: #16283f;
    --editorial-ink: #252a31;
    --editorial-muted: #5f6872;
    --editorial-line: #dbe4f0;
    --editorial-gold: var(--editorial-blue);
    --editorial-gold-soft: #eef4fb;
    background: var(--editorial-ivory);
    color: var(--editorial-ink);
    max-width: none;
    padding: 0;
}

.site-editorial h1,
.site-editorial h2,
.site-editorial h3,
.site-editorial h4 {
    color: var(--editorial-blue-deep);
    font-family: 'Spectral', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0;
}

.site-editorial a {
    color: var(--editorial-blue);
}

.site-editorial a:hover {
    color: var(--editorial-gold);
}

.site-editorial main {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.site-editorial .top-bar {
    background: var(--editorial-blue) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none !important;
}

.site-editorial .top-bar-icon {
    display: none;
}

.site-editorial .top-bar-message p {
    font-family: 'Spectral', Georgia, serif;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0;
}

.site-editorial .top-bar-link,
.site-editorial .lang-switch--top {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.46) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.site-editorial .top-bar-link {
    color: #ffffff !important;
}

.site-editorial .top-bar-link:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.72) !important;
    color: #ffffff !important;
}

.site-editorial .lang-switch--top {
    background: #ffffff !important;
    border-color: var(--editorial-line) !important;
}

.site-editorial .lang-switch--top .lang-link {
    color: var(--editorial-blue-deep) !important;
}

.site-editorial .lang-switch--top .lang-link:hover,
.site-editorial .lang-switch--top .lang-link.active {
    color: var(--editorial-gold) !important;
}

.site-editorial .lang-switch--top .lang-separator {
    color: var(--editorial-gold) !important;
}

.site-editorial .js-topbar-cta {
    background: var(--editorial-gold-soft) !important;
    border-color: var(--editorial-line) !important;
    color: var(--editorial-blue-deep) !important;
}

.site-editorial .js-topbar-cta:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--editorial-blue-deep) !important;
}

.site-editorial .site-header--modern,
.site-editorial .site-header {
    background: var(--editorial-paper) !important;
    border-bottom: 1px solid var(--editorial-line) !important;
    box-shadow: none !important;
}

.site-editorial .site-header-inner--modern {
    max-width: 1120px;
    padding: 1.15rem 1rem;
}

.site-editorial .site-nav-modern a {
    color: #3f4852;
    font-weight: 600;
}

.site-editorial .site-nav-modern a::after {
    background: var(--editorial-gold);
    height: 1px;
}

.site-editorial .header-btn--primary,
.site-editorial .cta-button,
.site-editorial .btn-primary,
.site-editorial .plans-button,
.site-editorial .payment-action,
.site-editorial .post-payment-action,
.site-editorial .blog-article-cta-button,
.site-editorial .promo-btn--primary,
.site-editorial .services-cta a,
.site-editorial .contact-form button,
.site-editorial form button[type="submit"],
.site-editorial input[type="submit"] {
    background: var(--editorial-blue) !important;
    border: 1px solid var(--editorial-blue) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-weight: 700;
    transform: none !important;
}

.site-editorial .header-btn--primary:hover,
.site-editorial .cta-button:hover,
.site-editorial .btn-primary:hover,
.site-editorial .plans-button:hover,
.site-editorial .payment-action:hover,
.site-editorial .post-payment-action:hover,
.site-editorial .blog-article-cta-button:hover,
.site-editorial .promo-btn--primary:hover,
.site-editorial .services-cta a:hover,
.site-editorial .contact-form button:hover,
.site-editorial form button[type="submit"]:hover,
.site-editorial input[type="submit"]:hover {
    background: var(--editorial-blue-deep) !important;
    color: #ffffff !important;
}

.site-editorial .secondary-button,
.site-editorial .promo-btn--secondary,
.site-editorial button[type="button"],
.site-editorial .plans-button-disabled {
    background: transparent !important;
    border: 1px solid var(--editorial-line) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: var(--editorial-blue) !important;
}

.site-editorial .container,
.site-editorial .page-shell,
.site-editorial .services-page,
.site-editorial .plans-page,
.site-editorial .onboarding-page,
.site-editorial .blog-article-wrap,
.site-editorial .policy-page,
.site-editorial .faq-page,
.site-editorial .support-page,
.site-editorial .account-page {
    max-width: 1120px;
}

.site-editorial .page-shell,
.site-editorial .services-page,
.site-editorial .plans-page,
.site-editorial .onboarding-page,
.site-editorial .blog-article-wrap {
    margin: 0 auto;
    padding: 4rem 1rem;
}

.site-editorial .page-header,
.site-editorial .page-header-card,
.site-editorial .plans-header,
.site-editorial .onboarding-header,
.site-editorial .blog-article-header {
    border-bottom: 1px solid var(--editorial-line);
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    text-align: left;
}

.site-editorial .page-header-card,
.site-editorial .content-card,
.site-editorial .contact-copy,
.site-editorial .contact-form-card,
.site-editorial .service-card,
.site-editorial .service-card-premium,
.site-editorial .services-content .stream-block-paragraph,
.site-editorial .tool-card,
.site-editorial .benefit-card,
.site-editorial .plans-card,
.site-editorial .onboarding-card,
.site-editorial .faq-item,
.site-editorial .blog-article-card,
.site-editorial .doi-card,
.site-editorial .footer-tech__card,
.site-editorial [style*="box-shadow"] {
    background: var(--editorial-paper) !important;
    border: 1px solid var(--editorial-line) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.site-editorial .service-card-header,
.site-editorial .home-promo,
.site-editorial .home-contact,
.site-editorial .services-cta,
.site-editorial .blog-article-cta,
.site-editorial [style*="linear-gradient"],
.site-editorial [style*="radial-gradient"] {
    background: var(--editorial-blue-deep) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.site-editorial .service-card-header h2,
.site-editorial .home-promo h2,
.site-editorial .home-contact h2,
.site-editorial .services-cta h2,
.site-editorial .blog-article-cta h2 {
    color: #ffffff !important;
}

.site-editorial .home-promo p,
.site-editorial .home-contact p,
.site-editorial .services-cta p,
.site-editorial .blog-article-cta p {
    color: rgba(255, 255, 255, 0.82) !important;
}

.site-editorial .plan-featured {
    border-color: var(--editorial-gold) !important;
    box-shadow: none !important;
}

.site-editorial .plan-badge,
.site-editorial .section-kicker,
.site-editorial .tool-card__tag {
    background: var(--editorial-gold-soft) !important;
    border: 1px solid var(--editorial-line);
    border-radius: 4px !important;
    color: var(--editorial-blue-deep) !important;
}

.site-editorial .section-kicker {
    background: transparent !important;
    border: 0;
    color: var(--editorial-gold) !important;
}

.site-editorial .faq-item summary::after,
.site-editorial .service-card-body li::marker,
.site-editorial .services-content .stream-block-paragraph li::marker {
    color: var(--editorial-gold) !important;
}

.site-editorial input,
.site-editorial textarea,
.site-editorial select,
.site-editorial .form-row input,
.site-editorial .form-row textarea,
.site-editorial .form-row select {
    background: #ffffff !important;
    border: 1px solid var(--editorial-line) !important;
    border-radius: 4px !important;
    color: var(--editorial-ink) !important;
    font: inherit;
}

.site-editorial input:focus,
.site-editorial textarea:focus,
.site-editorial select:focus {
    border-color: var(--editorial-gold) !important;
    box-shadow: 0 0 0 3px rgba(31, 53, 85, 0.14) !important;
    outline: none;
}

.site-editorial .choice-group label,
.site-editorial .policy-consent,
.site-editorial .contact-required,
.site-editorial .field-help,
.site-editorial .page-lead,
.site-editorial .page-intro,
.site-editorial .section-lead,
.site-editorial .plans-card p,
.site-editorial .plans-card ul,
.site-editorial .blog-article-content,
.site-editorial .blog-article-intro {
    color: var(--editorial-muted) !important;
}

.site-editorial .citation-box,
.site-editorial [style*="border-left"] {
    background: var(--editorial-paper) !important;
    border-left-color: var(--editorial-gold) !important;
}

.site-editorial .site-footer--enhanced {
    background: var(--editorial-paper) !important;
    border-top: 1px solid var(--editorial-line);
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
}

@media (max-width: 768px) {
    .site-editorial .page-shell,
    .site-editorial .services-page,
    .site-editorial .plans-page,
    .site-editorial .onboarding-page,
    .site-editorial .blog-article-wrap {
        padding: 2.5rem 1rem;
    }

    .site-editorial .contact-layout,
    .site-editorial .services-grid,
    .site-editorial .plans-layout {
        grid-template-columns: 1fr;
    }
}

/* Public editorial enforcement for alternate plan-page classes. */
.site-editorial main .plan-card,
.site-editorial main .plans-info-card,
.site-editorial main .plans-conditions,
.site-editorial main .plans-cta,
.site-editorial main .plans-card,
.site-editorial main .plan-card--featured {
    background: var(--editorial-paper) !important;
    border: 1px solid var(--editorial-line) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    transform: none !important;
}

.site-editorial main .plan-card--featured,
.site-editorial main .plan-featured {
    border-color: var(--editorial-gold) !important;
}

.site-editorial main .plan-badge {
    background: var(--editorial-gold-soft) !important;
    border: 1px solid var(--editorial-line) !important;
    border-radius: 4px !important;
    color: var(--editorial-blue-deep) !important;
}

.site-editorial main .plan-button,
.site-editorial main .plan-button--primary {
    background: var(--editorial-blue) !important;
    border: 1px solid var(--editorial-blue) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.site-editorial main .plans-cta h2 {
    color: var(--editorial-blue-deep) !important;
}

.site-editorial main .plans-cta p {
    color: var(--editorial-muted) !important;
}

/* Public resources/blog index alignment. */
.site-editorial .blog-index-page,
.site-editorial .blog-index,
.site-editorial .resources-page {
    box-sizing: border-box;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100%;
}

.site-editorial .blog-hero,
.site-editorial .blog-featured,
.site-editorial .blog-index-list {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.site-editorial .blog-hero-inner,
.site-editorial .blog-featured-card,
.site-editorial .blog-card {
    box-sizing: border-box;
    max-width: 100%;
}

.site-editorial .blog-featured-card,
.site-editorial .blog-card {
    width: 100%;
}

.site-editorial .blog-article-wrap {
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.site-editorial .blog-article-card {
    max-width: 920px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 640px) {
    .site-editorial .blog-index-page,
    .site-editorial .blog-index,
    .site-editorial .resources-page,
    .site-editorial .blog-article-wrap {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Final public/account editorial visual enforcement. */
.site-editorial .top-bar {
    background: var(--editorial-blue) !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.site-editorial .top-bar-message p,
.site-editorial .topbar-text {
    color: #ffffff !important;
}

.site-editorial .lang-switch--top {
    background: #ffffff !important;
    border: 1px solid var(--editorial-line) !important;
    border-radius: 4px !important;
}

.site-editorial .lang-switch--top .lang-link {
    color: var(--editorial-blue-deep) !important;
}

.site-editorial .lang-switch--top .lang-link.active,
.site-editorial .lang-switch--top .lang-link:hover {
    color: var(--editorial-gold) !important;
}

.site-editorial .lang-switch--top .lang-separator {
    color: var(--editorial-gold) !important;
}

.site-editorial .top-bar-link {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.site-editorial .top-bar-link:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
}

.site-editorial .top-bar-link.js-topbar-cta {
    background: var(--editorial-gold-soft) !important;
    border-color: var(--editorial-line) !important;
    color: var(--editorial-blue-deep) !important;
}

.site-editorial .top-bar-link.js-topbar-cta:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--editorial-blue-deep) !important;
}

.site-editorial .editorial-button--primary,
.site-editorial .home-editorial .editorial-button--primary {
    background: var(--editorial-blue) !important;
    border-color: var(--editorial-blue) !important;
    color: #ffffff !important;
}

.site-editorial .editorial-button--primary:hover,
.site-editorial .home-editorial .editorial-button--primary:hover {
    background: var(--editorial-blue-deep) !important;
    border-color: var(--editorial-blue-deep) !important;
    color: #ffffff !important;
}

.site-editorial .login-shell {
    max-width: 520px !important;
    margin: 4rem auto !important;
    padding: 0 1rem !important;
}

.site-editorial .login-card {
    background: var(--editorial-paper) !important;
    border: 1px solid var(--editorial-line) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    padding: 1.75rem !important;
}

.site-editorial .login-card h1 {
    color: var(--editorial-blue-deep) !important;
    font-family: 'Spectral', Georgia, serif !important;
}

.site-editorial .login-card p {
    color: var(--editorial-muted) !important;
}

.site-editorial .login-field label {
    color: var(--editorial-ink) !important;
}

.site-editorial .login-field input {
    border: 1px solid var(--editorial-line) !important;
    border-radius: 4px !important;
}

.site-editorial .login-action {
    background: var(--editorial-blue) !important;
    border: 1px solid var(--editorial-blue) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.site-editorial .login-action:hover,
.site-editorial .login-action:focus {
    background: var(--editorial-blue-deep) !important;
    color: #ffffff !important;
}

/* Final responsive editorial layout fixes. */
.site-editorial .editorial-container,
.site-editorial .container,
.site-editorial .page-shell,
.site-editorial .services-page,
.site-editorial .plans-page,
.site-editorial .onboarding-page,
.site-editorial .blog-article-wrap,
.site-editorial .blog-index-page,
.site-editorial .resources-page {
    box-sizing: border-box;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.site-editorial .top-bar-inner {
    box-sizing: border-box;
    max-width: 1120px;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.site-editorial .top-bar-message {
    flex: 1 1 280px;
    min-width: 220px;
}

.site-editorial .top-bar-actions {
    flex: 1 1 320px;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.site-editorial .top-bar-link,
.site-editorial .lang-switch--top {
    min-height: 38px;
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap;
}

.site-editorial .site-footer--enhanced {
    width: 100%;
    overflow: hidden;
}

.site-editorial .footer-shell {
    box-sizing: border-box;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1rem 1.1rem;
}

.site-editorial .footer-top {
    grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.8fr) minmax(160px, 0.9fr) minmax(220px, 1fr);
    gap: 1.5rem;
}

.site-editorial .footer-brand,
.site-editorial .footer-nav,
.site-editorial .footer-contact,
.site-editorial .footer-tech {
    min-width: 0;
}

.site-editorial .footer-brand__text {
    max-width: 360px;
}

.site-editorial .footer-tech__card {
    max-width: 100%;
}

@media (max-width: 900px) {
    .site-editorial .top-bar-inner {
        align-items: flex-start;
        padding: 0.65rem 1rem;
    }

    .site-editorial .top-bar-message,
    .site-editorial .top-bar-actions {
        flex: 1 1 100%;
    }

    .site-editorial .top-bar-actions {
        justify-content: flex-start;
    }

    .site-editorial .top-bar-message p {
        font-size: 0.94rem;
        line-height: 1.35;
    }

    .site-editorial .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .site-editorial .editorial-container,
    .site-editorial .container,
    .site-editorial .page-shell,
    .site-editorial .services-page,
    .site-editorial .plans-page,
    .site-editorial .onboarding-page,
    .site-editorial .blog-article-wrap,
    .site-editorial .blog-index-page,
    .site-editorial .resources-page {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .site-editorial .top-bar-inner {
        gap: 0.55rem;
    }

    .site-editorial .top-bar-actions {
        gap: 0.5rem;
    }

    .site-editorial .top-bar-link,
    .site-editorial .lang-switch--top {
        font-size: 0.86rem;
        min-height: 36px;
        padding: 0.45rem 0.65rem !important;
    }

    .site-editorial .footer-shell {
        padding: 1.5rem 1rem 1rem;
    }

    .site-editorial .footer-top {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .site-editorial .footer-brand__text {
        max-width: 100%;
    }
}

/* Subtle editorial modernization refinements. */
.site-editorial section,
.site-editorial .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.site-editorial .editorial-hero {
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.site-editorial .card,
.site-editorial .service-card,
.site-editorial .plan-card {
    padding: 1.6rem;
    border-radius: 6px;
    border: 1px solid rgba(20, 30, 45, 0.12);
}

.site-editorial p {
    line-height: 1.65;
}

.site-editorial h1,
.site-editorial h2 {
    letter-spacing: -0.02em;
}

.site-editorial .btn-primary,
.site-editorial .plan-button--primary {
    padding: 0.75rem 1.4rem;
    border-radius: 4px;
}

.site-editorial .btn-secondary {
    background: var(--editorial-paper);
    border: 1px solid var(--editorial-line);
}

.site-editorial hr,
.site-editorial .divider {
    opacity: 0.4;
}
