/* ============================================================
   Newsletter Infolenca — formulario en notas y páginas públicas
   ============================================================ */

.ifx-newsletter {
    --nl-ink: #13224f;
    --nl-ink-soft: #344054;
    --nl-muted: #667085;
    --nl-accent: #c8102e;
    --nl-surface: #fbf8f1;
    --nl-card: #ffffff;
    --nl-line: #e4ddcf;
    --nl-soft: #f3ede1;
    box-sizing: border-box;
    position: relative;
    margin: 30px 0 0;
    padding: 24px 24px 20px;
    border: 1px solid var(--nl-line);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(200, 16, 46, .055), rgba(200, 16, 46, 0) 110px),
        var(--nl-surface);
    color: var(--nl-ink-soft);
    overflow: hidden;
}

.ifx-newsletter::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #13224f 0 44%, #c8102e 44% 62%, #c8a24a 62% 100%);
}

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

.ifx-newsletter__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ifx-newsletter__kicker {
    display: block;
    margin: 0 0 5px;
    color: var(--nl-accent);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.ifx-newsletter__title {
    margin: 0;
    color: var(--nl-ink);
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.12;
}

.ifx-newsletter__dek {
    margin: 8px 0 0;
    max-width: 560px;
    color: var(--nl-muted);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .88rem;
    line-height: 1.55;
}

.ifx-newsletter__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: var(--nl-ink);
    color: #ffffff;
}

.ifx-newsletter__form {
    margin-top: 18px;
}

.ifx-newsletter__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(175px, .6fr) auto;
    gap: 10px;
    align-items: end;
}

.ifx-newsletter__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.ifx-newsletter__field label,
.ifx-newsletter__label {
    color: var(--nl-ink-soft);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.ifx-newsletter input[type="email"],
.ifx-newsletter input[type="text"],
.ifx-newsletter select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--nl-line);
    border-radius: 8px;
    background: var(--nl-card);
    color: var(--nl-ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .84rem;
    line-height: 1.2;
    outline: none;
}

.ifx-newsletter select {
    padding-right: 30px;
}

.ifx-newsletter input[type="email"]:focus,
.ifx-newsletter input[type="text"]:focus,
.ifx-newsletter select:focus {
    border-color: var(--nl-ink);
    box-shadow: 0 0 0 3px rgba(19, 34, 79, .12);
}

.ifx-newsletter__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid var(--nl-ink);
    border-radius: 8px;
    background: var(--nl-ink);
    color: #ffffff;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .78rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.ifx-newsletter__submit:hover {
    background: #0c1738;
    border-color: #0c1738;
    color: #ffffff;
    transform: translateY(-1px);
}

.ifx-newsletter__details {
    margin-top: 12px;
    border-top: 1px solid var(--nl-line);
    padding-top: 10px;
}

.ifx-newsletter__details summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--nl-ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .73rem;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.ifx-newsletter__details summary::-webkit-details-marker {
    display: none;
}

.ifx-newsletter__details summary::before {
    content: "+";
    display: inline-grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1px solid var(--nl-line);
    border-radius: 50%;
    color: var(--nl-accent);
    font-size: .85rem;
    line-height: 1;
}

.ifx-newsletter__details[open] summary::before {
    content: "−";
}

.ifx-newsletter__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.ifx-newsletter__topic {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    cursor: pointer;
}

.ifx-newsletter__topic input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ifx-newsletter__topic span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--nl-line);
    border-radius: 999px;
    background: var(--nl-card);
    color: var(--nl-muted);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .7rem;
    font-weight: 650;
    line-height: 1;
}

.ifx-newsletter__topic input:checked + span {
    border-color: var(--nl-ink);
    background: var(--nl-ink);
    color: #ffffff;
}

.ifx-newsletter__topic input:focus-visible + span {
    outline: 2px solid var(--nl-accent);
    outline-offset: 2px;
}

.ifx-newsletter__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 0;
    color: var(--nl-muted);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .7rem;
    line-height: 1.5;
}

.ifx-newsletter__consent input {
    width: 15px;
    height: 15px;
    margin: 1px 0 0;
    flex: 0 0 15px;
    accent-color: var(--nl-ink);
}

.ifx-newsletter__consent a {
    color: var(--nl-ink);
    text-decoration: underline;
}

.ifx-newsletter__note {
    margin: 8px 0 0;
    color: var(--nl-muted);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .67rem;
    line-height: 1.45;
}

.ifx-newsletter__hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ifx-newsletter--edition {
    --nl-ink: #163b2f;
    --nl-ink-soft: #34443b;
    --nl-muted: #6b6a5d;
    --nl-accent: #9b1c1c;
    --nl-surface: #fbf7ee;
    --nl-card: #fffdf8;
    --nl-line: #ddd3c1;
    --nl-soft: #f2ecdf;
    margin: 30px auto 0;
    width: min(760px, 94%);
}

.ifx-newsletter--page {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.ifx-newsletter--page::before {
    display: none;
}

[data-theme="dark"] .ifx-newsletter {
    --nl-ink: #f4f7fb;
    --nl-ink-soft: #e4e7ec;
    --nl-muted: #9aa5b8;
    --nl-surface: #161d2b;
    --nl-card: #0f1724;
    --nl-line: #2d3a4f;
    --nl-soft: #1d2636;
    border-color: var(--nl-line);
    background:
        linear-gradient(180deg, rgba(200, 16, 46, .10), rgba(200, 16, 46, 0) 110px),
        var(--nl-surface);
}

[data-theme="dark"] .ifx-newsletter__title,
[data-theme="dark"] .ifx-newsletter input[type="email"],
[data-theme="dark"] .ifx-newsletter input[type="text"],
[data-theme="dark"] .ifx-newsletter select {
    color: #f4f7fb;
}

[data-theme="dark"] .ifx-newsletter__submit {
    background: #f4f7fb;
    border-color: #f4f7fb;
    color: #13224f;
}

[data-theme="dark"] .ifx-newsletter__submit:hover {
    background: #dfe6f2;
    border-color: #dfe6f2;
    color: #13224f;
}

[data-theme="dark"] .ifx-newsletter__topic input:checked + span {
    background: #f4f7fb;
    border-color: #f4f7fb;
    color: #13224f;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ifx-newsletter {
        --nl-ink: #f4f7fb;
        --nl-ink-soft: #e4e7ec;
        --nl-muted: #9aa5b8;
        --nl-surface: #161d2b;
        --nl-card: #0f1724;
        --nl-line: #2d3a4f;
        --nl-soft: #1d2636;
        border-color: var(--nl-line);
    }
    :root:not([data-theme="light"]) .ifx-newsletter__title,
    :root:not([data-theme="light"]) .ifx-newsletter input,
    :root:not([data-theme="light"]) .ifx-newsletter select {
        color: #f4f7fb;
    }
}

@media (max-width: 700px) {
    .ifx-newsletter {
        padding: 20px 18px 17px;
        border-radius: 12px;
    }
    .ifx-newsletter__row {
        grid-template-columns: minmax(0, 1fr);
    }
    .ifx-newsletter__submit {
        width: 100%;
        min-height: 44px;
    }
    .ifx-newsletter__mark {
        display: none;
    }
}

/* Página pública */
.nl-page {
    --nl-ink: #13224f;
    --nl-ink-soft: #344054;
    --nl-muted: #667085;
    --nl-accent: #c8102e;
    --nl-surface: #f3efe6;
    --nl-card: #fffdf8;
    --nl-line: #e2dacb;
    box-sizing: border-box;
    min-height: 70vh;
    padding: clamp(28px, 5vw, 58px) 20px clamp(44px, 6vw, 76px);
    background: var(--nl-surface);
    color: var(--nl-ink-soft);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.nl-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.nl-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: clamp(26px, 5vw, 58px);
    align-items: start;
    padding-top: 8px;
}

.nl-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--nl-accent);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.nl-kicker::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--nl-accent);
}

.nl-title {
    margin: 0;
    max-width: 620px;
    color: var(--nl-ink);
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-size: clamp(2.35rem, 5.2vw, 4.1rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.nl-dek {
    margin: 17px 0 0;
    max-width: 560px;
    color: var(--nl-muted);
    font-size: clamp(.95rem, 1.35vw, 1.08rem);
    line-height: 1.65;
}

.nl-hero__points {
    display: grid;
    gap: 9px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.nl-hero__points li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--nl-ink-soft);
    font-size: .84rem;
    line-height: 1.5;
}

.nl-hero__points svg {
    flex: 0 0 16px;
    margin-top: 2px;
    color: #2e7d5b;
}

.nl-form-card {
    padding: clamp(22px, 3.3vw, 34px);
    border: 1px solid var(--nl-line);
    border-radius: 16px;
    background: var(--nl-card);
    box-shadow: 0 22px 60px rgba(19, 34, 79, .10);
}

.nl-form-card .ifx-newsletter__row {
    grid-template-columns: minmax(0, 1fr);
}

.nl-form-card .ifx-newsletter__submit {
    width: 100%;
    min-height: 46px;
    font-size: .85rem;
}

.nl-form-card .ifx-newsletter__title {
    font-size: clamp(1.55rem, 2.8vw, 2rem);
}

.nl-form-card .ifx-newsletter__topics {
    max-height: 190px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
}

.nl-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: clamp(32px, 5vw, 52px) 0 0;
}

.nl-benefit {
    padding: 20px;
    border: 1px solid var(--nl-line);
    border-radius: 12px;
    background: rgba(255, 253, 248, .55);
}

.nl-benefit__num {
    display: block;
    margin-bottom: 8px;
    color: var(--nl-accent);
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.nl-benefit h2 {
    margin: 0 0 5px;
    color: var(--nl-ink);
    font-family: Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.2;
}

.nl-benefit p {
    margin: 0;
    color: var(--nl-muted);
    font-size: .79rem;
    line-height: 1.55;
}

.nl-manage {
    width: min(760px, 100%);
    margin: 0 auto;
}

.nl-panel {
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--nl-line);
    border-radius: 16px;
    background: var(--nl-card);
    box-shadow: 0 18px 50px rgba(19, 34, 79, .09);
}

.nl-panel h1 {
    margin: 0 0 8px;
    color: var(--nl-ink);
    font-family: Georgia, serif;
    font-size: clamp(1.8rem, 3.7vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.nl-panel p {
    margin: 0 0 14px;
    color: var(--nl-muted);
    font-size: .9rem;
    line-height: 1.6;
}

.nl-panel .ifx-newsletter__form {
    margin-top: 20px;
}

.nl-panel .ifx-newsletter__row {
    grid-template-columns: minmax(0, 1fr);
}

.nl-panel .ifx-newsletter__submit {
    width: 100%;
    min-height: 46px;
}

.nl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.nl-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--nl-line);
    border-radius: 999px;
    background: transparent;
    color: var(--nl-ink);
    font-size: .75rem;
    font-weight: 800;
    text-decoration: none;
}

.nl-link:hover {
    border-color: var(--nl-ink);
}

.nl-link--danger {
    color: #9b1c1c;
}

.nl-alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--nl-line);
    border-radius: 9px;
    background: #f7f3e9;
    color: var(--nl-ink-soft);
    font-size: .84rem;
    line-height: 1.55;
}

.nl-alert--success {
    border-color: #b7d8c6;
    background: #eef8f1;
    color: #1d5f3f;
}

.nl-alert--error {
    border-color: #e7b8b8;
    background: #fff3f3;
    color: #8a1f1f;
}

.nl-status {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--nl-line);
    color: var(--nl-ink-soft);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.nl-status--ok {
    background: #e2f2e8;
    color: #1d5f3f;
}

.nl-status--pending {
    background: #fbf0d7;
    color: #815b11;
}

.nl-status--off {
    background: #f3e1e1;
    color: #8a1f1f;
}

.nl-footnote {
    margin: 18px 0 0;
    color: var(--nl-muted);
    font-size: .72rem;
    line-height: 1.55;
    text-align: center;
}

.nl-footnote a {
    color: var(--nl-ink);
    text-decoration: underline;
}

[data-theme="dark"] .nl-page {
    --nl-ink: #f4f7fb;
    --nl-ink-soft: #d7deea;
    --nl-muted: #9aa5b8;
    --nl-surface: #0d1117;
    --nl-card: #161d2b;
    --nl-line: #2d3a4f;
}

[data-theme="dark"] .nl-form-card,
[data-theme="dark"] .nl-panel {
    box-shadow: 0 22px 60px rgba(0, 0, 0, .32);
}

[data-theme="dark"] .nl-benefit {
    background: rgba(22, 29, 43, .7);
}

[data-theme="dark"] .nl-alert {
    background: #1d2636;
    color: #d7deea;
}

[data-theme="dark"] .nl-alert--success {
    background: #12291d;
    color: #b9e7c8;
}

[data-theme="dark"] .nl-alert--error {
    background: #2a1414;
    color: #f2b8b8;
}

[data-theme="dark"] .nl-status {
    background: #2d3a4f;
    color: #d7deea;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nl-page {
        --nl-ink: #f4f7fb;
        --nl-ink-soft: #d7deea;
        --nl-muted: #9aa5b8;
        --nl-surface: #0d1117;
        --nl-card: #161d2b;
        --nl-line: #2d3a4f;
    }
}

@media (max-width: 900px) {
    .nl-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }
    .nl-form-card {
        max-width: 620px;
    }
    .nl-benefits {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .nl-page {
        padding: 24px 14px 40px;
    }
    .nl-title {
        font-size: clamp(2.1rem, 11vw, 2.8rem);
    }
    .nl-panel,
    .nl-form-card {
        padding: 18px;
        border-radius: 12px;
    }
}

/* ============================================================
   Formulario editorial dentro de las notas
   ============================================================ */
.ifx-newsletter--inline {
    display: grid;
    grid-template-columns: minmax(236px, .82fr) minmax(0, 1.18fr);
    gap: 0;
    padding: 0;
    border-radius: 18px;
    background: #fffdf8;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .10);
    overflow: hidden;
}

.ifx-newsletter--inline .ifx-newsletter__intro {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px 24px 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(200, 162, 74, .20), transparent 42%),
        linear-gradient(155deg, #182a5c 0%, #101c42 100%);
    color: #ffffff;
    overflow: hidden;
}

.ifx-newsletter--inline .ifx-newsletter__intro::after {
    content: "";
    position: absolute;
    right: -58px;
    bottom: -62px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255, 255, 255, .035);
    pointer-events: none;
}

.ifx-newsletter__intro-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ifx-newsletter--inline .ifx-newsletter__kicker {
    margin: 0;
    color: #e7c27a;
    font-size: .62rem;
    letter-spacing: .17em;
}

.ifx-newsletter__seal {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    color: #e7c27a;
}

.ifx-newsletter--inline .ifx-newsletter__title {
    max-width: 260px;
    margin: 0;
    color: #fffdf8;
    font-size: clamp(1.45rem, 2.4vw, 1.7rem);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.ifx-newsletter--inline .ifx-newsletter__dek {
    max-width: 255px;
    margin: 10px 0 0;
    color: rgba(255, 253, 248, .76);
    font-size: .8rem;
    line-height: 1.5;
}

.ifx-newsletter__benefits {
    display: grid;
    gap: 7px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.ifx-newsletter__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: rgba(255, 253, 248, .82);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.4;
}

.ifx-newsletter__benefits svg {
    margin-top: 1px;
    flex: 0 0 14px;
    color: #8fd3b5;
}

.ifx-newsletter__intro-note {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 253, 248, .48);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .68rem;
    font-style: italic;
    line-height: 1.4;
}

.ifx-newsletter--inline .ifx-newsletter__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 22px 24px 20px;
    background: #fbf8f1;
}

.ifx-newsletter__panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ifx-newsletter__panel-kicker {
    display: block;
    color: var(--nl-accent, #c8102e);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .6rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ifx-newsletter__panel-top p {
    margin: 4px 0 0;
    color: var(--nl-muted, #667085);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .72rem;
    line-height: 1.4;
}

.ifx-newsletter__panel-badge {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 0 8px;
    border: 1px solid var(--nl-line, #e4ddcf);
    border-radius: 999px;
    background: #fff;
    color: var(--nl-muted, #667085);
    font-size: .57rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ifx-newsletter__fields {
    display: grid;
    gap: 11px;
    min-width: 0;
}

.ifx-newsletter__field > label > span {
    color: var(--nl-muted, #667085);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.ifx-newsletter__email-field {
    position: relative;
    min-width: 0;
}

.ifx-newsletter__email-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    margin-top: -8.5px;
    color: #98a2b3;
    pointer-events: none;
}

.ifx-newsletter__email-field input {
    padding-left: 37px !important;
}

.ifx-newsletter__frequencies {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ifx-newsletter__frequencies legend {
    margin: 0 0 5px;
    padding: 0;
    color: var(--nl-ink-soft, #344054);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.ifx-newsletter__freq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

.ifx-newsletter__freq {
    position: relative;
    display: flex;
    min-width: 0;
    cursor: pointer;
}

.ifx-newsletter__freq input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ifx-newsletter__freq span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 33px;
    padding: 0 4px;
    border: 1px solid var(--nl-line, #e4ddcf);
    border-radius: 8px;
    background: var(--nl-card, #fff);
    color: var(--nl-muted, #667085);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .64rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ifx-newsletter__freq input:checked + span {
    border-color: var(--nl-ink, #13224f);
    background: var(--nl-ink, #13224f);
    color: #fff;
}

.ifx-newsletter__freq input:focus-visible + span {
    outline: 3px solid rgba(32, 52, 115, .18);
    outline-offset: 2px;
}

.ifx-newsletter--inline .ifx-newsletter__form {
    margin-top: 0;
}

.ifx-newsletter--inline .ifx-newsletter__submit,
.ifx-newsletter--page .ifx-newsletter__submit {
    width: 100%;
    min-height: 43px;
    justify-content: center;
    margin-top: 2px;
    font-size: .78rem;
}

.ifx-newsletter--inline .ifx-newsletter__details {
    margin-top: 0;
    border-top: 1px solid var(--nl-line, #e4ddcf);
}

.ifx-newsletter--inline .ifx-newsletter__consent {
    margin-top: 1px;
}

.ifx-newsletter__note--center {
    margin-top: 1px;
    text-align: center;
    font-size: .62rem;
}

.ifx-newsletter--page .ifx-newsletter__fields {
    gap: 12px;
}

.ifx-newsletter--page .ifx-newsletter__freq-grid {
    max-width: 380px;
}

.ifx-newsletter--page .ifx-newsletter__submit {
    max-width: 100%;
}

/* Edición */
.ifx-newsletter--inline.ifx-newsletter--edition .ifx-newsletter__intro {
    background:
        radial-gradient(circle at 100% 0%, rgba(200, 162, 74, .16), transparent 42%),
        linear-gradient(155deg, #1b4a3a 0%, #113327 100%);
}

.ifx-newsletter--inline.ifx-newsletter--edition .ifx-newsletter__panel {
    background: #fbf7ee;
}

/* Oscuro */
[data-theme="dark"] .ifx-newsletter--inline {
    background: #161d2b;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

[data-theme="dark"] .ifx-newsletter--inline .ifx-newsletter__intro {
    background:
        radial-gradient(circle at 100% 0%, rgba(200, 162, 74, .15), transparent 42%),
        linear-gradient(155deg, #101b38 0%, #0a1228 100%);
}

[data-theme="dark"] .ifx-newsletter--inline .ifx-newsletter__panel {
    background: #161d2b;
}

[data-theme="dark"] .ifx-newsletter__panel-badge {
    background: #0f1724;
    border-color: var(--nl-line);
    color: #c4ccda;
}

[data-theme="dark"] .ifx-newsletter__freq input:checked + span {
    background: #f4f7fb;
    border-color: #f4f7fb;
    color: #13224f;
}

@media (max-width: 720px) {
    .ifx-newsletter--inline {
        grid-template-columns: minmax(0, 1fr);
    }
    .ifx-newsletter--inline .ifx-newsletter__intro {
        padding: 21px 19px 18px;
    }
    .ifx-newsletter--inline .ifx-newsletter__title {
        max-width: none;
        font-size: 1.55rem;
    }
    .ifx-newsletter--inline .ifx-newsletter__dek {
        max-width: 360px;
    }
    .ifx-newsletter__benefits {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 12px;
    }
    .ifx-newsletter__intro-note {
        margin-top: 12px;
        padding-top: 12px;
    }
    .ifx-newsletter--inline .ifx-newsletter__panel {
        padding: 18px 17px 17px;
    }
}

@media (max-width: 390px) {
    .ifx-newsletter__freq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ifx-newsletter__freq span {
        min-height: 32px;
    }
    .ifx-newsletter__panel-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}
