/* Shared Spanish editorial front end. Rentas Pasivas and the clinic renderer keep their own designs. */
.editorial-site {
    --editorial-ink: #193342;
    --editorial-muted: #52636c;
    --editorial-accent: #08748b;
    --editorial-paper: #f4f7f7;
    --editorial-line: #dce5e7;
    --salus-search-accent: var(--editorial-accent);
    --salus-search-ink: var(--editorial-ink);
    color: var(--editorial-ink);
}
[data-theme="medicoguia"] .editorial-site { --editorial-ink: #193d35; --editorial-accent: #256750; --editorial-paper: #f3f7f3; --editorial-line: #dce6df; }
[data-theme="masterplus"] .editorial-site { --editorial-ink: #152f44; --editorial-accent: #806128; --editorial-paper: #f8f6f0; --editorial-line: #e4dfd2; }
[data-theme="sinadiccion"] .editorial-site { --editorial-ink: #302844; --editorial-accent: #64458b; --editorial-paper: #f7f4f9; --editorial-line: #e5dfea; }
[data-theme="portalfunerario"] .editorial-site { --editorial-ink: #213e44; --editorial-accent: #38615d; --editorial-paper: #f7f5ef; --editorial-line: #e3e1d7; }
.editorial-site::before { display: none; }
.editorial-site :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--editorial-accent); outline-offset: 4px; }
.editorial-site #site-header { border-bottom: 1px solid var(--editorial-line); box-shadow: none; }
.editorial-site .nav-link { font-size: .8rem; white-space: nowrap; }
.editorial-site .nav-cta-outline { border-width: 1px; white-space: nowrap; }
.editorial-site .brand-wordmark { letter-spacing: -.035em; }
[data-theme="sinadiccion"] .editorial-site a:has(> .brand-sa-mark) { gap: .375rem; }
.editorial-site .cta-glow { box-shadow: none; }
.editorial-site main .cta-glow { background: var(--editorial-accent); color: #fff; }
.editorial-site main > section:not(.editorial-hero) { scroll-margin-top: 6rem; }
.editorial-site main > section:not(.editorial-hero) .wave-divider { display: none; }
.editorial-site main :is(h1, h2, h3) { text-wrap: pretty; }
.editorial-site main :is(h1, h2) { letter-spacing: -.035em; }
.editorial-site main .reveal { opacity: 1; transform: none; }
.editorial-site main .animate-fade-up, .editorial-site main .animate-fade-in { animation: none; opacity: 1; }
.editorial-site .editorial-page-header { background: var(--editorial-paper); border-bottom: 1px solid var(--editorial-line); padding-top: 8.5rem; padding-bottom: 3rem; color: var(--editorial-ink); }
.editorial-site .editorial-page-header > :is(.absolute, img) { display: none; }
.editorial-site .editorial-page-header h1 { color: var(--editorial-ink); line-height: 1.15; font-weight: 800; }
.editorial-site .editorial-page-header :is(p, span, time) { color: var(--editorial-muted); }
.editorial-site .editorial-page-header :is(a, .uppercase, svg) { color: var(--editorial-accent); }
.editorial-site .editorial-page-header + section { background: #fff; }
.editorial-hero { background: var(--editorial-paper); padding: 9rem 2rem 0; border-bottom: 1px solid var(--editorial-line); }
.editorial-hero__grid { max-width: 1216px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-bottom: 3.5rem; }
.editorial-hero__intro { padding-top: 1rem; min-width: 0; }
.editorial-site .editorial-eyebrow { font-family: 'Manrope', sans-serif; font-size: .68rem; font-weight: 800; letter-spacing: .14em; line-height: 1.6; text-transform: uppercase; color: var(--editorial-accent); }
.editorial-hero h1 { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(2.7rem, 4.1vw, 4.25rem); line-height: 1.09; letter-spacing: -.055em; margin: 1.4rem 0; color: var(--editorial-ink); }
.editorial-hero h1 span { color: var(--editorial-accent); }
[data-theme="portalfunerario"] .editorial-hero h1, [data-theme="masterplus"] .editorial-hero h1 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; letter-spacing: -.035em; }
.editorial-hero__description { font-size: 1.2rem; line-height: 1.65; color: var(--editorial-muted); margin-bottom: 1.8rem; max-width: 34rem; }
.editorial-hero .salus-search-hero { max-width: none; }
.editorial-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.editorial-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: .8rem 1.2rem; background: var(--editorial-accent); border: 1px solid var(--editorial-accent); color: #fff; border-radius: 8px; font-family: 'Manrope', sans-serif; font-size: .8rem; font-weight: 700; transition: background .2s, box-shadow .2s; }
.editorial-button:hover { background: var(--editorial-ink); box-shadow: 0 4px 12px #152f4412; }
.editorial-button--secondary { background: transparent; border-color: var(--editorial-line); color: var(--editorial-ink); }
.editorial-button--secondary:hover { background: #fff; }
.editorial-hero__stats { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--editorial-line); }
.editorial-hero__stats > div { display: flex; flex-direction: column-reverse; gap: .15rem; }
.editorial-hero__stats dt { font-size: .78rem; color: var(--editorial-muted); }
.editorial-hero__stats dd { font: 800 1.5rem 'Manrope', sans-serif; color: var(--editorial-ink); font-variant-numeric: tabular-nums; }
.editorial-hero__edition { min-width: 0; }
.editorial-feature { background: #fff; border: 1px solid var(--editorial-line); border-radius: 12px; overflow: hidden; }
.editorial-feature > a { display: block; }
.editorial-feature:focus-within { outline: 3px solid var(--editorial-accent); outline-offset: 4px; }
.editorial-feature__image { aspect-ratio: 16 / 8; background: #eeede8; overflow: hidden; }
.editorial-feature__image img { width: 100%; height: 100%; transition: transform .4s; }
.editorial-feature a:hover img { transform: scale(1.025); }
.editorial-feature__body { padding: 1.5rem 1.75rem; }
.editorial-feature h2 { font: 800 clamp(1.25rem, 1.5vw, 1.6rem)/1.3 'Manrope', sans-serif; color: var(--editorial-ink); margin: .6rem 0; }
.editorial-feature__excerpt { color: var(--editorial-muted); font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.editorial-feature__read { display: flex; justify-content: space-between; color: var(--editorial-accent); margin-top: 1rem; font-size: .85rem; font-weight: 700; }
.editorial-hero__links { margin-top: .75rem; }
.editorial-hero__links > a { display: flex; align-items: center; gap: 1.5rem; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--editorial-line); color: var(--editorial-ink); }
.editorial-hero__links h2 { font: 700 .92rem/1.45 'Manrope', sans-serif; margin-top: .35rem; }
.editorial-hero__links a:hover h2, .editorial-feature a:hover h2 { color: var(--editorial-accent); }
.editorial-hero__note { margin-top: 1.25rem; }
.editorial-hero__note p { color: var(--editorial-muted); font-size: .9rem; line-height: 1.6; margin-top: .4rem; }
.editorial-hero__principles { max-width: 1216px; margin: 0 auto; border-top: 1px solid var(--editorial-line); padding: 1.3rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.editorial-hero__principles li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; color: var(--editorial-muted); }
.editorial-hero__principles svg { flex-shrink: 0; color: var(--editorial-accent); }
.editorial-site .editorial-post-card { border-color: var(--editorial-line); border-radius: 12px; box-shadow: none; height: 100%; }
.editorial-site .editorial-post-card > a { display: flex; flex-direction: column; height: 100%; }
.editorial-site .editorial-post-card > a > div:last-child { padding: 1.5rem; }
.editorial-site .editorial-post-card h3 { font-size: 1.1rem; line-height: 1.5; }
.editorial-site .editorial-post-card :is(time, p, .text-navy-300), .editorial-site .editorial-ranking-card p { color: var(--editorial-muted); }
.editorial-site .editorial-post-card .text-mint-500 { color: var(--editorial-accent); }
.editorial-site .editorial-ranking-card { border-color: var(--editorial-line); border-radius: 10px; box-shadow: none; }
.editorial-site .prose { font-size: 1.15rem; line-height: 1.85; }
.editorial-site .prose h2 { font-weight: 800; line-height: 1.35; }
.editorial-site .prose h3 { line-height: 1.45; }
.editorial-site .editorial-article-header > .relative { padding-top: 0; padding-bottom: 0; }
.editorial-site .editorial-reading-content { max-width: 72ch; margin-inline: auto; }
.editorial-site [data-reading-content] :is(h2, h3) { scroll-margin-top: 7rem; }
.editorial-site .editorial-ranking-header { padding-top: 8rem; padding-bottom: 3rem; background: var(--editorial-paper); border-bottom: 1px solid var(--editorial-line); }
.editorial-site .editorial-ranking-header:not(.editorial-ranking-header--image) > .absolute { display: none; }
.editorial-site .editorial-ranking-header:not(.editorial-ranking-header--image) h1 { color: var(--editorial-ink); }
.editorial-site .editorial-ranking-header:not(.editorial-ranking-header--image) :is(p, span, time) { color: var(--editorial-muted); }
.editorial-site .editorial-ranking-header:not(.editorial-ranking-header--image) a { color: var(--editorial-accent); }
.editorial-site .editorial-ranking-header h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.2; }
.editorial-site .editorial-ranking-header--image :is(p, span, time) { color: #f0f3f5; }
.editorial-site .editorial-ranking-header--image > .absolute:nth-child(2) { background-color: rgba(12, 25, 35, .78) !important; }
.editorial-site .editorial-ranking-header .animate-ping { display: none; }
.editorial-site .editorial-ranking-header a:focus-visible { outline-color: currentColor; }
.editorial-site .editorial-listing { border: 1px solid var(--editorial-line); border-radius: 12px; padding: 1.75rem; background: #fff; box-shadow: 0 4px 20px #19334205; margin-inline: 0; }
.editorial-site .editorial-listing h3 { font-size: 1.35rem; color: var(--editorial-ink); overflow-wrap: anywhere; }
.editorial-site .editorial-listing h3 > span:first-child { color: var(--editorial-accent); font-weight: 700; }
.editorial-site .editorial-listing__location { margin-top: .4rem; font-size: .95rem; color: var(--editorial-muted); }
.editorial-site .editorial-listing .prose { font-size: 1.05rem; line-height: 1.75; color: var(--editorial-ink); }
.editorial-site .editorial-listing :is(.text-navy-400\/50, .text-navy-400\/60, .text-navy-500\/60) { color: var(--editorial-muted); }
.editorial-site .editorial-listing button { min-height: 44px; }
.editorial-site .editorial-form :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: 1rem; color: var(--editorial-ink); border: 1px solid #a7b7be; border-radius: 8px; background: #fff; }
.editorial-site .editorial-form :is(input, textarea)::placeholder { color: #687983; opacity: 1; }
.editorial-site .editorial-form label { color: var(--editorial-ink); }
.editorial-site .editorial-form button[type="submit"] { min-height: 48px; background: var(--editorial-accent); border-radius: 8px; box-shadow: none; }
.editorial-site .editorial-profile { background: var(--editorial-paper); padding-top: 8rem; }
.editorial-site .editorial-profile :is(.editorial-profile__identity, section) { border-color: var(--editorial-line); border-radius: 12px; box-shadow: none; }
.editorial-site .editorial-profile__contact { border-radius: 12px; background: var(--editorial-ink); }
.editorial-site .editorial-profile__identity p { color: var(--editorial-muted); }
.editorial-site .editorial-profile__contact p { color: #e1e7e9; }
.editorial-site .editorial-profile :is(button, a.inline-flex) { min-height: 44px; }
.editorial-site .editorial-contents { border: 1px solid var(--editorial-line); border-radius: 10px; background: var(--editorial-paper); margin-bottom: 2.5rem; color: var(--editorial-ink); }
.editorial-site .editorial-contents summary { padding: 1.1rem 1.25rem; cursor: pointer; font: 700 .9rem/1.5 'Manrope', sans-serif; }
.editorial-site .editorial-contents summary::marker { color: var(--editorial-accent); }
.editorial-site .editorial-contents nav { padding: 0 1.25rem 1rem; }
.editorial-site .editorial-contents li + li { border-top: 1px solid var(--editorial-line); }
.editorial-site .editorial-contents a { display: block; padding: .75rem 0; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.editorial-site .editorial-contents a:hover { color: var(--editorial-accent); text-decoration: underline; text-underline-offset: .2em; }
.editorial-site footer { background: var(--editorial-ink); }
.editorial-site footer > .absolute { display: none; }
.editorial-site footer :is(p, li a) { color: #e1e7e9; }
.editorial-site footer h4, .editorial-site footer .text-white\/40 { color: #bdcbd0; }
@media (min-width: 1280px) and (max-width: 1439px) {
    [data-theme="psicologoplus"] .editorial-site .nav-link { padding-left: .4rem; padding-right: .4rem; font-size: .75rem; }
    [data-theme="psicologoplus"] .editorial-site .brand-wordmark { font-size: 1.25rem; }
}
@media (max-width: 1023px) {
    .editorial-hero { padding: 7rem 1.5rem 0; }
    .editorial-hero__grid { gap: 2rem; }
    .editorial-hero h1 { font-size: 2.8rem; }
    .editorial-hero__description { font-size: 1.1rem; }
    .editorial-feature__body { padding: 1.25rem; }
}
@media (max-width: 767px) {
    .editorial-site .editorial-ranking-header, .editorial-site .editorial-profile { padding-top: 6rem; }
    .editorial-site .editorial-ranking-header { padding-bottom: 2rem; }
    .editorial-site .editorial-listing { padding: 1.25rem; }
    .editorial-site .editorial-listing h3 { font-size: 1.1rem; }
    .editorial-site .editorial-listing > .flex:has(h3) { flex-direction: column; }
    .editorial-site .editorial-listing .prose { font-size: 1rem; }
    .editorial-site .editorial-page-header { padding-top: 6.5rem; padding-bottom: 2rem; }
    .editorial-site .editorial-page-header h1 { font-size: 2.2rem; }
    .editorial-hero { padding: 6rem 1.25rem 0; }
    .editorial-hero__grid { grid-template-columns: minmax(0, 1fr); padding-bottom: 2rem; gap: 2.5rem; }
    .editorial-hero__intro { padding-top: 0; }
    .editorial-hero h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); margin: 1rem 0; }
    .editorial-hero__stats { margin-top: 1.5rem; gap: 1.5rem; }
    .editorial-hero__principles { flex-direction: column; gap: .75rem; }
    .editorial-feature__image { aspect-ratio: 16 / 9; }
    .editorial-site .prose { font-size: 1.075rem; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.editorial-site) { scroll-behavior: auto; }
    .editorial-site *, .editorial-site *::before, .editorial-site *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
