:root {
  --text: #f0f0f0;
  --main-bg: #0f0f0f;
  --primary: #990011;
  --secondary: #00218e;
  --transition-speed: 0.3s;
  --title: "Aktiv Grotesk Cd Trial", sans-serif;
  --text-dark: #333333;
  --text-light: #999999;
  --border: #d1d5db;
  --border-focus: #6b7280;
  --background: #ffffff;
  --input-bg: #f9fafb;
  --stat-num-col: clamp(220px, 26vw, 360px);
  --stat-gap: clamp(14px, 1.8vw, 22px); /* espacio entre divisor y texto */
  --stat-divider-w: 1px;
  --stat-divider-color: rgba(255, 255, 255, 0.12);
  --z-nav: 1000;
  --z-phone: 40; /* la imagen fija SIEMPRE debajo */
  --z-section: 60; /* secciones por encima del phone */
  --z-modal: 10000; /* ya lo tenés para el modal */
  --nav-h: 80px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  z-index: 0;
  min-height: 100vh; /* mejor min-height que height fija */
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: flex-start;
  height: 100vh;
  padding-top: 14rem;
  padding-left: 6vw; /* leve margen izq para alinear con layout */
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px; /* ajustá según veas en diseño */
  pointer-events: none;
  z-index: -1; /* encima del video, debajo del texto */

  /* De transparente (se ve el video) a sólido (color de la siguiente sección) */
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 15, 0) 0%,
    rgba(15, 15, 15, 0.6) 50%,
    var(--main-bg) 100%
  );
}

.head {
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 300;
  color: rgb(200, 200, 200);

  opacity: 0;
  filter: blur(12px);
  transform: translateY(10px);
  will-change: transform, opacity, filter;
}

.title {
  width: 90%;
  font-size: clamp(21px, 1.7vw, 23px);
  margin-bottom: 10px;
  text-transform: uppercase;
  margin-top: 30px;
  line-height: 1.1;
  font-weight: 300;
}

.title-head {
  display: flex;
  flex-direction: column;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;

  opacity: 0;
  transform: translateY(80px);
  will-change: transform, opacity;
}

.somos {
  font-size: clamp(60px, 8vw, 90px);
}

.negrita {
  font-weight: 700;
}

.hero-line2 {
  display: inline-block; /* para que el translate no rompa el layout */
  opacity: 0;
  transform: translateY(80px);
  will-change: transform, opacity;
}

/* ====== CUANDO EL HERO SE ACTIVA ====== */

.hero-container.hero-in .head {
  animation: headBlurIn 0.8s ease-out forwards;
  animation-delay: 0.1s;
}

.hero-container.hero-in .title-head {
  animation: slideUpIn 0.9s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  animation-delay: 0.5s; /* después de .head */
}

.hero-container.hero-in .hero-line2 {
  animation: slideUpIn 0.9s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  animation-delay: 1.0s; /* último */
}

/* ====== KEYFRAMES ====== */

@keyframes headBlurIn {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes slideUpIn {
  0% {
    opacity: 0;
    transform: translateY(80px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-outline {
  display: inline-block;
  width: max-content;
  margin-top: 40px;
  padding: 14px 100px;
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 20px);
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease, background 0.25s ease;
  position: relative;
  background: linear-gradient(
    135deg,
    rgb(0, 0, 213) 0%,
    rgba(0, 36, 154, 0.85) 25%,
    rgba(0, 4, 70, 0.55) 55%,
    rgba(0, 0, 0, 1) 100%
  );
  border-radius: 22px;
  color: #fff;
  overflow: hidden;
}

.cta-outline:hover {
  background: linear-gradient(
    135deg,
    rgba(7, 0, 213, 0.878) 0%,
    rgba(13, 0, 151, 0.85) 25%,
    rgba(5, 0, 49, 0.55) 55%,
    rgb(3, 3, 3) 100%
  );
  background-position: 100% 50%; /* se desplaza el degrade */
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* llena el área sin deformarse */
  z-index: -2; /* lo manda detrás del contenido */
  opacity: 0.35; /* si querés bajarle la intensidad */
}

/* RESPONSIVE - 430px hacia abajo */
@media (max-width: 430px) {
  .hero-container {
    padding-top: 10rem; /* menos espacio arriba para móviles */
    padding-left: 0;
    padding-right: 0;
    text-align: center; /* CENTRA texto */
    align-items: center; /* CENTRA elementos */
  }

  .title {
    width: 100%; /* que no quede limitada por el 90% */
    margin-top: 20px;
  }

  .title-head {
    align-items: center; /* centra las dos líneas */
  }

  .cta-outline {
    margin-top: 30px;
    padding: 14px 60px; /* botón más chico en móviles */
    align-self: center; /* aseguramos centrado */
  }

  .head {
    text-align: center;
  }
}

:root {
  --angle: -50deg;
  --overlap: 100px;
  --w: 400px;
  --h: 250px;
  --radius: 100px;
}

.pill-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  padding: 60px 0;
  position: relative;
  margin-bottom: 70px;
}

.pill-stack .card-rotated:first-child::before {
  opacity: 1;
  transform: translateY(0);
}

.pill-stack:hover .card-rotated:first-child::before {
  opacity: 0;
  transform: translateY(-2%);
}

.pill-stack .card-rotated:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.pill-stack .card-rotated:first-child:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.card-rotated {
  width: var(--w);
  height: var(--h);
  border-radius: calc(var(--h) / 2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(var(--angle));
  transform-origin: center;
  margin-left: calc(var(--overlap) * -1);
  position: relative;
  transition: transform 0.3s ease;
}

.card-rotated:first-child {
  margin-left: 0;
}

.card-inner {
  transform: rotate(calc(-1 * var(--angle)));
  width: 80%;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-inner h3 {
  margin: 0 0 6px;
  font-size: clamp(17px, 2vw, 20px); /* antes 18px */
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.15px;
  width: 60%;
  text-transform: uppercase;
  display: block;
}

.card-inner h3 span {
  display: block; /* cada span ocupa una línea */
}

.card-inner p {
  margin: 0;
  font-size: clamp(12px, 0.9vw, 13px); /* antes 14px */
  opacity: 0.8;
  line-height: 1.4;
  width: 60%;
}
/* z-index progresivo */
.pill-stack .card-rotated:nth-child(1) {
  z-index: 1;
}
.pill-stack .card-rotated:nth-child(2) {
  z-index: 2;
}
.pill-stack .card-rotated:nth-child(3) {
  z-index: 3;
}
.pill-stack .card-rotated:nth-child(4) {
  z-index: 4;
}
.pill-stack .card-rotated:nth-child(5) {
  z-index: 5;
}

.card-rotated:hover {
  transform: rotate(var(--angle)) translateY(-6px);
}

.card-rotated::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  background: conic-gradient(
    from 270deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* ===== ENTRADA DESDE LA IZQUIERDA (con stagger) ===== */
.pill-stack .card-rotated {
  --slideX: -12vw; /* offset inicial fuera de pantalla */
  opacity: 0;
  transform: translateX(var(--slideX)) rotate(var(--angle));
  transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.55s ease-out;
  will-change: transform, opacity;
}

/* Stagger simple por posición */
.pill-stack .card-rotated:nth-child(1) {
  --delay: 0ms;
}
.pill-stack .card-rotated:nth-child(2) {
  --delay: 120ms;
}
.pill-stack .card-rotated:nth-child(3) {
  --delay: 240ms;
}
.pill-stack .card-rotated:nth-child(4) {
  --delay: 360ms;
}
.pill-stack .card-rotated {
  transition-delay: var(--delay, 0ms);
}

/* Cuando entra en viewport */
.pill-stack .card-rotated.in {
  --slideX: 0;
  opacity: 1;
  transform: translateX(var(--slideX)) rotate(var(--angle));
}

/* Mantener tu hover sin perder la traslación */
.pill-stack .card-rotated.in:hover {
  transform: translateX(var(--slideX)) rotate(var(--angle)) translateY(-6px);
}

/* Respeto a usuarios con reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .pill-stack .card-rotated {
    transition: none;
    opacity: 1;
    transform: rotate(var(--angle));
  }
}

/* 1) El contenedor recorta el movimiento que viene de arriba */
.pill-stack {
  position: relative;
  overflow: hidden; /* ← oculta la entrada */
}

/* 2) Estado inicial: desde ARRIBA (ya no desde la izquierda) */
.pill-stack .card-rotated {
  --slideY: -14vh; /* offset vertical inicial */
  opacity: 0;
  transform: translateY(var(--slideY)) rotate(var(--angle));
  transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.55s ease-out;
  will-change: transform, opacity;
}

/* Stagger (se mantiene igual) */
.pill-stack .card-rotated:nth-child(1) {
  --delay: 0ms;
}
.pill-stack .card-rotated:nth-child(2) {
  --delay: 120ms;
}
.pill-stack .card-rotated:nth-child(3) {
  --delay: 240ms;
}
.pill-stack .card-rotated:nth-child(4) {
  --delay: 360ms;
}
.pill-stack .card-rotated {
  transition-delay: var(--delay, 0ms);
}

/* 3) Cuando entran al viewport, bajan a su lugar */
.pill-stack .card-rotated.in {
  --slideY: 0;
  opacity: 1;
  transform: translateY(var(--slideY)) rotate(var(--angle));
}

/* 4) Mantener tu hover sin romper la animación */
.pill-stack .card-rotated.in:hover {
  transform: translateY(var(--slideY)) rotate(var(--angle)) translateY(-6px);
}

/* 5) Respeto a usuarios con reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .pill-stack .card-rotated {
    transition: none;
    opacity: 1;
    transform: rotate(var(--angle));
  }
}

/* Cada card (pill) */
.pill-stack .card-rotated {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Gradiente azul en hover de las pills === */
.pill-stack .card-rotated {
  position: relative;
  overflow: hidden; /* para que el gradiente no se salga del borde */
  z-index: 0; /* asegura que la capa quede detrás del contenido */
}

.pill-stack .card-rotated::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
      /* highlight radial arriba-derecha */ radial-gradient(
      120% 150% at 85% 5%,
      rgba(60, 130, 255, 0.55) 0%,
      rgba(18, 48, 120, 0.45) 30%,
      rgba(6, 14, 30, 0) 62%
    ),
    /* sombra radial abajo-izquierda */
      radial-gradient(
        140% 120% at 0% 100%,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0) 60%
      ),
    /* base en diagonal */
      linear-gradient(
        135deg,
        #0038ff 0%,
        #001a6e 35%,
        #001045 60%,
        #050b16 100%
      );
  opacity: 0;
  transform: translateY(-2%);
  transition: opacity 0.35s ease, transform 0.6s ease;
  pointer-events: none;
  z-index: -1; /* debajo del contenido */
}

/* Cuando se hace hover */
.pill-stack .card-rotated:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --w: 90vw;
    --h: 190px;
    --overlap: 0px;
  }
  .pill-stack {
    flex-direction: column;
    gap: 20px;
  }
  .card-rotated {
    margin-left: 0;
    transform: rotate(0deg);
  }
  .card-inner {
    transform: rotate(50deg);
  }
}

.card-rotated::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  background: conic-gradient(
    from 270deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* ===== ENTRADA DESDE LA IZQUIERDA (con stagger) ===== */
.pill-stack .card-rotated {
  --slideX: -12vw; /* offset inicial fuera de pantalla */
  opacity: 0;
  transform: translateX(var(--slideX)) rotate(var(--angle));
  transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.55s ease-out;
  will-change: transform, opacity;
}

/* Stagger simple por posición */
.pill-stack .card-rotated:nth-child(1) {
  --delay: 0ms;
}
.pill-stack .card-rotated:nth-child(2) {
  --delay: 120ms;
}
.pill-stack .card-rotated:nth-child(3) {
  --delay: 240ms;
}
.pill-stack .card-rotated:nth-child(4) {
  --delay: 360ms;
}
.pill-stack .card-rotated {
  transition-delay: var(--delay, 0ms);
}

/* Cuando entra en viewport */
.pill-stack .card-rotated.in {
  --slideX: 0;
  opacity: 1;
  transform: translateX(var(--slideX)) rotate(var(--angle));
}

/* Mantener tu hover sin perder la traslación */
.pill-stack .card-rotated.in:hover {
  transform: translateX(var(--slideX)) rotate(var(--angle)) translateY(-6px);
}

/* Respeto a usuarios con reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .pill-stack .card-rotated {
    transition: none;
    opacity: 1;
    transform: rotate(var(--angle));
  }
}

/* 1) El contenedor recorta el movimiento que viene de arriba */
.pill-stack {
  position: relative;
  overflow: hidden; /* ← oculta la entrada */
}

/* 2) Estado inicial: desde ARRIBA (ya no desde la izquierda) */
.pill-stack .card-rotated {
  --slideY: -14vh; /* offset vertical inicial */
  opacity: 0;
  transform: translateY(var(--slideY)) rotate(var(--angle));
  transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.55s ease-out;
  will-change: transform, opacity;
}

/* Stagger (se mantiene igual) */
.pill-stack .card-rotated:nth-child(1) {
  --delay: 0ms;
}
.pill-stack .card-rotated:nth-child(2) {
  --delay: 120ms;
}
.pill-stack .card-rotated:nth-child(3) {
  --delay: 240ms;
}
.pill-stack .card-rotated:nth-child(4) {
  --delay: 360ms;
}
.pill-stack .card-rotated {
  transition-delay: var(--delay, 0ms);
}

/* 3) Cuando entran al viewport, bajan a su lugar */
.pill-stack .card-rotated.in {
  --slideY: 0;
  opacity: 1;
  transform: translateY(var(--slideY)) rotate(var(--angle));
}

/* 4) Mantener tu hover sin romper la animación */
.pill-stack .card-rotated.in:hover {
  transform: translateY(var(--slideY)) rotate(var(--angle)) translateY(-6px);
}

/* 5) Respeto a usuarios con reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .pill-stack .card-rotated {
    transition: none;
    opacity: 1;
    transform: rotate(var(--angle));
  }
}

/* Cada card (pill) */
.pill-stack .card-rotated {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Gradiente azul en hover de las pills === */
.pill-stack .card-rotated {
  position: relative;
  overflow: hidden; /* para que el gradiente no se salga del borde */
  z-index: 0; /* asegura que la capa quede detrás del contenido */
}

.pill-stack .card-rotated::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    /* highlight radial arriba-derecha */ radial-gradient(
      120% 150% at 85% 5%,
      rgba(60, 130, 255, 0.55) 0%,
      rgba(18, 48, 120, 0.45) 30%,
      rgba(6, 14, 30, 0) 62%
    ),
    /* sombra radial abajo-izquierda */
      radial-gradient(
        140% 120% at 0% 100%,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0) 60%
      ),
    /* base en diagonal */
      linear-gradient(
        135deg,
        #0038ff 0%,
        #001a6e 35%,
        #001045 60%,
        #050b16 100%
      );
  opacity: 0;
  transform: translateY(-2%);
  transition: opacity 0.35s ease, transform 0.6s ease;
  pointer-events: none;
  z-index: -1; /* debajo del contenido */
}

/* Cuando se hace hover */
.pill-stack .card-rotated:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE: <= 550px */
@media (max-width: 550px) {
  :root {
    --w: 90vw;
    --h: 150px;
    --overlap: 0;
  }

  /* nada de first-child aquí */
  .pill-stack .card-rotated::before {
    opacity: 0;
    transform: translateY(-2%);
  }

  .pill-stack .card-rotated.is-active::before {
    opacity: 1;
    transform: translateY(0);
  }

  /* sin hover en mobile */
  .pill-stack .card-rotated:hover::before {
    opacity: 0 !important;
    transform: translateY(-2%) !important;
  }

  .pill-stack {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    overflow: visible;
    padding: 0;
  }

  .pill-stack .card-rotated {
    width: var(--w);
    height: var(--h);
    margin-left: 0;
    border-radius: 999px;
    transform: none;
    opacity: 1;
    --slideX: 0;
    --slideY: 0;
  }

  .pill-stack .card-rotated.in,
  .pill-stack .card-rotated.in:hover {
    transform: none;
  }

  .pill-stack .card-inner {
    transform: none;
    width: 80%;
  }
}

@media (max-width: 550px) {
  .pill-stack .card-rotated:first-child::before {
    opacity: 0 !important;
    transform: translateY(-2%) !important;
  }

  .pill-stack .card-rotated.is-active::before {
    opacity: 1 !important;
    transform: translateY(0);
  }
}


/*ABOUT-US SECTION*/
.section-filosofia {
  background: radial-gradient(circle at center, #00218e 0%, #000000 95%);
  color: var(--background);
  border-radius: 30px;
  padding: 3.2rem 3rem;
  width: 98%;
  justify-self: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.filosofia-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  min-height: 260px;
}

/* Divider: desaparece en desktop, lo usamos solo para mobile */
.filosofia-divider {
  display: none;
}

.filosofia-left {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.filosofia-title {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  color: #ffffff;
}

.title-light {
  display: block;
  font-weight: 300;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  margin-bottom: 0.9rem;
  opacity: 0.9;
}

.title-bold {
  display: block;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.bold-avance {
  font-weight: 800;
}

.filosofia-right {
  flex: 1 1 50%;
  max-width: 520px;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.7;
  color: #f5f5f5;
  font-weight: 200;

  /* 🟢 NUEVO: columna con espacio entre bloques */
  display: flex;
  flex-direction: column;
  gap: 1.8rem; /* ajustá este valor a gusto: 1.5, 2, etc. */
}

.filosofia-right p + p {
  margin-top: 1.4rem;
}

/* bloque impacto + línea blanca */
.filosofia-impact {
  margin-top: 0; /* o algo chiquito como 0.5rem */
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.4;
}

.filosofia-impact span {
  display: block;
}

.filosofia-impact::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #ffffff;
  margin-bottom: 1.1rem;
}

/* MOBILE */
@media (max-width: 575px) {
  .section-filosofia {
    padding: 2.2rem 1.6rem;
    border-radius: 22px;
  }

  .filosofia-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
  }

  .filosofia-left,
  .filosofia-right {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .filosofia-title {
    font-size: 2rem;
  }

  /* en mobile el divisor pasa a ser línea horizontal */
  .filosofia-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, white, rgb(126, 165, 245), white);
    margin: 0.8rem 0;
  }

  .filosofia-right {
    font-size: 0.95rem;
  }
}


/* ====== ESTADO INICIAL: BLUR + HIDE (solo lo pedido) ====== */
.section-filosofia .filosofia-left,
.section-filosofia .filosofia-right > span:first-of-type,
.section-filosofia .filosofia-right > p:first-of-type {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(10px);
  will-change: opacity, filter, transform;
}

/* Impact oculto al inicio */
.section-filosofia .filosofia-impact {
  opacity: 0;
  transform: translateY(6px);
}

/* ====== ENTRADA FASE 1 ====== */
.section-filosofia.is-visible .filosofia-left {
  animation: filosofia-reveal-blur 800ms ease-out forwards;
}

.section-filosofia.is-visible .filosofia-right > span:first-of-type {
  animation: filosofia-reveal-blur 800ms ease-out forwards;
  animation-delay: 140ms;
}

.section-filosofia.is-visible .filosofia-right > p:first-of-type {
  animation: filosofia-reveal-blur 800ms ease-out forwards;
  animation-delay: 280ms;
}

/* ====== FASE 2: Impact “formándose” palabra por palabra ====== */
.section-filosofia.impact-start .filosofia-impact {
  opacity: 1;
  transform: none;
}

.section-filosofia .filosofia-impact .w {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(10px);
  animation: filosofia-word-build 520ms cubic-bezier(.2,.9,.2,1) forwards;
  animation-delay: calc(var(--i) * 45ms);
}

.section-filosofia .filosofia-impact .w + .w {
  margin-left: 0.28em;
}

/* ====== KEYFRAMES ====== */
@keyframes filosofia-reveal-blur {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes filosofia-word-build {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .section-filosofia .filosofia-left,
  .section-filosofia .filosofia-right > span:first-of-type,
  .section-filosofia .filosofia-right > p:first-of-type,
  .section-filosofia .filosofia-impact,
  .section-filosofia .filosofia-impact .w {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}






@keyframes blurInUp {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.section-method {
  padding: 2rem 1.5rem 1rem 1.5rem;
  text-align: left;
}

.method-wrapper {
  max-width: 1300px;
  margin: 0 auto;
}

.method-subtitle {
  font-size: clamp(55px, 7vw, 5rem);
  letter-spacing: 3px;
  color: #f9f9f9;
  font-weight: 600;
}

.method-title {
  font-size: clamp(36px, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.method-title .title-light-method {
  font-weight: 300;
}

.method-title .title-bold-method {
  font-weight: 700;
  margin-left: 0.4rem;

  color: var(--secondary);
}

.method-text {
  font-size: clamp(15px, 1.2vw, 1.05rem);
  font-weight: 300;
  color: #c4c4c4;
  line-height: 1.7;
}

.method-title span {
  display: inline;
  white-space: nowrap;
}

/* --- CARDS DENTRO DE LA MISMA SECCIÓN --- */
.cards-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative; /* necesario */
  padding: 2rem 0; /* espacio para la línea */
}

/* Línea que conecta todas las cards */
.cards-wrapper::before {
  content: "";
  position: absolute;
  top: 50%; /* centrada verticalmente */
  left: 0;
  width: 100%;
  height: 1px;
  background: #242424; /* gris sutil */
  z-index: 1;
}

/* cards encima de la línea */
.card-item {
  position: relative;
  z-index: 2;
}

.card-item {
  position: relative;
  background: linear-gradient(to bottom, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 2.2rem;
  width: 100%;
  text-align: left;
  transition: all 0.3s ease;
  min-height: 340px;
}

.card-item:hover {
  transform: translateY(-4px);
  border-color: #2a2a2a;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #303030;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon i {
  font-size: clamp(20px, 1.8vw, 1.4rem);
  color: #ffffff;
}

.card-number {
  position: absolute;
  top: 26px;
  right: 28px;
  font-size: clamp(35px, 4.5vw, 52px);
  font-weight: 700;
  background: linear-gradient(135deg, #040047, #1c33e2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.card-item h3 {
  font-size: clamp(20px, 1.8vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.card-item p {
  font-size: clamp(14px, 1vw, 0.95rem);
  line-height: 1.65;
  color: #c4c4c4;
}

.learn-more {
  margin: 40px auto 0 auto; /* centrado */
  padding: 12px 50px;
  font-size: clamp(16px, 1.3vw, 18px);
  border-radius: 40px;
  color: #fff;
  font-weight: 500;
  background: transparent;
  transition: all 0.25s ease;
  width: max-content;
  display: block; /* necesario para que quede centrado */
  border-radius: 18px;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease, background 0.25s ease;
  position: relative;
  background: linear-gradient(
    135deg,
    rgb(0, 0, 213) 0%,
    rgba(0, 36, 154, 0.85) 25%,
    rgba(0, 4, 70, 0.55) 55%,
    rgba(0, 0, 0, 1) 100%
  );
  border-radius: 22px;
  color: #fff;
  overflow: hidden;
  align-items: center;
}

.learn-more:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 61, 193, 0.878) 0%,
    rgba(0, 42, 101, 0.85) 25%,
    rgba(9, 0, 91, 0.55) 55%,
    rgb(0, 2, 21) 100%
  );
  background-position: 100% 50%; /* se desplaza el degrade */
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
  cursor: pointer;
}

@media (max-width: 768px) {
  .cards-wrapper {
    flex-direction: column;
  }
}

/* Ajustes para pantallas chicas (hasta 500px aprox) */
@media (max-width: 500px) {
  .method-subtitle {
    font-size: 2.4rem; /* más chico que el clamp mínimo actual */
    letter-spacing: 2px;
  }

  .method-title {
    font-size: 2rem; /* también un poco más chico */
    line-height: 1.25;
  }

  .method-title span {
    display: block; /* cada parte en su propia línea */
    white-space: normal; /* permitimos que el texto se corte */
  }
}


/* ====== ESTADO INICIAL: TEXTOS DESDE LA IZQUIERDA ====== */

.section-method .method-subtitle,
.section-method .method-title,
.section-method .method-text {
  opacity: 0;
  transform: translateX(-80px);
  will-change: opacity, transform;
}

/* ====== ESTADO INICIAL: CARDS DESDE LA IZQUIERDA ====== */

.section-method .card-item {
  opacity: 0;
  transform: translateX(-60px);
  will-change: opacity, transform;
}

/* ====== CUANDO LA SECCIÓN SE ACTIVA ====== */

.section-method.section-in .method-subtitle {
  animation: slideInLeft 0.6s ease-out forwards;
  animation-delay: 0.05s;
}

.section-method.section-in .method-title {
  animation: slideInLeft 0.65s ease-out forwards;
  animation-delay: 0.2s;
}

.section-method.section-in .method-text {
  animation: slideInLeft 0.7s ease-out forwards;
  animation-delay: 0.35s;
}

/* Cards desplegándose hacia la derecha (stagger) */
.section-method.section-in .card-item:nth-child(1) {
  animation: slideInLeft 0.6s ease-out forwards;
  animation-delay: 0.55s;
}

.section-method.section-in .card-item:nth-child(2) {
  animation: slideInLeft 0.6s ease-out forwards;
  animation-delay: 0.75s;
}

.section-method.section-in .card-item:nth-child(3) {
  animation: slideInLeft 0.6s ease-out forwards;
  animation-delay: 0.95s;
}

.section-method.section-in .card-item:nth-child(4) {
  animation: slideInLeft 0.6s ease-out forwards;
  animation-delay: 1.15s;
}

/* ====== KEYFRAMES GENÉRICOS ====== */

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-80px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}


.services {
  padding: 6rem 1.5rem 1rem 1.5rem;
  text-align: left;
}

.services-wrapper {
  max-width: 1700px;
  margin: 0 auto;
}
.services-title {
  font-size: clamp(38px, 4.8vw, 3.4rem);
  font-weight: 200;
  color: #ffffff;
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
}
.service-bold {
  font-weight: 600;
}
.services-subtitle {
  font-size: clamp(17px, 1.4vw, 1.2rem);
  font-weight: 300;
  color: #c4c4c4;
  line-height: 1.6;
  margin-bottom: 3rem;
  text-align: center;
} /* ===== Pills ===== */
.services-pills {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* más espacio entre filas */
  align-items: center;
}

.pill-row {
  width: 100%;
  position: relative;
  /* IMPORTANTE: ya no es flex acá */
  overflow-x: hidden; /* recortamos solo en X */
  overflow-y: visible; /* dejamos crecer el hover hacia abajo */
  min-height: 10vh;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  width: max-content;
  will-change: transform;
}

.marquee-mask {
  width: 100%;
  overflow: visible; /* no recorta en Y */
  position: relative;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.pill-row .marquee-track > * {
  flex-shrink: 0;
} /* chip base */
.service-pill {
  flex: 1;
  box-sizing: border-box;
  padding: 12px 2.4rem;
  border-radius: 16px;

  background: #111317;
  border: 1px solid #1a1f2e;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  color: #ffffff;

  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  overflow: hidden;
  max-height: 72px;

  transition: max-height 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease, padding 0.35s ease, transform 0.35s ease;
}

/* pill “en el centro” del carril */
.service-pill.is-centered {
  border-color: #3451ff;
  outline: 1px solid rgba(52, 81, 255, 0.7);
  outline-offset: 0; /* sigue la forma de la pill */
  box-shadow: 0 0 14px rgba(52, 81, 255, 0.5), 0 8px 20px rgba(0, 0, 0, 0.8);
  transform: scale(1.01);
}

/* hover se mantiene igual */
.service-pill:hover {
  max-height: 260px;
  padding-bottom: 1.8rem;
  border-color: #3451ff;
}

.pill-title-wrapper {
  display: flex;
  align-items: center;
}

.pill-title-wrapper i {
  font-size: clamp(26px, 2.5vw, 30px);
  margin-right: 10px;
} 

.pill-title {
  font-size: clamp(16px, 1.3vw, 1.1rem);
  font-weight: 300; /* más presencia */
  letter-spacing: 0.2px;
  text-transform: uppercase;
} /* descripción */
.pill-desc {
  margin-top: 1rem;
  font-size: clamp(14px, 1vw, 1rem);
  line-height: 1.55;
  color: #d0d0d0;
  opacity: 0;
  max-width: 330px; /* más ancho permitido */
  transition: opacity 0.25s ease 0.1s;
}

.pill-row .service-pill{
    padding: 20px 2.8rem;
  margin-bottom: 40px;
}
.service-pill:hover .pill-desc {
  opacity: 1;
}
.pill-row:first-child .service-pill:nth-child(1) .pill-title-wrapper span {
  margin-left: 10px;
}
.pill-row:first-child .service-pill:nth-child(2) .pill-title-wrapper span {
  margin-left: 8px;
}
.pill-row:first-child .service-pill:nth-child(3) .pill-title-wrapper span {
  margin-left: 10px;
}
.pill-row:first-child .service-pill:nth-child(4) .pill-title-wrapper span {
  margin-left: 10px;
}
.pill-row:nth-child(2) .service-pill:nth-child(1) .pill-title-wrapper span {
  margin-left: 10px;
}
.pill-row:nth-child(2) .service-pill:nth-child(2) .pill-title-wrapper span {
  margin-left: 10px;
}
.pill-row:nth-child(2) .service-pill:nth-child(3) .pill-title-wrapper span {
  margin-left: 10px;
}
.pill-row:nth-child(2) .service-pill:nth-child(4) .pill-title-wrapper span {
  margin-left: 10px;
}

/* pausa el scroll al hacer hover sobre la fila */
.pill-row:hover .marquee-track {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .services {
    padding: 4rem 1.5rem 1rem 1.5rem;
  }

  .services-pills {
    align-items: stretch;
  }

  .pill-row {
    /* cada fila se comporta como columna de bloques */
    flex-direction: column;
    gap: 1rem;
  }

  .marquee-mask {
    overflow: visible; /* nada de recortar */
  }

  .marquee-track {
    transform: none !important;        /* por si queda algo inline */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .service-pill {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
    max-height: none;        /* sin acordeón */
  }

  .pill-title-wrapper {
    width: 100%;
    justify-content: flex-start;
  }

  .pill-desc {
    opacity: 1;              /* siempre visible */
    max-width: 100%;
  }

  .service-pill:hover {
    max-height: none;
    padding-bottom: 1.8rem;
  }
}


/* ===== ESTADO INICIAL: TITLE + SUBTITLE DESDE ABAJO ===== */

.services .services-title,
.services .services-subtitle {
  opacity: 0;
  transform: translateY(60px);
  will-change: opacity, transform;
}

/* ===== ESTADO INICIAL: PILLS BLURREADAS ===== */

.services .services-pills {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(12px);
  will-change: opacity, transform, filter;
}

/* ===== CUANDO LA SECCIÓN SE ACTIVA ===== */

.services.section-in .services-title {
  animation: servicesSlideUp 0.7s ease-out forwards;
  animation-delay: 0.05s;
}

.services.section-in .services-subtitle {
  animation: servicesSlideUp 0.7s ease-out forwards;
  animation-delay: 0.25s;
}

.services.section-in .services-pills {
  animation: servicesBlurInUp 0.8s ease-out forwards;
  animation-delay: 0.45s;
}

/* ===== KEYFRAMES ===== */

@keyframes servicesSlideUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes servicesBlurInUp {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}


.work {
  padding: 3rem 1.5rem 0;
}

.work-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.1;
}

/* Título */
.work-title {
  font-size: clamp(40px, 6.8vw, 75px);
  font-weight: 300;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.work-title::before {
  content: "AVANCE";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  font-size: 10vw; /* tamaño responsivo gigante */
  font-weight: 900;
  color: #ffffff08; /* gris super tenue */

  letter-spacing: 0.1em;
  white-space: nowrap;
  z-index: -1; /* detrás del título */
  pointer-events: none;
}

.work-highlight {
  font-weight: 700;
}

.work-highlight-alt {
  font-weight: 600;
}

/* Texto corto */
.work-subtitle {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 300;
  color: #c4c4c4;
  margin-bottom: 2.5rem;
}

.work-subtitle .work-strong {
  font-weight: 500;
  color: #ffffff; /* más brillante para contraste */
}

/* Checklist */
.work-checklist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.work-item {
  position: relative;
  background: linear-gradient(90deg, #111111 0%, #002bc533 40%, #111111 100%);
  width: 60%;
  border-radius: 16px;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 300;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease;
}

.work-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.4px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.work-icon-inner {
  font-size: clamp(13px, 0.9vw, 0.9rem);
  line-height: 1;
}

.work-item p {
  color: #e8e8e8;
  font-size: clamp(14px, 1vw, 1rem);
  font-weight: 400;
}

.work-item:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, #222222 0%, #151515 100%);
}

/* Slogan inferior full-width */
.work-slogan {
  margin-top: 3rem;
  padding: 1.8rem 1.5rem 2.2rem;
  border-top: 1px solid #222222;
  border-bottom: 1px solid #222222;
  text-align: center;
}

.work-slogan p {
  max-width: 1200px;
  margin: 0 auto;
  font-size: clamp(15px, 1.2vw, 1.05rem);
  font-weight: 400;
  color: #f0f0f0;
}

/* ===== A partir de 555px: work-item al 100% ===== */
@media (max-width: 768px) {
  .work-slogan {
    display: none;;
  }

  .work-checklist{
    margin-bottom: 30px;
  }
}

/* ===== A partir de 555px: work-item al 100% ===== */
@media (max-width: 555px) {
  .work-item {
    width: 100%;
  }
}

/* ===== ESTADO INICIAL: TÍTULO + SUBTÍTULO BLURREADOS ===== */

.work .work-title,
.work .work-subtitle {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(10px);
  will-change: opacity, filter, transform;
}

/* ===== ESTADO INICIAL: CHECKLIST (solo invisible) ===== */

.work .work-checklist .work-item {
  opacity: 0;
  will-change: opacity, transform;
}

/* ===== CUANDO LA SECCIÓN SE ACTIVA ===== */

.work.section-in .work-title {
  animation: workBlurIn 0.7s ease-out forwards;
  animation-delay: 0.05s;
}

.work.section-in .work-subtitle {
  animation: workBlurIn 0.7s ease-out forwards;
  animation-delay: 0.25s;
}

/* 1er item: entra desde la IZQUIERDA */
.work.section-in .work-checklist .work-item:nth-child(1) {
  animation: workSlideInLeft 0.7s ease-out forwards;
  animation-delay: 0.45s;
}

/* 2do item: entra desde la DERECHA */
.work.section-in .work-checklist .work-item:nth-child(2) {
  animation: workSlideInRight 0.7s ease-out forwards;
  animation-delay: 0.65s;
}

/* 3er item: entra desde la IZQUIERDA */
.work.section-in .work-checklist .work-item:nth-child(3) {
  animation: workSlideInLeft 0.7s ease-out forwards;
  animation-delay: 0.85s;
}

/* ===== KEYFRAMES ===== */

@keyframes workBlurIn {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes workSlideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-80px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes workSlideInRight {
  0% {
    opacity: 0;
    transform: translateX(80px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slogan final full-width */
.work-slogan {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2.8rem 1.5rem;
  position: relative;
  margin: 30px 0;
}

/* Esquinas “dibujadas” */
.work-slogan::before,
.work-slogan::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 30px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: none;
  border-right: none;
}

.work-slogan::before {
  top: 10px;
  left: 18px;
}

.work-slogan::after {
  right: 18px;
  bottom: 10px;
  transform: rotate(180deg);
}

.work-slogan-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.work-slogan-inner p {
  font-size: clamp(29px, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
}

.work-slogan-muted {
  color: rgba(31, 60, 248, 0.35);
}

.work-slogan-underline {
  position: relative;
}

.work-slogan-underline::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}



/* PRICING SECTION */

.pricing {
  padding: 4.5rem 1.5rem 3rem;
  width: 97%;
  justify-self: center;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.pricing-wrapper {
  max-width: 1300px;
  margin: 0 auto;
}

.pricing-head {
  text-align: center;
  margin-bottom: 2.8rem;
}

.pricing-title {
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 0.7rem;
}

.pricing-highlight {
  font-weight: 700;
  color: var(--secondary);
}

.pricing-subtitle {
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 300;
  color: #c4c4c4;
  max-width: 620px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto; 
  /* head | metrics | list | botón */
  padding: 1.9rem 1.7rem 1.8rem;
  border-radius: 22px;
  background: linear-gradient(145deg, #101010 0%, #050607 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.pricing-card-head {
  margin-bottom: 1.5rem;
}

.pricing-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}

.pricing-tag.premium {
  background: rgba(0, 77, 255, 0.16);
  color: #dbe5ff;
}

.pricing-name {
  font-size: clamp(20px, 1.7vw, 22px);
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.pricing-desc {
  font-size: clamp(13px, 1vw, 14px);
  color: #d1d5db;
  line-height: 1.6;
}

.pricing-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.metric-pill--strong {
  background: radial-gradient(circle at top left, #1d4ed8, #020617);
  border-color: rgba(148, 163, 253, 0.8);
}

.metric-count {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f9fafb;
  color: #020617;
  font-weight: 700;
  font-size: 13px;
}

.metric-label {
  font-size: 13px;
  color: #e5e7eb;
}

.pricing-list {
  list-style: none;
  margin: 0 0 1.6rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}


.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 14px;
  line-height: 1.4;
}

.pricing-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
}

.is-included .pricing-icon {
  background: rgba(198, 198, 198, 0.18);
  color: #ffffff;
}

.is-excluded .pricing-icon {
  background: rgba(148, 163, 184, 0.15);
  color: #9ca3af;
}

.is-excluded span:last-child {
  color: #9ca3af;
}

.pricing-cta {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgb(0, 0, 213) 0%,
    rgba(0, 36, 154, 0.85) 25%,
    rgba(0, 4, 70, 0.55) 55%,
    rgba(0, 0, 0, 1) 100%
  );
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pricing-cta:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 61, 193, 0.878) 0%,
    rgba(0, 42, 101, 0.85) 25%,
    rgba(9, 0, 91, 0.55) 55%,
    rgb(0, 2, 21) 100%
  );
  transform: translateY(-2px);
}

.pricing-card--highlight {
  border: 1px solid rgba(56, 189, 248, 0.8);
  background: radial-gradient(circle at top, #0f172a 0%, #020617 72%);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.55);
  transform: translateY(-8px);
}

.pricing-card--highlight:hover {
  transform: translateY(-12px);
}

.pricing-card {
  position: relative;
  overflow: visible;
}

.pricing-grid .pricing-card:nth-child(3)::before {
  content: "RECOMMENDED";
  position: absolute;
  top: 8px;
  right: -46px;

  padding: 4px 24px;
  background: #002292;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transform: rotate(15deg); 
  border-radius: 2px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
  z-index: 10;
  pointer-events: none; 
}

/* Cuando cualquier otra card tiene hover → la recomendada se apaga */
.pricing-card:hover ~ .pricing-card--recommended:not(:hover),
.pricing-card:hover + .pricing-card--recommended:not(:hover),
.pricing-card--recommended:hover ~ .pricing-card,
.pricing-card--recommended:hover + .pricing-card {
  /* apagar */
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
  transform: translateY(0) !important;
}

/* Métricas apagadas */
.pricing-card:hover ~ .pricing-card--recommended:not(:hover) .pricing-metric,
.pricing-card:hover ~ .pricing-card--recommended:not(:hover) .pricing-metrics li,
.pricing-card:hover + .pricing-card--recommended:not(:hover) .pricing-metric,
.pricing-card:hover + .pricing-card--recommended:not(:hover) .pricing-metrics li {
  color: #b5b5b5 !important;
}

/* El label pasa a gris */
.pricing-card:hover ~ .pricing-card--recommended:not(:hover)::before,
.pricing-card:hover + .pricing-card--recommended:not(:hover)::before {
  background: #444 !important;
  color: #f5f5f5 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,.4) !important;
}


.pricing-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #111;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* Texto de métricas base (color apagado) */
.pricing-card .pricing-metric,
.pricing-card .pricing-metrics li {
  color: #b5b5b5;
}

/* === ESTADO DE “BRILLO” (lo que tiene la recomendada por defecto) === */
.pricing-card--highlight {
  border-color: #3451ff;
  box-shadow:
    0 0 0 1px rgba(52, 81, 255, .65),
    0 18px 40px rgba(0, 0, 0, .7);
  transform: translateY(-4px);
}

.pricing-card--highlight .pricing-metric,
.pricing-card--highlight .pricing-metrics li {
  color: #ffffff;
}

/* La tercera card nace ya con el highlight */
.pricing-card--recommended {
  /* hereda base de .pricing-card y sumamos highlight */
  /* Si no usás clase helper, poné directamente aquí el estilo de highlight */
}
.pricing-card--recommended,
.pricing-card:hover {
  /* reutilizamos el mismo “brillo” para:
     - recomendada por defecto
     - cualquier card en hover       */
  border-color: #3451ff;
  box-shadow:
    0 0 0 1px rgba(52, 81, 255, .65),
    0 18px 40px rgba(0, 0, 0, .7);
  transform: translateY(-4px);
}

.pricing-card--recommended .pricing-metric,
.pricing-card--recommended .pricing-metrics li,
.pricing-card:hover .pricing-metric,
.pricing-card:hover .pricing-metrics li {
  color: #ffffff;
}


@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card--highlight {
    transform: none;
  }

  .pricing-card--highlight:hover {
    transform: translateY(-6px);
  }
}

/*PROJECT SECTION*/

.project {
  display: flex;
  width: 97%;
  justify-self: center;
  background-color: rgb(40, 40, 40);
  border-radius: 40px;
}

.project-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px) 0;
}

.project-wrapper {
  display: block;
  align-items: start; 
  gap: 40px;
  width: 100%;
}

.project-info-container,
.project-img {
  width: 100%;
}

.stats-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.stat {
  display: grid;
  align-items: center;
  min-height: 120px;
  padding: 22px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 30px;
}

.stat {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding-right: 32px;
}

.stat:last-child {
  border-right: none;
}

.stat::before {
  content: "";
  grid-column: 2 / 3;
  justify-self: stretch;
  align-self: center;
  width: var(--stat-divider-w);
  height: 60%;
  background: var(--stat-divider-color);
}

.stat:hover {
  transform: translateY(-2px);
}

/* Base: que no quede transparente por defecto */
.stat-num {
  grid-column: 1 / 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  text-align: right;
  font-family: var(--title);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(4rem, 9vw, 7rem);
  white-space: nowrap;
  gap: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: #fff; /* fallback, por si algo */
}

/* 🎨 Degradado aplicado a cada carácter */
.digit-stack > span,
.char-static {
  background: linear-gradient(to bottom, #ffffff 0%, #e5e8ed 45%, #b5bac3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle-proj {
  color: rgb(181, 181, 181);
  width: 70%;
  text-align: center;
  font-size: clamp(18px, 1.5vw, 20px);
}

.digit-col,
.char-static {
  margin: 0;
}

.digit-col {
  position: relative;
  display: inline-block;
  height: 1em;
  overflow: hidden;
  vertical-align: baseline;
}

.digit-stack {
  display: block;
  will-change: transform;
  transform: translateY(0);
}

.digit-stack > span {
  display: block;
  height: 1em;
  line-height: 1em;
}

.char-static {
  display: inline-block;
  height: 1em;
  line-height: 1em;
  transform: translateY(0);
}

.stat-num.spin-blur {
  filter: blur(1px);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.stat-caption {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.15;
  padding-left: clamp(12px, 1.5vw, 18px);
  text-align: left;
}

.img-proj-container {
  flex: 0 1 40%;
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(360px, 72vh, 820px);
  max-height: 82vh;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.img-proj-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 80% at 50% 55%,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.65) 60%,
    rgba(0, 0, 0, 0.75)
  );
  pointer-events: none;
}

.img-proj-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.project-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: var(--title);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  padding: 0 4vw;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* ===== Project image layout (como el screenshot) ===== */
.project-img {
  display: flex;
  width: 100%;
}

/* Stack derecho de CTAs */
.cta-stack {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
}

/* ===== CTA CARD BASE ===== */
.cta-card {
  display: flex;
  position: relative;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  border-radius: 18px;
  text-decoration: none;
  overflow: hidden;
  background: radial-gradient(
    circle at top left,
    #1c1c1c 0%,
    #0f0f0f 55%,
    #0f0f0f 100%
  );
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease, background 0.25s ease;
}

/* Eyebrow (texto superior) */
.cta-dark .cta-eyebrow {
  font-size: clamp(11px, 0.7vw, 0.75rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* Título grande */
.cta-dark .cta-title {
  font-family: var(--title);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 25px);
  line-height: 1.1;
  color: #ffffff;
}

/* Botón circular con flecha */
.cta-dark .cta-arrow {
  justify-self: end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  color: #ffffff;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

/* Hover: levanta un poco, ilumina borde y flecha */
.cta-dark:hover {
  transform: translateY(-3px);
  background: radial-gradient(
    circle at top left,
    #222222 0%,
    #0f0f0f 55%,
    #080808 100%
  );
}

.cta-dark:hover .cta-arrow {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ====== CTA CARD — VARIANTE NEON (ROJA) ====== */

.cta-neon {
  position: relative;
  border-radius: 22px;
  padding: clamp(16px, 2.2vw, 22px);
  color: #fff;
  overflow: hidden;
  align-items: center;
}

/* Glow suave interno */
.cta-neon::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cta-neon * {
  position: relative;
  z-index: 2;
}

.cta-neon .cta-title {
  color: #fff;
  font-weight: 700;
}

/* Flecha igual a cta-dark pero roja */
.cta-neon .cta-arrow {
  color: #fff;
}

.cta-title {
  font-family: var(--title);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 2vw, 25px);
  line-height: 1.05;
  color: var(--background);
}
.cta-arrow {
  justify-self: end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.cta-card:hover .cta-arrow {
  transform: translateX(4px);
}

/* Our Services: ancho controlado */
.project {
  display: flex;
  justify-content: center;
}

.project-container {
  width: 90%;
  max-width: 1400px; /* opcional: límite en pantallas grandes */
  margin: 0 auto;
  flex: 0 1 auto; /* 💡 anula el flex:1 que estira al 100% */
  /* si preferís, simplemente: flex: initial; */
}

/* ===== Project title: Our [Services] (pill verde) ===== */
.project .heading-split {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  margin: 0 0 0.75rem 0;
  font-family: var(--title);
  font-weight: 200;
  font-size: clamp(48px, 6vw, 4rem);
  line-height: 1.05;
  color: #fff; /* color del "Our" */
}

/* "Our" (texto plano) */
.project .heading-split__plain {
  opacity: 0.95;
}

/* "Services" (pill) */
.project .heading-split__pill {
  position: relative;
  display: inline-block;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 700;
}

.project-info-container p {
  color: lightgray;
  font-weight: 300;
}

/* Project section a 90vh */
.project {
  display: flex;
  align-items: center; /* centrado vertical del contenido */
  overflow: hidden; /* opcional: evita scroll interno si se pasa por 1–2px */
}

/* ===== Project @ 90vh + cards al 50% ===== */
.project {
  display: flex;
  align-items: stretch; /* que el contenido tome todo el alto */
  overflow: hidden;
}
.project-container {
  height: 100%;
}
.project-img {
  height: 100%;
} /* la columna de imagen+cards toma todo el alto */
.proj-media {
  height: 100%; /* la imagen grande llena su columna */
  min-height: 0; /* evita que “empuje” el layout */
}

/* La columna derecha (stack) ocupa todo el alto, y divide en 2 filas iguales */
.cta-stack {
  height: 100%;
  gap: clamp(10px, 1.6vw, 14px);
}

/* Cada card puede contraerse sin overflow raro */
.cta-card {
  min-height: 0; /* permite que la card se ajuste al 50% real */
  overflow: hidden;
}

.cta-neon .cta-eyebrow,
.cta-neon .cta-title {
  color: #ffffff !important;
}

/* === CTA-NEGRA CON MISMO ESTILO QUE LA ROJA === */
.cta-dark {
  position: relative;
  background: #050505; /* negro */
  border-radius: 22px;
  padding: clamp(16px, 2.2vw, 22px);
  color: #fff;
  align-items: center;
  overflow: hidden;
}

/* Glow interno suave */
.cta-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cta-dark * {
  position: relative;
  z-index: 2;
}

/* Texto igual que la roja, pero neutro */
.cta-dark .cta-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.cta-dark .cta-title {
  color: #ffffff !important;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 25px);
}

/* Flecha igual estilo que la roja, pero en gris/blanco */
.cta-dark .cta-arrow {
  color: #ffffff;
}

/* Hover: más glow y leve cambio de fondo */
.cta-dark:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.cta-neon {
  border-radius: 18px;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease, background 0.25s ease;
  position: relative;
  background: linear-gradient(
    135deg,
    rgb(0, 0, 213) 0%,
    rgba(0, 36, 154, 0.85) 25%,
    rgba(0, 4, 70, 0.55) 55%,
    rgba(0, 0, 0, 1) 100%
  );
  border-radius: 22px;
  color: #fff;
  overflow: hidden;
  align-items: center;
}

/* ===== ESTADO INICIAL ===== */

.project .heading-split,
.project .subtitle-proj {
  opacity: 0;
  transform: translateY(60px);
  will-change: opacity, transform;
}

/* ===== CUANDO LA SECCIÓN ENTRA EN VIEWPORT ===== */

.project.section-in .heading-split {
  animation: projSlideUp 0.7s ease-out forwards;
  animation-delay: 0.1s;
}

.project.section-in .subtitle-proj {
  animation: projSlideUp 0.75s ease-out forwards;
  animation-delay: 0.4s;
}

/* ===== KEYFRAMES ===== */

@keyframes projSlideUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/*CLIENTS SECTION*/

.clients {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.heading-client {
  text-align: center;
  padding: 70px 0;
  
  font-size: clamp(1.6rem, 3.6vw, 3rem);
}

.client-head-plain {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  margin: 0 0 0.75rem 0;
  font-weight: 200;
  line-height: 1.05;
  color: #fff; /* color del "Our" */
  margin-right: 7px;
}

.client-head-fill {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  margin: 0 10px 0.75rem 0;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.05;
  color: #fff; /* color del "Our" */
}

.client-grid {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.client-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1/1;
  height: 60vh;
  width: 33vh;
}

.client-img {
  height: 50%;
  border-radius: 15px;
}

.client-img img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  filter: grayscale(1);
  object-fit: cover;
}

.client-img img:hover {
  filter: grayscale(0);
  transition: all 0.2s ease-in;
}

.client-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--main-bg);
  color: var(--background);
  height: 50%;
  border-radius: 15px;
  font-size: clamp(20px, 2.8vw, 25px);
  font-weight: 300;
  padding: 15px;
}

.client-stat span {
  padding: 0;
}

.stat-highlight {
  font-weight: 500;
}

.clients {
  overflow: hidden;
}

.client-grid {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  will-change: transform;
  animation: clients-marquee var(--marquee-duration, 30s) linear infinite;
}

@keyframes clients-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--marquee-distance, 1200px)));
  }
}

.client-column,
.client-img,
.client-stat {
  contain: content;
}

/* ==== CLIENT STAT estilo "número grande" ==== */
.client-stat {
  display: grid;
  align-content: center;
  justify-items: start; /* izquierda */
  text-align: left;
  gap: 6px;
  padding: clamp(14px, 2.2vw, 20px);
  background: #0f0f0f;
  color: #fff;
  border-radius: 15px;
}

/* Asegura que cada <span> apile en columna */
.client-stat span {
  display: block;
}

/* Estilo del NÚMERO (sirve si el 1º span es el número
    o si el número está en un span con <br>) */
.client-stat .stat-highlight,
.client-stat > span:first-child {
  font-family: var(--title);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: clamp(2.4rem, 6.2vw, 4.2rem);
}

/* Si el número y el texto están en el MISMO span con <br>,
    estilizá solo la primera línea como número grande */
.client-stat > span:first-child::first-line {
  font-family: var(--title);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: clamp(2.4rem, 6.2vw, 4.2rem);
}

/* Estilo del texto descriptivo (líneas siguientes) */
.client-stat > span:not(:first-child) {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 300;
  opacity: 0.9;
}

/* Si querés un leve énfasis en tarjetas destacadas */
.client-stat.card-highlight {
  outline: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.client-stat > span:not(.stat-highlight) {
  line-height: 1.1; /* ajustá a gusto */
}


/* ===== CLIENTS: MOBILE ===== */
@media (max-width: 768px) {

  .clients {
    padding-inline: 16px;
  }

  .client-grid {
    gap: 12px;
    /* si querés que se vea más tiempo cada card */
    animation-duration: 40s; /* o lo que te guste */
  }

  .client-column {
    flex: 0 0 auto;                        /* que no se estire */
    width: clamp(210px, 70vw, 260px);      /* tamaño lógico según ancho */
    height: auto;                          /* sacamos 60vh */
    aspect-ratio: 3 / 4;                   /* card más “vertical” */
  }

  .client-img,
  .client-stat {
    height: 50%;          /* mitad img, mitad texto */
    border-radius: 12px;
  }

  .client-stat .stat-highlight,
  .client-stat > span:first-child {
    font-size: clamp(1.8rem, 5vw, 2.6rem); /* número un poco más chico */
  }

  .client-stat > span:not(:first-child) {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
  }
}


/* ==== PROJECT: layout en bloques para mobile ==== */
@media (max-width: 768px) {
  /* Stats en columna */
  .stats-container {
    flex-direction: column;
    align-items: stretch;
  }

  .stat {
    border-right: none; /* sacamos divisor vertical */
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-right: 24px;
    margin-bottom: 20px;
  }

  .stat:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .stat-num {
    justify-content: flex-start; /* número alineado a la izquierda si querés */
    text-align: left;
  }

  /* Botones en columna */
  .project-img {
    width: 100%;
  }

  .cta-stack {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .cta-card {
    width: 86%;
    align-self: center;
  }
}

@media (max-width: 479px) {
  .project .heading-split {
    font-size: 2.2rem; /* más chico que el clamp mínimo */
    line-height: 1.1;
    flex-wrap: wrap; /* permite que “Proyectos” baje a otra línea */
    justify-content: center;
  }

  .project .heading-split__pill {
    white-space: normal; /* ya no obliga a todo en una sola línea */
  }
}

/* ===== ESTADO INICIAL ===== */

/* Título desde la izquierda */
.clients .heading-client {
  opacity: 0;
  transform: translateX(-80px);
  will-change: opacity, transform;
}

/* ===== CUANDO LA SECCIÓN SE ACTIVA ===== */

.clients.section-in .heading-client {
  animation: clientHeadingIn 0.7s ease-out forwards;
  animation-delay: 0.1s;
}


/* ===== KEYFRAMES ===== */

@keyframes clientHeadingIn {
  0% {
    opacity: 0;
    transform: translateX(-80px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* no tocamos transform para no pelear con el marquee */
@keyframes clientGridBlurIn {
  0% {
    opacity: 0;
    filter: blur(14px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}




/*CONTACT SECTION*/
.contact {
  padding: 40px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* centra horizontal */
  margin-top: 4rem;
  background-color: rgb(40, 40, 40);
  border-radius: 60px;
  width: 97%;
  justify-self: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.25);
}

.g-recaptcha {
  margin: 20px 0;
  align-self: center;
}

.contact-title {
  font-size: clamp(32px, 4vw, 40px);
  text-align: center;
  margin-bottom: 10px;
}

.form-container {
  background: transparent !important;
  padding: 0 !important;
  margin-top: clamp(8px, 1.5vw, 16px);
}

#contactForm{
  padding: 50px 30px 20px 30px;
  border-radius: 20px;
}

.form-title {
  color: var(--text);
  text-align: center;
  margin-bottom: 0.3rem;
}

/* inputs y textarea sin border-radius (mantiene tu regla global) */
.form-input,
.form-textarea,
.submit-button {
  border-radius: 0 !important;
}

/* estética de inputs en dark */
.form-input {
  background: #111;
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.form-input::placeholder {
  color: #7a7a7a;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(153, 0, 17, 0.12);
  background: #141414;
}

.form-textarea {
  background: #111;
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 720px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-title {
    margin-top: 50px;
}

}

/* radios y budgets */
.radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
@media (max-width: 720px) {
  .budget-grid {
    grid-template-columns: 1fr;
  }
}

.radio-item,
.budget-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.radio-input {
  width: 18px;
  height: 18px;
  border: 1px solid #aaa;
  border-radius: 50%;
  position: relative;
}
.radio-input input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  margin: 0;
}
.radio-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  transition: 0.2s;
}
.radio-input input:checked + .radio-dot {
  transform: translate(-50%, -50%) scale(1);
}

.section-title,
.radio-label,
.budget-label {
  color: var(--text);
}

.submit-button:active {
  transform: none;
  box-shadow: none;
}

/* === RESTAURAR RADIOS (si dejaste un * { border-radius:0 !important; } bórralo) */
.form-column,
.info-container,
.form-container,
.form-input,
.form-textarea,
.submit-button {
  border-radius: 20px !important; /* paneles */
}
.form-input,
.submit-button {
  border-radius: 25px !important;
} /* pills */
.form-textarea {
  border-radius: 15px !important;
}

/* === FORM: inputs “originales” (claros, con borde var(--primary)) === */
.form-container {
  background: transparent;
  padding: clamp(8px, 1.5vw, 16px) 0;
}

.form-title {
  color: var(--text);
  font-weight: 300;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 720px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--primary);
  background: var(--text); /* blanco */
  color: var(--text-dark);
  font-size: clamp(13px, 1.05vw, 0.95rem);
  transition: box-shadow 0.25s ease, border-color 0.25s ease,
    background 0.25s ease;
}
.form-input::placeholder {
  color: #343434;
  font-size: clamp(11px, 0.9vw, 0.8rem);
  letter-spacing: 0.5px;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--text);
  box-shadow: 0 0 0 3px rgba(153, 0, 17, 0.12);
}

/* === Radios y presupuesto (dos columnas desktop) === */
.radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 860px) {
  .budget-grid {
    grid-template-columns: 1fr;
  }
}

.radio-item,
.budget-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.radio-input {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.radio-input input {
  opacity: 0;
  position: absolute;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.radio-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border-radius: 50%;
  transition: 0.2s;
}
.radio-input input:checked + .radio-dot {
  transform: translate(-50%, -50%) scale(1);
}
.radio-label,
.budget-label {
  color: var(--text);
}

/* === Más ESPACIADO entre secciones + divisores tenues === */
.services-section,
.budget-section,
.textarea-group {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Textarea en estilo original claro === */
.form-textarea {
  width: 100%;
  min-height: 140px;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--border);
  background: var(--input-bg);
  color: var(--main-bg);
  resize: vertical;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.form-textarea::placeholder {
  color: var(--text-light);
  letter-spacing: 0.5px;
}
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--background);
  box-shadow: 0 0 0 3px rgba(153, 0, 17, 0.1);
}

/* === Botón === */
.submit-button {
  width: 100%;
  margin-top: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  border-radius: 18px;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease, background 0.25s ease;
  position: relative;
  background: linear-gradient(
    135deg,
    rgb(0, 0, 213) 0%,
    rgba(0, 36, 154, 0.85) 25%,
    rgba(0, 4, 70, 0.55) 55%,
    rgba(0, 0, 0, 1) 100%
  );
  border-radius: 22px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(90, 104, 255, 0.15),
    0 0 40px rgba(30, 75, 255, 0.1);
  overflow: hidden;
  align-items: center;
}
.submit-button:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 61, 193, 0.878) 0%,
    rgba(0, 42, 101, 0.85) 25%,
    rgba(9, 0, 91, 0.55) 55%,
    rgb(0, 2, 21) 100%
  );
  background-position: 100% 50%; 
  color: #fff;
  transform: translateY(-2px);
  cursor: pointer;
}
.submit-button:active {
  transform: none;
  box-shadow: none;
}

/* === 1) Bordes NEGROS en inputs/textarea === */
.form-input,
.form-textarea {
  border: 2px solid #000 !important;
  box-shadow: none !important;
}
.form-input:focus,
.form-textarea:focus {
  border-color: #000 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06) !important; /* sutil */
  background: #fff !important;
  color: #111 !important;
}

/* (opcional) radios a negro para que quede consistente */
.radio-input {
  border-color: #000 !important;
}

/* === 2) Scroll en el panel izquierdo (formulario) === */
/* antes estaba overflow:hidden y no dejaba ver todo */
.form-column {
  height: 100vh !important;
  -webkit-overflow-scrolling: touch; /* suave en iOS */
  padding-right: 10px; /* evita que la barra tape contenido */
}

/* --- 1) Nada de scroll horizontal dentro del panel --- */
.form-column {
  overflow-x: hidden !important; /* fuera el scroll lateral */
}

/* por si algo se estira de más */
.form-column * {
  max-width: 100%;
}

/* --- 2) Más aire debajo de los títulos de sección --- */
.services-section .section-title,
.budget-section .section-title {
  margin-bottom: 1.75rem !important; /* antes ~1rem */
  font-weight: 300;
}

/* Scrollbar finita en el panel del formulario */
.form-column {
  overflow-x: hidden !important;
  padding-right: 8px; /* menos padding porque la barra será más fina */
}

/* WebKit (Chrome, Edge, Safari) */
.form-column::-webkit-scrollbar {
  width: 6px; /* grosor de la barra */
}
.form-column::-webkit-scrollbar-track {
  background: transparent; /* sin bloque gris */
}
.form-column::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}
.form-column::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28); /* un pelín más visible al hover */
}

/* --- CONTACT FULL WIDTH EN HOME --- */
.contact .form-container {
  max-width: none; /* quita el límite de 640px */
  width: 100%; /* ocupa todo el ancho disponible */
}

/* Centrar el contenido del formulario dentro del panel */
.form-container {
  max-width: none; /* ancho fijo/razonable */
  margin: 0 auto; /* lo centra */
  width: 100%; /* ocupa todo el ancho hasta el max */
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra vertical en su espacio */
}

.form-container {
  width: 100%;
  max-width: 900px; /* ajustá 700 / 800 / 900px a gusto */
  margin: 0 auto;
}

/* Ajuste visual: inputs y textarea ocupan todo el ancho del bloque centrado */
.form-input,
.form-textarea,
.submit-button {
  width: 100%;
}

/* Centrar título y formulario */
.form-column {
  display: flex;
  flex-direction: column;
  align-items: center; /* centra horizontal todo dentro */
}

.form-column .title {
  text-align: center; /* texto centrado */
  width: 100%;
  margin: 0 0 clamp(18px, 3vw, 28px);
  padding-top: 100px;
}

/* El form queda con un ancho máximo centrado */
.form-container {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* 1) Usamos una variable para el despeje superior de la navbar */
:root {
  --contact-pad-top: clamp(96px, 12vh, 140px);
}

/* 3) Hacemos que el panel izquierdo suba y cubra la franja superior,
      manteniendo el scroll vertical del formulario */
.form-column {
  position: relative;
  height: calc(100vh + var(--contact-pad-top));
  margin-top: calc(-1 * var(--contact-pad-top));
  overflow-x: hidden;
}

/* 4) “Full-bleed” real: un pseudo-elemento que extiende el fondo del panel
      hasta el borde izquierdo de la ventana, con bordes redondeados solo del lado derecho */
.form-column {
  background: transparent; /* el fondo real lo da ::before */
  border: none;
}
.form-column::before {
  content: "";
  position: absolute;
  z-index: -1;
  /* se extiende hacia arriba para cubrir el margen que “robamos”
     y hacia la izquierda hasta el borde de la ventana */
  top: calc(-1 * var(--contact-pad-top));
  bottom: 0;
  left: calc(50% - 50vw); /* truco full-bleed hasta el borde izquierdo */
  right: 0; /* pega al borde derecho del panel */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: none; /* sin borde en el borde de la ventana */
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* 5) El contenedor del formulario centrado como antes */
.form-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* despeje bajo la navbar */
:root {
  --nav-clear: clamp(90px, 12vh, 120px);
}

/* panel izquierdo: mismo alto, contenido más abajo */
.form-column {
  position: relative;
  height: calc(100vh + var(--nav-clear)); /* el alto que te gustó */
  padding-top: var(--nav-clear);
  overflow-x: visible; /* dejamos visible para el full-bleed del ::before */
  background: transparent; /* el “fondo” lo pinta ::before */
  border: none;
}

/* full-bleed real a la izquierda: cubre todo el ancho del viewport */
.form-column::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--nav-clear)); /* también cubre por arriba */
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); /* centramos el pseudo */
  width: 100vw; /* …y lo hacemos del ancho de la ventana */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: none;
  border-bottom-left-radius: 0;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* por si algo se estira y genera scroll horizontal */
.form-column * {
  max-width: 100%;
}

/* Quitar redondeo SOLO en la esquina superior izquierda del panel izquierdo */
.form-column {
  border-top-left-radius: 0 !important;
}

.form-column::before {
  border-top-left-radius: 0 !important; /* asegura que el fondo full-bleed también sea recto */
}

/* ====== STACK EN BLOQUES ≤ 768px ====== */
@media (max-width: 768px) {
  /* 2) Form primero, a ancho completo, altura auto (sin 100vh) */
  .form-column {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding-top: 0 !important;
    overflow: visible !important; /* sin scroll interno en mobile */
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }
  /* quitar el fondo full-bleed del pseudo en mobile */
  .form-column::before {
    display: none !important;
  }

  /* 3) Contenido del form centrado y con buen aire */
  .form-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 0 0;
  }
  .form-column .title {
    text-align: center;
    margin-bottom: 20px !important;
  }

  .form-title {
    text-align: center;
  }

  /* 4) Bloque de información: también a ancho completo y en bloque */
  .info-container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 16px !important;
    padding: 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
  }

  /* 5) Columnitas internas: una debajo de la otra con divisor horizontal */
  .info-column {
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  .info-column + .info-column {
    border-top: 1px solid var(--stat-divider-color) !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
  }
}

/* ====== CORRECCIÓN: Despeje superior del formulario en mobile ====== */
@media (max-width: 768px) {
  .form-column {
    /* altura automática: ya no 100vh */
    height: auto !important;
    /* aire arriba para no quedar oculto bajo la navbar */
    margin-top: 80px !important; /* coincide con la altura de tu navbar */
    padding-top: 20px !important; /* aire interno extra */
  }

  /* aseguramos que el fondo pseudo-elemento no interfiera */
  .form-column::before {
    display: none !important;
  }
}

/* ===== Fix: título no se salga en ≤ 437px ===== */
@media (max-width: 437px) {
  .form-column .title {
    /* permitir que corte línea si lo necesita */
    word-break: normal !important;
    overflow-wrap: anywhere; /* alternativa segura */
    hyphens: auto;

    /* bajar el mínimo del clamp para móviles chicos */
    font-size: clamp(1.8rem, 9.5vw, 2.6rem) !important;
    line-height: 0.95 !important;
    letter-spacing: 0 !important;
    margin-inline: 0 !important; /* evita empujes laterales */
  }

  /* un pelín más de aire interno del panel */
  .form-column {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* ===== Centrar el título en ≤ 437px ===== */
@media (max-width: 437px) {
  .form-column .title {
    text-align: center !important; /* centra el texto */
    width: 100% !important; /* ocupa todo el ancho del contenedor */
    display: block !important; /* asegura comportamiento de bloque */
    margin-left: auto !important; /* centra dentro del panel */
    margin-right: auto !important;
  }

  /* Opcional: también centramos el subtítulo para mantener coherencia */
  .form-container .form-title {
    text-align: center !important;
  }

  .contact {
    padding: 0;
    margin-bottom: 30px;
  }
}

/* ===== Ultra responsive ≤ 301px ===== */
@media (max-width: 301px) {
  /* Título principal CONTACTANOS */
  .form-column .title {
    font-size: clamp(1rem, 8vw, 1.4rem) !important; /* mucho más chico */
    line-height: 1.05 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
    letter-spacing: 0 !important;
  }

  /* Subtítulo "Contanos sobre tu proyecto" */
  .form-container .form-title {
    font-size: clamp(0.75rem, 3.6vw, 0.9rem) !important; /* más pequeño */
    text-align: center !important;
    margin-bottom: 0.8rem !important;
  }

  /* Padding lateral mínimo pero respirable */
  .form-column {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Inputs también un pelín más compactos */
  .form-input,
  .form-textarea,
  .submit-button {
    font-size: clamp(11px, 0.9vw, 0.8rem) !important;
    padding: 0.7rem 1rem !important;
  }

  /* Espacio entre secciones reducido */
  .services-section,
  .budget-section,
  .textarea-group {
    margin-top: 1.4rem !important;
    padding-top: 0.8rem !important;
  }
}

/* form-column ocupa todo el ancho y toda la altura visible */
.form-column {
  width: 100vw !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  margin: 0 auto;
  border-radius: 0 !important;
}

/* ocultamos el panel derecho (info-container) por ahora */
.info-container {
  display: none !important;
}

/* === Split 50/50 dentro del formulario === */
#contactForm {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch; /* que las cosas se estiren al 100% */
}

/* Columnas internas */
.first-column-form {
  display: flex;
  flex-direction: column;
  min-width: 0; /* evita overflow por contenidos largos */
}

/* Asegura que el botón ocupe el ancho total del form (debajo de ambas columnas) */
#contactForm .submit-button {
  grid-column: 1 / -1; /* span across both columns */
  justify-self: stretch;
}

/* Ajustes de espacios internos de secciones para coherencia visual */
.first-column-form .services-section {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive: en ≤ 900px apilamos 100% */
@media (max-width: 900px) {
  #contactForm {
    grid-template-columns: 1fr; /* una sola columna */
    gap: 16px;
  }
  #contactForm .submit-button {
    grid-column: auto; /* ya no necesita span */
  }
}

/* === Dos columnas para la lista de servicios === */
.services-section .radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* dos columnas iguales */
  gap: 0.6rem 1.5rem; /* espacio entre filas y columnas */
}

/* En pantallas chicas (mobile), vuelve a una sola columna */
@media (max-width: 768px) {
  .services-section .radio-grid {
    grid-template-columns: 1fr;
  }
}

.form-column {
  width: 100% !important; /* evitar 100vw */
  overflow-x: hidden !important; /* corta cualquier desborde interno */
}

/* === 3) Ajuste del fondo full-bleed para que NO cree overflow === */
/* Reemplazamos el 100vw por 100% y quitamos el translate */
.form-column::before {
  left: 0 !important;
  right: 0 !important; /* ocupa solo el ancho del contenedor */
  width: auto !important;
  transform: none !important;
}

/* Si en algún breakpoint querés volver al full-bleed, lo limitamos al viewport sin overflow */
@media (min-width: 1024px) {
  /* Opción A (segura): mantener sin full-bleed real para evitar overflow */
  .form-column::before {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
  }

  /* Opción B (full-bleed real SIN overflow): usar bordes en vez de width
     (no uses 100vw). Descomentalo si querés full-bleed real. */
  /*
  .form-column::before {
    left: calc(50% - 50vw) !important;  // se ancla al borde del viewport
    right: calc(50% - 50vw) !important; // idem lado derecho
    width: auto !important;             // evita el 100vw que causa overflow
  }
  */
}

/* === 4) Pequeño seguro por si algún hijo se estira de más === */
.form-column * {
  max-width: 100%;
  box-sizing: border-box;
}

/* === Reactivar el info-container debajo del formulario === */
.info-container {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-top: clamp(40px, 6vh, 80px) !important;
  padding: clamp(20px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

/* columnas internas del info-container apiladas */
.info-column {
  display: block;
  padding: 0;
}
.info-column + .info-column {
  border-top: 1px solid var(--stat-divider-color);
  margin-top: clamp(14px, 2.5vw, 20px);
  padding-top: clamp(14px, 2.5vw, 20px);
  margin-bottom: 70px;
}

/*ANIMACIONES*/

/* ===== Animaciones iniciales (sin librerías) ===== */
@media (prefers-reduced-motion: no-preference) {
  .anim-fade,
  .anim-left,
  .anim-right {
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 700ms ease;
  }

  /* estado inicial */
  .anim-fade {
    transform: translateY(12px);
  }
  .anim-left {
    transform: translateX(-6%);
  }
  .anim-right {
    transform: translateX(6%);
  }

  /* estado final */
  .is-inview {
    opacity: 1;
    transform: none;
  }
}

/* Si el usuario prefiere menos movimiento, mostramos todo sin animar */
@media (prefers-reduced-motion: reduce) {
  .anim-fade,
  .anim-left,
  .anim-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* === OVERRIDE: inputs con solo línea inferior (como el ejemplo) === */

/* Espaciado entre campos */
.contact .form-group {
  margin-bottom: 2rem !important;
}

/* Input estilo underline */
.contact .form-input {
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 0 !important;
  padding: 0.75rem 0 !important;
  box-shadow: none !important;
  color: #f5f5f5 !important;
  font-size: 1rem !important;
}

/* Estado focus: misma línea pero un poco más marcada */
.contact .form-input:focus {
  outline: none !important;
  border-bottom-color: #ffffff !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Placeholder con estilo de label */
.contact .form-input::placeholder {
  color: rgba(245, 245, 245, 0.58) !important;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 1rem !important;
}

/* Opcional: textarea con el mismo estilo */
.contact .form-textarea {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0.75rem 0 !important;
  box-shadow: none !important;
  color: #f5f5f5 !important;
}
.contact .form-textarea:focus {
  outline: none !important;
  background: transparent !important;
}
.contact .form-textarea::placeholder {
  color: rgba(245, 245, 245, 0.486) !important;
  font-weight: 600;
  text-transform: none !important;
}


/* ===== CONTACT: ENTRADA DESDE ABAJO ===== */

/* Estado inicial */
.contact {
  opacity: 0;
  transform: translateY(80px);
  will-change: opacity, transform;
}

/* Cuando entra en viewport */
.contact.section-in {
  animation: contactSlideUp 0.8s ease-out forwards;
  animation-delay: 0.1s;
}

/* Keyframes */
@keyframes contactSlideUp {
  0% {
    opacity: 0;
    transform: translateY(80px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}



.contact .textarea-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 1.2rem;
  border-radius: 18px;
}

.contact .form-textarea {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  min-height: 100px;
  resize: vertical;
}




.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;

  background: #25d366;
  color: #ffffff;

  /* 🔹 En vez de 50% para círculo, usamos px para esquinas redondeadas */
  border-radius: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;        /* tamaño del ícono */
  z-index: 999;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;

  /* 🔥 ANIMACIÓN PULSE */
  animation: pulse 1.6s infinite ease-in-out;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 769px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    font-size: 26px;
    bottom: 16px;
    right: 16px;
  }
}