/* Carrusel categorías home — Figma Infinite Loop Carousel (1:16) */

.home-page.home-coastal-pulse .home-hero-carousel {
  --hero-gradient: linear-gradient(
    102deg,
    var(--cp-primary-container, #ea1d2c) 0%,
    var(--cp-primary, #d90429) 32%,
    var(--cp-brand, #9b1b30) 62%,
    var(--cp-cta-neutral, #0b1c30) 100%
  );
  --hero-gradient-soft: linear-gradient(
    102deg,
    var(--cp-accent, #f97316) 0%,
    var(--cp-primary, #d90429) 45%,
    var(--cp-brand, #9b1b30) 100%
  );
  position: relative;
  width: 100%;
  margin: 0 0 clamp(20px, 2.5vw, 32px);
  padding: clamp(20px, 3vw, 36px) 0 clamp(16px, 2vw, 24px);
  overflow: visible;
  background: transparent;
  min-height: clamp(380px, 52vw, 520px);
}

/* Fondo a ancho completo de pantalla; el contenido sigue dentro del shell */
.home-page.home-coastal-pulse .home-hero-carousel__bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  background: var(--cp-surface, #fafbfc);
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.home-page.home-coastal-pulse .home-hero-carousel__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(clamp(72px, 10vw, 120px));
}

.home-page.home-coastal-pulse .home-hero-carousel__blob--orange {
  width: clamp(280px, 42vw, 620px);
  height: clamp(280px, 42vw, 620px);
  left: clamp(-8%, -2vw, 4%);
  top: -22%;
  background: var(--cp-primary, #d90429);
  opacity: 0.22;
}

.home-page.home-coastal-pulse .home-hero-carousel__blob--purple {
  width: clamp(240px, 36vw, 520px);
  height: clamp(240px, 36vw, 520px);
  right: clamp(-6%, -1vw, 5%);
  bottom: -18%;
  background: var(--cp-cta-neutral, #0b1c30);
  opacity: 0.16;
}

.home-page.home-coastal-pulse .home-hero-carousel__rings {
  position: absolute;
  left: clamp(0%, 4vw, 8%);
  top: 6%;
  width: clamp(320px, 58vw, 780px);
  height: auto;
  opacity: 0.38;
  pointer-events: none;
  color: var(--cp-primary, #d90429);
}

.home-page.home-coastal-pulse .home-hero-carousel__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
}

.home-page.home-coastal-pulse .home-hero-carousel__header {
  text-align: center;
  max-width: 100%;
  padding: 0 clamp(12px, 2vw, 20px);
}

.home-page.home-coastal-pulse .home-hero-carousel__kicker {
  margin: 0 0 4px;
  font-family: var(--cp-font, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cp-primary, #d90429);
}

.home-page.home-coastal-pulse .home-hero-carousel__pre {
  margin: 0;
  font-family: var(--cp-font, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(28px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--cp-on-surface, #0b1c30);
}

.home-page.home-coastal-pulse .home-hero-carousel__accent-box {
  display: inline-block;
  margin: clamp(4px, 1vw, 8px) 0;
  padding: 2px 10px;
  background: var(--cp-surface-lowest, #fff);
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(var(--cp-primary-rgb, 217, 4, 41), 0.14);
  transform: rotate(-1deg);
}

.home-page.home-coastal-pulse .home-hero-carousel__accent {
  display: inline-block;
  font-family: 'Bebas Neue', var(--cp-font, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(32px, 6.5vw, 64px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-page.home-coastal-pulse .home-hero-carousel__accent--comercio {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-page.home-coastal-pulse .home-hero-carousel__accent--servicio {
  background: linear-gradient(
    102deg,
    #1a4a7a 0%,
    var(--cp-cta-neutral, #0b1c30) 42%,
    var(--cp-brand, #9b1b30) 78%,
    var(--cp-primary, #d90429) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.home-page.home-coastal-pulse .home-hero-carousel__blurb {
  margin: 6px 0 0;
  font-family: var(--cp-font, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 500;
  color: var(--cp-on-surface-variant, #64748b);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.home-page.home-coastal-pulse .home-hero-carousel__stage {
  width: 100%;
  max-width: 1180px;
  height: clamp(200px, 28vw, 320px);
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

.home-page.home-coastal-pulse .home-hero-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.home-page.home-coastal-pulse .home-hero-carousel__slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(140px, 18vw, 220px);
  height: clamp(140px, 18vw, 220px);
  margin-left: calc(clamp(140px, 18vw, 220px) / -2);
  margin-top: calc(clamp(140px, 18vw, 220px) / -2);
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, filter 0.45s ease;
  will-change: transform, opacity;
}

.home-page.home-coastal-pulse .home-hero-carousel__slide-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  background: #111;
  transform: translateZ(0);
}

.home-page.home-coastal-pulse .home-hero-carousel__slide-link:focus-visible {
  outline: 2px solid var(--cp-primary, #d90429);
  outline-offset: 4px;
}

.home-page.home-coastal-pulse .home-hero-carousel__slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page.home-coastal-pulse .home-hero-carousel__slide-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-family: var(--cp-font, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(11, 28, 48, 0.88));
  pointer-events: none;
}

.home-page.home-coastal-pulse .home-hero-carousel__slide[data-offset="-2"] {
  opacity: 0.45;
  filter: blur(0.5px);
  z-index: 1;
}

.home-page.home-coastal-pulse .home-hero-carousel__slide[data-offset="-1"] {
  opacity: 0.82;
  z-index: 2;
}

.home-page.home-coastal-pulse .home-hero-carousel__slide[data-offset="0"] {
  opacity: 1;
  z-index: 5;
}

.home-page.home-coastal-pulse .home-hero-carousel__slide[data-offset="1"] {
  opacity: 0.82;
  z-index: 2;
}

.home-page.home-coastal-pulse .home-hero-carousel__slide[data-offset="2"] {
  opacity: 0.45;
  filter: blur(0.5px);
  z-index: 1;
}

.home-page.home-coastal-pulse .home-hero-carousel__slide[data-offset="hide"] {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.home-page.home-coastal-pulse .home-hero-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 20px);
  margin-top: 4px;
}

.home-page.home-coastal-pulse .home-hero-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cp-cta-neutral, #0b1c30);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-page.home-coastal-pulse .home-hero-carousel__arrow:hover {
  background: var(--cp-primary, #d90429);
  transform: scale(1.06);
}

.home-page.home-coastal-pulse .home-hero-carousel__arrow:focus-visible {
  outline: 2px solid var(--cp-primary, #d90429);
  outline-offset: 2px;
}

.home-page.home-coastal-pulse .home-hero-carousel__arrow img {
  display: block;
  width: 18px;
  height: 18px;
}

.home-page.home-coastal-pulse .home-hero-carousel__dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.home-page.home-coastal-pulse .home-hero-carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 28, 48, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.home-page.home-coastal-pulse .home-hero-carousel__dot.is-active {
  width: 11px;
  background: var(--cp-primary, #d90429);
  box-shadow: 0 0 0 1px rgba(var(--cp-primary-rgb, 217, 4, 41), 0.2);
}

.home-page.home-coastal-pulse .home-hero-carousel__dot:focus-visible {
  outline: 2px solid var(--cp-primary, #d90429);
  outline-offset: 2px;
}

.home-page.home-coastal-pulse .home-hero-carousel__state {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 12px 0 0;
}

.home-page.home-coastal-pulse .home-hero-carousel.is-empty .home-hero-carousel__stage,
.home-page.home-coastal-pulse .home-hero-carousel.is-empty .home-hero-carousel__nav {
  display: none;
}

@media (max-width: 639px) {
  .home-page.home-coastal-pulse .home-hero-carousel {
    min-height: 360px;
  }

  .home-page.home-coastal-pulse .home-hero-carousel__stage {
    height: clamp(170px, 42vw, 220px);
  }

  .home-page.home-coastal-pulse .home-hero-carousel__slide {
    width: clamp(120px, 34vw, 160px);
    height: clamp(120px, 34vw, 160px);
    margin-left: calc(clamp(120px, 34vw, 160px) / -2);
    margin-top: calc(clamp(120px, 34vw, 160px) / -2);
  }
}

body.home-theme-dark .home-page.home-coastal-pulse .home-hero-carousel {
  --hero-gradient: linear-gradient(
    102deg,
    #ff6b81 0%,
    var(--cp-primary-container, #ea1d2c) 35%,
    var(--cp-accent, #f97316) 72%,
    #ffd8de 100%
  );
}

body.home-theme-dark .home-page.home-coastal-pulse .home-hero-carousel__bg {
  background: var(--cp-surface, #0b1c30);
}

body.home-theme-dark .home-page.home-coastal-pulse .home-hero-carousel__kicker {
  color: #ff8fa0;
}

body.home-theme-dark .home-page.home-coastal-pulse .home-hero-carousel__pre {
  color: #f3f4f6;
}

body.home-theme-dark .home-page.home-coastal-pulse .home-hero-carousel__accent-box {
  background: rgba(11, 28, 48, 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

body.home-theme-dark .home-page.home-coastal-pulse .home-hero-carousel__blurb {
  color: #b8bcc8;
}

body.home-theme-dark .home-page.home-coastal-pulse .home-hero-carousel__blob--orange {
  opacity: 0.28;
}

body.home-theme-dark .home-page.home-coastal-pulse .home-hero-carousel__blob--purple {
  opacity: 0.24;
  background: #1a3a5c;
}

body.home-theme-dark .home-page.home-coastal-pulse .home-hero-carousel__dot.is-active {
  background: var(--cp-primary-container, #ea1d2c);
}
