:root {
    --editorial-paper: #f8f2e9;
    --editorial-paper-strong: #f1e5d4;
    --editorial-ink: #211918;
    --editorial-muted: #76645f;
    --editorial-line: rgba(33, 25, 24, 0.18);
    --editorial-accent: #c98695;
    --editorial-accent-strong: #8e4c61;
    --editorial-shadow: 0 24px 60px rgba(16, 10, 14, 0.12);
}

.editorial-builder,
.editorial-public,
.editorial-landing {
    color: var(--color-text-primary, #f5edf4);
}

.editorial-builder__hero,
.editorial-landing__hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.editorial-builder__eyebrow,
.editorial-landing__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f2bfc7;
    margin-bottom: 0.75rem;
}

.editorial-builder__title,
.editorial-landing__hero h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    margin: 0;
    color: #fff5f2;
}

.editorial-builder__lead,
.editorial-landing__hero p {
    max-width: 64ch;
    margin: 0.9rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
}

.editorial-builder__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.editorial-builder__alert {
    margin-bottom: 1rem;
}

.editorial-builder__grid {
    display: grid;
    grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.editorial-builder__form-card,
.editorial-builder__preview-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(23, 15, 26, 0.96), rgba(13, 8, 17, 0.96));
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.editorial-form__section + .editorial-form__section,
.editorial-form__section + .mb-3,
.editorial-form__footer {
    margin-top: 1.5rem;
}

.editorial-form__section h2 {
    margin: 0.2rem 0 0.45rem;
    color: #fff;
    font-size: 1.35rem;
}

.editorial-form__section p {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.65;
}

.editorial-form__kicker,
.editorial-preview__kicker,
.editorial-landing__mini-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8ad3ff;
}

.editorial-form__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.editorial-preview__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.editorial-preview__head h2 {
    margin: 0.2rem 0 0;
    color: #fff;
    font-size: 1.35rem;
}

.editorial-preview__link {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.editorial-preview__link span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.46);
}

.editorial-preview__link a {
    color: #f8d1d7;
    text-decoration: none;
    word-break: break-word;
}

.editorial-preview__tip {
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
    font-size: 0.92rem;
}

.editorial-preview__tip i {
    color: #8ad3ff;
    margin-top: 0.15rem;
}

.editorial-preview__sheet {
    padding: 1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.editorial-sheet {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 18%),
        linear-gradient(135deg, var(--editorial-paper) 0%, #fffaf2 42%, var(--editorial-paper-strong) 100%);
    color: var(--editorial-ink);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: var(--editorial-shadow);
    border: 1px solid rgba(90, 64, 48, 0.08);
    overflow: hidden;
}

.editorial-sheet--preview {
    min-height: 100%;
}

.editorial-sheet__masthead {
    border-bottom: 2px solid var(--editorial-ink);
    padding-bottom: 0.65rem;
    text-align: center;
    margin-bottom: 0.8rem;
}

.editorial-sheet__masthead span {
    display: inline-block;
    font-family: "Times New Roman", Georgia, serif;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--editorial-ink);
}

.editorial-sheet__dateline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--editorial-line);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--editorial-muted);
}

.editorial-sheet__dateline span {
    color: var(--editorial-muted);
}

.editorial-sheet__headline-wrap {
    text-align: center;
    margin-bottom: 1.4rem;
}

.editorial-sheet__headline {
    font-size: clamp(1.4rem, 2.6vw, 2.6rem);
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
    color: var(--editorial-ink);
}

.editorial-sheet__announcement {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.1rem, 5vw, 4.3rem);
    font-weight: 700;
    line-height: 0.96;
    margin: 0.55rem 0 0.45rem;
    color: rgba(33, 25, 24, 0.94);
    text-shadow: none;
}

.editorial-sheet__subheadline {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.1rem, 2.2vw, 1.8rem);
    line-height: 1.25;
    margin: 0;
    color: rgba(33, 25, 24, 0.92);
}

.editorial-sheet__content {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.8fr);
    gap: 1.25rem;
    align-items: stretch;
}

.editorial-sheet__photo {
    margin: 0;
    border: 1px solid rgba(22, 16, 18, 0.12);
    min-height: 420px;
    overflow: hidden;
    background: #e5d8cb;
}

.editorial-sheet__photo img,
.editorial-sheet__photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
}

.editorial-sheet__photo img {
    object-fit: cover;
}

.editorial-sheet__photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--editorial-muted);
    padding: 2rem;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(205, 189, 171, 0.75)),
        repeating-linear-gradient(90deg, rgba(118, 100, 95, 0.08) 0, rgba(118, 100, 95, 0.08) 1px, transparent 1px, transparent 38px);
}

.editorial-sheet__story {
    background: rgba(68, 51, 47, 0.08);
    padding: 1rem 1rem 1.1rem;
    border: 1px solid rgba(42, 31, 29, 0.08);
}

.editorial-sheet__story-kicker {
    display: block;
    margin-bottom: 0.85rem;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--editorial-muted);
}

.editorial-sheet__story-body {
    color: var(--editorial-ink);
}

.editorial-sheet__story-body p {
    margin: 0 0 0.9rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.22rem;
    line-height: 1.42;
    color: var(--editorial-ink);
}

.editorial-sheet__details {
    display: grid;
    gap: 0.7rem;
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--editorial-line);
}

.editorial-sheet__details dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--editorial-muted);
    margin-bottom: 0.18rem;
}

.editorial-sheet__details dd {
    margin: 0;
    font-size: 1rem;
    color: rgba(33, 25, 24, 0.9);
}

.editorial-sheet--preview .editorial-sheet__announcement {
    font-size: clamp(2.3rem, 4vw, 4rem);
}

.editorial-sheet--preview .editorial-sheet__subheadline {
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
}

/* El admin define colores globales para h1/dt/dd; aqui los anulamos
   para que la maqueta editorial conserve tinta oscura real. */
body.admin-body .editorial-builder .editorial-sheet,
body.admin-body .editorial-builder .editorial-sheet p,
body.admin-body .editorial-builder .editorial-sheet span,
body.admin-body .editorial-builder .editorial-sheet div,
body.admin-body .editorial-builder .editorial-sheet dl {
    color: var(--editorial-ink);
}

body.admin-body .editorial-builder .editorial-sheet h1.editorial-sheet__announcement,
body.admin-body .editorial-builder .editorial-sheet .editorial-sheet__announcement {
    color: rgba(33, 25, 24, 0.94) !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

body.admin-body .editorial-builder .editorial-sheet .editorial-sheet__headline,
body.admin-body .editorial-builder .editorial-sheet .editorial-sheet__subheadline,
body.admin-body .editorial-builder .editorial-sheet .editorial-sheet__story-body p,
body.admin-body .editorial-builder .editorial-sheet .editorial-sheet__story-kicker,
body.admin-body .editorial-builder .editorial-sheet .editorial-sheet__dateline span,
body.admin-body .editorial-builder .editorial-sheet .editorial-sheet__masthead span {
    color: var(--editorial-ink) !important;
    opacity: 1 !important;
}

body.admin-body .editorial-builder .editorial-sheet .editorial-sheet__dateline span,
body.admin-body .editorial-builder .editorial-sheet .editorial-sheet__story-kicker,
body.admin-body .editorial-builder .editorial-sheet .editorial-sheet__details dt {
    color: var(--editorial-muted) !important;
}

body.admin-body .editorial-builder .editorial-sheet .editorial-sheet__details dd {
    color: rgba(33, 25, 24, 0.88) !important;
    opacity: 1 !important;
}

/* La landing publica y la vista shareable tambien heredan reglas globales
   del sitio. Subimos especificidad para que el papel conserve contraste real. */
body.editorial-landing-page .editorial-sheet,
body.editorial-public-page .editorial-sheet,
body.editorial-landing-page .editorial-sheet p,
body.editorial-public-page .editorial-sheet p,
body.editorial-landing-page .editorial-sheet span,
body.editorial-public-page .editorial-sheet span,
body.editorial-landing-page .editorial-sheet div,
body.editorial-public-page .editorial-sheet div,
body.editorial-landing-page .editorial-sheet dl,
body.editorial-public-page .editorial-sheet dl {
    color: var(--editorial-ink);
}

body.editorial-landing-page .editorial-sheet h1.editorial-sheet__announcement,
body.editorial-public-page .editorial-sheet h1.editorial-sheet__announcement,
body.editorial-landing-page .editorial-sheet .editorial-sheet__announcement,
body.editorial-public-page .editorial-sheet .editorial-sheet__announcement {
    color: rgba(33, 25, 24, 0.94) !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

body.editorial-landing-page .editorial-sheet .editorial-sheet__headline,
body.editorial-public-page .editorial-sheet .editorial-sheet__headline,
body.editorial-landing-page .editorial-sheet .editorial-sheet__subheadline,
body.editorial-public-page .editorial-sheet .editorial-sheet__subheadline,
body.editorial-landing-page .editorial-sheet .editorial-sheet__story-body p,
body.editorial-public-page .editorial-sheet .editorial-sheet__story-body p,
body.editorial-landing-page .editorial-sheet .editorial-sheet__masthead span,
body.editorial-public-page .editorial-sheet .editorial-sheet__masthead span {
    color: var(--editorial-ink) !important;
    opacity: 1 !important;
}

body.editorial-landing-page .editorial-sheet .editorial-sheet__dateline span,
body.editorial-public-page .editorial-sheet .editorial-sheet__dateline span,
body.editorial-landing-page .editorial-sheet .editorial-sheet__story-kicker,
body.editorial-public-page .editorial-sheet .editorial-sheet__story-kicker,
body.editorial-landing-page .editorial-sheet .editorial-sheet__details dt,
body.editorial-public-page .editorial-sheet .editorial-sheet__details dt {
    color: var(--editorial-muted) !important;
    opacity: 1 !important;
}

body.editorial-landing-page .editorial-sheet .editorial-sheet__details dd,
body.editorial-public-page .editorial-sheet .editorial-sheet__details dd {
    color: rgba(33, 25, 24, 0.88) !important;
    opacity: 1 !important;
}

.editorial-public {
    padding: 2rem 0 4rem;
}

.editorial-public__topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.editorial-public__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
}

.editorial-public__title {
    margin: 0.3rem 0 0;
    color: var(--color-text-primary, #fff);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.editorial-sharebar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.editorial-sharebar__group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.editorial-sharebar__hint {
    width: 100%;
    margin-top: 0.3rem;
    color: var(--color-text-secondary, rgba(255, 255, 255, 0.68));
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: right;
}

.editorial-public__canvas {
    padding: 1.25rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial-public__footer {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 1rem;
}

.editorial-public__card {
    border-radius: 24px;
    padding: 1.35rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial-public__card h2,
.editorial-public__card h3 {
    margin: 0 0 0.55rem;
    color: var(--color-text-primary, #fff);
}

.editorial-public__card p {
    margin: 0;
    color: var(--color-text-secondary, rgba(255, 255, 255, 0.74));
    line-height: 1.7;
}

.editorial-public__card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.editorial-landing {
    padding: 2rem 0 4rem;
}

.editorial-landing__hero {
    padding: 2.25rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(242, 191, 199, 0.22), transparent 28%),
        radial-gradient(circle at bottom left, rgba(138, 211, 255, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(21, 14, 24, 0.98), rgba(14, 9, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

.editorial-landing__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
    gap: 1.5rem;
    align-items: center;
}

.editorial-landing__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.editorial-landing__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.editorial-landing__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.editorial-landing__preview {
    padding: 0.75rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.editorial-landing__preview .editorial-sheet {
    transform: scale(0.9);
    transform-origin: top center;
}

.editorial-landing__preview .editorial-sheet__masthead span {
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: 0.16em;
}

.editorial-landing__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.editorial-landing__card {
    border-radius: 24px;
    padding: 1.3rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial-landing__card h3 {
    color: #fff;
    margin: 0.4rem 0 0.55rem;
}

.editorial-landing__card p,
.editorial-landing__card li {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
}

.editorial-landing__card ul {
    margin: 0;
    padding-left: 1rem;
}

.editorial-landing__cta {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.editorial-landing__cta h2 {
    margin: 0 0 0.35rem;
    color: #fff;
}

.editorial-landing__cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.editorial-home-cta {
    margin-top: 0.85rem;
    color: var(--color-text-secondary, rgba(255, 255, 255, 0.74));
    font-size: 0.95rem;
}

.editorial-home-cta a {
    color: var(--color-accent-gold, #f3dfbf);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .editorial-builder__grid,
    .editorial-landing__hero-grid,
    .editorial-public__footer {
        grid-template-columns: 1fr;
    }

    .editorial-builder__actions,
    .editorial-sharebar {
        justify-content: flex-start;
    }

    .editorial-sharebar__hint {
        text-align: left;
    }
}

@media (max-width: 991.98px) {
    .editorial-sheet {
        padding: 1.4rem;
    }

    .editorial-sheet__content,
    .editorial-landing__grid {
        grid-template-columns: 1fr;
    }

    .editorial-sheet__photo,
    .editorial-sheet__photo img,
    .editorial-sheet__photo-placeholder {
        min-height: 320px;
    }
}

@media (max-width: 767.98px) {
    .editorial-builder__hero,
    .editorial-landing__hero,
    .editorial-public__topbar,
    .editorial-landing__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .editorial-public,
    .editorial-landing {
        padding-top: 1rem;
    }

    .editorial-sheet {
        border-radius: 20px;
        padding: 1rem;
    }

    .editorial-sheet__masthead span {
        letter-spacing: 0.12em;
    }

    .editorial-sheet__dateline {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .editorial-preview__head {
        flex-direction: column;
    }

    .editorial-landing__preview {
        padding: 0.45rem;
    }

    .editorial-landing__preview .editorial-sheet {
        transform: none;
    }

    .editorial-landing__preview .editorial-sheet__masthead span {
        font-size: clamp(1.5rem, 11vw, 2.3rem);
        letter-spacing: 0.08em;
    }

    .editorial-landing__preview .editorial-sheet__headline {
        font-size: clamp(1.15rem, 7vw, 1.8rem);
    }

    .editorial-landing__preview .editorial-sheet__announcement {
        font-size: clamp(1.7rem, 10vw, 2.8rem);
    }

    .editorial-landing__preview .editorial-sheet__subheadline {
        font-size: clamp(1rem, 5vw, 1.35rem);
    }
}

@media print {
    body {
        background: #fff !important;
    }

    .editorial-public__topbar,
    .editorial-public__footer,
    .scroll-top-btn,
    .cookie-banner {
        display: none !important;
    }

    .editorial-public__canvas {
        padding: 0;
        background: transparent;
        border: 0;
    }

    .editorial-sheet {
        box-shadow: none;
        border-radius: 0;
        border: 0;
        padding: 1rem 0;
    }
}
