/* Hero module. Loaded after cca-design-system.css only on opted-in pages. */
.cca-v2.cca-v2__page { margin: 0; }
.cca-v2 .cca-v2__skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-200%);
  padding: 16px;
  background: var(--cca-v2-white);
  color: var(--cca-v2-black);
}
.cca-v2 .cca-v2__skip-link:focus { transform: none; }
.cca-v2 .cca-v2__pilot-empty { padding-block: 80px; }
.cca-v2 .cca-v2__hero { position: relative; }
.cca-v2 .cca-v2__hero-slide[hidden],
.cca-v2 .cca-v2__hero-controls[hidden],
.cca-v2 .cca-v2__hero-video[hidden],
.cca-v2 .cca-v2__hero-video-toggle[hidden] { display: none; }
.cca-v2 .cca-v2__hero[data-hero-ready] .cca-v2__hero-slides { position: relative; display: grid; overflow: hidden; }
.cca-v2 .cca-v2__hero[data-hero-ready] .cca-v2__hero-slide { grid-area: 1 / 1; min-width: 0; }
/* Mixed designs share the tallest slide's intrinsic height, also when mobile stacks the columns.
   Inactive slides stay inert and aria-hidden in the script, while still reserving their layout. */
.cca-v2 .cca-v2__hero[data-hero-ready] .cca-v2__hero-slide[hidden] { display: block; visibility: hidden; pointer-events: none; }
.cca-v2 .cca-v2__hero-slide.is-current { position: relative; z-index: 1; }
.cca-v2 .cca-v2__hero-slide.is-leaving { position: relative; z-index: 0; pointer-events: none; }
.cca-v2 .cca-v2__hero-content {
  position: relative;
  display: grid;
  min-height: clamp(440px, 55.556vw, 800px);
  color: var(--cca-v2-ink);
  background: var(--cca-v2-surface);
  text-decoration: none;
  overflow: hidden;
}
.cca-v2 .cca-v2__hero-media { position: relative; min-width: 0; overflow: hidden; background: var(--cca-v2-gray-400); }
.cca-v2 .cca-v2__hero-media picture { display: block; height: 100%; }
.cca-v2 .cca-v2__hero-image,
.cca-v2 .cca-v2__hero-video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.cca-v2 .cca-v2__hero-video { position: absolute; inset: 0; pointer-events: none; }
.cca-v2 .cca-v2__hero-slide--focus-left :is(.cca-v2__hero-image, .cca-v2__hero-video) { object-position: left center; }
.cca-v2 .cca-v2__hero-slide--focus-right :is(.cca-v2__hero-image, .cca-v2__hero-video) { object-position: right center; }
.cca-v2 .cca-v2__hero-video-toggle { position: absolute; top: 16px; right: 16px; z-index: 3; background: var(--cca-v2-white); color: var(--cca-v2-black); border-color: var(--cca-v2-black); }
.cca-v2 .cca-v2__hero-video-toggle:focus-visible { outline: 3px solid var(--cca-v2-black); outline-offset: 3px; box-shadow: 0 0 0 6px var(--cca-v2-white); }
.cca-v2 .cca-v2__hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
  padding: 40px 8px 56px;
}
.cca-v2 .cca-v2__hero-body > * { max-width: 100%; }
.cca-v2 .cca-v2__hero-body .cca-v2__body { max-width: 560px; }
.cca-v2 .cca-v2__hero-body .cca-v2__label { line-height: var(--cca-v2-leading-section); overflow-wrap: anywhere; }
.cca-v2 .cca-v2__hero-slide--full .cca-v2__hero-media { position: absolute; inset: 0; }
.cca-v2 .cca-v2__hero-slide--full .cca-v2__hero-content::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 15%, rgba(0, 0, 0, .8) 100%);
}
.cca-v2 .cca-v2__hero-slide--full .cca-v2__hero-body {
  width: calc(100% - 16px);
  max-width: 1424px;
  margin-inline: auto;
  padding-inline: 0;
}
.cca-v2 .cca-v2__hero-slide--full h2 { max-width: 710px; }
.cca-v2 .cca-v2--light .cca-v2__hero-slide--full .cca-v2__hero-content::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04) 15%, rgba(255, 255, 255, .9) 100%);
}
.cca-v2 .cca-v2__hero-slide--split .cca-v2__hero-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cca-v2 .cca-v2__hero-slide--split .cca-v2__hero-body { grid-column: 1; grid-row: 1; }
.cca-v2 .cca-v2__hero-slide--split .cca-v2__hero-media { grid-column: 2; grid-row: 1; position: relative; }
.cca-v2 .cca-v2__hero-slide--split .cca-v2__hero-image { position: absolute; inset: 0; }
/* A separate decorative image fills only the text column, behind its normal content. */
.cca-v2 .cca-v2__hero-body--background { isolation: isolate; }
.cca-v2 .cca-v2__hero-text-background { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cca-v2 .cca-v2__hero-text-background picture { display: block; width: 100%; height: 100%; }
.cca-v2 .cca-v2__hero-text-background::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.cca-v2 .cca-v2--light .cca-v2__hero-text-background::after { background: rgba(255, 255, 255, .8); }
.cca-v2 .cca-v2__hero-text-background--focus-center .cca-v2__hero-image { object-position: center; }
.cca-v2 .cca-v2__hero-text-background--focus-left .cca-v2__hero-image { object-position: left center; }
.cca-v2 .cca-v2__hero-text-background--focus-right .cca-v2__hero-image { object-position: right center; }
@media (min-width: 768px) {
  .cca-v2 .cca-v2__hero-slide--text-right .cca-v2__hero-body { grid-column: 2; }
  .cca-v2 .cca-v2__hero-slide--text-right .cca-v2__hero-media { grid-column: 1; }
}
.cca-v2 .cca-v2__hero-slide--text .cca-v2__hero-content { min-height: 400px; }
.cca-v2 .cca-v2__hero-slide--text .cca-v2__hero-body { width: calc(100% - 16px); max-width: 1424px; margin-inline: auto; padding-inline: 0; }
/* Solo texto en escritorio: 200 px de relleno arriba y 80 px abajo. En móvil conserva el relleno de siempre. */
@media (min-width: 768px) { .cca-v2 .cca-v2__hero-slide--text .cca-v2__hero-body { padding-block: 200px 80px; } }
.cca-v2 a.cca-v2__hero-content:focus-visible { outline: 3px solid var(--cca-v2-ink); outline-offset: -6px; }
.cca-v2 .cca-v2__hero-controls {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  display: flex;
  justify-content: center;
  max-width: 100%;
  transform: translateX(-50%);
}
.cca-v2 .cca-v2__hero-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--cca-v2-ink);
  background: transparent;
  cursor: pointer;
  appearance: none;
}
.cca-v2 .cca-v2__hero-dot span { display: block; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.cca-v2 .cca-v2__hero-dot[aria-pressed="true"] span { width: 24px; }
.cca-v2 .cca-v2__hero-dot:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
@media (hover: hover) {
  .cca-v2 a.cca-v2__hero-content:hover .cca-v2__hero-cta { background: transparent; color: var(--cca-v2-ink); }
  .cca-v2 .cca-v2__hero-video-toggle:not(:disabled):not([aria-disabled="true"]):hover { background: var(--cca-v2-black); color: var(--cca-v2-white); }
}
@media (max-width: 767px) {
  .cca-v2 .cca-v2__hero-slide--full .cca-v2__hero-content { min-height: 560px; }
  .cca-v2 .cca-v2__hero-body { padding-top: 32px; }
  .cca-v2 .cca-v2__hero-slide--split .cca-v2__hero-content { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cca-v2 .cca-v2__hero-slide--split .cca-v2__hero-media { grid-column: 1; grid-row: 1; min-height: 280px; }
  .cca-v2 .cca-v2__hero-slide--split .cca-v2__hero-body { grid-column: 1; grid-row: 2; }
  .cca-v2 .cca-v2__hero-slide--text .cca-v2__hero-content { min-height: 320px; }
}
