/* Keep the photographic frame centered with the content on wide monitors.
   Stacked grid cells reserve the tallest slide without stretching the photos
   across an ultrawide viewport. Typography and copy remain unchanged. */
.carousel-slides{display:grid;width:100%;max-width:1440px;margin-inline:auto}
.carousel-slide{grid-area:1/1;min-width:0;opacity:0;visibility:hidden;pointer-events:none;transition:opacity 700ms ease,visibility 0s 700ms}
.carousel-slide.is-active{opacity:1;visibility:visible;pointer-events:auto;transition:opacity 700ms ease}
.hero .carousel-title{font-size:clamp(2.6rem,4.8vw,4.35rem);letter-spacing:-.059em;line-height:1.09;margin-bottom:22px}
.carousel-slide .container{height:100%}
.carousel-controls{background:#fff;border-bottom:1px solid var(--border)}
.hero-carousel .carousel-controls[hidden]{display:block!important;visibility:hidden}
.carousel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px;padding-block:10px}
.carousel-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--ink)}
.carousel-toolbar button:hover{border-color:var(--accent);color:var(--accent)}
.carousel-toolbar .carousel-rotation{gap:8px;padding:8px 12px;font-size:.78rem;font-weight:650;min-width:110px}
.carousel-rotation:disabled{cursor:default;color:var(--corporate-gray)}
.carousel-rotation [data-rotation-icon]{width:10px;height:12px;border-inline:3px solid currentColor}
.carousel-rotation[data-paused=true] [data-rotation-icon]{width:0;height:0;border:6px solid transparent;border-left:9px solid currentColor;border-right:0}
.carousel-pagination,.carousel-arrows{display:flex;align-items:center;gap:4px}
.carousel-toolbar .carousel-dot{border:0;background:transparent;border-radius:5px}
.carousel-dot span{display:block;width:7px;height:7px;border-radius:8px;background:#767b85;transition:width 200ms ease,background 200ms ease}
.carousel-dot[aria-current=true] span{width:26px;background:var(--accent)}
.carousel-arrows{gap:8px}.carousel-arrows button{font-size:1.25rem}.carousel-count{font-size:.75rem;letter-spacing:.1em;margin-right:12px;font-variant-numeric:tabular-nums;color:var(--corporate-gray)}
.carousel-slides{touch-action:pan-y pinch-zoom}
@media(max-width:750px){.hero .carousel-title{font-size:2.4rem}.carousel-slide .container{align-items:flex-start}.carousel-toolbar{flex-wrap:wrap;gap:4px 12px;justify-content:center}.carousel-pagination{order:3;flex-basis:100%;justify-content:center}.carousel-rotation{margin-right:auto}.carousel-count{margin-right:4px}}
@media(max-width:520px){.hero .carousel-title{font-size:2.2rem}}
@media(max-width:750px){.carousel-slide:not(#slide-corporate) .hero-picture img{object-position:right top}}
@media(prefers-reduced-motion:reduce){.carousel-slide,.carousel-dot span{transition:none}}

/* Corporate night treatment: original tokens and 40px chevron pattern from
   CyberArmor/css/estilos.css. Scoped here: navigation and lower sections retain
   their existing appearance. The opaque base never participates in the fade. */
.hero-carousel,.cas-dark-section{--hero-night:#1A1F2C;--hero-red:#F25C61;--hero-text:#D5D9E1;--hero-muted:#A9B0BF;position:relative;isolation:isolate;background:var(--hero-night);color:#fff}
.hero-carousel::before,.cas-dark-section::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('../images/cas-chevron-pattern.svg') repeat 0 0 / 40px 40px;opacity:.05}
.hero-carousel .carousel-slide{background:transparent}
.hero-carousel .carousel-slide::after{display:none}
.hero-carousel .hero-picture{opacity:.8;mask-image:linear-gradient(90deg,transparent 20%,rgb(0 0 0 / .04) 55%,rgb(0 0 0 / .12) 65%,#000 80%,#000 88%,transparent 100%),linear-gradient(180deg,transparent,#000 16%,#000 72%,transparent 100%);mask-composite:intersect}
.hero-carousel .hero-picture img{filter:none}
.hero-carousel .carousel-title{color:#fff}
.hero-carousel .carousel-title em,.hero-carousel .eyebrow,.hero-carousel .tick{color:var(--hero-red)}
.hero-carousel .eyebrow,.hero-carousel .tick{color:#FF8A8E}
.hero-carousel .lead,.hero-carousel .hero-proof{color:var(--hero-text)}
.hero-carousel .self-assess{color:var(--hero-text);text-decoration-color:var(--hero-red)}
.hero-carousel .self-assess:hover{color:#fff}
.hero-carousel .primary{background:#CE2029;color:#fff;box-shadow:none}
.hero-carousel .primary:hover{background:#B01B23}
.hero-carousel .outline{background:transparent;border-color:var(--hero-muted);color:#fff}
.hero-carousel .outline:hover{background:#242A39;border-color:#fff}
.hero-carousel :focus-visible{outline-color:var(--hero-red)!important}
.hero-carousel .carousel-controls{position:relative;background:transparent;border-top:1px solid rgb(255 255 255 / .12);border-bottom:0}
.hero-carousel .carousel-toolbar button{background:transparent;color:var(--hero-text);border-color:#737D91}
.hero-carousel .carousel-toolbar button:hover{background:#242A39;color:#fff;border-color:var(--hero-red)}
.hero-carousel .carousel-rotation:disabled,.hero-carousel .carousel-count{color:var(--hero-muted)}
.hero-carousel .carousel-dot{border:0}
.hero-carousel .carousel-dot span{background:var(--hero-muted)}
.hero-carousel .carousel-dot[aria-current=true] span{background:#CE2029;box-shadow:0 0 0 1px var(--hero-red)}
/* Static, secondary use of the reference's curved red separator path. */
.hero-carousel .carousel-slides{position:relative}
.hero-carousel .carousel-slides::after{content:"";position:absolute;bottom:0;left:0;width:100%;height:48px;pointer-events:none;background:url('../images/cas-hero-curve.svg') no-repeat center / 100% 100%;opacity:.35}
@media(min-width:751px) and (max-width:1120px){.hero-carousel .hero-picture img{object-position:right center}}
@media(max-width:750px){
  .hero-carousel .hero-picture{mask-image:linear-gradient(180deg,#000 0%,#000 40%,transparent 73%);mask-composite:add}
  .hero-carousel .carousel-slides::after{height:28px;opacity:.25}
}
