/* RESPONSIVE CONTAINER BRIDGE RC7
 * Frontend keeps viewport @media behavior. Playground additionally exposes
 * `container-name: wapu-block-preview` on the real Canvas width, so duplicated
 * width-only @container rules respond to the authoring surface instead of the
 * browser window. Relative rem/em units preserve user zoom and font scaling.
 */
/**
 * WapuOS - Blocks · Base global
 *
 * Única fuente para escala tipográfica, sistema de 8 puntos, componentes,
 * accesibilidad y comportamiento responsive transversal.
 */
.wapu-block-style-scope {
    /* WapuOS - Blocks owns semantic roles, never a palette. Values come from
       Playground Content Style and remain scoped to the rendered block. */
    --wb-surface: var(--pg-sem-surface, Canvas);
    --wb-surface-muted: var(--pg-sem-surface-muted, var(--pg-sem-surface, Canvas));
    --wb-text: var(--pg-sem-text, CanvasText);
    --wb-muted: var(--pg-sem-text-muted, GrayText);
    --wb-border: var(--pg-sem-border, color-mix(in srgb, currentColor 16%, transparent));
    --wb-border-strong: var(--pg-sem-border-strong, color-mix(in srgb, currentColor 28%, transparent));
    --wb-primary: var(--pg-style-primary, currentColor);
    --wb-primary-text: var(--pg-style-primary-text, var(--pg-sem-surface, Canvas));
    --wb-secondary: var(--pg-style-secondary, var(--pg-sem-surface-muted, Canvas));
    --wb-secondary-text: var(--pg-style-secondary-text, var(--pg-sem-text, CanvasText));
    --wb-accent: var(--pg-style-accent, var(--pg-style-primary, currentColor));
    --wb-accent-text: var(--pg-style-accent-text, var(--pg-sem-surface, Canvas));
    --wb-primary-soft: var(--pg-style-primary-soft, var(--pg-sem-surface-muted, Canvas));
    --wb-secondary-soft: var(--pg-style-secondary-soft, var(--pg-sem-surface-muted, Canvas));
    --wb-overlay: var(--pg-sem-overlay, color-mix(in srgb, var(--pg-sem-text, CanvasText) 52%, transparent));
    --wb-overlay-text: var(--pg-sem-overlay-text, Canvas);
    --wb-button-bg: var(--pg-sem-button-bg, var(--pg-style-primary, currentColor));
    --wb-button-text: var(--pg-sem-button-text, var(--pg-style-primary-text, Canvas));
    --wb-focus: var(--pg-state-focus, currentColor);
    --wapu-space-1: 0.5rem;
    --wapu-space-2: 1rem;
    --wapu-space-3: 1.5rem;
    --wapu-space-4: 2rem;
    --wapu-space-5: 2.5rem;
    --wapu-space-6: 3rem;
    --wapu-space-8: 4rem;
    --wapu-type-caption: var(--pg-type-caption, 0.6875rem);
    --wapu-type-label: var(--pg-type-label, 0.75rem);
    --wapu-type-small: var(--pg-type-small, 0.875rem);
    --wapu-type-body: var(--pg-type-body, 1rem);
    --wapu-type-lead: var(--pg-type-lead, 1.125rem);
    --wapu-type-h4: var(--pg-type-h4, 1.125rem);
    --wapu-type-h3: var(--pg-type-h3, 1.375rem);
    --wapu-type-h2: var(--pg-type-h2, clamp(1.75rem, 3vw, 2.75rem));
    --wapu-type-h1: var(--pg-type-h1, clamp(2.25rem, 5vw, 4rem));
    --wapu-type-hero: var(--pg-type-hero, clamp(3rem, 7vw, 6rem));
    --wapu-type-display: var(--pg-type-display, clamp(4rem, 10vw, 9rem));
    --wapu-leading-tight: var(--pg-leading-tight, 1.12);
    --wapu-leading-body: var(--pg-leading-body, 1.55);
    --wapu-tracking-label: var(--pg-tracking-label, .08em);
    font-family: var(--pg-style-body, var(--pg-style-font-body, var(--pg-style-body, var(--font-sans, sans-serif))));
}

.wapu-block-style-scope,
.wapu-block-style-scope * {
    box-sizing: border-box;
}

.wapu-block-style-scope :where(section, div, article, header, footer, li) {
    min-width: 0;
}

.wapu-block-style-scope :where(img, picture, video, iframe, svg) {
    max-width: 100%;
    height: auto;
}

.wapu-block-style-scope :where(h1, h2, h3, h4, p, small) {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    color: var(--wapu-block-text, inherit);
}
.wapu-block-style-scope :where(h1, h2, h3, h4),
.wapu-block-style-scope .wapu-c-title {
    text-wrap: balance;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}
.wapu-block-style-scope :where(p),
.wapu-block-style-scope .wapu-c-body {
    text-wrap: pretty;
}

.wapu-block-style-scope :where(h1, h2, h3, h4),
.wapu-block-style-scope .wapu-c-title {
    font-family: var(--pg-style-heading, var(--pg-style-font-title, var(--pg-style-heading, var(--font-display, sans-serif)))) !important;
}

.wapu-block-style-scope :where(p, small, a, button, input, select, textarea),
.wapu-block-style-scope :where(.wapu-c-body, .wapu-c-small, .wapu-c-cta) {
    font-family: var(--pg-style-body, var(--pg-style-font-body, var(--pg-style-body, var(--font-sans, sans-serif))));
}

.wapu-block-style-scope :where(h1) {
    font-size: var(--wapu-type-h1);
    line-height: var(--wapu-leading-tight);
    letter-spacing: -.02em;
}

.wapu-block-style-scope :where(h2) {
    font-size: var(--wapu-type-h2);
    line-height: var(--wapu-leading-tight);
    letter-spacing: -.02em;
}

.wapu-block-style-scope :where(h3) {
    font-size: var(--wapu-type-h3);
    line-height: 1.2;
}

.wapu-block-style-scope :where(h4) {
    font-size: var(--wapu-type-h4);
    line-height: 1.25;
}

/* Escalas expresivas opt-in. El atributo pertenece al componente Título y
   gana de forma intencional al reset semántico de h1/h2. */
.wapu-block-style-scope .wapu-c-title[data-size="hero"] {
    font-size: var(--wapu-type-hero) !important;
    line-height: .92;
    letter-spacing: -.05em;
}

.wapu-block-style-scope .wapu-c-title[data-size="display"] {
    font-size: var(--wapu-type-display) !important;
    line-height: .82;
    letter-spacing: -.07em;
}

.wapu-block-style-scope :where(p, .wapu-c-body) {
    font-size: var(--wapu-type-body);
    line-height: var(--wapu-leading-body);
}

.wapu-block-style-scope :where(small, .wapu-c-small) {
    font-size: var(--wapu-type-small);
    line-height: 1.45;
}

.wapu-block-style-scope :where(button, [role="button"], [role="tab"], .wapu-c-cta) {
    font-size: var(--wapu-type-small);
    line-height: 1.2;
}

.wapu-block-style-scope :where(
    button,
    .wapu-c-cta,
    [class~="cta"],
    [class*="-button"],
    [class*="__button"],
    [class*="-btn"],
    [class*="__btn"],
    [class*="-cta"],
    [class*="__cta"]
) {
    border-radius: var(--wapu-button-radius, 0.75rem) !important;
}

.wapu-block-style-scope :where(button, a, [role="button"], [role="tab"]):focus-visible {
    outline: 0.1875rem solid var(--wapu-state-focus, var(--pg-state-focus, var(--wapu-block-accent, var(--pg-style-primary, var(--wb-text)))));
    outline-offset: 0.1875rem;
    box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--wapu-state-focus, var(--pg-state-focus, var(--wapu-block-accent, var(--wb-text)))) 20%, transparent);
}

/* The scope owns the outer surface only. Internal wrappers remain free to
   express the composition declared by each block. */
.wapu-block-style-scope {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--wapu-block-bg, transparent);
    color: var(--wapu-block-text, inherit);
}

.wapu-c-image,
.wapu-c-image-img,
.wapu-c-media,
.wapu-c-media__video {
    display: block;
    max-width: 100%;
}

.wapu-c-body--sm {
    font-size: var(--wapu-type-small) !important;
}

[data-wapu-component="media"] {
    overflow: hidden;
}

[data-wapu-component="button"] {
    font-family: var(--pg-style-body, var(--pg-style-font-body, var(--pg-style-body, var(--font-sans, sans-serif))));
}

.wapu-c-cta {
    min-height: 2.75rem;
    justify-content: center;
}

.wapu-c-cta--underline,
.wapu-c-cta--link-arrow {
    min-height: 2rem;
}

@media (max-width: 48em) {
    .wapu-block-style-scope {
        --wapu-space-6: 2.5rem;
        --wapu-space-8: 3rem;
    }

    .wapu-block-style-scope :where([class*="grid"], [class*="wrap"], [class*="content"]) {
        min-width: 0;
    }

    .wapu-block-style-scope :where(h1, h2, h3, p) {
        max-width: 100%;
    }

    .wapu-block-style-scope :where(
        [data-wapu-mobile-carousel="true"],
        .wapu-mobile-carousel
    ) {
        display: flex !important;
        grid-template-columns: none !important;
        gap: var(--wapu-space-2);
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .wapu-block-style-scope :where(
        [data-wapu-mobile-carousel="true"],
        .wapu-mobile-carousel
    ) > * {
        flex: 0 0 min(84vw, 20rem);
        scroll-snap-align: start;
    }
}
@container wapu-block-preview (max-width: 48em){
    .wapu-block-style-scope {
        --wapu-space-6: 2.5rem;
        --wapu-space-8: 3rem;
    }

    .wapu-block-style-scope :where([class*="grid"], [class*="wrap"], [class*="content"]) {
        min-width: 0;
    }

    .wapu-block-style-scope :where(h1, h2, h3, p) {
        max-width: 100%;
    }

    .wapu-block-style-scope :where(
        [data-wapu-mobile-carousel="true"],
        .wapu-mobile-carousel
    ) {
        display: flex !important;
        grid-template-columns: none !important;
        gap: var(--wapu-space-2);
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .wapu-block-style-scope :where(
        [data-wapu-mobile-carousel="true"],
        .wapu-mobile-carousel
    ) > * {
        flex: 0 0 min(84vw, 20rem);
        scroll-snap-align: start;
    }
}


@media (prefers-reduced-motion: reduce) {
    .wapu-block-style-scope *,
    .wapu-block-style-scope *::before,
    .wapu-block-style-scope *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
/* Shared Canvas presentation primitives moved to WapuOS - Playground 8.0. */
/* Componentes globales de alineación y visibilidad. Pertenecen al runtime de
 * Blocks; nunca dependen de que Playground tenga efectos activos. */
.wapu-block[data-title-align="left"]{--wapu-block-title-align:left;--wapu-block-title-margin-left:0;--wapu-block-title-margin-right:auto;--wapu-block-title-items:flex-start}
.wapu-block[data-title-align="center"]{--wapu-block-title-align:center;--wapu-block-title-margin-left:auto;--wapu-block-title-margin-right:auto;--wapu-block-title-items:center}
.wapu-block[data-title-align="right"]{--wapu-block-title-align:right;--wapu-block-title-margin-left:auto;--wapu-block-title-margin-right:0;--wapu-block-title-items:flex-end}
.wapu-block[data-title-align] :is(.wapu-c-title,.ws-vhs-title,.ws-hvr-title,.ws-he-title,.wapu-hero-split__title,.ws-vsp-title,.ws-vs-title,.ws-hiw-title,.ws-bo-title,.ws-bd-title,.ws-bd-main-title,.ws-bento-title,.ws-bento-destinations-v1__title,.ws-cc-title,.cf-title,.cp-title,.cs-title,.ws-ces-title,.ws-curated-title,.ws-edgrid-title,.ws-fg-heading,.ws-fgn-title,.ws-pd-heading,.ws-pgm-title,.ws-pc-title,.ws-pq-title,.ws-pqt-title,.pt-title,.ws-polaroid-hero-v1__title,.ws-pin-image-title,.ws-sp-title,.ws-tl-title){margin-right:var(--wapu-block-title-margin-right)!important;margin-left:var(--wapu-block-title-margin-left)!important;text-align:var(--wapu-block-title-align)!important}
.wapu-block[data-title-align] .ws-vhs-content{align-items:var(--wapu-block-title-items)!important;text-align:var(--wapu-block-title-align)!important}
@media (min-width:64.0625em){.wapu-block--hide-desktop{display:none!important}}
@container wapu-block-preview (min-width:64.0625em){.wapu-block--hide-desktop{display:none!important}}

@media (min-width:48.0625em) and (max-width:64em){.wapu-block--hide-tablet{display:none!important}}
@container wapu-block-preview (min-width:48.0625em) and (max-width:64em){.wapu-block--hide-tablet{display:none!important}}

@media (max-width:48em){.wapu-block--hide-mobile{display:none!important}}
@container wapu-block-preview (max-width:48em){.wapu-block--hide-mobile{display:none!important}}


/* Circular marquee is rendered/styled by Playground Canvas. */
/* rc.12 · semantic painting and contrast contract */
[data-wapu-block-scope] {
  --wapu-button-bg: var(--pg-style-button-bg, var(--wapu-block-accent, var(--wb-text)));
  --wapu-button-text: var(--pg-style-button-text, var(--wb-surface));
  --wapu-bar-bg: var(--wapu-block-accent, var(--pg-style-accent, var(--pg-style-primary, var(--wb-text))));
  --wapu-bar-text: var(--wapu-block-accent-text, var(--pg-style-accent-text, var(--wb-surface)));
  --wapu-block-accent-text: var(--pg-style-accent-text, var(--wb-surface));
}
[data-wapu-block-scope] [data-wapu-component="button"].wapu-c-cta--filled,
[data-wapu-block-scope] .wapu-action-button,
[data-wapu-block-scope] .wapu-button--solid {
  background-color: var(--wapu-button-bg);
  color: var(--wapu-button-text);
  border-color: color-mix(in srgb, var(--wapu-button-text) 80%, var(--wapu-button-bg));
}
[data-wapu-block-scope] [data-wapu-component="button"].wapu-c-cta--filled :where(span,b,i,svg),
[data-wapu-block-scope] .wapu-action-button :where(span,b,i,svg),
[data-wapu-block-scope] .wapu-button--solid :where(span,b,i,svg) { color: inherit; }
[data-wapu-block-scope] [data-wapu-role="bar"],
[data-wapu-block-scope] .wapu-promo-bar,
[data-wapu-block-scope] .wapu-announcement-bar {
  background: var(--wapu-bar-bg);
  color: var(--wapu-bar-text);
}

/* WapuOS - Blocks 2.21.0-rc.15 · Playground interaction contract 1.4
   Hover, active, selected, focus and disabled are semantic states. Block
   authors can still choose layout, but may not invent a separate state
   language or unsafe foreground/background pairing. */
.wapu-block-style-scope {
    --wapu-space-xs: 0.5rem;
    --wapu-space-sm: 0.75rem;
    --wapu-space-md: 1.125rem;
    --wapu-space-lg: 1.75rem;
    --wapu-space-xl: clamp(2.5rem, 6vw, 5rem);
    --wapu-product-grid-gap: clamp(0.75rem, 1.8vw, 1.375rem);
    --wapu-control-size: 2.5rem;
    --wapu-control-radius: 62.4375rem;
    --wapu-state-hover-bg: var(--pg-state-hover-bg, var(--pg-state-hover-bg, color-mix(in srgb, var(--wapu-block-accent, var(--wb-text)) 8%, var(--wapu-block-bg, var(--wb-surface)))));
    --wapu-state-hover-border: var(--pg-state-hover-border, var(--pg-state-hover-border, color-mix(in srgb, var(--wapu-block-accent, var(--wb-text)) 34%, var(--wapu-block-bg, var(--wb-surface)))));
    --wapu-state-active-bg: var(--pg-state-active-bg, var(--pg-state-active-bg, color-mix(in srgb, var(--wapu-block-accent, var(--wb-text)) 16%, var(--wapu-block-bg, var(--wb-surface)))));
    --wapu-state-active-border: var(--pg-state-active-border, var(--pg-state-active-border, color-mix(in srgb, var(--wapu-block-accent, var(--wb-text)) 52%, var(--wapu-block-bg, var(--wb-surface)))));
    --wapu-state-selected-bg: var(--pg-state-selected-bg, var(--pg-state-selected-bg, color-mix(in srgb, var(--wapu-block-accent, var(--wb-text)) 18%, var(--wapu-block-bg, var(--wb-surface)))));
    --wapu-state-selected-text: var(--pg-state-selected-text, var(--pg-state-selected-text, var(--wapu-block-text, var(--wb-text))));
    --wapu-state-selected-border: var(--pg-state-selected-border, var(--pg-state-selected-border, var(--wapu-block-accent, var(--wb-text))));
    --wapu-state-focus: var(--pg-state-focus, var(--pg-state-focus, var(--wapu-block-accent, var(--wb-text))));
    --wapu-state-disabled-opacity: var(--pg-state-disabled-opacity, var(--pg-state-disabled-opacity, .42));
}

.wapu-block-style-scope :where(
    button,
    [role="button"],
    [role="tab"],
    .wapu-c-cta:is(a,button,[role="button"])
) {
    transition-property: background-color,border-color,color,box-shadow,filter,opacity,transform;
    transition-duration: 160ms;
    transition-timing-function: ease;
}

.wapu-block-style-scope :where(
    button,
    [role="button"],
    [role="tab"],
    .wapu-c-cta:is(a,button,[role="button"])
):where(:disabled,[aria-disabled="true"]) {
    opacity: var(--wapu-state-disabled-opacity);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

/* Keyboard focus is deliberately stronger than hover and never depends on
   the block's local CSS. */
.wapu-block-style-scope :where(
    button,
    a[href],
    [role="button"],
    [role="tab"],
):focus-visible {
    outline: 0.1875rem solid var(--wapu-state-focus);
    outline-offset: 0.1875rem;
    box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--wapu-state-focus) 20%, transparent);
}

/* Pressed is a short feedback state; it never changes the semantic pairing. */
.wapu-block-style-scope :where(
    button,
    [role="button"],
    [role="tab"],
    .wapu-c-cta
):not(:disabled):not([aria-disabled="true"]):active {
    filter: brightness(.94);
}

/* Tabs/chips/selectable controls all use the same selected language. */
.wapu-block-style-scope :where(
    [role="tab"][aria-selected="true"],
    button[aria-pressed="true"],
    .pt-tab.is-active,
    .wb-nt-tab.is-active,
    .ws-obs-tab.is-active,
    .wb-category-tabs__tab.is-active,
    .wr-tabhero-tabs button.is-active
) {
    border-color: var(--wapu-state-selected-border);
    background: var(--wapu-state-selected-bg);
    color: var(--wapu-state-selected-text);
    box-shadow: 0 0 0 0.125rem color-mix(in srgb, var(--wapu-state-selected-border) 16%, transparent);
}

.wapu-block-style-scope :where(
    [role="tab"],
    button[aria-pressed],
    .pt-tab,
    .wb-nt-tab,
    .ws-obs-tab,
    .wb-category-tabs__tab,
    .wr-tabhero-tabs button
):not(:disabled):not([aria-disabled="true"]):hover {
    border-color: var(--wapu-state-hover-border);
    background: var(--wapu-state-hover-bg);
}

/* Shared CTAs keep their visual variant but receive one predictable feedback
   language. Transparent variants use the semantic hover surface; filled CTAs
   preserve their paired color and darken slightly. */
.wapu-block-style-scope .wapu-c-cta:is(a,button,[role="button"]):not([aria-disabled="true"]):hover {
    box-shadow:none;
}
.wapu-block-style-scope :where(a.wapu-c-cta--filled,button.wapu-c-cta--filled,[role="button"].wapu-c-cta--filled):hover {
    filter: brightness(.94);
}
.wapu-block-style-scope :where(a.wapu-c-cta--bordered,a.wapu-c-cta--underline,a.wapu-c-cta--link-arrow,button.wapu-c-cta--bordered,button.wapu-c-cta--underline,button.wapu-c-cta--link-arrow):hover {
    background:var(--wapu-state-hover-bg);
    box-shadow:none;
}


/* Content Style button contract v2. One global decision governs every Block CTA.
   Inline is text + 1px underline only. Pill is 25px-equivalent radius. Recto has no radius. */
.wapu-block-style-scope[data-wapu-button-type] :where([data-wapu-component="button"],a[class*="__cta"],span[class*="__cta"]){
    box-sizing:border-box!important;
    text-decoration:none!important;
}
.wapu-block-style-scope[data-wapu-button-type="inline"] :where([data-wapu-component="button"],a[class*="__cta"],span[class*="__cta"]){
    min-height:2rem!important;
    padding:0 0 .25rem!important;
    border:0!important;
    border-bottom:1px solid var(--wapu-cta-color,var(--wapu-button-bg,var(--pg-sem-button-bg,currentColor)))!important;
    border-radius:0!important;
    background:transparent!important;
    color:var(--wapu-cta-transparent-text,var(--wapu-block-text,var(--pg-sem-text,CanvasText)))!important;
    box-shadow:none!important;
}
.wapu-block-style-scope[data-wapu-button-type="pill"] :where([data-wapu-component="button"],a[class*="__cta"],span[class*="__cta"]){border-radius:1.5625rem!important;}
.wapu-block-style-scope[data-wapu-button-type="recto"] :where([data-wapu-component="button"],a[class*="__cta"],span[class*="__cta"]){border-radius:0!important;}
.wapu-block-style-scope[data-wapu-button-type="pill"][data-wapu-button-fill="filled"] :where([data-wapu-component="button"],a[class*="__cta"],span[class*="__cta"]),
.wapu-block-style-scope[data-wapu-button-type="recto"][data-wapu-button-fill="filled"] :where([data-wapu-component="button"],a[class*="__cta"],span[class*="__cta"]){
    background:var(--wapu-cta-color,var(--wapu-button-bg,var(--pg-sem-button-bg,Highlight)))!important;
    color:var(--wapu-cta-filled-text,var(--wapu-button-text,var(--pg-sem-button-text,HighlightText)))!important;
    border:1px solid var(--wapu-cta-color,var(--wapu-button-bg,var(--pg-sem-button-bg,Highlight)))!important;
}
.wapu-block-style-scope[data-wapu-button-type="pill"][data-wapu-button-fill="outline"] :where([data-wapu-component="button"],a[class*="__cta"],span[class*="__cta"]),
.wapu-block-style-scope[data-wapu-button-type="recto"][data-wapu-button-fill="outline"] :where([data-wapu-component="button"],a[class*="__cta"],span[class*="__cta"]){
    background:transparent!important;
    color:var(--wapu-cta-transparent-text,var(--wapu-block-text,var(--pg-sem-text,CanvasText)))!important;
    border:1px solid var(--wapu-cta-color,var(--wapu-button-bg,var(--pg-sem-button-bg,Highlight)))!important;
}

/* Playground Content Style is law for every content CTA, including media overlays.
   Local block CSS may control placement only; it may not add visual elevation. */
.wapu-block-style-scope :where([data-wapu-component="button"],.wapu-c-cta,a[class*="__cta"],span[class*="__cta"]){
    box-shadow:none!important;
}


@media (prefers-reduced-motion: reduce) {
    .wapu-block-style-scope :where(
        button,[role="button"],[role="tab"],.wapu-c-cta
    ) {
        transition: none;
    }
}

/* Front isolation 7.1 · prevent Theme defaults from changing block geometry.
 * These selectors intentionally avoid !important so each block's local CSS,
 * loaded afterwards, remains the final visual authority. */
.wapu-block-style-scope h1,
.wapu-block-style-scope h2,
.wapu-block-style-scope h3,
.wapu-block-style-scope h4,
.wapu-block-style-scope h5,
.wapu-block-style-scope h6,
.wapu-block-style-scope p,
.wapu-block-style-scope figure,
.wapu-block-style-scope blockquote {
    margin-top: 0;
    margin-bottom: 0;
}
.wapu-block-style-scope a {
    color: inherit;
    text-decoration-thickness: from-font;
}
.wapu-block-style-scope button,
.wapu-block-style-scope input,
.wapu-block-style-scope select,
.wapu-block-style-scope textarea {
    font: inherit;
}
.wapu-block-style-scope img,
.wapu-block-style-scope video,
.wapu-block-style-scope picture {
    vertical-align: middle;
}


/* Wapu Block Appearance Contract 1.0 — atmosphere, never structure. */
.wapu-block-appearance{
  position:relative;
  isolation:isolate;
  background-color:var(--wapu-appearance-bg,transparent);
  border-radius:var(--wapu-appearance-radius,inherit);
  box-shadow:var(--wapu-appearance-shadow,none);
}
.wapu-block-appearance::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  border-radius:inherit;
  background-image:linear-gradient(var(--wapu-appearance-overlay,transparent),var(--wapu-appearance-overlay,transparent)),var(--wapu-appearance-image,none);
  opacity:var(--wapu-appearance-image-opacity,1);
  background-position:var(--wapu-appearance-position,center);
  background-size:cover;
  background-repeat:no-repeat;
}
@media (prefers-reduced-motion:reduce){.wapu-block-appearance,.wapu-block-appearance::before{scroll-behavior:auto}}

/* Appearance 1.1 — a single Textos choice must work even on older blocks that
 * used local token names or literal text colors. Buttons/badges keep their own
 * contrast contract; editorial copy follows the chosen text color. */
.wapu-block-appearance[data-wapu-text-custom="1"]{color:var(--wapu-appearance-text)!important;}
.wapu-block-appearance[data-wapu-text-custom="1"] :where(h1,h2,h3,h4,h5,h6,p,li,blockquote,figcaption){
  color:var(--wapu-appearance-text)!important;
}

/* 7.5.26 — contrato canónico de ancho, densidad y paneles interactivos. */
.wapu-block-style-scope.wapu-block-contained{
  width:100%;
  max-width:none;
  margin-inline:0!important;
  box-sizing:border-box;
  display:flow-root;
  min-width:0;
  padding-block:var(--wapu-block-section-y,4rem)!important;
  padding-inline:var(--wapu-block-gutter-x,clamp(1.125rem,5vw,4.5rem))!important;
}
.wapu-block-style-scope.wapu-block-wide{
  width:100%;
  max-width:none;
  margin-inline:0!important;
  box-sizing:border-box;
  padding-block:var(--wapu-block-section-y,4rem)!important;
  padding-inline:var(--wapu-block-gutter-x,clamp(1.125rem,5vw,4.5rem))!important;
}
.wapu-block-style-scope.wapu-block-contained > :first-child{width:min(100%,var(--wapu-block-layout-max,75rem));min-width:0;margin-inline:auto;}
.wapu-block-style-scope.wapu-block-wide > :first-child{width:min(100%,var(--wapu-block-layout-max,90rem));margin-inline:auto;}
.wapu-block-style-scope:is(.wapu-block-contained,.wapu-block-wide) > [class*="__inner"]{
  /* El marco compartido controla el aire exterior. El padding interno vuelve a
     pertenecer a cada composición: paneles, portadas y piezas editoriales no
     deben perder el espacio que forma parte de su diseño característico. */
  min-width:0;
}
.wapu-block-style-scope.wapu-block-full-width{
  width:100%!important;
  box-sizing:border-box;
  padding:0!important;
}
.wapu-block-style-scope.wapu-block-density-compact{--wapu-block-section-y:clamp(2rem,4vw,3rem);--wapu-block-layout-gap:1.125rem;}
.wapu-block-style-scope.wapu-block-density-normal{--wapu-block-section-y:clamp(3.25rem,6vw,5rem);--wapu-block-layout-gap:1.75rem;}
.wapu-block-style-scope.wapu-block-density-spacious{--wapu-block-section-y:clamp(4.5rem,8vw,7rem);--wapu-block-layout-gap:2.375rem;}
@media (max-width:40em){
  .wapu-block-style-scope.wapu-block-contained,
  .wapu-block-style-scope.wapu-block-wide{
    --wapu-block-gutter-x:1rem;
  }
  .wapu-block-style-scope.wapu-block-density-compact{--wapu-block-section-y:1.75rem;}
  .wapu-block-style-scope.wapu-block-density-normal{--wapu-block-section-y:2.5rem;}
  .wapu-block-style-scope.wapu-block-density-spacious{--wapu-block-section-y:3.5rem;}
}
@container wapu-block-preview (max-width:40em){
  .wapu-block-style-scope.wapu-block-contained,
  .wapu-block-style-scope.wapu-block-wide{
    --wapu-block-gutter-x:1rem;
  }
  .wapu-block-style-scope.wapu-block-density-compact{--wapu-block-section-y:1.75rem;}
  .wapu-block-style-scope.wapu-block-density-normal{--wapu-block-section-y:2.5rem;}
  .wapu-block-style-scope.wapu-block-density-spacious{--wapu-block-section-y:3.5rem;}
}

/* El atributo hidden siempre gana a CSS específico del bloque. Esto mantiene
   tabs/accordions iguales dentro de Playground y en storefront, incluso antes
   de que el runtime JS termine de montar. */
/* 7.5.78 · Product grid density
 * Los layouts editoriales conservan su anatomía; sólo las colecciones de
 * tarjetas de producto se estabilizan en un máximo de tres columnas. */
@media (min-width:61.3125em){
  .wapu-c-product-grid,
  .ws-curated-grid,
  .ws-pq-grid,
  .ws-pq-editorial-grid,
  .ws-pq-mosaic-grid,
  .ws-ingredient-v13__grid,
  .ws-products-tabs-v13__grid,
  .wb-process-products__grid,
  .wb-products-nested-tabs .wb-nt-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@container wapu-block-preview (min-width:61.3125em){
  .wapu-c-product-grid,
  .ws-curated-grid,
  .ws-pq-grid,
  .ws-pq-editorial-grid,
  .ws-pq-mosaic-grid,
  .ws-ingredient-v13__grid,
  .ws-products-tabs-v13__grid,
  .wb-process-products__grid,
  .wb-products-nested-tabs .wb-nt-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

.wapu-block-style-scope [hidden]{display:none!important;}

/* Contenedor plano — atajo global del editor.
 * Sólo aplana la superficie exterior del bloque y, para bloques heredados,
 * su primer wrapper visual directo. No toca tarjetas internas ni componentes. */
.wapu-block-appearance[data-wapu-frame="flat"]{
  border:none!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.wapu-block-appearance[data-wapu-frame="flat"] > [class*="__panel"],
.wapu-block-appearance[data-wapu-frame="flat"] > [class*="__shell"],
.wapu-block-appearance[data-wapu-frame="flat"] > [class*="__frame"],
.wapu-block-appearance[data-wapu-frame="flat"] > [class*="__wrap"],
.wapu-block-appearance[data-wapu-frame="flat"] > [class*="__stage"],
.wapu-block-appearance[data-wapu-frame="flat"] > [class*="__container"],
.wapu-block-appearance[data-wapu-frame="flat"] > [class*="__inner"],
.wapu-block-appearance[data-wapu-frame="flat"] > [class*="__surface"]{
  border:none!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* ==========================================================================
   RC8 · Component-first responsive type/layout safety.
   Each Block keeps its own organism breakpoints. Shared title atoms become
   container-aware so expressive typography never remains sized against the
   browser when the authoring surface is much narrower.
   ========================================================================== */
@media (max-width:64em){
  .wapu-block-style-scope{
    --wapu-type-display:clamp(3.25rem,8vw,6.5rem);
    --wapu-type-hero:clamp(2.75rem,7vw,5.25rem);
    --wapu-type-h1:clamp(2.125rem,5.5vw,3.75rem);
    --wapu-type-h2:clamp(1.75rem,4.25vw,2.75rem);
  }
}
@container wapu-block-preview (max-width:64em){
  .wapu-block-style-scope{
    --wapu-type-display:clamp(3.25rem,8cqi,6.5rem);
    --wapu-type-hero:clamp(2.75rem,7cqi,5.25rem);
    --wapu-type-h1:clamp(2.125rem,5.5cqi,3.75rem);
    --wapu-type-h2:clamp(1.75rem,4.25cqi,2.75rem);
  }
}
@media (max-width:48em){
  .wapu-block-style-scope .wapu-c-title:is([data-size="display"],[data-size="hero"],[data-size="oversized"]){max-width:100%!important}
}
@container wapu-block-preview (max-width:48em){
  .wapu-block-style-scope .wapu-c-title:is([data-size="display"],[data-size="hero"],[data-size="oversized"]){max-width:100%!important}
}

/* RC9 · Appearance expansion contract.
 * Sin marco publishes --wapu-block-layout-max through the Appearance contract.
 * The canonical contained/wide wrappers above consume it, so the Block's main
 * composition expands without flattening intentional card/text/media limits. */
.wapu-block-appearance[data-wapu-frame="flat"]:is([data-wapu-size="full-width"],[data-wapu-size="fullscreen"],[data-wapu-size="superfull"]){
  width:100%;
  max-width:none;
  margin-inline:0;
  justify-self:stretch;
  align-self:stretch;
}
.wapu-block-appearance[data-wapu-frame="flat"]:is([data-wapu-size="full-width"],[data-wapu-size="fullscreen"],[data-wapu-size="superfull"]) > :first-child{
  width:100%;
  max-width:var(--wapu-block-layout-max,100%);
  margin-inline:0;
  box-sizing:border-box;
}
.wapu-block-appearance[data-wapu-frame="flat"][data-wapu-size="fullscreen"]{
  min-height:100vh;
  min-height:100svh;
}
.wapu-block-appearance[data-wapu-frame="flat"][data-wapu-size="fullscreen"] > :first-child{
  min-height:inherit;
}
.wapu-block-appearance[data-wapu-frame="flat"][data-wapu-size="superfull"]{
  width:var(--wapu-superfull-width,100vw);
  max-width:none;
  margin-inline:var(--wapu-superfull-margin,calc(50% - 50vw));
}
.wapu-block-appearance[data-wapu-frame="flat"][data-wapu-size="superfull"] > :first-child{
  width:100%;
  max-width:none;
}

/* Design Presets V2 — curated text shadow. The block owns the semantic preset;
 * Playground never exposes X/Y/blur/color knobs. */
.wapu-block-appearance[data-wapu-text-shadow]:not([data-wapu-text-shadow="inherit"]) :where(h1,h2,h3,h4,h5,h6,p,blockquote,li,a,button,.wapu-title,.wapu-paragraph,[class$="__title"],[class$="__heading"],[class$="__copy"],[class$="__eyebrow"],[class$="__label"]){
  text-shadow:var(--wapu-text-shadow,none);
}


