@import 'tokens.css';

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
picture {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-section);
}

/* Header con Glassmorphism dinámico y barra de progreso */
.header {
  background-color: rgba(255, 255, 255, 0.98);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.scroll-progress-bar {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, #1D3736 0%, #698758 100%);
  pointer-events: none;
  z-index: 105;
  transition: width 0.08s linear;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo-img {
  height: 28px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-drawer-header,
.nav-drawer-footer,
.nav-link-num,
.nav-link-arrow,
.nav-backdrop {
  display: none;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16.94px;
  line-height: 24.56px;
  color: #17191C;
  vertical-align: middle;
  transition: opacity var(--transition-fast);
}

.nav-link:hover {
  opacity: 0.7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Modern Hamburger Button */
.mobile-menu-btn {
  display: none;
  background: #f1f3f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-btn:hover {
  background: #e9ecef;
  transform: scale(1.04);
}

.hamburger-box {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #17191C;
  border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              width 0.25s ease;
  transform-origin: center;
}

.hamburger-line.line-2 {
  width: 70%;
  margin-left: auto;
}

/* Estado activo del botón hamburguesa: Morph suave a X */
.mobile-menu-btn.is-active {
  background: #17191C;
  border-color: #17191C;
}

.mobile-menu-btn.is-active .hamburger-line {
  background-color: #FFFFFF;
}

.mobile-menu-btn.is-active .line-1 {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.is-active .line-2 {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-btn.is-active .line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: #17191C;
  color: #FFFFFF;
  padding: 12px 22px;
}

.btn-primary:hover {
  background-color: #2b2f35;
  transform: translateY(-1px);
}

/* ========================================================
   MODERN MOBILE DRAWER NAVIGATION (Slide-over + Glass)
   ======================================================== */
@media (max-width: 992px) {
  .header-container {
    height: 72px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Backdrop borroso con oscurecimiento suave */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 20, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 1000;
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* Drawer panel deslizante lateral con estética premium */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 380px);
    height: 100vh;
    height: 100dvh;
    background: #FFFFFF;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.16);
    padding: 5.5rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(105%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  /* Drawer Header */
  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-drawer-tag {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #698758;
    background: rgba(105, 135, 88, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
  }

  .nav-drawer-brand {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    color: #8c939d;
  }

  /* Enlaces de navegación interactivos con microanimación */
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
  }

  .nav-list li {
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Cascada fluida al abrir */
  .nav.is-open .nav-list li:nth-child(1) { transition-delay: 0.08s; opacity: 1; transform: translateX(0); }
  .nav.is-open .nav-list li:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateX(0); }
  .nav.is-open .nav-list li:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateX(0); }
  .nav.is-open .nav-list li:nth-child(4) { transition-delay: 0.20s; opacity: 1; transform: translateX(0); }
  .nav.is-open .nav-list li:nth-child(5) { transition-delay: 0.24s; opacity: 1; transform: translateX(0); }
  .nav.is-open .nav-list li:nth-child(6) { transition-delay: 0.28s; opacity: 1; transform: translateX(0); }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    background: transparent;
    color: #17191C;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  }

  .nav-link:hover,
  .nav-link:active {
    background-color: #f6f8fa;
    color: #1D3736;
    transform: translateX(4px);
    opacity: 1;
  }

  .nav-link-num {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: #8c939d;
    margin-right: 12px;
    width: 20px;
  }

  .nav-link-text {
    flex: 1;
    text-align: left;
  }

  .nav-link-arrow {
    display: block;
    color: #b0b8c1;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .nav-link:hover .nav-link-arrow {
    color: #1D3736;
    transform: translateX(3px);
  }

  /* Drawer Footer con accesos directos */
  .nav-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .btn-drawer-cta {
    width: 100%;
    background-color: #1D3736;
    color: #FFFFFF;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(29, 55, 54, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .btn-drawer-cta:hover {
    background-color: #162928;
    transform: translateY(-1px);
  }

  .nav-drawer-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: #f4fbf4;
    border: 1px solid #d2ecd2;
    color: #216a2b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .nav-drawer-whatsapp:hover {
    background: #e4f7e4;
    transform: translateY(-1px);
  }
}

@media (max-width: 480px) {
  .header-cta {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: calc(100vh - 84px);
  max-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #FFFFFF;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.92) 28%,
      rgba(255, 255, 255, 0.72) 42%,
      rgba(255, 255, 255, 0.2) 58%,
      rgba(255, 255, 255, 0) 75%);
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-block: 4rem;
}

.hero-content {
  max-width: 580px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: normal;
  font-size: 66.32px;
  line-height: 62.36px;
  letter-spacing: -4.46px;
  color: #17191C;
  margin-bottom: 24px;
}

.hero-description {
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: normal;
  font-size: 15.94px;
  line-height: 23.03px;
  letter-spacing: 0%;
  color: #5e646e;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-description strong {
  font-weight: 700;
  color: #17191C;
}

.btn-hero {
  background-color: #17191C;
  color: #FFFFFF;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
}

.btn-hero:hover {
  background-color: #2b2f35;
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn-hero:hover .btn-arrow {
  transform: translateX(4px);
}

@media (max-width: 992px) {
  .hero-section {
    min-height: auto;
    padding-block: 3.5rem 4rem;
  }

  .hero-container {
    padding-block: 1rem;
  }

  .hero-title {
    font-size: 42px;
    line-height: 44px;
    letter-spacing: -2px;
  }

  .hero-overlay {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.9) 65%,
        rgba(255, 255, 255, 0.5) 100%);
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 34px;
    line-height: 38px;
    letter-spacing: -1.2px;
  }

  .hero-description {
    font-size: 15px;
    line-height: 22px;
  }

  .btn-hero {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* El Problema Section */
.problem-section {
  background: linear-gradient(180deg, #1D3736 0%, #698758 100%);
  color: #FFFFFF;
  padding-block: 6rem;
  position: relative;
  overflow: hidden;
}

.problem-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3rem;
  position: relative;
}

.problem-content {
  max-width: 640px;
}

.problem-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-style: normal;
  font-size: 12.5px;
  line-height: 18.1px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0.85;
  margin-bottom: 20px;
}

.problem-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: normal;
  font-size: 52.8px;
  line-height: 54.91px;
  letter-spacing: -1.58px;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.problem-description {
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: normal;
  font-size: 17.3px;
  line-height: 25px;
  letter-spacing: 0%;
  color: #FFFFFF;
  opacity: 0.9;
  max-width: 560px;
}

.problem-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Scroll Reveal Animation & Stagger Delays */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger cascading delays for grids (Propuesta de Valor, Target Cards) */
.value-card.reveal-item:nth-child(1) { transition-delay: 0.05s; }
.value-card.reveal-item:nth-child(2) { transition-delay: 0.18s; }
.value-card.reveal-item:nth-child(3) { transition-delay: 0.31s; }

.target-card.reveal-item:nth-child(1) { transition-delay: 0.05s; }
.target-card.reveal-item:nth-child(2) { transition-delay: 0.18s; }
.target-card.reveal-item:nth-child(3) { transition-delay: 0.31s; }

/* Isotipo Problem Section */
.problem-iso {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 0 25px rgba(105, 135, 88, 0.4));
  animation: breatheGlow 4s ease-in-out infinite alternate;
  will-change: transform, filter;
  transition: transform 0.12s ease-out;
}

@keyframes breatheGlow {
  0% {
    filter: drop-shadow(0 0 15px rgba(105, 135, 88, 0.25));
  }

  100% {
    filter: drop-shadow(0 0 45px rgba(105, 135, 88, 0.65));
  }
}

/* Card hover icon micro-interaction */
.value-card:hover .card-icon svg {
  transform: scale(1.1) rotate(4deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-icon svg {
  transition: transform 0.3s ease;
}

.target-card:hover .target-icon svg {
  transform: scale(1.15);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.target-icon svg {
  transition: transform 0.3s ease;
}

@media (max-width: 992px) {
  .problem-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .problem-title {
    font-size: 38px;
    line-height: 42px;
  }

  .iso-assembly {
    width: 250px;
    height: 250px;
    margin-top: 1rem;
    align-self: center;
  }

  .iso-piece {
    width: 140px;
  }
}

@media (max-width: 576px) {
  .iso-assembly {
    width: 210px;
    height: 210px;
  }

  .iso-piece {
    width: 120px;
  }
}

/* Propuesta de Valor Section */
.value-section {
  background-color: #FFFFFF;
  padding-block: 7rem 6rem;
}

.value-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 18.1px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: #717680;
  margin-bottom: 16px;
}

.value-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 52.8px;
  line-height: 54.91px;
  letter-spacing: -1.58px;
  color: #17191C;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.value-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 40px 36px 44px 36px;
  box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -8px rgba(0, 0, 0, 0.1), 0 6px 16px rgba(0, 0, 0, 0.04);
}

.card-icon {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  height: 38px;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 32px;
  letter-spacing: 0%;
  color: #1D3736;
  margin-bottom: 24px;
}

.card-description {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 23.2px;
  letter-spacing: 0%;
  color: #525866;
}

.value-action {
  display: flex;
  justify-content: center;
}

.btn-value {
  background-color: #1D3736;
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}

.btn-value:hover {
  background-color: #132524;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(29, 55, 54, 0.25);
}

@media (max-width: 992px) {
  .value-title {
    font-size: 38px;
    line-height: 42px;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .value-card {
    padding: 30px 24px;
  }
}

/* Trayectoria Section */
.trajectory-section {
  position: relative;
  background-color: #000000;
  color: #FFFFFF;
  padding-block: 7rem;
  overflow: hidden;
}

.trajectory-layer-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/patron.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.trajectory-layer-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(269.81deg, #000000 5.23%, #000000 38.35%, rgba(58, 58, 58, 0.15) 82.1%);
  z-index: 2;
  pointer-events: none;
}

.trajectory-container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 4.5rem;
}

.trajectory-visual {
  display: flex;
  justify-content: center;
}

.person-card {
  width: 100%;
  max-width: 440px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: none;
  border: none;
  background: transparent;
}

.person-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 28px;
  border: none;
}

.trajectory-content {
  max-width: 620px;
}

.trajectory-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 18.1px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: #8C929C;
  margin-bottom: 12px;
}

.trajectory-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: normal;
  font-size: 52.67px;
  line-height: 76.37px;
  letter-spacing: -1.58px;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.trajectory-role {
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  font-size: 19px;
  line-height: 23.2px;
  letter-spacing: 0%;
  color: #8E5E19;
  margin-bottom: 24px;
}

.trajectory-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: normal;
  font-size: 19.92px;
  line-height: 28.79px;
  letter-spacing: 0%;
  color: #C2C7D0;
  margin-bottom: 40px;
  max-width: 580px;
}

.trajectory-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 24px;
}

.stat-item {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: -1px;
}

.stat-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 18px;
  color: #8C929C;
}

@media (max-width: 992px) {
  .trajectory-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .trajectory-name {
    font-size: 40px;
    line-height: 48px;
  }

  .trajectory-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Referencias Section */
.references-section {
  background: linear-gradient(180deg, #1D3736 0%, #698758 100%);
  color: #FFFFFF;
  padding-block: 5.5rem 5rem;
  overflow: hidden;
}

.references-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 18.1px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0.85;
  margin-bottom: 16px;
}

.references-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: normal;
  font-size: 52.8px;
  line-height: 54.91px;
  letter-spacing: -1.58px;
  color: #FFFFFF;
  margin-bottom: 3.5rem;
}

.logos-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.logos-carousel.is-dragging {
  cursor: grabbing;
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

.logos-img {
  height: 70px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.logos-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .references-title {
    font-size: 38px;
    line-height: 42px;
  }

  .logos-img {
    height: 58px;
    max-width: 180px;
  }
}

@media (max-width: 576px) {
  .logos-track {
    gap: 1.5rem;
  }

  .logos-img {
    height: 64px;
    max-width: 190px;
  }
}

/* Casos de trabajo Section */
.cases-section {
  position: relative;
  background-color: #f7f9fa;
  padding-block: 6.5rem 6rem;
  overflow: hidden;
}

.cases-bg {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: 320px auto;
  opacity: 0.45;
  z-index: 1;
}

.cases-container {
  position: relative;
  z-index: 2;
  max-width: 1360px;
}

.cases-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  max-width: var(--max-width);
  margin-inline: auto;
}

.cases-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 52.8px;
  line-height: 54.91px;
  letter-spacing: -1.58px;
  color: #17191C;
  margin-bottom: 8px;
}

.cases-subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 24px;
  color: #5e646e;
}

.cases-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cases-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #17191C;
  background: #FFFFFF;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  user-select: none;
}

.cases-counter-current {
  color: #698758;
  font-size: 18px;
}

.cases-counter-divider {
  color: #8C929C;
  font-weight: 400;
  font-size: 14px;
  margin-inline: 1px;
}

.cases-counter-total {
  color: #5e646e;
  font-size: 14px;
  font-weight: 500;
}

.cases-nav-btns {
  display: flex;
  gap: 10px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #FFFFFF;
  color: #17191C;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background: #17191C;
  color: #FFFFFF;
  border-color: #17191C;
}

.cases-slider-stage {
  position: relative;
  width: 100%;
  min-height: 670px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  overflow: visible;
}

.cases-track {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 640px;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: pan-y;
}

.case-card {
  position: absolute;
  width: 520px;
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  cursor: pointer;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.case-card.card-active {
  z-index: 10;
  transform: translateX(0) scale(1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  opacity: 1;
  pointer-events: auto;
}

.case-card.card-prev {
  z-index: 5;
  transform: translateX(-380px) scale(0.88);
  opacity: 0.65;
  pointer-events: auto;
}

.case-card.card-next {
  z-index: 5;
  transform: translateX(380px) scale(0.88);
  opacity: 0.65;
  pointer-events: auto;
}

.case-card.card-hidden {
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}

.case-card:hover:not(.card-active) {
  opacity: 0.85;
}

.case-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f1f3f5;
  position: relative;
}

.case-card-img-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.case-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #e2e8f0;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: scale(1.02);
}

.case-card-img.active-img {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Controles de imágenes internas */
.card-img-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(23, 25, 28, 0.65);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.case-card:hover .card-img-btn {
  opacity: 0.85;
}

.card-img-btn:hover {
  opacity: 1 !important;
  background: rgba(23, 25, 28, 0.9);
  transform: translateY(-50%) scale(1.08);
}

.card-img-prev {
  left: 10px;
}

.card-img-next {
  right: 10px;
}

/* Indicadores de fotos (dots) */
.card-img-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 20px;
}

.card-img-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-img-dot.active-dot {
  background: #FFFFFF;
  width: 14px;
  border-radius: 6px;
}

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

.case-card-tag {
  display: inline-block;
  background-color: #f1f3f5;
  color: #555b62;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.case-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: #17191C;
  margin-bottom: 14px;
  min-height: auto;
}

.case-card-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 12px;
}

.spec-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.spec-row dt {
  font-weight: 700;
  color: #17191C;
}

.spec-row dd {
  color: #555b62;
  margin: 0;
}

.cases-action {
  display: flex;
  justify-content: center;
}

.btn-case-detail {
  background-color: #698758;
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-case-detail:hover {
  background-color: #557045;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(105, 135, 88, 0.35);
}

@media (max-width: 992px) {
  .cases-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .cases-title {
    font-size: 38px;
    line-height: 42px;
  }

  .cases-slider-stage {
    min-height: 680px;
    margin-bottom: 2rem;
    overflow: visible;
  }

  .cases-track {
    height: 640px;
    max-width: 100%;
  }

  /* 3 tarjetas adaptadas para pantallas medianas / tablets */
  .case-card {
    width: min(85vw, 460px);
  }

  .case-card.card-prev {
    transform: translateX(-320px) scale(0.85);
    opacity: 0.6;
  }

  .case-card.card-next {
    transform: translateX(320px) scale(0.85);
    opacity: 0.6;
  }
}

@media (max-width: 680px) {
  .cases-slider-stage {
    min-height: auto;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: min-height 0.35s ease;
  }

  .cases-track {
    height: auto;
    min-height: 480px;
    transition: height 0.35s ease;
  }

  /* Solo una tarjeta visible en teléfonos pequeños */
  .case-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 16px;
  }

  .case-card-img-wrap {
    height: 180px;
  }

  .case-card-body {
    padding: 16px 18px 20px;
  }

  .case-card-title {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .case-card-specs {
    gap: 8px;
    padding-top: 10px;
  }

  .spec-row {
    grid-template-columns: 88px 1fr;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.42;
  }

  .case-card.card-active {
    z-index: 10;
    transform: translateX(0) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto;
  }

  .case-card.card-prev {
    z-index: 1;
    transform: translateX(-120%) scale(0.9) !important;
    opacity: 0 !important;
    pointer-events: none;
  }

  .case-card.card-next {
    z-index: 1;
    transform: translateX(120%) scale(0.9) !important;
    opacity: 0 !important;
    pointer-events: none;
  }

  .case-card.card-hidden {
    opacity: 0 !important;
    transform: translateX(150%) scale(0.8) !important;
    pointer-events: none;
  }
}

/* Para Quién Section */
.target-section {
  background: linear-gradient(90deg, #D6D9DD 0%, #7A7E84 100%);
  color: #17191C;
  padding-block: 6rem;
}

.target-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 18.1px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: #484f59;
  margin-bottom: 14px;
}

.target-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  line-height: 52px;
  letter-spacing: -1.4px;
  color: #17191C;
  margin-bottom: 3.5rem;
  max-width: 900px;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.target-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 34px 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.target-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.target-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.target-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #17191C;
  margin-bottom: 10px;
}

.target-card-desc {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 21px;
  color: #555b66;
}

@media (max-width: 992px) {
  .target-title {
    font-size: 34px;
    line-height: 38px;
  }

  .target-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Contacto Section */
.contact-section {
  background-color: #1D3736;
  color: #FFFFFF;
  padding-block: 6.5rem;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.contact-content {
  max-width: 600px;
}

.contact-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 18.1px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: #A3B5AA;
  margin-bottom: 14px;
}

.contact-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 52px;
  line-height: 56px;
  letter-spacing: -1.5px;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.contact-desc {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 24px;
  color: #CBD7D0;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
}

.btn-contact-primary {
  background-color: #8E5E19;
  color: #FFFFFF;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15.5px;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(142, 94, 25, 0.3);
}

.btn-contact-primary:hover {
  background-color: #7a5015;
  transform: translateY(-2px);
}

.btn-contact-whatsapp {
  background-color: #557E4E;
  color: #FFFFFF;
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15.5px;
  box-shadow: 0 4px 14px rgba(85, 126, 78, 0.25);
}

.btn-contact-whatsapp:hover {
  background-color: #486d42;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .contact-title {
    font-size: 38px;
    line-height: 42px;
  }

  .contact-actions {
    width: 100%;
  }

  .btn-contact-primary,
  .btn-contact-whatsapp {
    width: 100%;
  }
}

/* Botón Flotante WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.92;
}

.floating-whatsapp-icon {
  width: 100%;
  height: 100%;
  display: block;
  box-shadow: none;
  border: none;
}

.floating-whatsapp:hover {
  transform: scale(1.06);
  opacity: 1;
  box-shadow: none;
  background: none;
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }
}

/* Footer */
.footer {
  background-color: #17191C;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 2.5rem;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo-img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: #FFFFFF;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.footer-link:hover {
  opacity: 1;
}

.footer-copyright {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: #8C929C;
}

@media (max-width: 768px) {
  .footer {
    padding-block: 2.5rem 2rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
  }

  .footer-logo-img {
    height: 22px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    padding: 0;
  }

  .footer-link {
    font-size: 14px;
    padding: 4px;
  }

  .footer-copyright {
    font-size: 12.5px;
    color: #717680;
    margin-top: 0.5rem;
  }
}