/* =========================================================
   Home Hero Industrial Video (Carousel)
   ========================================================= */

.home-hero-industrial {
  position: relative;
  min-height: 78vh;
  margin-top: 0;
  background: #07101d;
  overflow: hidden;
}

.industrial-hero-carousel {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 560px;
  overflow: hidden;
  background: #07101d;
  isolation: isolate;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.industrial-hero-carousel.is-dragging {
  cursor: grabbing;
}

.industrial-hero-carousel img,
.industrial-hero-carousel video {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* Degradado blanco superior e inferior, discreto */
.industrial-hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    /* Superior más notorio */
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.34) 8%,
      rgba(255, 255, 255, 0.15) 20%,
      transparent 42%),

    /* Inferior mucho más leve */
    linear-gradient(0deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.07) 8%,
      rgba(255, 255, 255, 0.025) 16%,
      transparent 28%);

  opacity: 0.95;
}

/* Línea luminosa animada muy sutil en bordes */
.industrial-hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent) top left / 34% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent) bottom right / 38% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.11), transparent) left center / 1px 42% no-repeat,
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.09), transparent) right center / 1px 38% no-repeat;
  animation: heroEdgeLight 7s ease-in-out infinite alternate;
  opacity: 0.7;
}

@keyframes heroEdgeLight {
  0% {
    background-position:
      top left,
      bottom right,
      left 42%,
      right 58%;
    opacity: 0.45;
  }

  100% {
    background-position:
      top right,
      bottom left,
      left 58%,
      right 42%;
    opacity: 0.8;
  }
}

.industrial-hero-carousel .carousel-inner,
.industrial-hero-carousel .carousel-item {
  width: 100%;
  height: 100%;
}

.industrial-hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Overlay solo para lectura, no para envolver el contenido */
.industrial-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg,
      rgba(5, 13, 26, 0.38) 0%,
      rgba(5, 13, 26, 0.28) 34%,
      rgba(5, 13, 26, 0.12) 62%,
      rgba(5, 13, 26, 0.05) 100%),
    linear-gradient(180deg,
      rgba(5, 13, 26, 0.12) 0%,
      transparent 48%,
      rgba(5, 13, 26, 0.20) 100%);
}

.industrial-hero-content {
  position: relative;
  z-index: 5;
  height: 100%;
  padding-inline: clamp(22px, 6vw, 96px);
  padding-top: clamp(110px, 14vh, 160px);
}

.industrial-hero-text {
  max-width: 620px;
}

.industrial-hero-text h1,
.industrial-hero-text h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(1.8rem, 3.4vw, 3.8rem);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.industrial-hero-text p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  font-weight: 400;
  line-height: 1.7;
}

/* Indicadores más sobrios */
.industrial-hero-indicators {
  right: auto;
  bottom: 38px;
  left: clamp(22px, 6vw, 96px);
  z-index: 7;
  justify-content: flex-start;
  gap: 9px;
  margin: 0;
}

.industrial-hero-indicators [data-bs-target] {
  width: 28px;
  height: 3px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  opacity: 1;
  transition:
    width 240ms ease,
    background 240ms ease;
}

.industrial-hero-indicators .active {
  width: 52px;
  background: var(--color-green-500);
}

/* Controles minimalistas */
.industrial-hero-control {
  top: auto;
  bottom: 28px;
  z-index: 7;
  width: 42px;
  height: 42px;
  opacity: 1;
}

.industrial-hero-control-prev {
  left: auto;
  right: 92px;
}

.industrial-hero-control-next {
  right: 38px;
}

.industrial-hero-control span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    color 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.industrial-hero-control:hover span {
  color: #ffffff;
  border-color: rgba(0, 149, 58, 0.58);
  background: rgba(0, 149, 58, 0.28);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .industrial-hero-carousel::after {
    animation: none !important;
  }
}

/* Responsive */
@media (max-width: 1199.98px) {
  .home-hero-industrial {
    min-height: 76vh;
    padding-top: 0;
  }

  .industrial-hero-carousel {
    height: 76vh;
    min-height: 540px;
  }
}

@media (max-width: 991.98px) {
  .industrial-hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 13, 26, 0.9) 0%, rgba(5, 13, 26, 0.72) 52%, rgba(5, 13, 26, 0.32) 100%),
      linear-gradient(180deg, rgba(5, 13, 26, 0.24) 0%, transparent 45%, rgba(5, 13, 26, 0.55) 100%);
  }

  .industrial-hero-control {
    display: none;
  }

  .industrial-hero-carousel::after {
    animation: none;
    opacity: 0.5;
  }
}

@media (max-width: 575.98px) {
  .home-hero-industrial {
    min-height: 76vh;
    min-height: 76svh;
    padding-top: 0;
  }

  .industrial-hero-carousel {
    height: 76vh;
    height: 76svh;
    min-height: 520px;
  }

  .industrial-hero-content {
    text-align: center;
  }

  .industrial-hero-text h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: -0.04em;
  }

  .industrial-hero-text p {
    font-size: 0.98rem;
  }

  .industrial-hero-indicators {
    left: 22px;
    bottom: 28px;
  }
}


/** =========================================================
   Carrusel de Marcas Home
   ========================================================= */

.brand-marquee-section {
  position: relative;
  padding: clamp(34px, 5vw, 64px) 0;
  overflow: hidden;
}

.brand-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}


/** =========================================================
   Degradados laterales
   ========================================================= */

.brand-marquee::before,
.brand-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: clamp(50px, 10vw, 150px);
  pointer-events: none;
}

.brand-marquee::before {
  left: 0;
  background: linear-gradient(
    90deg,
    var(--surface-page) 0%,
    rgba(246, 247, 249, 0) 100%
  );
}

.brand-marquee::after {
  right: 0;
  background: linear-gradient(
    270deg,
    var(--surface-page) 0%,
    rgba(246, 247, 249, 0) 100%
  );
}


/** =========================================================
   Track principal
   ========================================================= */

.brand-marquee-track {
  --brand-marquee-gap: clamp(42px, 6vw, 96px);

  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  padding: 10px 0;
  animation: brandMarquee 52s linear infinite;
}


/** =========================================================
   Grupos duplicados
   ========================================================= */

.brand-marquee-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: var(--brand-marquee-gap);
  padding-right: var(--brand-marquee-gap);
}


/** =========================================================
   Logos
   ========================================================= */

.brand-logo-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  height: 40px;
}

.brand-logo-item img {
  display: block;
  width: auto;
  max-width: 230px;
  max-height: 68px;
  object-fit: contain;

  opacity: 0.92;
  filter: none;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;

  pointer-events: auto;

  transform: scale(1);

  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.brand-logo-item:hover img {
  opacity: 1;
  transform: scale(1.14);
}


/** =========================================================
   Animación infinita
   ========================================================= */

@keyframes brandMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/** =========================================================
   Responsive
   ========================================================= */

@media (max-width: 575.98px) {

  .brand-marquee-section {
    padding: 24px 0;
  }

  .brand-marquee-track {
    --brand-marquee-gap: 40px;
    animation-duration: 46s;
  }

  .brand-logo-item {
    min-width: 160px;
    height: 76px;
  }

  .brand-logo-item img {
    max-width: 185px;
    max-height: 56px;
  }
}


/** =========================================================
   Accesibilidad
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .brand-marquee-track {
    animation: none;
  }

}

/** =========================================================
   Seccion Uno Home Soluciones
   ========================================================= */
.home-solutions-section {
  position: relative;

}

.home-solutions-copy {
  height: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-solutions-copy h2 {
  max-width: 590px;
  margin: 0 0 18px;
  color: var(--color-blue-800);
  font-size: clamp(1.8rem, 2.61vw, 2.61rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.home-solutions-copy>p {
  max-width: 590px;
  margin: 0 0 26px;
  color: rgba(81, 81, 81, 0.86);
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  font-weight: 400;
  line-height: 1.72;
}

.solutions-glass-list {
  display: grid;
  gap: 12px;
}

.solution-glass-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(18, 40, 76, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 16px 34px rgba(18, 40, 76, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.solution-glass-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: rgba(0, 149, 58, 0.55);
}

.solution-glass-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--color-green-600);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.48)),
    rgba(0, 149, 58, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 20px rgba(18, 40, 76, 0.06);
}

.solution-glass-icon i {
  font-size: 0.92rem;
}

.solution-glass-item h3 {
  margin: 0 0 5px;
  color: rgba(18, 40, 76, 0.9);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.28;
}

.solution-glass-item p {
  margin: 0;
  color: rgba(104, 115, 134, 0.92);
  font-size: 0.89rem;
  font-weight: 400;
  line-height: 1.56;
}

/* Imagen */

.home-solutions-media {
  height: 100%;
  display: flex;
}

.home-solutions-visual {
  position: relative;
  width: 100%;
  min-height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(223, 229, 234, 0);
  isolation: isolate;
}

.home-solutions-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, transparent 28%),
    linear-gradient(0deg, rgba(18, 40, 76, 0.208) 0%, transparent 44%);
}

.home-solutions-visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-glass-card {
  position: absolute;
  right: 0;
  bottom: 35px;
  z-index: 4;
  width: min(280px, calc(100% - 44px));
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 22px 0 0 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(207, 206, 206, 0.175));
  box-shadow:
    0 24px 46px rgba(18, 40, 76, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.visual-glass-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--color-blue-800);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.visual-glass-card strong {
  display: block;
  color: var(--color-blue-800);
  font-size: 1.12rem;
  font-weight: 560;
  line-height: 1.24;
}

/* Responsive */

@media (max-width: 991.98px) {
  .home-solutions-copy {
    max-width: 100%;
  }

  .home-solutions-media {
    min-height: 420px;
  }

  .home-solutions-visual {
    min-height: 420px;
  }
}

@media (max-width: 575.98px) {
  .home-solutions-section {
    position: relative;
    padding: clamp(40px, 6vw, 54px) 0;
    overflow-x: clip;
  }

  @supports not (overflow: clip) {
    .home-solutions-section {
      overflow-x: hidden;
    }
  }

  .home-solutions-copy .solutions-p {
    font-size: 14px;
    text-align: center;
  }

  .solution-glass-item {
    padding: 14px 14px 14px 15px;
    border-radius: 18px;
  }

  .solution-glass-icon {
    width: 36px;
    height: 36px;
  }

  .home-solutions-media,
  .home-solutions-visual {
    min-height: 360px;
  }

  .home-solutions-visual {
    border-radius: 24px;
  }

  .visual-glass-card {
    right: 0;
    bottom: 16px;
    width: min(255px, calc(100% - 32px));
    padding: 16px 17px;
    border-radius: 22px 0 0 22px;
  }
}


/** =========================================================
   PRODUCTOS HOME
   ========================================================= */

.home-products-section {
  position: relative;
  padding: clamp(56px, 7vw, 98px) 0;
  background: transparent;
  overflow: hidden;
}

.products-scroll-container {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(280px, 350px);
  column-gap: clamp(24px, 4vw, 58px);
  align-items: center;
}

.home-products-quality {
  display: flex;
  align-items: center;
  justify-self: end;
  width: 100%;
  max-width: 350px;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid rgba(18, 40, 76, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.24),
      rgba(255, 255, 255, 0.08)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48);

  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.home-products-quality-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: var(--color-green-500);
  font-size: 0.88rem;
  border-radius: 50%;
  background: rgba(0, 149, 58, 0.07);
}

.home-products-quality-copy {
  min-width: 0;
}

.home-products-quality-copy span {
  display: block;
  margin-bottom: 2px;
  color: var(--color-blue-800);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.home-products-quality-copy strong {
  display: block;
  color: var(--color-blue-800);
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.35;
}

.products-scroll-window {
  grid-column: 1 / -1;
  min-width: 0;
}

@media (max-width: 767.98px) {
  .products-scroll-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-products-quality {
    display: none;
  }

  .products-scroll-window {
    grid-column: 1;
  }
}

/* Card */

.product-feature-card {
  position: relative;
  height: 100%;
  min-height: 280px;
  border-radius: 30px;
  background: #ffffff;
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.product-feature-card:hover {
  transform: translateY(-4px);
}

.product-feature-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  height: 100%;
  min-height: inherit;
  color: inherit;
  text-decoration: none;
}

/* Texto */

.product-feature-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 34px);
}

.product-feature-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 13px;
  color: color-mix(in srgb, var(--product-accent) 82%, var(--color-blue-900));
  font-size: 0.78rem;
  font-weight: 540;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-feature-kicker img {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.product-feature-copy h3 {
  max-width: 360px;
  margin: 0 0 13px;
  font-size: clamp(1.15rem, 2.1vw, 1.4rem) !important;
  color: var(--color-blue-800);
  font-weight: 420 !important;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.product-feature-copy p {
  max-width: 390px;
  margin: 0 0 24px;
  color: rgba(81, 81, 81, 0.8);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.58;
}

.product-feature-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-top: auto;
  color: var(--color-green-600);
  font-size: 0.92rem;
  font-weight: 500;
}

.product-feature-cta i {
  color: var(--color-green-600);
  font-size: 0.78rem;
  transition: transform var(--transition-fast);
}

.product-feature-card:hover .product-feature-cta i {
  transform: translateX(4px);
}

/* Zona visual */

.product-feature-media {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 26px 24px 26px 0;
}

.product-feature-media img {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  max-width: 118%;
  max-height: 265px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  transform: translateX(6px) scale(1);
  transition: transform var(--transition-fast);
}

.product-feature-card:hover .product-feature-media img {
  transform: translateX(6px) scale(1.045);
}

/* Responsive */

@media (max-width: 1199.98px) {
  .product-feature-link {
    grid-template-columns: minmax(0, 1fr) 40%;
  }

  .product-feature-media img {
    max-height: 190px;
  }
}

@media (max-width: 767.98px) {
  .product-feature-card {
    min-height: auto;
    border-radius: 26px;
  }

  .product-feature-link {
    grid-template-columns: 1fr;
  }

  .product-feature-copy {
    padding: 26px 24px 8px;
  }

  .product-feature-copy p {
    margin-bottom: 20px;
  }

  .product-feature-media {
    min-height: 210px;
    padding: 8px 24px 28px;
  }

  .product-feature-media::before {
    right: 50%;
    width: min(230px, 74%);
    transform: translate(50%, -50%);
  }

  .product-feature-media::after {
    display: none;
  }

  .product-feature-media img {
    max-width: 82%;
    max-height: 180px;
    transform: scale(1);
  }

  .product-feature-card:hover .product-feature-media img {
    transform: scale(1.035);
  }
}

@media (max-width: 575.98px) {
  .home-products-section {
    padding: 48px 0 64px;
  }

  .home-products-header {
    text-align: left;
  }

  .home-products-header p {
    text-align: center;
    margin-bottom: 30px;
  }

  .product-feature-copy h3 {
    font-size: 1.55rem;
  }

  .product-feature-copy p {
    font-size: 0.91rem;
  }

  .product-feature-media {
    min-height: 190px;
  }

  .product-feature-media img {
    max-height: 165px;
  }
}

/* =========================================================
   Home - Products Horizontal Scroll
   ========================================================= */

.products-scroll-section {
  padding: 0;
  overflow: hidden;
}

.products-scroll-section .home-products-pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding:
    calc(var(--floating-menu-height) + 18px) 0 32px;
}

.products-scroll-container {
  width: 100%;
}

.products-scroll-section .home-products-header {
  max-width: 760px;
  margin-top: 20px;
  margin-bottom: 10px;

}

.products-scroll-window {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0 28px;
}

.products-scroll-track {
  --products-gap: 24px;

  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-columns: calc((100% - var(--products-gap)) / 2);
  gap: var(--products-gap);
  will-change: transform;
}

.product-scroll-item {
  min-width: 0;
  height: 100%;
}

/* Ajustes para que entren 2 filas cómodamente */

.products-scroll-section .product-feature-card {
  min-height: 250px;
}

.products-scroll-section .product-feature-copy {
  padding: clamp(20px, 2.4vw, 28px);
}

.products-scroll-section .product-feature-copy h3 {
  font-size: clamp(1.35rem, 1.85vw, 1.9rem);
}

.products-scroll-section .product-feature-copy p {
  margin-bottom: 18px;
  font-size: 0.88rem;
  line-height: 1.48;
}

.products-scroll-section .product-feature-media {
  padding: 22px 20px 22px 0;
}

.products-scroll-section .product-feature-media img {
  max-height: 210px;
}

/* Indicador visual suave */

.products-scroll-window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 5;
  width: clamp(50px, 8vw, 120px);
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(270deg,
      rgba(246, 247, 249, 0),
      var(--surface-page));
  transition: opacity 260ms ease;
}

.products-scroll-section.is-products-moving .products-scroll-window::before {
  opacity: 1;
}

.products-scroll-window::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: clamp(50px, 8vw, 120px);
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg,
      rgba(246, 247, 249, 0),
      var(--surface-page));
  transition: opacity 260ms ease;
}

.products-scroll-section.is-products-moving .products-scroll-window::after {
  opacity: 1;
}

/* Responsive */

@media (max-width: 1199.98px) {
  .products-scroll-track {
    --products-gap: 18px;
  }

  .products-scroll-section .product-feature-card {
    min-height: 235px;
  }

  .products-scroll-section .product-feature-media img {
    max-height: 180px;
  }
}

@media (min-width: 992px) and (max-height: 780px) {
  .products-scroll-section .home-products-pin {
    min-height: 100svh;
    padding:
      calc(var(--floating-menu-height) + 12px) 0 18px;
  }

  .products-scroll-section .home-products-header {
    margin-top: 0;
    margin-bottom: 6px;
  }

  .products-scroll-window {
    padding: 6px 0 16px;
  }

  .products-scroll-track {
    --products-gap: 18px;
  }

  .products-scroll-section .product-feature-card {
    min-height: 230px;
  }

  .products-scroll-section .product-feature-copy {
    padding: 18px 22px;
  }

  .products-scroll-section .product-feature-copy p {
    margin-bottom: 14px;
    line-height: 1.42;
  }

  .products-scroll-section .product-feature-media {
    padding: 18px 18px 18px 0;
  }

  .products-scroll-section .product-feature-media img {
    max-height: 170px;
  }
}

@media (max-width: 991.98px) {
  .products-scroll-section {
    padding: clamp(52px, 7vw, 78px) 0;
  }

  .products-scroll-section .home-products-pin {
    min-height: auto;
    display: block;
    padding: 0;
  }

  .products-scroll-window {
    overflow: visible;
    padding: 0;
  }

  .products-scroll-window::after {
    display: none;
  }

  .products-scroll-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    gap: 18px;
    transform: none !important;
  }

  .products-scroll-section .product-feature-card {
    min-height: 245px;
  }

  .products-scroll-window::before,
  .products-scroll-window::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .products-scroll-track {
    grid-template-columns: 1fr;
  }

  .products-scroll-section .product-feature-card {
    min-height: auto;
  }

  .products-scroll-section .product-feature-card {
    min-height: 245px;
    border-radius: 24px;
  }

  .products-scroll-section .product-feature-link {
    position: relative;
    display: block;
    min-height: 245px;
    overflow: hidden;
  }

  .products-scroll-section .product-feature-copy {
    position: relative;
    z-index: 3;
    min-height: 245px;
    justify-content: center;
    padding: 24px 24px;
  }

  .products-scroll-section .product-feature-copy h3 {
    max-width: 76%;
    font-size: 1.5rem;
  }

  .products-scroll-section .product-feature-copy p {
    max-width: 72%;
    margin-bottom: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .products-scroll-section .product-feature-media {
    position: absolute;
    top: 50%;
    right: -18px;
    z-index: 1;
    width: 52%;
    height: 100%;
    min-height: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0.16;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .products-scroll-section .product-feature-media img {
    width: auto;
    max-width: 100%;
    max-height: 82%;
    object-fit: contain;
    transform: none;
    filter: none;
  }

  .products-scroll-section .product-feature-card:hover .product-feature-media img {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .products-scroll-section {
    padding: 48px 0 64px;
  }

  .products-scroll-track {
    gap: 16px;
  }

  .products-scroll-section .product-feature-card {
    min-height: 230px;
  }

  .products-scroll-section .product-feature-link {
    min-height: 230px;
  }

  .products-scroll-section .product-feature-copy {
    min-height: 230px;
    padding: 22px 20px;
  }

  .products-scroll-section .product-feature-copy h3 {
    font-size: 1.42rem;
  }

  .products-scroll-section .product-feature-copy p {
    max-width: 94%;
    font-size: 0.86rem;
  }

  .products-scroll-section .product-feature-media {
    right: -24px;
    width: 56%;
    opacity: 0.14;
  }

  .products-scroll-section .product-feature-media img {
    max-height: 78%;
  }
}


/* =========================================================
   Tienda en linea Store Home
   ========================================================= */

.home-store-section {
  position: relative;
  padding-bottom: 5rem;
  background: transparent;
  overflow: hidden;
}

.home-store-shell {
  position: relative;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(18, 40, 76, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 18%, rgba(0, 149, 58, 0.04), transparent 30%),
    radial-gradient(circle at 14% 88%, rgba(0, 149, 58, 0.04), transparent 34%),
    rgba(255, 255, 255, 0.76);
  box-shadow:
    0 26px 70px rgba(18, 40, 76, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  overflow: hidden;
}

.home-store-copy {
  max-width: 600px;
}

.home-store-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--color-green-600);
  font-size: 0.82rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-store-label i {
  color: var(--color-green-500);
}

.home-store-copy h2 {
  max-width: 560px;
  margin: 0 0 18px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.home-store-copy>p {
  max-width: 560px;
  margin: 0 0 24px;
  color: rgba(81, 81, 81, 0.82);
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  font-weight: 400;
  line-height: 1.68;
}

.home-store-points {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.home-store-points span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(18, 40, 76, 0.84);
  font-size: 0.94rem;
  font-weight: 430;
}

.home-store-points i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--color-green-600);
  font-size: 0.72rem;
  border-radius: 999px;
  background: rgba(0, 149, 58, 0.1);
}

.home-store-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.home-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 9px;
  padding: 0 22px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 560;
  text-decoration: none;
  border-radius: 999px;
  background: var(--color-blue-900);
  box-shadow: 0 16px 34px rgba(18, 40, 76, 0.18);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.home-store-btn:hover {
  color: #ffffff;
  background: var(--color-green-500);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 149, 58, 0.22);
}

.home-store-btn i {
  font-size: 0.8rem;
}

.home-store-link {
  color: rgba(18, 40, 76, 0.86);
  font-size: 0.92rem;
  font-weight: 520;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.home-store-link:hover {
  color: var(--color-green-600);
}

/* Visual con captura de tienda */

.home-store-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.store-screenshot-card {
  position: relative;
  width: min(100%, 560px);
  border: 1px solid rgba(18, 40, 76, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.store-screenshot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

}

.store-screenshot-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  user-select: none;
  opacity: 0.8;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* Responsive */

@media (max-width: 991.98px) {
  .home-store-copy {
    max-width: 100%;
  }

  .home-store-visual {
    justify-content: flex-start;
  }

  .store-screenshot-card {
    width: 100%;
  }

}

@media (max-width: 575.98px) {
  .home-store-section {
    padding: 48px 0 64px;
  }

  .home-store-shell {
    padding: 28px 20px;
    border-radius: 26px;
  }

  .home-store-copy p {
    font-size: 14px;
  }

  .home-store-points span {
    font-size: 14px;
  }

  .store-screenshot-card {
    border-radius: 22px;
  }

  .store-screenshot-card img {
    aspect-ratio: 4 / 3;
  }
}

/* =========================================================
   Home - Servicios con ScrollTrigger
   ========================================================= */

.home-services-scroll {
  --services-diagonal: clamp(22px, 3vw, 42px);
  position: relative;
  width: 100%;
  background: var(--color-blue-900);
  overflow: hidden;
  clip-path: polygon(0 var(--services-diagonal),
      100% 0,
      100% 100%,
      0 100%);
}

.home-services-scroll::before {
  display: none;
}

.home-services-pin {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 149, 58, 0.34), transparent 55%) var(--color-blue-900);
  color: #ffffff;
}

.services-scroll-copy {
  max-width: 620px;
}

.services-scroll-label {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-scroll-copy h2 {
  max-width: 580px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.services-step-list {
  display: grid;
  gap: 18px;
}

.service-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: clamp(0.98rem, 1.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition:
    color 260ms ease,
    transform 260ms ease;
}

.service-step span {
  color: rgba(255, 255, 255, 0.28);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 260ms ease;
}

.service-step::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-green-500);
  opacity: 0;
  transform: translateY(-50%) scale(0.4);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.service-step.is-active {
  color: #ffffff;
  transform: translateX(8px);
}

.service-step.is-active span {
  color: var(--color-green-500);
}

.service-step.is-active::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Imagen derecha */

.services-visual-stage {
  position: relative;
  width: 100%;
  height: min(58vh, 620px);
  min-height: 420px;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.service-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition:
    opacity 420ms ease,
    visibility 420ms ease,
    transform 720ms ease;
}

.service-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.service-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 24%),
    linear-gradient(0deg, rgba(18, 40, 76, 0.82) 0%, rgba(18, 40, 76, 0.24) 54%, transparent 100%);
}

.service-panel img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.service-panel-content {
  position: absolute;
  left: 0px;
  right: auto;
  bottom: 0px;
  z-index: 3;

  width: min(65%, 350px);
  max-width: calc(100% - 36px);
  padding: 10px 12px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1px 20px 1px 20px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.015)
    );

  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);

  backdrop-filter: blur(6px) saturate(115%);
  -webkit-backdrop-filter: blur(6px) saturate(115%);
}

.service-panel-content h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.service-panel-content p {
  max-width: 360px;
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
}

.service-panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 0;
  padding: 2px 0;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;

  border: 0;
  border-radius: 0;
  background: transparent;

  transition:
    color var(--transition-fast),
    gap var(--transition-fast);
}

.service-panel-btn:hover,
.service-panel-btn:focus-visible {
  gap: 9px;
  background: transparent;
}

.service-panel-btn i {
  font-size: 0.68rem;
}

.services-scroll-container {
  --services-padding-top: clamp(82px, 8vw, 118px);
  --services-padding-bottom: clamp(24px, 3vw, 44px);

  width: 100%;
  height: 100vh;
  min-height: 100vh;
  padding:
    var(--services-padding-top) clamp(18px, 6vw, 96px) var(--services-padding-bottom);

  box-sizing: border-box;
  display: flex;
  align-items: stretch;
}

.services-scroll-row {
  width: 100%;
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.services-left-col {
  display: flex;
  align-items: center;
}

.services-right-col {
  display: flex;
  align-items: center;
}

.services-right-col .services-visual-stage {
  width: 100%;
  transform: translateY(24px);
}

/* Responsive */

@media (max-width: 991.98px) {
  .home-services-scroll {
    overflow: hidden;
  }

  .home-services-scroll::before {
    height: 58px;
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 34px;
  }

  .home-services-pin {
    height: auto;
    min-height: auto;
    display: block;
  }

  .services-scroll-container {
    height: auto;
    min-height: auto;
    display: block;
    padding: 72px 18px 64px;
  }

  .services-scroll-row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 34px;

    width: 100%;
    height: auto;
    min-height: auto;
    margin-inline: 0;
    align-content: initial;
  }

  .services-left-col,
  .services-right-col {
    display: block;
    padding-inline: 0;
  }

  .services-scroll-copy {
    max-width: 100%;
  }

  .services-scroll-copy h2 {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .services-step-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-bottom: 0;
    padding: 0;
    overflow: visible;
  }

  .service-step {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.9rem;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    transform: none !important;
  }

  .service-step span {
    font-size: 0.78rem;
  }

  .service-step::before {
    display: none;
  }

  .service-step.is-active {
    color: #ffffff;
    border-color: rgba(0, 149, 58, 0.62);
    background: rgba(0, 149, 58, 0.17);
  }

  .services-right-col .services-visual-stage {
    transform: none;
  }

  .services-visual-stage {
    height: clamp(340px, 46vh, 430px);
    min-height: 0;
    border-radius: 14px;
  }

    .service-panel-content {
        left: 14px;
        right: auto;
        bottom: 14px;
        width: min(72%, 400px);
        max-width: calc(100% - 28px);
        padding: 15px 16px;
        border-radius: 18px;
    }

    .service-panel-content h3 {
        margin-bottom: 6px;
        font-size: clamp(1.08rem, 3vw, 1.28rem);
    }

    .service-panel-content p {
        max-width: 350px;
        margin-bottom: 11px;
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .service-panel-btn {
    min-height: 34px;
    padding: 0 13px;
    font-size: 0.78rem;
    }
}

@media (min-width: 992px) and (max-height: 780px) {
  .services-scroll-container {
    --services-padding-top:
      calc(var(--floating-menu-height, 75px) + 16px);

    --services-padding-bottom: 20px;
  }

  .services-scroll-copy h2 {
    margin-bottom: 22px;
    font-size: clamp(2.2rem, 3vw, 3.2rem);
  }

  .services-step-list {
    gap: 15px;
  }

  .service-step {
    grid-template-columns: 38px 1fr;
    min-height: 42px;
    font-size: clamp(0.96rem, 1.45vw, 1.35rem);
    line-height: 1.2;
  }

  .service-step span {
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .services-scroll-container {
    padding: 58px 14px 54px;
  }

  .home-services-scroll::before {
    height: 46px;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
  }

  .services-scroll-row {
    --bs-gutter-y: 28px;
  }

  .services-scroll-copy h2 {
    margin-bottom: 20px;
    margin-top: 30px;
  }

  .services-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .service-step {
    grid-template-columns: 26px minmax(0, 1fr);
    min-height: 62px;
    padding: 9px 10px;
    font-size: 0.78rem;
    border-radius: 14px;
  }

  .service-step span {
    font-size: 0.7rem;
  }

  .services-visual-stage {
    height: clamp(250px, 40vh, 300px);
    border-radius: 10px;
  }

    .service-panel-content {
        left: 10px;
        right: auto;
        bottom: 10px;

        width: min(84%, 320px);
        max-width: calc(100% - 20px);
        padding: 12px 14px;
        border-radius: 15px;
    }

    .service-panel-content h3 {
    margin-bottom: 5px;
        font-size: 1.03rem;
        line-height: 1.15;
    }

    .service-panel-content p {
        display: none;
    }

    .service-panel-btn {
        min-height: 32px;
        gap: 5px;
        padding: 0 12px;
        font-size: 0.74rem;
    }

    .service-panel-btn i {
        font-size: 0.64rem;
    }
}

/* =========================================================
   Home - Proyectos destacados
   Carrusel infinito
   ========================================================= */

.featured-projects-marquee-section {
  position: relative;
  padding: clamp(58px, 7vw, 104px) 0;
  background: var(--surface-page);
  overflow: hidden;
}

.featured-projects-marquee-header {
  max-width: 760px;
  margin: 0 auto clamp(34px, 4vw, 52px);
  text-align: center;
}

.featured-projects-marquee-header h2 {
  margin: 0 0 14px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.featured-projects-marquee-header p {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(81, 81, 81, 0.78);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  font-weight: 400;
  line-height: 1.68;
}

/* Contenedor general de carruseles */

.featured-projects-marquee-wrap {
  position: relative;
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  width: 100%;
  overflow: hidden;
}

/* Degradado izquierdo */

.featured-projects-marquee-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 8;
  width: clamp(64px, 10vw, 160px);
  pointer-events: none;
  background: linear-gradient(90deg,
      var(--surface-page),
      rgba(246, 247, 249, 0));
}

/* Degradado derecho */

.featured-projects-marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  width: clamp(64px, 10vw, 160px);
  pointer-events: none;
  background: linear-gradient(270deg,
      var(--surface-page),
      rgba(246, 247, 249, 0));
}

/* Fila */

.projects-marquee-row {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Track */

.projects-marquee-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: clamp(18px, 2vw, 28px);
  padding-inline: clamp(18px, 3vw, 48px);
  will-change: transform;
  animation-name: projectsMarqueeLeft;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

/* El carrusel inicia solo cuando la sección entra en pantalla */

.featured-projects-marquee-section.is-in-view .projects-marquee-track {
  animation-play-state: running;
}

/* Velocidades por fila */

.projects-marquee-row--one .projects-marquee-track {
  animation-duration: 46s;
}

.projects-marquee-row--two .projects-marquee-track {
  animation-duration: 54s;
}

/* Movimiento hacia la derecha */

@keyframes projectsMarqueeLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Card */

.project-marquee-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(210px, 20.5vw, 340px);
  height: clamp(148px, 14.4vw, 220px);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  background: #ffffff;
  isolation: isolate;
}

.project-marquee-card--wide {
  width: clamp(205px, 21.8vw, 385px);
}

.project-marquee-card img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.project-marquee-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(0deg,
      rgba(18, 40, 76, 0.92) 0%,
      rgba(18, 40, 76, 0.78) 30%,
      rgba(18, 40, 76, 0.34) 58%,
      rgba(18, 40, 76, 0) 84%);
  opacity: 0;
  transition: opacity 280ms ease;
}

.project-marquee-overlay {
  position: absolute;
  left: clamp(14px, 1.6vw, 22px);
  right: clamp(14px, 1.6vw, 22px);
  bottom: clamp(14px, 1.6vw, 22px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

.project-marquee-overlay h3 {
  max-width: 300px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.98rem, 1.15vw, 1.22rem);
  font-weight: 540;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.28);
}

.project-marquee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: auto;
  gap: 7px;
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 560;
  line-height: 1;
  border-radius: 0;
  background: transparent;
}

.project-marquee-btn i {
  font-size: 0.72rem;
  transition: transform var(--transition-fast);
}

.project-marquee-card:hover .project-marquee-btn i {
  transform: translateX(3px);
}

/* Hover */

.project-marquee-card:hover img {
  transform: scale(1.075);
}

.project-marquee-card:hover::before {
  opacity: 1;
}

.project-marquee-card:hover .project-marquee-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 991.98px) {
  .featured-projects-marquee-section {
    padding: 56px 0 78px;
  }

  .project-marquee-card {
    width: 245px;
    height: 168px;
    border-radius: 22px;
  }

  .project-marquee-card--wide {
    width: 315px;
  }
}

@media (max-width: 575.98px) {
  .featured-projects-marquee-header {
    text-align: center;
    margin-bottom: 30px;
  }

  .featured-projects-marquee-header p {
    font-size: 14px;
  }

  .featured-projects-marquee-wrap {
    gap: 16px;
  }

  .featured-projects-marquee-wrap::before,
  .featured-projects-marquee-wrap::after {
    width: 54px;
  }

  .projects-marquee-track {
    gap: 14px;
    padding-inline: 14px;
  }

  .project-marquee-card {
    width: 205px;
    height: 148px;
    border-radius: 18px;
  }

  .project-marquee-card--wide {
    width: 260px;
  }

  .project-marquee-overlay {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .project-marquee-overlay h3 {
    max-width: 220px;
    font-size: 0.98rem;
  }

  .project-marquee-btn {
    min-height: auto;
    padding: 0;
    font-size: 0.76rem;
  }
}

/* =========================================================
   CTA Parallax Video - Fixed Window
   ========================================================= */

.home-parallax-cta-section {
  --parallax-diagonal: clamp(22px, 3vw, 46px);

  position: relative;
  min-height: clamp(420px, 62vh, 620px);
  display: flex;
  align-items: center;
  padding: calc(clamp(72px, 8vw, 120px) + var(--parallax-diagonal)) 0;
  color: #ffffff;
  background: var(--color-blue-900);
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;

  clip-path: polygon(0 var(--parallax-diagonal),
      100% 0,
      100% 100%,
      0 calc(100% - var(--parallax-diagonal)));
}

/* Video tipo ventana fija */

.home-parallax-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.home-parallax-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Capa oscura */

.home-parallax-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(18, 40, 76, 0.88) 0%,
      rgba(18, 40, 76, 0.76) 42%,
      rgba(18, 40, 76, 0.48) 100%),
    radial-gradient(circle at 18% 35%,
      rgba(0, 149, 58, 0.34),
      transparent 42%);
}

/* Contenido */

.home-parallax-cta-section .container {
  position: relative;
  z-index: 3;
}

.home-parallax-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.home-parallax-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-parallax-content h2 {
  max-width: 760px;
  margin: 0 auto 20px;
  color: #ffffff;
  font-size: clamp(1.5rem, 3.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.home-parallax-content p {
  max-width: 690px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.98rem, 1.18vw, 1.12rem);
  font-weight: 400;
  line-height: 1.7;
}

/* Botones */

.home-parallax-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.home-parallax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  padding: 0 22px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.home-parallax-btn i {
  font-size: 0.78rem;
  transition: transform var(--transition-fast);
}

.home-parallax-btn-primary {
  color: #ffffff;
  border: 1px solid var(--color-green-500);
  background: var(--color-green-500);
  box-shadow: 0 16px 34px rgba(0, 149, 58, 0.24);
}

.home-parallax-btn-primary:hover,
.home-parallax-btn-primary:focus-visible {
  color: #ffffff;
  border-color: var(--color-green-600);
  background: var(--color-green-600);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 149, 58, 0.3);
}

.home-parallax-btn-primary:hover i,
.home-parallax-btn-primary:focus-visible i {
  transform: translateX(3px);
}

.home-parallax-btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.home-parallax-btn-secondary:hover,
.home-parallax-btn-secondary:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* Responsive */

@media (max-width: 767.98px) {
  .home-parallax-cta-section {
    min-height: auto;
    padding: 82px 0;
  }

  .home-parallax-overlay {
    background:
      linear-gradient(180deg,
        rgba(18, 40, 76, 0.84) 0%,
        rgba(18, 40, 76, 0.88) 100%),
      radial-gradient(circle at 50% 22%,
        rgba(0, 149, 58, 0.28),
        transparent 46%);
  }

  .home-parallax-content {
    text-align: center;
  }

  .home-parallax-content h2 {
    font-size: clamp(1.5rem, 8vw, 2.55rem);
  }

  .home-parallax-content p {
    font-size: 0.94rem;
  }

  .home-parallax-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-parallax-btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .home-parallax-cta-section {
    --parallax-diagonal: 24px;
    padding: 72px 0;
  }

  .home-parallax-label {
    font-size: 0.74rem;
  }

  .home-parallax-content h2 {
    font-size: clamp(1.5rem, 9.5vw, 2.25rem);
  }
}

/**************************************************************/
/********************** Industrias **************************/
/**************************************************************/

.home-industries-section {
  --industries-accent: var(--color-green-500);
  --industries-transition: 620ms;

  position: relative;
  width: 100%;
  padding: clamp(64px, 7vw, 92px) 0;
  overflow: hidden;
  background: #f6f7f9;
}

.home-industries-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 0.92fr)
    minmax(460px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 5vw, 84px);
}

/* =========================================================
   Contenido
   ========================================================= */

.home-industries-copy {
  min-width: 0;
}

.home-industries-copy h2 {
  max-width: 600px;
  margin: 0 0 18px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.home-industries-copy > p {
  max-width: 590px;
  margin: 0 0 32px;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.65;
}

.home-industries-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--color-green-500);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
}

.home-industries-label i {
  font-size: 0.95rem;
}

/* =========================================================
   Lista de industrias
   ========================================================= */

.home-industries-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(48px, auto));
  grid-auto-flow: column;
  gap: 10px;
  width: 100%;
}

.home-industry-trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  gap: 9px;
  padding: 10px 11px;
  overflow: hidden;
  color: var(--color-blue-900);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  border: 1px solid rgba(18, 40, 76, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition:
    color 240ms ease,
    border-color 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease;
}

.home-industry-trigger::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(18, 40, 76, 0.24);
  transition:
    background 240ms ease,
    transform 240ms ease;
}

.home-industry-trigger span {
  min-width: 0;
}

.home-industry-trigger:hover {
  color: var(--industries-accent);
  border-color: rgba(0, 149, 58, 0.34);
  background: #ffffff;
  transform: translateY(-2px);
}

.home-industry-trigger:focus-visible {
  outline: 3px solid rgba(0, 149, 58, 0.22);
  outline-offset: 3px;
}

.home-industry-trigger.is-active {
  color: #ffffff;
  border-color: var(--industries-accent);
  background: var(--industries-accent);
  box-shadow: 0 12px 26px rgba(0, 149, 58, 0.2);
}

.home-industry-trigger.is-active::before {
  background: #ffffff;
  transform: scale(1.15);
}

/* =========================================================
   Imagen
   ========================================================= */

.home-industries-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 740;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-industries-visual::before,
.home-industries-visual::after,
.home-industries-decoration {
  display: none;
}

.home-industries-visual::before {
  top: -22%;
  right: -12%;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 149, 58, 0.12);
}

.home-industries-visual::after {
  right: 7%;
  bottom: 13%;
  width: 27%;
  aspect-ratio: 1;
  background: rgba(0, 149, 58, 0.055);
}

.home-industries-decoration {
  position: absolute;
  top: 34px;
  left: 34px;
  z-index: 3;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: var(--industries-accent);
}

.home-industries-image-stage {
  position: absolute;
  inset: 22px 28px 86px;
  overflow: hidden;
}

.home-industries-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateX(10%) scale(0.985);
  transition:
    opacity var(--industries-transition) ease,
    transform var(--industries-transition) ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.home-industries-image.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.home-industries-image.is-leaving {
  opacity: 0;
  transform: translateX(-10%) scale(0.985);
}

/*************** Pie de imagen *******************/

.home-industries-visual-footer {
  position: absolute;
  right: 25px;
  bottom: 22px;
  left: 25px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-industries-current {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.home-industries-current span {
  color: rgba(18, 40, 76, 0.56);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-industries-current strong {
  overflow: hidden;
  color: var(--color-blue-900);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-industries-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  gap: 9px;
  padding: 0 18px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  background: var(--color-blue-900);
  transition:
    color 240ms ease,
    background 240ms ease,
    transform 240ms ease;
}

.home-industries-btn:hover {
  color: #ffffff;
  background: var(--industries-accent);
  transform: translateY(-2px);
}

.home-industries-btn i {
  font-size: 0.76rem;
  transition: transform 240ms ease;
}

.home-industries-btn:hover i {
  transform: translateX(3px);
}

/*************** Responsive *****************/

@media (max-width: 1199.98px) {
  .home-industries-layout {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(420px, 1fr);
    gap: 40px;
  }

  .home-industry-trigger {
    padding-inline: 9px;
    font-size: 0.76rem;
  }
}

@media (max-width: 991.98px) {
  .home-industries-section {
    padding: 72px 0;
  }

  .home-industries-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-industries-copy {
    text-align: center;
  }

  .home-industries-copy h2,
  .home-industries-copy > p {
    margin-right: auto;
    margin-left: auto;
  }

  .home-industries-list {
    max-width: 760px;
    margin-inline: auto;
  }

  .home-industries-visual {
    max-width: 760px;
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .home-industries-section {
    padding: 56px 0;
  }

  .home-industries-copy > p {
    margin-bottom: 25px;
    font-size: 0.91rem;
    line-height: 1.55;
  }
  
  .home-industries-label {
    justify-content: center;
    }

  .home-industries-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 7px;
  }

  .home-industry-trigger {
    justify-content: center;
    min-height: 56px;
    padding: 8px 6px;
    font-size: 0.7rem;
    text-align: center;
  }

  .home-industry-trigger::before {
    display: none;
  }

  .home-industries-visual {
    border-radius: 23px;
  }

  .home-industries-decoration {
    top: 22px;
    left: 22px;
    width: 34px;
  }

  .home-industries-image-stage {
    inset: 14px 16px 76px;
  }

  .home-industries-visual-footer {
    right: 16px;
    bottom: 15px;
    left: 16px;
    gap: 10px;
  }

  .home-industries-current span {
    font-size: 0.62rem;
  }

  .home-industries-current strong {
    font-size: 0.88rem;
  }

  .home-industries-btn {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.75rem;
  }
}

@media (max-width: 379.98px) {
  .home-industries-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-industries-image,
  .home-industry-trigger,
  .home-industries-btn,
  .home-industries-btn i {
    transition: none;
  }
}

/* =========================================================
   Home - Carrusel de reseñas propias
   ========================================================= */

.home-reviews-section {
  position: relative;
  padding: clamp(64px, 7vw, 108px) 0;
  background: #ffffff;
  overflow: hidden;
}

.home-reviews-header {
  max-width: 760px;
  margin: 0 auto clamp(34px, 4vw, 52px);
  text-align: center;
}

.home-reviews-header h2 {
  margin: 0 0 14px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.home-reviews-header p {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(81, 81, 81, 0.78);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  font-weight: 400;
  line-height: 1.68;
}

.home-reviews-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 18px;
}

.home-reviews-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.home-reviews-track {
  --reviews-gap: 24px;

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--reviews-gap) * 2)) / 3);
  gap: var(--reviews-gap);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.home-review-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border: 1px solid rgba(18, 40, 76, 0.09);
  border-radius: 24px;
  background: #ffffff;
  overflow: hidden;
}

.home-review-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue-800), var(--color-green-600));
}

.home-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.home-review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
}

.home-review-avatar-blue {
  background: linear-gradient(135deg, var(--color-blue-800), #315d99);
}

.home-review-avatar-green {
  background: linear-gradient(135deg, var(--color-green-600), #67b32e);
}

.home-review-avatar-dark {
  background: linear-gradient(135deg, var(--color-blue-900), #243a5c);
}

.home-review-author {
  min-width: 0;
}

.home-review-author h3 {
  margin: 0;
  color: var(--color-blue-900);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.22;
}

.home-review-author span {
  display: block;
  margin-top: 4px;
  color: rgba(81, 81, 81, 0.62);
  font-size: 0.78rem;
  font-weight: 500;
}

.home-review-stars {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 18px;
  color: #f6b01e;
  font-size: 0.9rem;
}

.home-review-card p {
  display: -webkit-box;
  margin: 0;
  color: rgba(36, 48, 67, 0.88);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.62;
  overflow: hidden;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.home-review-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  color: rgba(81, 81, 81, 0.64);
  font-size: 0.82rem;
  font-weight: 550;
}

.home-review-source i {
  font-size: 1.1rem;
}

.home-reviews-arrow {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--color-blue-900);
  border: 1px solid rgba(18, 40, 76, 0.14);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(18, 40, 76, 0.08);
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.home-reviews-arrow:hover,
.home-reviews-arrow:focus-visible {
  color: var(--color-green-600);
  border-color: rgba(0, 149, 58, 0.32);
  background: rgba(0, 149, 58, 0.06);
  transform: translateY(-1px);
}

.home-reviews-arrow i {
  font-size: 0.82rem;
}

/* Responsive */

@media (max-width: 991.98px) {
  .home-reviews-carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 12px;
  }

  .home-reviews-track {
    --reviews-gap: 18px;
    grid-auto-columns: calc((100% - var(--reviews-gap)) / 2);
  }

  .home-review-card {
    min-height: 300px;
  }

  .home-reviews-arrow {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}

@media (max-width: 575.98px) {
  .home-reviews-section {
    padding: 58px 0 72px;
  }

  .home-reviews-header p {
    font-size: 14px;
  }

  .home-reviews-carousel {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-reviews-viewport {
    overflow: hidden;
  }

  .home-reviews-track {
    --reviews-gap: 16px;
    grid-auto-columns: 100%;
  }

  .home-review-card {
    min-height: 285px;
    padding: 26px 22px 22px;
    border-radius: 20px;
  }

  .home-reviews-arrow {
    position: absolute;
    top: calc(100% + 16px);
    z-index: 2;
  }

  .home-reviews-arrow-prev {
    left: calc(50% - 48px);
  }

  .home-reviews-arrow-next {
    right: calc(50% - 48px);
  }

  .home-reviews-carousel {
    padding-bottom: 58px;
  }
}



/* =========================================================
   Home - Blog industrial
   ========================================================= */

.home-blog-section {
  --blog-diagonal: clamp(34px, 4vw, 76px);

  position: relative;
  padding: calc(clamp(44px, 6vw, 70px) + var(--blog-diagonal)) 0 clamp(24px, 3vw, 12px);
  background: var(--surface-page);
  overflow: hidden;
  isolation: isolate;
}

.home-blog-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: var(--blog-diagonal);
  background: #ffffff;
  clip-path: polygon(0 0,
      100% 0,
      0 100%);
  pointer-events: none;
}

.home-blog-section .container {
  position: relative;
  z-index: 2;
}

.home-blog-header {
  max-width: 760px;
  margin: 0 auto clamp(24px, 1vw, 42px);
  text-align: center;
}

.home-blog-header h2 {
  margin: 0 0 14px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.home-blog-header p {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(81, 81, 81, 0.78);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  font-weight: 400;
  line-height: 1.68;
}

/* Card */

.blog-card {
  position: relative;
  height: 100%;
  border: 1px solid rgba(18, 40, 76, 0.09);
  border-radius: 26px;
  background: #ffffff;
  box-shadow:
    0 18px 42px rgba(18, 40, 76, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 149, 58, 0.22);
  box-shadow:
    0 24px 56px rgba(18, 40, 76, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Imagen */

.blog-card-media {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #dfe5ea;
}

.blog-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(0deg, rgba(18, 40, 76, 0.18), transparent 55%);
}

.blog-card-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.075);
}

/* Contenido */

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px 24px;
}

.blog-card-category {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  color: var(--color-green-600);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.blog-card-body h3 {
  margin: 0 0 13px;
  color: rgba(18, 40, 76, 0.94);
  font-size: clamp(1.18rem, 1.45vw, 1.42rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.blog-card-body p {
  margin: 0 0 22px;
  color: rgba(81, 81, 81, 0.78);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.62;
}

/* Footer */

.blog-card-footer {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-top: auto;
  color: var(--color-blue-800);
  font-size: 0.9rem;
  font-weight: 560;
}

.blog-card-footer i {
  color: var(--color-green-600);
  font-size: 0.76rem;
  transition: transform var(--transition-fast);
}

.blog-card:hover .blog-card-footer i {
  transform: translateX(4px);
}

/* Botón general */

.home-blog-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(30px, 4vw, 44px);
}

.home-blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 10px;
  padding: 0 22px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  background: var(--color-blue-800);
  transition:
    background var(--transition-fast);
}

.home-blog-btn:hover {
  color: #ffffff;
  background: var(--color-green-500);
}

.home-blog-btn i {
  font-size: 0.78rem;
}

/* Responsive */

/* Productos: dos filas compactas con imagen y texto separados */
@media (min-width: 992px) and (max-height: 690px) {

  /* PRODUCTOS SCROLL */
  .products-scroll-section .home-products-pin {
    min-height: 100svh;
    padding:
      calc(var(--floating-menu-height, 75px) + 10px) 0 12px;
  }

  .products-scroll-section .products-scroll-container {
    row-gap: 10px;
  }

  /* Encabezado compacto */
  .products-scroll-section .home-products-header {
    margin: 0;
  }

  .products-scroll-section .home-products-header h2 {
    margin: 0 0 6px;
    font-size: clamp(1.7rem, 2.3vw, 2rem);
    line-height: 1.1;
  }

  .products-scroll-section .home-products-header p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .products-scroll-section .home-products-quality {
    padding: 8px 12px;
  }

  /* Dos filas y dos columnas visibles */
  .products-scroll-section .products-scroll-window {
    padding: 4px 0 10px;
  }

  .products-scroll-section .products-scroll-track {
    --products-gap: 12px;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  /* Cards compactas */
  .products-scroll-section .product-feature-card {
    min-height: 180px;
    border-radius: 22px;
  }

  /* Columnas independientes para texto e imagen */
  .products-scroll-section .product-feature-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30%;
    height: 100%;
    min-height: inherit;
    isolation: isolate;
  }

  /* Texto */
  .products-scroll-section .product-feature-copy {
    min-width: 0;
    min-height: 180px;
    padding: 22px 18px;
    justify-content: center;
  }

  .products-scroll-section .product-feature-kicker {
    max-width: 100%;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.65rem;
    letter-spacing: 0.025em;
  }

  .products-scroll-section .product-feature-kicker img {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
  }

  .products-scroll-section .product-feature-copy h3 {
    max-width: 100%;
    margin: 0 0 6px;
    font-size: 1.24rem !important;
    line-height: 1.08;
  }

  .products-scroll-section .product-feature-copy p {
    max-width: 100%;
    margin: 0 0 8px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .products-scroll-section .product-feature-cta {
    margin-top: auto;
    font-size: 0.8rem;
  }

  /* Imagen dentro de su propia columna */
  .products-scroll-section .product-feature-media {
    position: relative;
    inset: auto;
    z-index: 1;

    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 12px 12px 12px 0;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1;
    pointer-events: none;
  }

  .products-scroll-section .product-feature-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 165px;
    object-fit: contain;
    transform: none;
  }

  .products-scroll-section .product-feature-card:hover
  .product-feature-media img {
    transform: scale(1.035);
  }
  
  /* SERVICIOS SCROLL */
  .home-services-scroll .services-step-list {
    gap: 10px;
  }
}

@media (max-width: 991.98px) {
  .blog-card-media {
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .home-blog-section {
    padding: 58px 0 72px;
  }

  .home-blog-header p {
    font-size: 14px;
  }

  .blog-card {
    border-radius: 22px;
  }

  .blog-card-media {
    height: 185px;
  }

  .blog-card-body {
    padding: 22px 20px 22px;
  }

  .blog-card-body h3 {
    font-size: 1.22rem;
  }

  .blog-card-body p {
    font-size: 0.9rem;
  }

  .home-blog-btn {
    width: 100%;
  }
}