/* Hero carousel de portada */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hcar { position: relative; height: clamp(480px, 82vh, 760px); background: var(--moss-d); overflow: hidden; color: #fff; }
.hcar__track { position: absolute; inset: 0; }
.hcar__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; display: flex; align-items: center; }
.hcar__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; z-index: 1; }
.hcar__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hcar__slide.is-active .hcar__img { animation: hcarZoom 9s ease-out forwards; }
.hcar__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,34,28,.74) 0%, rgba(30,34,28,.5) 42%, rgba(30,34,28,.12) 100%); }
.hcar--center .hcar__shade { background: radial-gradient(ellipse at center, rgba(30,34,28,.62), rgba(30,34,28,.35) 70%); }
.hcar__in { position: relative; z-index: 2; width: min(1180px, 100% - 40px); }
.hcar__txt { max-width: 640px; }
.hcar--center .hcar__txt { margin-inline: auto; text-align: center; max-width: 760px; }
.hcar--center .hcar__btns { justify-content: center; }
.hcar__title { font-size: clamp(2.5rem, 6vw, 4.8rem); color: var(--ocre-l); line-height: 1.04; margin: 0 0 .35em; text-shadow: 0 2px 24px rgba(0,0,0,.35); font-variant-numeric: lining-nums; }
.hcar__p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.94); max-width: 54ch; margin: 0 0 1.6rem; }
.hcar--center .hcar__p { margin-inline: auto; }
.hcar__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hcar__slide.is-active .hcar__title, .hcar__slide.is-active .hcar__p, .hcar__slide.is-active .hcar__btns { animation: hcarUp .9s var(--ease) both; }
.hcar__slide.is-active .hcar__title { animation-delay: .25s; } .hcar__slide.is-active .hcar__p { animation-delay: .4s; } .hcar__slide.is-active .hcar__btns { animation-delay: .55s; }
.hcar__nav { position: absolute; top: 50%; z-index: 5; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.12); backdrop-filter: blur(6px); color: #fff; cursor: pointer; display: grid; place-items: center; transition: .3s var(--ease); }
.hcar__nav:hover { background: var(--ocre); border-color: var(--ocre); transform: scale(1.08); }
.hcar__prev { left: 22px; transform: rotate(180deg); } .hcar__prev:hover { transform: rotate(180deg) scale(1.08); } .hcar__next { right: 22px; }
.hcar__dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.hcar__dots button { width: 11px; height: 11px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: .4s var(--ease); }
.hcar__dots button.is-on { width: 34px; background: var(--ocre); }
.hcar__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 5; background: rgba(255,255,255,.15); }
.hcar__bar i { display: block; height: 100%; width: 0; background: var(--ocre); }
.hcar.is-playing .hcar__bar i { animation: hcarBar var(--hcar-t, 6500ms) linear forwards; }
@keyframes hcarZoom { to { transform: scale(1.12); } }
@keyframes hcarUp { from { opacity: 0; transform: translateY(26px); } }
@keyframes hcarBar { to { width: 100%; } }
@media (max-width: 760px) {
  .hcar { height: clamp(460px, 78vh, 640px); }
  .hcar__shade { background: linear-gradient(180deg, rgba(30,34,28,.35), rgba(30,34,28,.78)); }
  .hcar__slide { align-items: flex-end; padding-bottom: 76px; }
  .hcar__nav { display: none; }
  .hcar__btns .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hcar__slide, .hcar__slide.is-active { transition: none; }
  .hcar__slide.is-active .hcar__img { animation: none; }
  .hcar__slide.is-active .hcar__title, .hcar__slide.is-active .hcar__p, .hcar__slide.is-active .hcar__btns { animation: none; }
  .hcar__bar { display: none; }
}

@media (min-width: 761px) and (max-width: 1320px) { .hcar__in { padding-inline: 84px; } }
