.rc-editorial {
  container: editorial / inline-size;
  --editorial-ink: #0d354c;
  --editorial-deep: #075675;
  --editorial-accent: #04c5c9;
  --editorial-soft: #eaf8f9;
  --editorial-hero: #d7f2f4;
  --editorial-hero-ink: var(--editorial-ink);
  --editorial-gutter: clamp(1.1rem, 5vw, 4rem);
  --editorial-space: clamp(2.6rem, 6vw, 5.4rem);
  background: #fff;
  color: var(--editorial-ink);
  font: 400 1rem/1.65 "ASUR Manrope", system-ui, sans-serif;
}

.rc-editorial[data-editorial="himno"] {
  --editorial-ink: #10265b;
  --editorial-deep: #15398f;
  --editorial-accent: #f6c65d;
  --editorial-soft: #f1f7ff;
  --editorial-hero: #173d98;
  --editorial-hero-ink: #fff;
}

.rc-editorial *, .rc-editorial *::before, .rc-editorial *::after { box-sizing: border-box; }
.rc-editorial [id] { scroll-margin-block-start: 6rem; }
.rc-editorial :is(h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd) { margin: 0; }
.rc-editorial :is(ul, ol) { padding: 0; }
.rc-editorial :is(ul, ol) > li { list-style: none; }
.rc-editorial img { display: block; max-width: 100%; height: auto; }
.rc-editorial p { color: inherit; font: inherit; }

.rc-editorial-inner {
  width: min(100% - 2 * var(--editorial-gutter), 72rem);
  margin-inline: auto;
}

.rc-editorial[data-editorial] :is(h1, h2, h3) {
  color: inherit;
  font-family: "ASUR Outfit", system-ui, sans-serif;
  text-wrap: balance;
}

.rc-editorial h1 { font-size: clamp(2.3rem, 5.5vw, 5.1rem); font-weight: 660; line-height: .99; letter-spacing: -.048em; }
.rc-editorial h2 { font-size: clamp(1.85rem, 4.35vw, 3.55rem); font-weight: 650; line-height: 1.02; letter-spacing: -.035em; }
.rc-editorial h3 { font-size: clamp(1.17rem, 2vw, 1.4rem); font-weight: 680; line-height: 1.2; }

.rc-editorial .rc-editorial-lead {
  margin-block-start: 1rem;
  max-width: 48ch;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  text-wrap: pretty;
}

.rc-editorial-split { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: center; gap: clamp(1.6rem, 6vw, 4.8rem); }
.rc-editorial-band { padding-block: var(--editorial-space); }
.rc-editorial-hero { border-block-end: 4px solid var(--editorial-accent); background: var(--editorial-hero); color: var(--editorial-hero-ink); }
.rc-editorial[data-editorial="dils"] .rc-editorial-hero {
  padding-block: clamp(2.4rem, 4vw, 3.2rem);
  border-block-end: 0;
  background: #fff;
}
.rc-editorial .rc-dils-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  grid-template-areas: "phone copy";
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3.8rem);
}
.rc-dils-hero-inner > div { grid-area: copy; }
.rc-dils-hero-media { grid-area: phone; justify-self: center; width: min(100%, 21rem); }
.rc-dils-title-mark { width: min(100%, 9.375rem); }
.rc-dils-hero-inner .rc-editorial-lead { max-width: 57ch; }
.rc-dils-hero-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .85rem 1rem;
  margin-block-start: 1.35rem;
}
.rc-dils-support-mark { width: min(100%, 11.5rem); }
.rc-editorial .rc-dils-socials { display: flex; flex-wrap: wrap; gap: .35rem; }
.rc-dils-socials a {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--dils-social, var(--editorial-deep));
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
}
.rc-dils-socials a:hover { filter: brightness(.86); }
.rc-dils-social-twitter { --dils-social: #087ab8; }
.rc-dils-social-youtube { --dils-social: #cd171c; }
.rc-dils-social-instagram { --dils-social: #c70081; }

.rc-editorial[data-editorial="himno"] .rc-editorial-hero {
  display: grid;
  align-items: center;
  min-height: clamp(21.5rem, 21.5vw, 33rem);
  background-color: var(--editorial-hero);
  background-image: url("/assets/media/2023/10/fondo-himno-scaled.jpg");
  background-position: center bottom;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.rc-editorial .rc-himno-hero-inner {
  display: grid;
  width: min(65%, 64rem);
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(1.5rem, 3.8vw, 4rem);
}
.rc-editorial .rc-himno-title-mark {
  width: 100%;
  max-width: 24rem;
  margin-inline: auto;
}
.rc-editorial .rc-himno-hero-milestone {
  max-inline-size: 32ch;
  font: 660 clamp(1.45rem, 2.4vw, 2.15rem)/1.18 "ASUR Outfit", system-ui, sans-serif;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.rc-editorial .rc-himno-hero-inner .rc-editorial-lead {
  margin-block-start: .7rem;
}
.rc-editorial[data-editorial="himno"] .rc-editorial-tasks p a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.rc-editorial[data-editorial="himno"] .rc-editorial-video { background: #fff; }
.rc-editorial .rc-editorial-media-feature { width: min(100%, 29rem); margin-inline: auto; }
.rc-editorial-media-feature img { margin-inline: auto; max-height: 23rem; object-fit: contain; }

.rc-editorial .rc-editorial-actions { display: flex; flex-wrap: wrap; gap: .45rem .85rem; margin-top: 1.15rem; list-style: none; }
.rc-editorial .rc-editorial-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .4rem;
  color: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.rc-editorial .rc-editorial-button {
  padding: .56rem .9rem;
  border: 1px solid transparent;
  border-radius: .46rem;
  background: var(--editorial-deep);
  color: #fff;
  text-decoration: none;
}
.rc-editorial .rc-editorial-button:hover { text-decoration: underline; }
.rc-editorial-hero .rc-editorial-button { background: #fff; color: var(--editorial-deep); }
.rc-dils-hero-inner .rc-editorial-actions .rc-editorial-button {
  justify-content: center;
  border-color: var(--editorial-deep);
}
.rc-dils-hero-inner .rc-editorial-actions li:first-child .rc-editorial-button {
  background: var(--editorial-deep);
  color: #fff;
}
.rc-editorial :where(a):focus-visible { outline: 3px solid var(--a11y-focus, currentColor); outline-offset: 3px; }
.rc-dils-socials a:focus-visible { outline-color: var(--a11y-focus, var(--editorial-deep)); }

.rc-editorial-role { background: var(--editorial-deep); color: #fff; }
.rc-editorial-role .rc-editorial-split { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: start; }
.rc-editorial-role h2 + p, .rc-editorial-band h2 + p { margin-block-start: .75rem; }
.rc-editorial-role .rc-editorial-tasks { display: grid; gap: 1rem; list-style: none; }
.rc-editorial-tasks li { padding-block-start: .7rem; border-block-start: 2px solid var(--editorial-accent); }
.rc-editorial-tasks h3 + p { margin-block-start: .28rem; }
.rc-editorial-copy p + p { margin-block-start: .7rem; }
.rc-editorial-copy p { max-width: 59ch; }

.rc-editorial-stats { padding-block: clamp(1.2rem, 2.8vw, 1.85rem); background: linear-gradient(100deg, #067696, #4e6f91); color: #fff; }
.rc-editorial .rc-editorial-stats dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.3rem; margin-inline: auto; }
.rc-editorial-stats dl > div { display: flex; flex-direction: row-reverse; align-items: center; justify-content: center; gap: .5rem clamp(.6rem, 1.7vw, 1.4rem); }
.rc-editorial-stats dt { font-size: clamp(.84rem, 1.4vw, 1.12rem); font-weight: 700; text-transform: uppercase; }
.rc-editorial-stats dd { font: 760 clamp(2rem, 5.4vw, 4rem)/1 "ASUR Outfit", system-ui, sans-serif; }

.rc-editorial-video { background: var(--editorial-soft); }
.rc-editorial .rc-editorial-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; list-style: none; }
.rc-editorial .rc-editorial-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-editorial-card-grid > li > a {
  display: grid;
  height: 100%;
  align-content: start;
  overflow: hidden;
  border: 1px solid #b5ced5;
  border-radius: .65rem;
  background: #fff;
  color: var(--editorial-ink);
  text-decoration: none;
}
.rc-editorial-card-grid > li > a:hover h3 { text-decoration: underline; text-underline-offset: .17em; }
.rc-editorial-card-grid > li > a > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--editorial-soft); }
.rc-editorial-card-grid h3 { padding: .85rem 1rem 1rem; text-wrap: pretty; }
.rc-editorial-video-card { --rc-video-radius: 0; overflow: hidden; border: 1px solid #b5ced5; border-radius: .65rem; background: #fff; color: var(--editorial-ink); }
.rc-editorial-video-caption { padding: .85rem 1rem .35rem; }
.rc-editorial-video-caption h3 { padding: 0; }
.rc-editorial-trailer {
  --rc-video-radius: .7rem;
  --rc-video-background: var(--editorial-ink);
  max-width: 58rem;
  margin-block: 1.2rem .4rem;
}
.rc-editorial-gallery-group + .rc-editorial-gallery-group { margin-top: 2.9rem; }

.rc-editorial-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.4rem, 5vw, 4.5rem); }
.rc-editorial-quote { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; align-items: start; gap: .9rem; text-align: center; }
.rc-editorial .rc-editorial-quote blockquote { padding: 0; border: 0; background: none; box-shadow: none; color: inherit; font: 400 1.16rem/1.56 "ASUR Manrope", system-ui, sans-serif; }
.rc-editorial .rc-editorial-quote blockquote::before { content: none; }
.rc-editorial-quote img { width: 6.5rem; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.rc-editorial-quote figcaption { font-size: .95rem; font-weight: 750; }
.rc-editorial-testimonials { border-block-start: 1px solid #dbe7ed; }

.rc-editorial-partnerships { background: var(--editorial-soft); }
.rc-editorial[data-editorial="dils"] .rc-editorial-marks {
  --partner-columns: 5;
  --partner-gap: clamp(.625rem, 1.45vw, 1.125rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--partner-gap);
  margin-block-start: clamp(1.35rem, 2.4vw, 2rem);
  list-style: none;
}

.rc-editorial[data-editorial="dils"] .rc-editorial-mark {
  flex: 0 0 calc((100% - (var(--partner-columns) - 1) * var(--partner-gap)) / var(--partner-columns));
  min-inline-size: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: start;
  gap: .7rem;
  padding: clamp(.7rem, 1.4vw, 1.2rem);
  border: 1px solid #cde5e8;
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 3px 12px rgb(13 53 76 / 4%);
  text-align: center;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.35;
}

.rc-editorial[data-editorial="dils"] .rc-editorial-mark img {
  width: min(100%, 8.5rem);
  height: clamp(3.1rem, 6.5vw, 4.25rem);
  object-fit: contain;
}

.rc-editorial[data-editorial="dils"] .rc-editorial-mark span {
  min-block-size: 2.7em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.rc-editorial-credentials + .rc-editorial-credentials { margin-top: 2rem; }

.rc-himno-clips {
  background: linear-gradient(150deg, var(--editorial-soft), #fbfdff 65%);
  color: var(--editorial-ink);
}

.rc-himno-clip-grid {
  display: grid;
  gap: clamp(1rem, 2.25vw, 1.7rem);
  margin-block-start: clamp(1.4rem, 3.3vw, 2.5rem);
}

.rc-himno-clip {
  min-width: 0;
  border: 1px solid #cbd8ef;
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 8px 24px rgb(16 38 91 / 7%);
}

.rc-himno-clip video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: .75rem .75rem 0 0;
  background: var(--editorial-ink);
  object-fit: contain;
}

.rc-himno-clip video:focus-visible {
  outline: 3px solid var(--a11y-focus, var(--editorial-deep));
  outline-offset: 3px;
}

.rc-himno-clip-copy { padding: clamp(1rem, 2vw, 1.35rem); }
.rc-himno-clip-copy h3 + p { margin-block-start: .35rem; }

@container editorial (min-width: 42rem) {
  .rc-himno-clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rc-editorial[data-editorial="himno"] .rc-editorial-partnerships {
  background: var(--editorial-hero);
  color: #fff;
}
.rc-himno-credits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 5vw, 4rem);
  margin-top: clamp(1.65rem, 4vw, 2.8rem);
}
.rc-himno-credit { padding-block: 1rem 1.75rem; border-top: 1px solid #ffffff69; }
.rc-himno-credit:not(.rc-himno-declarations) { text-align: center; }
.rc-himno-credit h3 { margin-bottom: 1.15rem; color: #fff; }
.rc-himno-credit > img { width: min(100%, 16rem); margin: .65rem auto; }
.rc-himno-credit > a { display: inline-block; width: min(8rem, 100%); }
.rc-himno-credit > a img { width: 100%; }
.rc-himno-declarations { grid-column: 1 / -1; padding-bottom: 0; }
.rc-himno-declarations ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
}
.rc-himno-declarations a { display: grid; min-height: 5rem; align-items: center; }
.rc-himno-declarations img { width: 100%; max-height: 5.25rem; object-fit: contain; object-position: left center; }
.rc-himno-credit a:hover { outline: 1px solid #ffffff7a; outline-offset: 5px; }
.rc-editorial-close { background: var(--editorial-deep); color: #fff; }
.rc-editorial[data-editorial="himno"] .rc-editorial-close {
  background: var(--editorial-soft);
  color: var(--editorial-ink);
}
body:not(.high-contrast, .a11y-negative) .rc-editorial[data-editorial="himno"] .rc-editorial-close .rc-closing-logo--inverse,
body:is(.high-contrast, .a11y-negative) .rc-editorial[data-editorial="himno"] .rc-editorial-close .rc-closing-logo:not(.rc-closing-logo--inverse) {
  display: none;
}
body:is(.a11y-light, .a11y-grayscale) .rc-editorial[data-editorial="himno"] :is(.rc-himno-title-mark, .rc-himno-credit a img) {
  padding: .5rem;
  border-radius: .35rem;
  background-color: var(--editorial-deep);
}
.rc-editorial[data-editorial="dils"] .rc-editorial-close {
  background: var(--editorial-soft);
  color: var(--editorial-ink);
}

@container editorial (max-width: 68rem) {
  .rc-editorial[data-editorial="himno"] .rc-editorial-hero { background-size: 100% auto; }
}

@container editorial (max-width: 56rem) {
  .rc-editorial .rc-himno-hero-inner {
    width: min(100% - 2 * var(--editorial-gutter), 33rem);
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .rc-himno-hero-inner > h1 { max-inline-size: 100%; }
  .rc-editorial .rc-himno-title-mark { width: min(100%, 60vw, 17rem); }
  .rc-himno-hero-inner :is(.rc-himno-hero-milestone, .rc-editorial-lead) { margin-inline: auto; }
  .rc-himno-hero-inner .rc-editorial-actions { justify-content: center; }
  .rc-editorial[data-editorial="himno"] .rc-editorial-hero {
    padding-block-end: calc(var(--editorial-space) + 6vw);
  }
  .rc-himno-declarations ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container editorial (max-width: 50rem) {
  .rc-editorial :is(h1, h2, h3, p, a, figcaption) { overflow-wrap: anywhere; }
  .rc-editorial-split, .rc-editorial-role .rc-editorial-split {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .rc-editorial-split > div > p { max-inline-size: 59ch; margin-inline: auto; }
  .rc-editorial .rc-dils-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "phone";
    justify-items: center;
    text-align: center;
  }
  .rc-dils-hero-inner > div { inline-size: min(100%, 40rem); }
  .rc-dils-hero-media { width: min(100%, 14rem); }
  .rc-dils-title-mark, .rc-dils-hero-inner .rc-editorial-lead { margin-inline: auto; }
  .rc-dils-hero-details, .rc-editorial .rc-dils-socials, .rc-editorial-hero .rc-editorial-actions { justify-content: center; }
  .rc-dils-hero-details > nav, .rc-editorial-actions > li, .rc-editorial .rc-editorial-link { max-inline-size: 100%; }
  .rc-editorial-role .rc-editorial-tasks { inline-size: min(100%, 59ch); margin-inline: auto; }
  .rc-editorial :is(.rc-editorial-video, .rc-editorial-gallery-group, .rc-editorial-partnerships, .rc-himno-clips) { text-align: center; }
  .rc-editorial-trailer { margin-inline: auto; }
  .rc-editorial .rc-editorial-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-editorial-card-grid > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    inline-size: calc((100% - 1rem) / 2);
  }
  .rc-editorial[data-editorial="dils"] .rc-editorial-marks { --partner-columns: 4; }
  .rc-himno-declarations img { object-position: center; }
}

@container editorial (max-width: 37rem) {
  .rc-dils-support-mark { width: min(100%, 8rem); }
  .rc-editorial-stats dl > div { flex-direction: column-reverse; text-align: center; }
  .rc-editorial-quotes, .rc-himno-credits { grid-template-columns: minmax(0, 1fr); }
  .rc-editorial[data-editorial="dils"] .rc-editorial-marks { --partner-columns: 2; }
}

@container editorial (max-width: 32rem) {
  .rc-editorial .rc-editorial-card-grid,
  .rc-himno-declarations ul { grid-template-columns: minmax(0, 1fr); }
  .rc-editorial-card-grid > li:last-child:nth-child(odd) { inline-size: 100%; }
  .rc-himno-declarations a { inline-size: min(100%, 15rem); margin-inline: auto; }
}

@container editorial (max-width: 19rem) {
  .rc-editorial .rc-editorial-stats dl { grid-template-columns: minmax(0, 1fr); }
  .rc-editorial[data-editorial="dils"] .rc-editorial-marks { --partner-columns: 1; }
}
