.rd-difunde {
    --rb-violet: #0B4D66;
    --rb-blue: #1299A6;
    --rb-sky: #38D6CF;
    --rb-slate: #0E6E77;
    --rb-orange: #FF9900;
    --rb-page: #F3FBFB;
    --rb-blue-soft: #EAFBFB;
    --rb-violet-soft: #EEF9FA;
    --rb-orange-soft: #FFF7E8;
    --rb-card: #FFFFFF;
    --rd-text: #132026;
    --rd-muted: #5e6f76;
    --rd-border: #d7ebee;
    --rd-aqua: #34d7d2;
    --rd-aqua-dark: #0d7f8c;
    --rd-aqua-soft: #dcfbf7;
    color: var(--rd-text);
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 56px;
    font-family: inherit;
}
.rd-difunde *, .rd-difunde *::before, .rd-difunde *::after { box-sizing: border-box; }
.rd-difunde a { color: var(--rb-blue); }
.rd-difunde__hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b4d66, #0fa2ac 58%, #53ddd4);
    color: #fff;
    border-radius: 18px;
    padding: clamp(24px, 5vw, 52px);
    box-shadow: 0 16px 42px rgba(27,4,109,.16);
}
.rd-difunde__hero::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -100px; background: rgba(131, 244, 232, .25); }
.rd-difunde__hero h1 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; max-width: 900px; }
.rd-difunde__hero p { margin: 0; max-width: 780px; font-size: 16px; opacity: .93; }
.rd-difunde__eyebrow { font-size: 12px; letter-spacing: .16em; font-weight: 800; }
.rd-difunde__notice, .rd-difunde__login-hint { margin: 18px 0; padding: 13px 15px; border: 1px solid var(--rd-border); border-radius: 10px; background: var(--rb-violet-soft); }
.rd-difunde__search { display: flex; gap: 10px; margin: 22px 0 14px; }
.rd-difunde__search input { flex: 1; min-width: 0; padding: 13px 15px; border: 1px solid var(--rd-border); border-radius: 10px; font-size: 16px; background: #fff; }
.rd-difunde__search button, .rd-difunde__primary { border: 0; border-radius: 10px; background: var(--rd-aqua-dark); color: #fff !important; font-weight: 700; padding: 12px 20px; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
.rd-difunde__search button:hover, .rd-difunde__primary:hover { background: #09606a; }
.rd-difunde__categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.rd-difunde__categories a { display: inline-flex; color: #333; background: var(--rb-blue-soft); border: 1px solid #d7e7f5; border-radius: 999px; padding: 8px 13px; text-decoration: none; }
.rd-difunde__categories a.is-active { background: var(--rd-aqua-dark); border-color: var(--rd-aqua-dark); color: #fff; }
.rd-difunde__composer { margin: 20px 0 28px; border: 1px solid var(--rd-border); border-radius: 14px; background: var(--rb-card); overflow: hidden; }
.rd-difunde__composer summary { cursor: pointer; font-weight: 800; padding: 15px 18px; background: var(--rb-violet-soft); color: var(--rd-aqua-dark); }
.rd-difunde__composer form { padding: 18px; display: grid; gap: 14px; }
.rd-difunde__composer label { display: grid; gap: 7px; font-weight: 700; }
.rd-difunde__composer input, .rd-difunde__composer textarea, .rd-difunde__composer select { width: 100%; border: 1px solid var(--rd-border); border-radius: 9px; padding: 11px 12px; background: #fff; color: #111; font: inherit; }
.rd-difunde__composer small { color: var(--rd-muted); font-weight: 400; }
.rd-difunde__form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rd-difunde__or { display: flex; align-items: center; gap: 12px; color: var(--rd-muted); }
.rd-difunde__or::before, .rd-difunde__or::after { content: ''; height: 1px; background: var(--rd-border); flex: 1; }
.rd-difunde__check { grid-template-columns: auto 1fr !important; align-items: start; background: var(--rb-blue-soft); padding: 12px; border-radius: 10px; }
.rd-difunde__check input { width: auto; margin-top: 3px; }
.rd-difunde__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rd-difunde__grid--profile { grid-template-columns: repeat(3, minmax(0,1fr)); }
.rd-difunde-card { background: var(--rb-card); border: 1px solid var(--rd-border); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(27,4,109,.05); }
.rd-difunde-card__media { aspect-ratio: 16/9; display: grid; place-items: center; position: relative; overflow: hidden; background: #17151d; text-decoration: none; }
.rd-difunde-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.rd-difunde-card:hover .rd-difunde-card__media img { transform: scale(1.025); }
.rd-difunde-card__placeholder { color: rgba(255,255,255,.22); font-size: 56px; }
.rd-difunde-card__play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 52px; height: 52px; padding-left: 4px; border-radius: 50%; background: rgba(13,127,140,.94); color: #fff; }
.rd-difunde-card__body { padding: 15px; }
.rd-difunde-card__author { display: flex; align-items: center; gap: 8px; color: var(--rd-muted) !important; font-size: 13px; text-decoration: none; }
.rd-difunde-card__avatar { border-radius: 2px; object-fit: cover; }
.rd-difunde-card h2 { margin: 10px 0 7px; font-size: 19px; line-height: 1.25; }
.rd-difunde-card h2 a { color: var(--rd-text); text-decoration: none; }
.rd-difunde-card p { margin: 0 0 12px; color: #444; font-size: 14px; line-height: 1.45; }
.rd-difunde-card__meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--rd-muted); font-size: 12px; }
.rd-difunde-card__linked { color: var(--rb-blue); font-weight: 700; }
.rd-difunde-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rd-difunde-card__tags span { font-size: 11px; padding: 5px 8px; background: var(--rb-violet-soft); color: var(--rb-violet); border-radius: 999px; }
.rd-difunde__empty { grid-column: 1 / -1; display: grid; gap: 5px; text-align: center; padding: 48px 20px; border: 1px dashed var(--rd-border); border-radius: 14px; color: var(--rd-muted); }
.rd-difunde__empty strong { color: var(--rd-text); font-size: 18px; }
.rd-difunde-profile { width: 100%; margin: 20px 0; }
.rd-difunde-profile__header { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; }
.rd-difunde-profile__header h2 { margin: 4px 0 0; }
.rd-difunde-single { max-width: 1020px; }
.rd-difunde-single__back { display: inline-block; margin-bottom: 14px; color: var(--rb-blue); text-decoration: none; font-weight: 700; }
.rd-difunde-single__player { width: 100%; aspect-ratio: 16/9; background: #111; border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.rd-difunde-single__player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.rd-difunde-single__no-video { color: #fff; }
.rd-difunde-single__heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.rd-difunde-single h1 { margin: 20px 0 12px; font-size: clamp(26px, 4vw, 40px); line-height: 1.1; }
.rd-difunde__privacy { flex: none; padding: 6px 10px; border-radius: 999px; background: var(--rb-violet-soft); color: var(--rb-violet); font-size: 12px; font-weight: 800; }
.rd-difunde-single__author { display: flex; align-items: center; gap: 10px; }
.rd-difunde-single__author img { border-radius: 2px; object-fit: cover; }
.rd-difunde-single__author div { display: grid; gap: 2px; }
.rd-difunde-single__author a { text-decoration: none; }
.rd-difunde-single__author span { color: var(--rd-muted); font-size: 13px; }
.rd-difunde-single__stats { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0; padding: 12px 0; border-block: 1px solid var(--rd-border); }
.rd-difunde-reactions { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-difunde-reactions button { min-width: 54px; border: 1px solid var(--rd-border); background: var(--rb-page); border-radius: 999px; padding: 8px 10px; cursor: pointer; }
.rd-difunde-reactions button:hover { border-color: var(--rb-sky); }
.rd-difunde-reactions button.is-active { background: var(--rd-aqua-dark); color: #fff; border-color: var(--rd-aqua-dark); }
.rd-difunde-reactions button:disabled { opacity: .6; cursor: wait; }
.rd-difunde__redebook-link { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 18px 0; padding: 15px; border: 1px solid #d7e7f5; border-radius: 12px; background: var(--rb-blue-soft); }
.rd-difunde__redebook-link div { display: grid; gap: 4px; }
.rd-difunde__redebook-link strong { color: var(--rd-aqua-dark); }
.rd-difunde__redebook-link span { color: var(--rd-muted); font-size: 13px; }
.rd-difunde-single__description { line-height: 1.65; }
.rd-difunde-single__comments { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--rd-border); }
@media (max-width: 900px) { .rd-difunde__grid, .rd-difunde__grid--profile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
    .rd-difunde { width: min(100% - 20px, 1180px); margin-top: 12px; }
    .rd-difunde__grid, .rd-difunde__grid--profile, .rd-difunde__form-grid { grid-template-columns: 1fr; }
    .rd-difunde__search { flex-direction: column; }
    .rd-difunde__search button { width: 100%; }
    .rd-difunde-single__heading, .rd-difunde__redebook-link, .rd-difunde-profile__header { align-items: stretch; flex-direction: column; }
}

/* Campo anti-bot: fuera del flujo visual, pero presente para bots simples. */
.rd-difunde__hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}


/* Integración nativa v0.4 */
.rd-difunde-native-shell{max-width:1120px;margin:0 auto;padding:22px 16px 48px}.rd-difunde-native-tabs{display:flex;gap:8px;align-items:center;margin:0 0 16px;padding:8px;background:#fff;border:1px solid rgba(27,4,109,.12);border-radius:14px}.rd-difunde-native-tabs a{padding:9px 14px;border-radius:10px;text-decoration:none;font-weight:700;color:#0d7f8c}.rd-difunde-native-tabs a.is-active{background:#0d7f8c;color:#fff}.rd-difunde__notice strong{color:inherit}
@media (max-width:767px){.rd-difunde-native-shell{padding:12px 10px 32px}.rd-difunde-native-tabs{overflow-x:auto;white-space:nowrap}}

/* v0.4.2: contenedor nativo del hub /difunde/ */
.rd-difunde-native-hub{display:block;min-width:0}

/* v0.5.1: identidad Difunda + mejoras de portada */
.rd-difunde__brand-row{position:relative;z-index:2;display:flex;align-items:center;gap:12px;margin-bottom:22px}
.rd-difunde__brand-logo{display:block;width:min(250px,55vw);height:auto;max-height:44px;object-fit:contain;object-position:left center;filter:drop-shadow(0 2px 3px rgba(0,0,0,.12))}
.rd-difunde__module-badge{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border:1px solid rgba(255,255,255,.4);border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:11px;font-weight:900;letter-spacing:.14em}
.rd-difunde__hero-content{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:flex-end;gap:28px}
.rd-difunde__hero-actions{display:flex;flex:0 0 auto;gap:9px;flex-wrap:wrap}
.rd-difunde__hero-primary,.rd-difunde__hero-secondary{min-height:42px;border-radius:10px;padding:10px 15px;font:inherit;font-weight:800;cursor:pointer;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center}
.rd-difunde__hero-primary{border:1px solid #fff;background:#fff;color:#0b4d66!important}
.rd-difunde__hero-secondary{border:1px solid rgba(255,255,255,.65);background:rgba(255,255,255,.08);color:#fff!important}
.rd-difunde__hero-primary:hover{background:#dcfbf7}.rd-difunde__hero-secondary:hover{background:rgba(255,255,255,.16)}
.rd-difunde__hero-stats{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}
.rd-difunde__stat{padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.12);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.16)}
.rd-difunde__stat strong{display:block;color:#fff;font-size:20px;line-height:1.1;margin-bottom:4px}
.rd-difunde__stat span{display:block;color:rgba(255,255,255,.9);font-size:13px;line-height:1.35}
.rd-difunde__discovery{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:20px}
.rd-difunde__welcome{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}
.rd-difunde__welcome-card{padding:16px;border:1px solid var(--rd-border);border-radius:14px;background:linear-gradient(180deg,#fff,var(--rd-aqua-soft));box-shadow:0 8px 24px rgba(11,77,102,.05)}
.rd-difunde__welcome-card strong{display:block;margin-bottom:7px;color:var(--rd-aqua-dark);font-size:16px}
.rd-difunde__welcome-card p{margin:0;color:#36535d;line-height:1.5;font-size:14px}
.rd-difunde__discovery .rd-difunde__categories{margin-bottom:0}
.rd-difunde__sorts{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.rd-difunde__sorts a{display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;border:1px solid var(--rd-border);border-radius:9px;background:#fff;color:#2d6672;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}
.rd-difunde__sorts a.is-active{background:var(--rd-aqua-dark);border-color:var(--rd-aqua-dark);color:#fff}
.rd-difunde-related{margin-top:44px;padding-top:26px;border-top:1px solid var(--rd-border)}
.rd-difunde-related__heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}
.rd-difunde-related__heading h2{margin:4px 0 0;font-size:24px}.rd-difunde-related__heading a{font-weight:700;text-decoration:none}
.rd-difunde__grid--related{grid-template-columns:repeat(3,minmax(0,1fr))}
.rd-difunde__empty-actions{margin-top:12px;display:flex;justify-content:center}
.rd-difunde__brand-logo-shell{display:inline-flex;align-items:center;padding:8px 10px;border-radius:12px;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.14)}
.rd-difunde__brand-logo-shell--ifunda{padding:8px 12px}.rd-difunde__brand-logo--ifunda{width:min(420px,76vw);max-height:110px}
@media (max-width:900px){.rd-difunde__hero-content{align-items:flex-start;flex-direction:column}.rd-difunde__discovery{flex-direction:column}.rd-difunde__sorts{justify-content:flex-start}.rd-difunde__grid--related,.rd-difunde__welcome,.rd-difunde__hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.rd-difunde__brand-row{align-items:flex-start;flex-direction:column}.rd-difunde__brand-logo{width:min(240px,80vw)}.rd-difunde__hero-actions{width:100%}.rd-difunde__hero-primary,.rd-difunde__hero-secondary{flex:1}.rd-difunde-related__heading{align-items:flex-start;flex-direction:column}.rd-difunde__grid--related,.rd-difunde__welcome,.rd-difunde__hero-stats{grid-template-columns:1fr}}

/* v0.5.2 — correcciones de legibilidad y composición */
.rd-difunde__hero h1{color:#fff!important;max-width:760px}
.rd-difunde__hero p{color:#fff!important}
.rd-difunde__brand-logo-shell--ifunda{max-width:min(470px,85vw);overflow:hidden}
.rd-difunde__brand-logo--ifunda{display:block;width:min(390px,72vw);max-height:92px;object-fit:contain;filter:none}
.rd-difunde__hero{padding:clamp(22px,4vw,42px)}
@media(max-width:620px){.rd-difunde__brand-logo--ifunda{width:min(300px,76vw);max-height:78px}.rd-difunde__hero{padding:20px 16px}.rd-difunde__hero h1{font-size:clamp(30px,11vw,42px)}}

/* v0.6.0 — nombre definitivo Difunda + canal de creador + miniaturas */
.rd-difunda-brand{display:inline-flex;align-items:center;gap:13px;padding:8px 14px 8px 10px;border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.14);max-width:min(470px,86vw)}
.rd-difunda-brand__icon{display:block;width:70px;height:66px;object-fit:contain;flex:none}
.rd-difunda-brand__wordmark{display:grid;line-height:1;min-width:0}
.rd-difunda-brand__wordmark strong{font-size:clamp(27px,4vw,43px);letter-spacing:-.04em;color:#111;font-weight:950}
.rd-difunda-brand__wordmark small{margin-top:4px;color:#0d9b98;font-family:Georgia,serif;font-size:clamp(13px,1.7vw,18px);font-weight:700}
.rd-difunda-optional{font-size:11px;font-weight:700;color:var(--rd-muted);margin-left:4px}
.rd-difunda-channel{position:relative;margin-bottom:18px;border:1px solid var(--rd-border);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 9px 28px rgba(11,77,102,.07)}
.rd-difunda-channel__cover{height:150px;background-position:center;background-size:cover;background-color:#0b4d66}
.rd-difunda-channel__body{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px}
.rd-difunda-channel__identity{display:flex;gap:14px;align-items:center;min-width:0}
.rd-difunda-channel__avatar{width:76px;height:76px;object-fit:cover;border-radius:2px;border:4px solid #fff;box-shadow:0 0 0 1px var(--rd-border);flex:none;background:#eafafa}
.rd-difunda-channel__copy{min-width:0}
.rd-difunda-channel__copy h2{margin:3px 0 5px;font-size:25px;color:var(--rd-text)}
.rd-difunda-channel__copy p{margin:0 0 9px;color:#40565e;line-height:1.45}
.rd-difunda-channel__meta{display:flex;gap:14px;flex-wrap:wrap;color:var(--rd-muted);font-size:13px}
.rd-difunda-channel__meta strong{color:var(--rd-text)}
.rd-difunda-channel__actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.rd-difunda-channel__link{display:inline-flex;align-items:center;min-height:40px;padding:0 13px;border:1px solid var(--rd-border);border-radius:10px;text-decoration:none;font-weight:800;color:var(--rd-aqua-dark)!important;background:#fff}
.rd-difunda-follow.is-following{background:#e5f8f8!important;color:#0b6872!important;border:1px solid #a9e5e2}
.rd-difunde-profile--compact .rd-difunda-channel__cover{height:90px}
.rd-difunde-profile--compact .rd-difunda-channel__avatar{width:62px;height:62px}
.rd-difunda-single__creator{justify-content:flex-start;flex-wrap:wrap}
.rd-difunda-single__creator-copy{flex:1;min-width:180px}
.rd-difunda-single__creator .rd-difunda-follow{margin-left:auto}
.rd-difunda-single__categories{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 4px}
.rd-difunda-single__categories span{display:inline-flex;padding:6px 10px;border-radius:999px;background:var(--rd-aqua-soft);color:var(--rd-aqua-dark);font-size:12px;font-weight:800}
.rd-difunde-card__media:focus-visible,.rd-difunda-channel__link:focus-visible,.rd-difunda-follow:focus-visible{outline:3px solid var(--rd-aqua);outline-offset:2px}
@media(max-width:760px){.rd-difunda-channel__body{align-items:flex-start;flex-direction:column}.rd-difunda-channel__actions{width:100%;justify-content:flex-start}.rd-difunda-single__creator .rd-difunda-follow{margin-left:0}.rd-difunda-channel__cover{height:110px}}
@media(max-width:620px){.rd-difunda-brand{gap:9px;padding:7px 11px 7px 8px}.rd-difunda-brand__icon{width:54px;height:52px}.rd-difunda-channel__identity{align-items:flex-start}.rd-difunda-channel__avatar{width:60px;height:60px}.rd-difunda-channel__copy h2{font-size:21px}}

/* v0.6.2: feedback visible del publicador REST */
.rd-difunde__publish-status{padding:12px 14px;border-radius:10px;border:1px solid var(--rd-border);background:#f6fbfc;color:#23454d;font-size:14px;line-height:1.45}
.rd-difunde__publish-status.is-working{background:#eefafa;border-color:#b9e7e6;color:#0b626a}
.rd-difunde__publish-status.is-success{background:#edf9f1;border-color:#b9e0c3;color:#205f33}
.rd-difunde__publish-status.is-error{background:#fff1f1;border-color:#efb9b9;color:#8b2323}

/* v0.7 — identidad propia del canal Difunda */
.rd-difunda-channel-editor{margin:-4px 0 22px;padding:18px;border:1px solid var(--rd-border);border-radius:16px;background:linear-gradient(180deg,#fff,#f2fcfc);box-shadow:0 8px 24px rgba(11,77,102,.05)}
.rd-difunda-channel-editor[hidden]{display:none!important}
.rd-difunda-channel-editor__intro{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--rd-border)}
.rd-difunda-channel-editor__intro>div{display:grid;gap:4px}.rd-difunda-channel-editor__intro strong{font-size:18px;color:var(--rd-text)}.rd-difunda-channel-editor__intro span{color:var(--rd-muted);font-size:13px;line-height:1.4}
.rd-difunda-channel-editor__social{padding:7px 10px;border-radius:999px;background:var(--rd-aqua-soft);color:var(--rd-aqua-dark)!important;font-weight:700;white-space:nowrap}
.rd-difunda-channel-editor form{display:grid;gap:14px}.rd-difunda-channel-editor label{display:grid;gap:7px;font-weight:700}.rd-difunda-channel-editor textarea,.rd-difunda-channel-editor input[type=file]{width:100%;border:1px solid var(--rd-border);border-radius:10px;padding:11px;background:#fff;font:inherit}.rd-difunda-channel-editor small{color:var(--rd-muted);font-weight:400}
.rd-difunda-channel-editor__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.rd-difunda-channel-editor__reset{display:flex;flex-wrap:wrap;gap:18px;padding:12px;border-radius:12px;background:#f8ffff}.rd-difunda-channel-editor__reset label{display:flex;align-items:center;gap:7px;font-weight:600}.rd-difunda-channel-editor__actions{display:flex;gap:9px;align-items:center}.rd-difunda-channel-editor__status{padding:11px 12px;border-radius:10px;border:1px solid var(--rd-border);background:#fff}.rd-difunda-channel-editor__status.is-working{background:#eef9fa;color:#0d6570}.rd-difunda-channel-editor__status.is-success{background:#ecfff3;color:#17643a;border-color:#bfe9cd}.rd-difunda-channel-editor__status.is-error{background:#fff1f1;color:#8e2222;border-color:#efbcbc}
.rd-difunda-channel__actions button.rd-difunda-channel__link{cursor:pointer;font:inherit}
@media(max-width:700px){.rd-difunda-channel-editor__intro{flex-direction:column}.rd-difunda-channel-editor__social{white-space:normal}.rd-difunda-channel-editor__grid{grid-template-columns:1fr}.rd-difunda-channel-editor__actions{align-items:stretch;flex-direction:column}.rd-difunda-channel-editor__actions>*{width:100%;justify-content:center}}

/* v0.8: gestión de videos propios */
.rd-difunda-owner-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.rd-difunda-owner-button{border:1px solid var(--rd-border);background:#fff;color:var(--rd-aqua-dark);border-radius:9px;padding:7px 11px;font:inherit;font-weight:700;cursor:pointer}
.rd-difunda-owner-button:hover{background:var(--rd-aqua-soft)}
.rd-difunda-owner-button--danger{color:#9f2f2f;border-color:#efc8c8;background:#fff7f7}
.rd-difunda-owner-button--danger:hover{background:#ffecec}
.rd-difunda-video-editor{margin:16px 0 22px;padding:18px;border:1px solid var(--rd-border);border-radius:14px;background:#fff;box-shadow:0 10px 26px rgba(11,77,102,.06)}
.rd-difunda-video-editor__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.rd-difunda-video-editor__header h2{margin:4px 0 0;font-size:22px}
.rd-difunda-video-editor form{display:grid;gap:14px}
.rd-difunda-video-editor label{display:grid;gap:7px;font-weight:700}
.rd-difunda-video-editor input,.rd-difunda-video-editor textarea,.rd-difunda-video-editor select{width:100%;border:1px solid var(--rd-border);border-radius:9px;padding:11px 12px;background:#fff;color:#111;font:inherit}
.rd-difunda-video-editor small,.rd-difunda-video-editor__optional{color:var(--rd-muted);font-weight:400}
.rd-difunda-video-editor__actions{display:flex;gap:9px;flex-wrap:wrap}
.rd-difunda-video-editor__status{padding:11px 13px;border-radius:9px;border:1px solid var(--rd-border);background:#f7fbfb}
.rd-difunda-video-editor__status.is-error{background:#fff3f3;border-color:#f0bcbc;color:#8d2323}
.rd-difunda-video-editor__status.is-success{background:#ecfbf5;border-color:#b8e7d3;color:#17643f}
.rd-difunda-video-editor__status.is-working{background:#eef9fa;border-color:#cce8ea;color:#245f67}
@media (max-width:620px){.rd-difunda-owner-actions,.rd-difunda-video-editor__header{align-items:stretch;flex-direction:column}.rd-difunda-owner-actions{justify-content:flex-start}.rd-difunda-video-editor__actions>*{flex:1}}

/* v0.9.1: capa social completa de Redebook en el single de Difunda */
.rd-difunda-social-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:18px 0;padding:12px 0;border-block:1px solid var(--rd-border)}
.rd-difunda-social-button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid var(--rd-border);border-radius:999px;background:#fff;color:#21434b!important;text-decoration:none!important;font:inherit;font-weight:700;cursor:pointer}
.rd-difunda-social-button:hover{border-color:var(--rd-aqua-dark);background:var(--rd-aqua-soft)}
.rd-difunda-social-button.is-active{background:var(--rd-aqua-soft);border-color:var(--rd-aqua-dark);color:var(--rd-aqua-dark)!important}
.rd-difunda-social-button:disabled{opacity:.6;cursor:wait}
.rd-difunda-social-button small{font-size:11px;color:inherit}
.rd-difunda-comments{margin-top:24px;padding:20px;border:1px solid var(--rd-border);border-radius:16px;background:#fff}
.rd-difunda-comments__header{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:16px}
.rd-difunda-comments__header h2{margin:3px 0 0;font-size:24px}.rd-difunda-comments__header>span{color:var(--rd-muted);font-size:13px}
.rd-difunda-comment-form{display:grid;gap:10px;margin-bottom:18px}.rd-difunda-comment-form textarea{width:100%;resize:vertical;border:1px solid var(--rd-border);border-radius:12px;padding:12px 13px;font:inherit;background:#fbffff;color:var(--rd-text)}
.rd-difunda-comment-form__row{display:flex;align-items:center;justify-content:space-between;gap:12px}.rd-difunda-comment-form__row [data-rd-comment-status]{color:var(--rd-muted);font-size:13px}
.rd-difunda-comments__list{display:grid;gap:10px}.rd-difunda-comments__empty{padding:20px;text-align:center;color:var(--rd-muted);background:var(--rb-page);border-radius:12px}
.rd-difunda-comment{display:grid;grid-template-columns:40px 1fr;gap:10px;padding:12px;border:1px solid var(--rd-border);border-radius:12px;background:#fff}.rd-difunda-comment.is-reply{margin-left:42px;background:var(--rb-page)}
.rd-difunda-comment__avatar img,.rd-difunda-comment__avatar .avatar{width:38px;height:38px;border-radius:2px;object-fit:cover}.rd-difunda-comment__meta{display:flex;gap:8px;flex-wrap:wrap;align-items:baseline}.rd-difunda-comment__meta a{text-decoration:none}.rd-difunda-comment__meta span{font-size:11px;color:var(--rd-muted)}
.rd-difunda-comment__body p{margin:5px 0 0;line-height:1.5;color:#24363b}.rd-difunda-comment__deleted{grid-column:1/-1;color:var(--rd-muted);font-style:italic}
@media(max-width:620px){.rd-difunda-comments{padding:14px}.rd-difunda-comments__header{align-items:flex-start;flex-direction:column}.rd-difunda-comment.is-reply{margin-left:20px}.rd-difunda-comment-form__row{align-items:stretch;flex-direction:column}.rd-difunda-comment-form__row .rd-difunde__primary{width:100%}}


/* v0.9.2 — avatares cuadrados, coherentes con Redebook clásico */
.rd-difunde .avatar,
.rd-difunde-card__avatar,
.rd-difunde-single__author img,
.rd-difunda-channel__avatar,
.rd-difunda-comment__avatar img,
.rd-difunda-comment__avatar .avatar {
    border-radius: 2px !important;
    object-fit: cover;
}
.rd-difunde-card__avatar { overflow: hidden; }

/* v0.9.3 — jerarquía del single + respuestas/reacciones en comentarios */
.rd-difunde-single__heading--above-player{
    margin:8px 0 16px;
    align-items:flex-start;
}
.rd-difunde-single__heading--above-player h1{
    margin:0;
}
.rd-difunde-single__description--under-player{
    margin:16px 0 18px;
    padding:16px 18px;
    border:1px solid var(--rd-border);
    border-radius:14px;
    background:#fff;
}
.rd-difunde-single__description--under-player h2{
    margin:0 0 10px;
    font-size:20px;
    color:var(--rd-text);
}
.rd-difunde-single__description-content{
    color:#24363b;
    line-height:1.65;
}
.rd-difunde-single__description-content p{
    margin:0;
}
.rd-difunde-single__description-empty{
    color:var(--rd-muted);
    font-style:italic;
}

.rd-difunda-comment-thread{
    margin-left:min(calc(var(--rd-comment-depth, 0) * 34px), 136px);
}
.rd-difunda-comment-thread > .rd-difunda-comment.is-reply{
    margin-left:0;
    background:var(--rb-page);
}
.rd-difunda-comment__actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-top:8px;
}
.rd-difunda-comment__reply,
.rd-difunda-comment__reply-cancel{
    border:0;
    background:transparent;
    color:var(--rd-aqua-dark);
    font:inherit;
    font-size:12px;
    font-weight:800;
    padding:4px 2px;
    cursor:pointer;
}
.rd-difunda-comment__reply:hover,
.rd-difunda-comment__reply-cancel:hover{
    text-decoration:underline;
}
.rd-difunda-comment-reactions{
    display:flex;
    flex-wrap:wrap;
    gap:4px;
}
.rd-difunda-comment-reactions button{
    display:inline-flex;
    align-items:center;
    gap:3px;
    min-height:28px;
    border:1px solid var(--rd-border);
    border-radius:999px;
    background:#fff;
    color:#21434b;
    padding:4px 7px;
    font:inherit;
    font-size:11px;
    cursor:pointer;
}
.rd-difunda-comment-reactions button:hover{
    border-color:var(--rd-aqua-dark);
    background:var(--rd-aqua-soft);
}
.rd-difunda-comment-reactions button.is-active{
    background:var(--rd-aqua-soft);
    border-color:var(--rd-aqua-dark);
    color:var(--rd-aqua-dark);
    font-weight:800;
}
.rd-difunda-comment-reactions button:disabled{
    opacity:.6;
    cursor:wait;
}
.rd-difunda-comment-reply-form{
    margin-top:10px;
    padding:10px;
    border:1px solid var(--rd-border);
    border-radius:10px;
    background:#f9ffff;
}
.rd-difunda-comment-reply-form textarea{
    width:100%;
    resize:vertical;
    border:1px solid var(--rd-border);
    border-radius:9px;
    padding:10px 11px;
    font:inherit;
    color:var(--rd-text);
    background:#fff;
}
.rd-difunda-comment-reply-form__row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:8px;
}
.rd-difunda-comment-reply-form__row > div{
    display:flex;
    align-items:center;
    gap:8px;
}
.rd-difunda-comment-reply-form__row [data-rd-comment-reply-status]{
    color:var(--rd-muted);
    font-size:12px;
}

@media(max-width:620px){
    .rd-difunda-comment-thread{margin-left:min(calc(var(--rd-comment-depth, 0) * 16px), 48px)}
    .rd-difunda-comment__actions{align-items:flex-start;flex-direction:column}
    .rd-difunda-comment-reply-form__row{align-items:stretch;flex-direction:column}
    .rd-difunda-comment-reply-form__row > div{justify-content:flex-end}
}

/* v0.9.5: resumen cuadrado de Difunda dentro del perfil de Redebook */
.rd-difunde-profile--compact .rd-difunde__grid--profile-compact{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    align-items:stretch;
}
.rd-difunde-profile--compact .rd-difunde__grid--profile-compact .rd-difunde-card{
    position:relative;
    aspect-ratio:1/1;
    min-width:0;
    border-radius:2px;
    box-shadow:none;
    overflow:hidden;
    background:#15131a;
}
.rd-difunde-profile--compact .rd-difunde__grid--profile-compact .rd-difunde-card__media{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    aspect-ratio:auto;
    z-index:1;
}
.rd-difunde-profile--compact .rd-difunde__grid--profile-compact .rd-difunde-card__media::after{
    content:'';
    position:absolute;
    inset:42% 0 0;
    background:linear-gradient(to bottom,transparent,rgba(0,0,0,.78));
    pointer-events:none;
}
.rd-difunde-profile--compact .rd-difunde__grid--profile-compact .rd-difunde-card__body{
    position:absolute;
    z-index:2;
    inset:auto 0 0;
    padding:12px;
    color:#fff;
    pointer-events:none;
}
.rd-difunde-profile--compact .rd-difunde__grid--profile-compact .rd-difunde-card__author,
.rd-difunde-profile--compact .rd-difunde__grid--profile-compact .rd-difunde-card p,
.rd-difunde-profile--compact .rd-difunde__grid--profile-compact .rd-difunde-card__meta,
.rd-difunde-profile--compact .rd-difunde__grid--profile-compact .rd-difunde-card__tags{
    display:none!important;
}
.rd-difunde-profile--compact .rd-difunde__grid--profile-compact .rd-difunde-card h2{
    margin:0;
    font-size:16px;
    line-height:1.2;
    text-shadow:0 1px 3px rgba(0,0,0,.8);
}
.rd-difunde-profile--compact .rd-difunde__grid--profile-compact .rd-difunde-card h2 a{
    color:#fff;
    pointer-events:auto;
}
.rd-difunde-profile--compact .rd-difunde__grid--profile-compact .rd-difunde-card__play{
    width:46px;
    height:46px;
    z-index:3;
}
.rd-difunda-channel-visit-tile{
    aspect-ratio:1/1;
    min-width:0;
    border:1px solid #cce8eb;
    border-radius:2px;
    background:linear-gradient(145deg,#effcfc,#d8f7f4);
    color:#0d6670!important;
    text-decoration:none!important;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:18px;
    text-align:center;
    transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.rd-difunda-channel-visit-tile:hover{
    background:#cdf4ef;
    border-color:#8ddad8;
    transform:translateY(-1px);
}
.rd-difunda-channel-visit-tile__icon{
    display:grid;
    place-items:center;
    width:46px;
    height:46px;
    padding-left:3px;
    border-radius:50%;
    background:#0d7f8c;
    color:#fff;
    font-size:18px;
}
.rd-difunda-channel-visit-tile__label{font-weight:800;font-size:17px;line-height:1.15}
.rd-difunda-channel-visit-tile__meta{font-size:12px;color:#55777d}

@media (max-width:767px){
    .rd-difunde-profile--compact .rd-difunde__grid--profile-compact{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }
    /* En celular: un video + la tarjeta de acceso al canal. */
    .rd-difunde-profile--compact .rd-difunde__grid--profile-compact .rd-difunde-card:nth-of-type(n+2){display:none!important}
    .rd-difunde-profile--compact .rd-difunde__grid--profile-compact .rd-difunde-card h2{font-size:14px}
    .rd-difunda-channel-visit-tile{padding:12px}
    .rd-difunda-channel-visit-tile__label{font-size:15px}
    .rd-difunda-channel-visit-tile__meta{display:none}
}

/* v0.9.6 — centrado del resumen Difunda dentro de perfiles móviles */
@media (max-width:767px){
    .rd-difunde-profile--compact{
        width:100%;
        margin-left:auto;
        margin-right:auto;
    }
    .rd-difunde-profile--compact .rd-difunda-channel{
        width:100%;
        margin-left:auto;
        margin-right:auto;
    }
    .rd-difunde-profile--compact .rd-difunda-channel__body{
        align-items:center;
        text-align:center;
    }
    .rd-difunde-profile--compact .rd-difunda-channel__identity{
        width:100%;
        flex-direction:column;
        align-items:center!important;
        justify-content:center;
        text-align:center;
    }
    .rd-difunde-profile--compact .rd-difunda-channel__copy{
        width:100%;
        text-align:center;
    }
    .rd-difunde-profile--compact .rd-difunda-channel__meta{
        justify-content:center;
        text-align:center;
    }
    .rd-difunde-profile--compact .rd-difunda-channel__actions{
        width:100%;
        justify-content:center;
    }
    .rd-difunde-profile--compact .rd-difunde__grid--profile-compact{
        width:min(100%,340px);
        margin-left:auto;
        margin-right:auto;
        justify-content:center;
    }
}


/* v0.9.7 — selector de reacciones compacto en comentarios */
.rd-difunda-comment-reaction-control{position:relative;display:inline-flex;align-items:center;gap:2px;min-width:0}
.rd-difunda-comment-reaction-main,.rd-difunda-comment-reaction-toggle{border:0;background:transparent;color:#21535d;font:inherit;font-size:12px;font-weight:700;cursor:pointer;padding:0;line-height:1.2}
.rd-difunda-comment-reaction-main{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.rd-difunda-comment-reaction-main.is-active{color:var(--rd-aqua-dark)}
.rd-difunda-comment-reaction-main__count{font-size:11px}
.rd-difunda-comment-reaction-toggle{padding:0 2px}
.rd-difunda-comment-reaction-picker{position:absolute;left:0;bottom:calc(100% + 6px);display:flex;gap:4px;padding:6px;border:1px solid var(--rd-border);border-radius:14px;background:#fff;box-shadow:0 12px 28px rgba(8,30,35,.18);white-space:nowrap;z-index:20}
.rd-difunda-comment-reaction-picker[hidden]{display:none!important}
.rd-difunda-comment-reaction-picker button{width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:999px;background:transparent;font-size:20px;cursor:pointer;padding:0}
.rd-difunda-comment-reaction-picker button:hover,.rd-difunda-comment-reaction-picker button:focus{background:var(--rd-aqua-soft);transform:translateY(-2px)}
.rd-difunda-comment-reaction-picker button.is-active{background:var(--rd-aqua-soft);outline:1px solid var(--rd-aqua-dark)}
.rd-difunda-comment-reaction-picker button:disabled,.rd-difunda-comment-reaction-main:disabled,.rd-difunda-comment-reaction-toggle:disabled{opacity:.6;cursor:wait}
@media (max-width:767px){
  .rd-difunda-comment-reaction-picker{max-width:min(290px,calc(100vw - 36px));overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .rd-difunda-comment-reaction-picker::-webkit-scrollbar{display:none}
}

/* v0.9.8 — selector de reacciones unificado con Redebook */
.rd-difunda-video-reaction-control,
.rd-difunda-comment-reaction-control{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:2px;
    min-width:0;
}
.rd-difunda-video-reaction-main,
.rd-difunda-video-reaction-toggle,
.rd-difunda-comment-reaction-main,
.rd-difunda-comment-reaction-toggle{
    border:0!important;
    border-radius:2px!important;
    background:transparent!important;
    color:#155f93!important;
    font:inherit!important;
    font-size:11px!important;
    font-weight:normal!important;
    line-height:normal!important;
    cursor:pointer;
}
.rd-difunda-video-reaction-main,
.rd-difunda-comment-reaction-main{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:3px 6px!important;
    white-space:nowrap;
}
.rd-difunda-video-reaction-main:hover,
.rd-difunda-video-reaction-main.is-active,
.rd-difunda-comment-reaction-main:hover,
.rd-difunda-comment-reaction-main.is-active{
    background:#f1f7fc!important;
    color:#155f93!important;
    text-decoration:underline;
}
.rd-difunda-video-reaction-toggle,
.rd-difunda-comment-reaction-toggle{
    padding:8px 4px!important;
    white-space:nowrap;
}
.rd-difunda-video-reaction-main__count,
.rd-difunda-comment-reaction-main__count{font-size:10px}
.rd-difunda-video-reaction-picker,
.rd-difunda-comment-reaction-picker{
    position:absolute;
    z-index:90;
    left:0;
    bottom:calc(100% + 6px);
    display:flex;
    gap:4px;
    padding:4px!important;
    border:1px solid #999!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:2px 2px 5px #999!important;
    white-space:nowrap;
}
.rd-difunda-video-reaction-picker[hidden],
.rd-difunda-comment-reaction-picker[hidden]{display:none!important}
.rd-difunda-video-reaction-picker button,
.rd-difunda-comment-reaction-picker button{
    width:42px!important;
    height:42px!important;
    display:grid!important;
    place-items:center!important;
    flex:0 0 42px!important;
    border:0!important;
    border-radius:2px!important;
    background:transparent!important;
    padding:0!important;
    font-size:1.45rem!important;
    line-height:1!important;
    cursor:pointer;
}
.rd-difunda-video-reaction-picker button:hover,
.rd-difunda-video-reaction-picker button:focus,
.rd-difunda-video-reaction-picker button.is-active,
.rd-difunda-comment-reaction-picker button:hover,
.rd-difunda-comment-reaction-picker button:focus,
.rd-difunda-comment-reaction-picker button.is-active{
    background:#f1f7fc!important;
    outline:1px solid #136eb4;
    transform:none!important;
}
.rd-difunda-video-reaction-main:disabled,
.rd-difunda-video-reaction-toggle:disabled,
.rd-difunda-video-reaction-picker button:disabled,
.rd-difunda-comment-reaction-main:disabled,
.rd-difunda-comment-reaction-toggle:disabled,
.rd-difunda-comment-reaction-picker button:disabled{opacity:.55;cursor:wait}
@media(max-width:767px){
    .rd-difunda-video-reaction-picker,
    .rd-difunda-comment-reaction-picker{
        max-width:min(300px,calc(100vw - 34px));
        overflow-x:auto;
        overflow-y:hidden;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }
    .rd-difunda-video-reaction-picker::-webkit-scrollbar,
    .rd-difunda-comment-reaction-picker::-webkit-scrollbar{display:none}
}

/* ==========================================================
   v0.9.9 — identidad cuadrada integrada con Redebook
   ========================================================== */
.rd-difunde__hero{
    border-radius:0!important;
    box-shadow:none!important;
}
.rd-difunde__hero--compact{
    padding:18px 20px!important;
    border:1px solid var(--rd-border);
    border-left:3px solid var(--rb-orange);
    background:linear-gradient(90deg,#0b4d66,#159ca6 70%,#42c9c4);
}
.rd-difunde__hero--compact::after{display:none!important}
.rd-difunde__hero--compact .rd-difunde__brand-row{
    margin:0!important;
    align-items:center;
    flex-wrap:wrap;
}
.rd-difunde__hero--compact .rd-difunde__hero-actions{
    margin-left:auto;
}

/* Superficies y controles: esquinas rectas, como Redebook clásico. */
.rd-difunde__notice,
.rd-difunde__login-hint,
.rd-difunde__search input,
.rd-difunde__search button,
.rd-difunde__primary,
.rd-difunde__categories a,
.rd-difunde__composer,
.rd-difunde__composer input,
.rd-difunde__composer textarea,
.rd-difunde__composer select,
.rd-difunde__check,
.rd-difunde-card,
.rd-difunde-card__tags span,
.rd-difunde__empty,
.rd-difunde-single__player,
.rd-difunde__privacy,
.rd-difunde-reactions button,
.rd-difunde__redebook-link,
.rd-difunde-native-tabs,
.rd-difunde-native-tabs a,
.rd-difunde__module-badge,
.rd-difunde__hero-primary,
.rd-difunde__hero-secondary,
.rd-difunde__welcome-card,
.rd-difunde__sorts a,
.rd-difunda-brand,
.rd-difunda-channel,
.rd-difunda-channel__link,
.rd-difunda-single__categories span,
.rd-difunde__publish-status,
.rd-difunda-channel-editor,
.rd-difunda-channel-editor__social,
.rd-difunda-channel-editor textarea,
.rd-difunda-channel-editor input[type=file],
.rd-difunda-channel-editor__reset,
.rd-difunda-channel-editor__status,
.rd-difunda-owner-button,
.rd-difunda-video-editor,
.rd-difunda-video-editor input,
.rd-difunda-video-editor textarea,
.rd-difunda-video-editor select,
.rd-difunda-video-editor__status,
.rd-difunda-social-button,
.rd-difunda-comments,
.rd-difunda-comment-form textarea,
.rd-difunda-comments__empty,
.rd-difunda-comment,
.rd-difunda-comment-reply-form,
.rd-difunda-comment-reply-form textarea,
.rd-difunda-comment-reaction-picker{
    border-radius:0!important;
}

/* Conservamos redondos solo elementos funcionales que son iconos/avatares. */
.rd-difunde-card__play{border-radius:50%!important}
.rd-difunde-card__avatar,
.rd-difunda-channel__avatar,
.rd-difunda-comment__avatar img,
.rd-difunda-comment__avatar .avatar,
.rd-difunde .avatar{border-radius:2px!important}
.rd-difunda-comment-reaction-picker button{border-radius:50%!important}

/* Tarjetas y paneles sin sombras flotantes. */
.rd-difunde-card,
.rd-difunda-channel,
.rd-difunda-channel-editor,
.rd-difunda-video-editor,
.rd-difunda__welcome-card{
    box-shadow:none!important;
}

/* Cabeceras y filtros con acentos rectos de Redebook. */
.rd-difunde__composer summary{
    border-left:3px solid var(--rb-orange);
}
.rd-difunde__welcome-card,
.rd-difunde-card,
.rd-difunda-channel,
.rd-difunda-comments,
.rd-difunda-video-editor,
.rd-difunda-channel-editor{
    border-left:3px solid var(--rb-slate);
}
.rd-difunde-card:hover,
.rd-difunda-channel:hover{
    border-left-color:var(--rb-orange);
}

@media(max-width:620px){
    .rd-difunde__hero--compact{padding:12px!important}
    .rd-difunde__hero--compact .rd-difunde__brand-row{align-items:stretch!important}
    .rd-difunde__hero--compact .rd-difunde__hero-actions{margin-left:0;width:100%}
    .rd-difunde__hero--compact .rd-difunde__hero-primary,
    .rd-difunde__hero--compact .rd-difunde__hero-secondary{flex:1 1 0}
}


/* ==========================================================
   v0.10.0 — reproductor propio de Difunda
   ========================================================== */
.rd-difunde-single__player{
    width:100%;
    height:auto;
    aspect-ratio:auto;
    margin:0 auto;
    overflow:visible;
    display:block;
    background:#000;
    border:1px solid #1f3137;
    border-left:3px solid var(--rb-slate);
}
.rd-difunda-player__stage{
    width:100%;
    height:clamp(300px,62vh,620px);
    display:grid;
    place-items:center;
    background:#000;
    overflow:hidden;
}
.rd-difunda-player__stage video{
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    object-fit:contain!important;
    object-position:center center;
    background:#000;
}
.rd-difunda-player__controls{
    display:grid;
    grid-template-columns:auto auto minmax(180px,1fr) auto auto auto 90px auto;
    align-items:center;
    gap:6px;
    padding:8px;
    border-top:1px solid #33464d;
    background:#111b1f;
    color:#fff;
}
.rd-difunda-player__button{
    min-width:34px;
    height:32px;
    padding:0 7px;
    border:1px solid #50666e;
    border-radius:0;
    background:#17262c;
    color:#fff;
    font:700 12px/1 Tahoma,Verdana,Arial,sans-serif;
    cursor:pointer;
}
.rd-difunda-player__button:hover,
.rd-difunda-player__button:focus,
.rd-difunda-player__button.is-active{
    border-color:var(--rd-aqua);
    background:#123e45;
    color:#fff;
    outline:none;
}
.rd-difunda-player__timeline{
    min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
}
.rd-difunda-player__timeline input[type=range],
.rd-difunda-player__volume{
    min-width:0;
    width:100%;
    margin:0;
    accent-color:var(--rd-aqua-dark);
    cursor:pointer;
}
.rd-difunda-player__time{
    min-width:82px;
    font:11px/1.2 Tahoma,Verdana,Arial,sans-serif;
    color:#e9f5f5;
    text-align:right;
    white-space:nowrap;
}
.rd-difunda-player__volume{width:90px}
.rd-difunde-single__player.is-fullscreen,
.rd-difunde-single__player:fullscreen{
    width:100vw;
    height:100vh;
    background:#000;
    display:flex;
    flex-direction:column;
}
.rd-difunde-single__player:fullscreen .rd-difunda-player__stage{
    flex:1 1 auto;
    height:auto;
    min-height:0;
}
.rd-difunde-single__player:fullscreen .rd-difunda-player__controls{flex:0 0 auto}

@media(max-width:760px){
    .rd-difunda-player__stage{height:min(52vh,420px);min-height:220px}
    .rd-difunda-player__controls{
        grid-template-columns:auto auto minmax(0,1fr) auto auto auto;
        gap:5px;
        padding:6px;
    }
    .rd-difunda-player__timeline{
        grid-column:1 / -1;
        grid-row:2;
        grid-template-columns:minmax(0,1fr) auto;
        order:2;
    }
    .rd-difunda-player__volume{display:none}
    .rd-difunda-player__button{height:30px;min-width:32px;padding:0 6px}
}

@media(max-width:420px){
    .rd-difunda-player__stage{height:min(46vh,340px);min-height:200px}
    .rd-difunda-player__controls{grid-template-columns:repeat(6,minmax(0,1fr))}
    .rd-difunda-player__button{width:100%;min-width:0;padding:0 3px;font-size:11px}
    .rd-difunda-player__time{min-width:76px;font-size:10px}
}


/* ==========================================================
   v0.10.1 — proporción real del video, sin recorte
   ========================================================== */
.rd-difunda-player__stage{
    position:relative;
    width:100%;
    background:#000;
}
.rd-difunda-player__stage video{
    flex:none!important;
    width:auto;
    height:auto;
    min-width:0!important;
    min-height:0!important;
    margin:auto;
    object-position:center center!important;
}
.rd-difunde-single__player[data-rd-video-orientation="portrait"] .rd-difunda-player__stage{
    background:#000;
}
.rd-difunde-single__player[data-rd-video-orientation="portrait"] .rd-difunda-player__stage video{
    width:auto!important;
}
.rd-difunde-single__player[data-rd-video-orientation="landscape"] .rd-difunda-player__stage video,
.rd-difunde-single__player[data-rd-video-orientation="square"] .rd-difunda-player__stage video{
    max-width:100%!important;
}

/* ==========================================================
   v0.10.2 — página de reproducción en dos columnas
   Video principal a la izquierda + catálogo de Difunda a la derecha.
   ========================================================== */
.rd-difunde-single{
    max-width:1280px;
}
.rd-difunda-watch-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(300px,360px);
    gap:20px;
    align-items:start;
}
.rd-difunda-watch-main{
    min-width:0;
}
.rd-difunda-watch-sidebar{
    min-width:0;
    border:1px solid var(--rd-border);
    border-left:3px solid var(--rb-slate);
    background:#fff;
}
.rd-difunda-watch-sidebar__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:10px 12px;
    border-bottom:1px solid var(--rd-border);
    background:linear-gradient(90deg,#f7f2fc,#f1f7fc);
}
.rd-difunda-watch-sidebar__head h2{
    margin:0;
    color:var(--rb-violet);
    font-size:17px;
    line-height:1.2;
}
.rd-difunda-watch-sidebar__head a{
    flex:none;
    color:var(--rb-blue);
    font-size:12px;
    font-weight:800;
    text-decoration:none;
}
.rd-difunda-watch-sidebar__list{
    display:grid;
}
.rd-difunda-watch-sidebar__empty{
    padding:18px 14px;
    color:var(--rd-muted);
    font-size:12px;
    line-height:1.5;
}
.rd-difunda-watch-item{
    display:grid;
    grid-template-columns:148px minmax(0,1fr);
    gap:10px;
    padding:10px;
    border-bottom:1px solid var(--rd-border);
    background:#fff;
}
.rd-difunda-watch-item:last-child{
    border-bottom:0;
}
.rd-difunda-watch-item:hover{
    background:#f6f9fc;
}
.rd-difunda-watch-item__media{
    position:relative;
    display:grid;
    place-items:center;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    border:1px solid #d5dbe5;
    background:#111;
    text-decoration:none;
}
.rd-difunda-watch-item__media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.rd-difunda-watch-item__placeholder{
    color:rgba(255,255,255,.3);
    font-size:30px;
}
.rd-difunda-watch-item__play{
    position:absolute;
    left:8px;
    bottom:7px;
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    border-radius:50%;
    background:rgba(13,127,140,.92);
    color:#fff;
    font-size:11px;
    padding-left:2px;
}
.rd-difunda-watch-item__body{
    min-width:0;
    padding-top:1px;
}
.rd-difunda-watch-item__body h3{
    margin:0 0 6px;
    font-size:13px;
    line-height:1.28;
    font-weight:900;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
}
.rd-difunda-watch-item__body h3 a{
    color:var(--rd-text);
    text-decoration:none;
}
.rd-difunda-watch-item__author{
    display:block;
    margin-bottom:4px;
    color:#52636a!important;
    font-size:11px;
    line-height:1.25;
    text-decoration:none;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.rd-difunda-watch-item__meta{
    display:flex;
    flex-wrap:wrap;
    gap:4px;
    color:var(--rd-muted);
    font-size:10px;
    line-height:1.3;
}

@media(max-width:1050px){
    .rd-difunda-watch-layout{
        grid-template-columns:minmax(0,1fr) 310px;
        gap:14px;
    }
    .rd-difunda-watch-item{
        grid-template-columns:125px minmax(0,1fr);
        gap:8px;
        padding:8px;
    }
}

@media(max-width:860px){
    .rd-difunda-watch-layout{
        grid-template-columns:1fr;
    }
    .rd-difunda-watch-sidebar{
        margin-top:6px;
    }
    .rd-difunda-watch-sidebar__list{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .rd-difunda-watch-item{
        grid-template-columns:130px minmax(0,1fr);
    }
}

@media(max-width:620px){
    .rd-difunda-watch-sidebar__list{
        grid-template-columns:1fr;
    }
    .rd-difunda-watch-item{
        grid-template-columns:118px minmax(0,1fr);
        padding:8px;
    }
    .rd-difunda-watch-sidebar__head h2{
        font-size:15px;
    }
}


/* ==========================================================
   v0.10.3 — comentarios dentro de la columna del reproductor
   ========================================================== */
.rd-difunda-watch-main .rd-difunda-social-actions,
.rd-difunda-watch-main .rd-difunda-comments,
.rd-difunda-watch-main .rd-difunde__redebook-link,
.rd-difunda-watch-main .rd-difunde__notice{
    width:100%;
    max-width:none;
    box-sizing:border-box;
}
.rd-difunda-watch-main .rd-difunda-comments{
    margin-top:24px;
}
@media(min-width:861px){
    .rd-difunda-watch-sidebar{
        align-self:start;
    }
}

/* v0.11.0 — Difunda como capa audiovisual del ecosistema local */
.rd-difunde-local-capsule{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0 14px;padding:14px 16px;border:1px solid var(--rd-border);border-left:4px solid var(--rd-aqua-dark);border-radius:12px;background:linear-gradient(135deg,#fff,#ecfbfa)}
.rd-difunde-local-capsule>div{display:grid;gap:2px}.rd-difunde-local-capsule strong{font-size:18px;color:#0b4d66}.rd-difunde-local-capsule p{margin:0;max-width:560px;color:#48616a;font-size:13px;line-height:1.45;text-align:right}
.rd-difunde__discovery--local{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:10px 0;border-bottom:1px solid var(--rd-border)}
.rd-difunde__local-scopes{display:flex;gap:7px;flex-wrap:wrap;min-width:0}
.rd-difunde__local-scopes a{display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;border:1px solid var(--rd-border);border-radius:999px;background:#fff;color:#2d6672;text-decoration:none;font-size:13px;font-weight:800;white-space:nowrap}
.rd-difunde__local-scopes a.is-active{background:#e2f8f6;border-color:#0b7e89;color:#075a62;box-shadow:inset 0 0 0 1px rgba(11,126,137,.15)}
.rd-difunde-card__local{font-weight:800;color:#0b707a}
.rd-difunde-single__local-location{display:inline-flex;align-items:center;gap:4px;font-weight:750;color:#0b707a}
.rd-difunde-creator-links{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0 4px}
.rd-difunde-creator-links a{display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;border:1px solid var(--rd-border);border-radius:9px;background:#fff;color:#175b67!important;font-size:13px;font-weight:800;text-decoration:none!important}
.rd-difunde-creator-links a:hover{background:#edfafa;border-color:#88cbd0}
.rd-difunde-creator-links a.is-marketplace{background:#fff6e7;border-color:#ffb138;color:#7c4700!important}
.rd-difunde-creator-links .rd-difunde-reputation{display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;border-radius:9px;background:#fff8e8;color:#6f4c05;font-size:12px;font-weight:800}
@media(max-width:900px){.rd-difunde__discovery--local{grid-template-columns:1fr;gap:10px}.rd-difunde__sorts{justify-content:flex-start}.rd-difunde-local-capsule{align-items:flex-start;flex-direction:column}.rd-difunde-local-capsule p{text-align:left}}


/* v0.11.2 · puente Difunda → Comunidades */
.rd-difunda-community-share{margin:18px 0;padding:16px;border:1px solid rgba(22,139,150,.28);background:rgba(22,139,150,.06)}
.rd-difunda-community-share h2{margin:2px 0 4px;font-size:1.05rem}.rd-difunda-community-share p{margin:0 0 12px;color:#607080}
.rd-difunda-community-share form{display:grid;gap:10px}.rd-difunda-community-share label{display:grid;gap:5px;font-weight:700}.rd-difunda-community-share label span{font-weight:400;color:#6d7780}
.rd-difunda-community-share select,.rd-difunda-community-share textarea{width:100%;box-sizing:border-box;padding:9px;border:1px solid #c7d4da;background:#fff;color:#17212b;font:inherit}
.rd-difunda-community-share__actions{display:flex;gap:10px;align-items:center;justify-content:flex-end}.rd-difunda-community-share__actions span{margin-right:auto;font-size:.88rem;color:#256c3a}.rd-difunda-community-share__actions span.is-error{color:#a22020}.rd-difunda-community-share__empty a{font-weight:800}
