/* HERO */

.hero {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 920px;
}

.hero__title {
  letter-spacing: -0.5px;
}

.hero__wrapper {
  display: grid;
  align-items: center;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 40px;
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 400;
  max-width: 14ch;
  line-height: 1.04;
}

.hero__text {
  font-size: var(--font-size-lg);
  margin: 20px 0;
  max-width: 600px;
}

.hero__title strong {
  color: var(--color-primary);
}

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

.hero__model {
  width: 100%;
  max-width: 750px;
  height: 700px;
  opacity: 0;

  animation: heroModelFade 1.6s ease forwards;

  animation-delay: 0.35s;
}

@keyframes heroModelFade {
  from {
    opacity: 0;

    transform: translateY(20px) scale(0.94);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(0.96);
  }
}

/* SYSTEM */
.system {
  display: flex;
  align-items: center;
  text-align: center;

  position: relative;
}

.system::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 1;

  pointer-events: none;

  background: radial-gradient(
    circle at 50% 88%,
    rgba(0, 208, 130, 0.16) 0%,
    rgba(0, 208, 130, 0.08) 28%,
    rgba(0, 208, 130, 0.03) 48%,
    transparent 74%
  );

  mix-blend-mode: screen;

  opacity: 0.9;
}

.system__wrapper {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.system__title {
  font-size: var(--fs-h1); /* 👈 igual que hero */
  line-height: 1.1;
  margin-bottom: 24px;
}

.system__text {
  font-size: var(--fs-body-lg);

  max-width: 760px;

  line-height: 1.75;

  margin: 0 auto 28px;
}

.system__btn {
  margin-top: 1rem;
}

/* =========================
   SECTION TEAM
========================= */

.section.team {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: block;
  padding: 140px 0 70px 0;
}

/* =========================
   BACKGROUND (FIXED)
========================= */

.team__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1600px; /* ajustar si hace falta */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 0;
  pointer-events: none;
}

/* =========================
   CONTENT
========================= */

.section.team .container {
  position: relative;
  z-index: 2;

  overflow: hidden;
  transition: max-height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================
   GRID
========================= */

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

/* GRID EXTRA */

.team__extra .team__grid {
  margin-top: 40px;
}

/* =========================
   CARDS
========================= */

.team__card {
  text-align: center;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.team__card:hover {
  transform: translateY(-6px);
}

/* =========================
   ANIMACIÓN (IN + OUT)
========================= */

/* estado base (cerrado) */

.team__extra .team__card {
  opacity: 0;
  transform: translateY(30px) scale(0.96);

  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* estado abierto */

.section.team.open .team__extra .team__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================
   TEXT
========================= */

.team__title,
.team__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.team__title {
  margin-bottom: 24px;
}

.team__intro {
  margin-bottom: 70px;

  font-size: clamp(1.18rem, 1.35vw, 1.38rem);

  line-height: 1.75;

  max-width: 860px;
}

/* =========================
   IMAGE
========================= */

.team__photo-wrapper {
  width: 240px;
  margin: 0 auto 18px;
  padding: 4px;
  border-radius: 24px;
}

.team__photo {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

/* =========================
   TYPOGRAPHY
========================= */

.team__name {
  color: #fff;
  margin-bottom: 6px;
  font-size: 20px;
  text-transform: uppercase;
}

.team__role {
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.team__description {
  font-size: 14px;
  color: var(--color-text-tertiary);
  line-height: 1.6;
}

/* =========================
   BUTTON
========================= */

.team__toggle {
  display: block;
  margin: 50px auto;
  text-decoration: none;
  transition: transform 0.8s ease;
}

.team__toggle.active {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* =========================
   PROBLEM SECTION
========================= */

.problem__wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 100px;
  align-items: center;
  margin: 0 auto;
}

/* =========================
   LEFT
========================= */

.problem__content {
  max-width: 500px;
}

.problem__title {
  font-size: var(--fs-h2);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 24px;
}

.problem__title strong {
  color: var(--color-primary);
}

.problem__btn {
  margin-top: 10px;
}

/* =========================
   RIGHT
========================= */

.problem__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ITEM */

.problem__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.3rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ICON (imagen ACF) */

.problem__icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-top: 4px;
  flex-shrink: 0;
}

/* TEXT */

.problem__text {
  flex: 1;
}

/* =========================
   SERVICES
========================= */
.services {
  padding: 0;
  display: block; /*IMPORTANTE: evita que WP meta flex raro */
}

/* =========================
   DECOR
========================= */
.services__decor {
  display: block;
  width: clamp(420px, 38vw, 720px);
  opacity: 0.62;
  height: auto;
}

.services__decor-wrap {
  position: absolute;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.service {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  padding: 85px 0;
}

/* overlay */
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 0;
}

/* alternancia */
.service:nth-child(even) .services__content {
  order: 2;

  margin-left: auto;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  text-align: right;
}

.service:nth-child(even) .services__description {
  margin-left: auto;
  margin-right: 0;
}

.service:nth-child(even) .services__media {
  order: 1;
}
/* posiciones por sección */
/* Servicio 1 */
.service--1 .services__decor-wrap {
  left: 5%;
  bottom: -205px;
  transform: rotate(24deg) scale(0.95);
}

/* Servicio 2 */
.service--2 .services__decor-wrap {
  right: 80px;
  bottom: -55px;

  transform: scale(1.1);
}

/* Servicio 3 */
.service--3 .services__decor-wrap {
  right: -75px;
  bottom: -230px;

  transform: scaleX(-1) scale(1);
}

/* Servicio 4 */
.service--4 .services__decor-wrap {
  left: -150px;
  bottom: -320px;

  transform: scaleX(-1) scale(1.02);
}

/* =========================
   LAYOUT
========================= */
.services__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  width: 100%;
}

/* =========================
   CONTENT
========================= */
.services__content {
  max-width: 600px;
  position: relative;
  z-index: 3;
  gap: 18px;
}

.services__content .btn {
  margin-top: 30px;
}

.services__content > * {
  margin-bottom: 20px;
}

.services__content > *:last-child {
  margin-bottom: 0;
}
/* =========================
   MEDIA
========================= */
.services__media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  isolation: isolate;
  padding: 20px 0;
  overflow: visible;
}

html:not(.is-safari) .services__glow {
  position: absolute;

  inset: -8%;

  pointer-events: none;

  z-index: 1;

  overflow: visible;
}

html:not(.is-safari) .services__glow::before,
html:not(.is-safari) .services__glow::after {
  content: "";

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  border-radius: 50%;

  pointer-events: none;
}

/* =========================
   GLOW BASE
========================= */

html:not(.is-safari) .services__glow::before,
html:not(.is-safari) .services__glow::after {
  content: "";

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  border-radius: 50%;

  pointer-events: none;
}

/* glow principal */

html:not(.is-safari) .services__glow::before {
  width: 280px;
  height: 280px;

  filter: blur(55px);

  opacity: 0.92;
}

/* halo exterior */

html:not(.is-safari) .services__glow::after {
  width: 520px;
  height: 520px;

  filter: blur(110px);

  opacity: 0.42;
}

/* =========================
   LEFT SIDE GLOW
========================= */

.service--1 .services__glow::before,
.service--3 .services__glow::before {
  left: 6%;

  background: radial-gradient(
    circle,
    rgba(0, 255, 190, 0.55) 0%,
    rgba(0, 208, 130, 0.32) 34%,
    rgba(124, 58, 237, 0.18) 58%,
    transparent 76%
  );
}

.service--1 .services__glow::after,
.service--3 .services__glow::after {
  left: -2%;

  background: radial-gradient(
    circle,
    rgba(0, 255, 200, 0.18) 0%,
    rgba(124, 58, 237, 0.12) 42%,
    transparent 72%
  );
}

/* =========================
   RIGHT SIDE GLOW
========================= */

.service--2 .services__glow::before,
.service--4 .services__glow::before {
  right: 6%;

  background: radial-gradient(
    circle,
    rgba(0, 255, 190, 0.55) 0%,
    rgba(0, 208, 130, 0.32) 34%,
    rgba(124, 58, 237, 0.18) 58%,
    transparent 76%
  );
}

.service--2 .services__glow::after,
.service--4 .services__glow::after {
  right: -2%;

  background: radial-gradient(
    circle,
    rgba(0, 255, 200, 0.18) 0%,
    rgba(124, 58, 237, 0.12) 42%,
    transparent 72%
  );
}

/* =======================================
SAFARI: glow blur gigante produce stutter
al entrar cada service al viewport 
=========================================*/
html.is-safari .services__media .services__glow,
html.is-safari .services__media .services__glow::before,
html.is-safari .services__media .services__glow::after,
html.is-safari .services__media .services__glow span {
  opacity: 0;
  visibility: hidden;

  filter: none;
  -webkit-filter: none;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  animation: none;
}

html.is-safari .services__model-wrap {
  animation: safariFloat 4s ease-in-out infinite;
  will-change: transform;
}

html:not(.is-safari) .services__model-wrap {
  animation: none;
}

@keyframes safariFloat {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* =========================
   MODEL VIEWER
========================= */
.services__model {
  width: 100%;
  max-width: 650px;
  height: 600px; /* mantiene proporción sin cortar */
  display: block;
  margin: 0 auto;

  position: relative;
  z-index: 2;

  object-fit: contain;
  background: transparent !important;
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: flat;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.08))
    drop-shadow(0 0 55px rgba(0, 208, 130, 0.12));
}

.services__model.is-visible {
  opacity: 1;
  transform: scale(1);
}

.services__model-wrap {
  position: relative;
  width: 100%;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  opacity: 1;
}

.model-preload {
  opacity: 0;

  transition: opacity 0.55s ease;
}

.model-visible {
  opacity: 1;
}
/* =========================
   TEXT
========================= */
.services__heading {
  position: relative;
  display: inline-block;

  font-family: "Poppins", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  white-space: nowrap;

  transform: skewX(-7deg);
  transform-origin: left center;

  color: #7ef5dc;

  text-shadow:
    0 0 8px rgba(0, 208, 130, 0.45),
    0 0 18px rgba(0, 208, 130, 0.32);

  opacity: 0.98;

  font-size: clamp(2.7rem, 4.5vw, 4.8rem);

  line-height: 0.92;
}

/* profundidad */
.services__heading::before {
  content: attr(data-text);
  position: absolute;
  left: 3px;
  top: 3px;
  z-index: -1;

  color: #32cdbb;
  text-shadow:
    1px 1px 0 #1fa89a,
    2px 2px 0 #1fa89a,
    3px 3px 0 #1fa89a,
    4px 4px 0 #178c80,
    5px 5px 0 #178c80;
  transform: skewX(-1deg);
}

/* glow */
.services__heading::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -2;

  color: var(--color-primary);
  filter: blur(6px);
  opacity: 0.4;
  transform: skewX(-1deg);
}

.services__description {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.6;

  max-width: 420px;

  margin: 20px 0;

  display: block;
}
/* =========================
   CONTACT SECTION
========================= */

.section.contact {
  min-height: 100vh;
}
.contact__wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact__title {
  font-size: var(--fs-h2);
  margin-bottom: 1.5rem;
}

.contact__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contact__form {
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(8px);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 208, 130, 0.45);
  box-shadow: 0 0 20px rgba(0, 208, 130, 0.12);
}

.contact-form .btn,
.contact-form button,
.contact-form input[type="submit"] {
  background: linear-gradient(180deg, #00b36d 0%, #009f61 100%);
  border-color: rgba(0, 179, 109, 0.45);
  box-shadow:
    0 6px 18px rgba(0, 208, 130, 0.14),
    0 0 18px rgba(0, 208, 130, 0.08);
}
/* =========================
   INDUSTRIES SECTION
========================= */

.industries {
  position: relative;
  overflow: hidden;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 140px 0;
}

/* =========================
   BACKGROUND GLOW
========================= */

.industries__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(151, 71, 255, 0.08),
    transparent 65%
  );

  pointer-events: none;
  z-index: 0;
}

/* =========================
   CONTENT LAYER
========================= */

.industries .container {
  position: relative;
  z-index: 2;
}

/* =========================
   HEADING
========================= */

.industries__title {
  font-size: var(--fs-h1);
  margin-bottom: 24px;
}

/* =========================
   DESCRIPTION
========================= */

.industries__description {
  max-width: 980px;

  margin: 0 auto 80px;

  font-size: clamp(1.18rem, 1.35vw, 1.38rem);

  line-height: 1.75;

  opacity: 0.92;
}

/* =========================
   GRID
========================= */

.industries__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 70px 90px;

  align-items: center;
}

/* =========================
   ITEM
========================= */

.industries__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   LOGO
========================= */

.industries__item img {
  width: 100%;
  max-width: 160px;
  height: auto;

  opacity: 0.9;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;

  will-change: transform;
}

/* Hover */
.industries__item img:hover {
  transform: translateY(-4px);
  opacity: 1;
}

/* =========================
   TABLET
========================= */

@media (max-width: 991px) {
  .industries__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .industries__description {
    margin-bottom: 60px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {
  .industries__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .industries__title {
    margin-bottom: 20px;
  }

  .industries__description {
    font-size: 1rem;
    margin-bottom: 48px;
  }

  .industries__item img {
    max-width: 120px;
  }
}

/* =========================
   SCROLL TOP PREMIUM
========================= */

.scroll-top {
  position: fixed;

  right: 28px;
  bottom: 78px;

  width: 62px;
  height: 62px;

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

  border: none;

  border-radius: 999px;

  background: rgba(10, 10, 10, 0.68);

  backdrop-filter: blur(14px);

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(16px) scale(0.92);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;

  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.26);

  z-index: 999;
}

/* visible */

.scroll-top.is-visible {
  opacity: 1;

  visibility: visible;

  transform: translateY(0) scale(1);
}

/* hover */

.scroll-top:hover {
  transform: translateY(-4px) scale(1.05);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(59, 227, 171, 0.12);
}

/* =========================
   ICON
========================= */

.scroll-top__icon {
  position: relative;

  z-index: 2;

  color: #fff;

  font-size: 18px;

  line-height: 1;
}

/* =========================
   SVG
========================= */

.scroll-top__progress {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  transform: rotate(-90deg);
}

/* track */

.scroll-top__track {
  fill: none;

  stroke: rgba(255, 255, 255, 0.08);

  stroke-width: 4;
}

/* animated circle */

.scroll-top__circle {
  fill: none;

  stroke: #3be3ab;

  stroke-width: 4;

  stroke-linecap: round;

  stroke-dasharray: 276;

  stroke-dashoffset: 276;

  transition: stroke-dashoffset 0.12s linear;

  filter: drop-shadow(0 0 8px rgba(59, 227, 171, 0.4));
}

/* ========================================================
   CONTACT MODAL
======================================================== */

.contact-modal {
  position: fixed;
  inset: 0;

  z-index: 9999;

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

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

/* active */
.contact-modal.is-active {
  opacity: 1;
  visibility: visible;
}

/* overlay */
.contact-modal__overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.72);

  backdrop-filter: blur(14px);
}

/* dialog */
.contact-modal__dialog {
  position: relative;

  width: min(92%, 680px);
  overflow: visible;
  isolation: isolate;

  border-radius: 28px;

  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.96),
    rgba(8, 8, 8, 0.98)
  );

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.52),
    0 0 120px rgba(0, 208, 130, 0.14),
    0 0 220px rgba(124, 58, 237, 0.12),
    0 0 320px rgba(59, 227, 171, 0.08);

  padding: 48px;

  transform: translateY(40px) scale(0.96);

  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-modal__dialog::before {
  content: "";

  position: absolute;

  inset: -120px;

  z-index: -1;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(0, 208, 130, 0.18) 0%,
    rgba(124, 58, 237, 0.14) 35%,
    transparent 72%
  );

  filter: blur(80px);

  opacity: 0.95;

  pointer-events: none;
}

/* active animation */
.contact-modal.is-active .contact-modal__dialog {
  transform: translateY(0) scale(1);
}

/* close */
.contact-modal__close {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  border: none;

  background: rgba(255, 255, 255, 0.06);

  color: #fff;

  font-size: 24px;

  cursor: pointer;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.contact-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);

  transform: rotate(90deg);
}

/* title */
.contact-modal__title {
  margin-bottom: 28px;

  font-size: clamp(28px, 4vw, 42px);

  font-weight: 700;

  text-align: center;
}

/* ========================================================
   CURSOR GLOW
======================================================== */

.cursor-glow {
  position: fixed;

  top: 0;
  left: 0;

  width: 140px;
  height: 140px;

  border-radius: 999px;

  pointer-events: none;

  background: radial-gradient(
    circle,
    rgba(59, 227, 171, 0.16) 0%,
    rgba(59, 227, 171, 0.07) 28%,
    rgba(59, 227, 171, 0.03) 52%,
    transparent 72%
  );

  filter: blur(10px);

  mix-blend-mode: screen;

  opacity: 0;

  z-index: 3;

  will-change: transform;

  transition:
    opacity 0.25s ease,
    width 0.25s ease,
    height 0.25s ease;
}

/* hover interactivos */

.cursor-glow.is-hover {
  width: 220px;
  height: 220px;

  opacity: 0.95;
}

/* desktop only */

@media (max-width: 1024px) {
  .cursor-glow {
    display: none;
  }
}

/* =========================
   FOOTER
========================= */

.site-footer {
  position: relative;
  overflow: hidden;

  text-align: center;

  padding: 70px 0 20px;
}

.footer-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 25px;
}

/* isotipo */

.footer__model {
  width: 90px;
  height: 90px;
}

/* email */

.footer-email {
  font-size: 13px;

  overflow-wrap: break-word;
  word-break: break-word;

  line-height: 1.5;
}

/* ubicaciones */

.footer-locations {
  font-size: 12px;

  gap: 8px;

  flex-wrap: wrap;

  opacity: 0.58;
}

.footer-pin {
  width: 18px;
}

/* social */

.footer-social {
  gap: 12px;
}

.footer-social a {
  width: 34px;

  height: 34px;
}

/* legal */

.footer-legal {
  margin-top: 20px;

  padding-top: 18px;
}

.footer-copyright,
.footer-legal-links {
  font-size: 11px;

  text-align: center;
}

/* whatsapp menos invasivo */

.whatsapp-float {
  transform: scale(0.84);

  right: 10px;
  bottom: 10px;
}

/* glow fondo */
.site-footer::before {
  content: "";

  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at center,
    rgba(124, 58, 237, 0.12),
    transparent 55%
  );

  pointer-events: none;
  z-index: 0;
}

/* =========================
   ISOTIPO 3D
========================= */

.footer-branding {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
  width: 750px;
}

.footer__model {
  width: 100%;

  max-width: 170px;

  height: 170px;

  opacity: 0;

  animation: heroModelFade 1.6s ease forwards;

  animation-delay: 0.35s;
}

/* =========================
   EMAIL
========================= */

.footer-email {
  display: block;

  color: rgba(255, 255, 255, 0.92);

  font-size: 18px;
  font-weight: 500;

  text-decoration: none;

  transition:
    opacity 0.3s ease,
    text-shadow 0.3s ease,
    color 0.3s ease;
}

.footer-email:hover {
  color: #fff;

  text-shadow: 0 0 10px rgba(0, 208, 130, 0.28);

  opacity: 1;
}

/* =========================
   LOCATIONS
========================= */

.footer-locations {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  margin-top: -4px;

  font-size: 18px;

  color: var(--color-text-tertiary);
}

/* pin */
.footer-pin {
  width: 30px;
  height: auto;

  position: relative;
  top: -1px;

  flex-shrink: 0;
}

/* =========================
   SOCIAL
========================= */

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 22px;
}

.footer-social a {
  width: 54px;
  height: 54px;

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

  opacity: 0.65;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    filter 0.3s ease;
}

.footer-social a:hover {
  opacity: 1;

  transform: translateY(-3px);

  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}

.footer-social img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;
}

/* =========================
   WHATSAPP FLOAT
========================= */

.whatsapp-float {
  position: fixed;

  bottom: 18px;

  right: 18px;

  transform: scale(0.92);

  z-index: 999;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 18px;

  border-radius: 999px;

  background: rgba(37, 211, 102, 0.95);

  text-decoration: none;

  color: #fff !important;

  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.22);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px);

  background: #25d366;

  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.38);
}

.whatsapp-float img {
  width: 26px;
  height: 26px;

  display: block;

  flex-shrink: 0;
}

.whatsapp-float span {
  font-size: 15px;
  font-weight: 600;

  line-height: 1;

  color: #fff;
}

/* =========================
   LEGAL
========================= */

.footer-legal {
  margin-top: 35px;
  padding-top: 24px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;

  opacity: 0.55;
}

.footer-copyright {
  font-size: 13px;
  letter-spacing: 0.4px;
  line-height: 1.5;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  font-size: 13px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.65);

  text-decoration: none;

  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.footer-legal-links a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.footer-legal-links span {
  color: rgba(255, 255, 255, 0.3);
}

/* =========================
   FOOTER BACKGROUND FX
========================= */

.site-footer {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      circle at center,
      rgba(124, 58, 237, 0.1) 0%,
      rgba(0, 0, 0, 0) 45%
    ),
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 30%
    ),
    linear-gradient(to bottom, #050505 0%, #000 100%);
}

/* textura tecnológica */
.site-footer::after {
  content: "";

  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);

  background-size: 80px 80px;

  opacity: 0.18;

  mask-image: radial-gradient(circle at center, black 20%, transparent 85%);

  pointer-events: none;
}

.site-footer::before {
  content: "";

  position: absolute;

  width: 700px;
  height: 700px;

  left: 50%;
  top: 40%;

  transform: translate(-50%, -50%);

  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.18),
    transparent 70%
  );

  filter: blur(80px);

  opacity: 0.6;

  pointer-events: none;
}

/* ========================================================
   PARALLAX BACKGROUNDS
======================================================== */
.hero,
.system,
.problem,
.industries {
  position: relative;
  overflow: hidden;
}

/* ========================================================
   PARALLAX LAYERS
======================================================== */
.system__bg-parallax,
.hero__bg-parallax,
.problem__bg-parallax,
.industries__bg-parallax {
  position: absolute;

  inset: -18%;

  z-index: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1.22) translate3d(0, 0, 0);

  will-change: transform;

  backface-visibility: hidden;

  pointer-events: none;
}

/* ========================================================
   HERO
======================================================== */

.hero__wrapper,
.hero__overlay {
  position: relative;
  z-index: 2;
}

/* ========================================================
   SYSTEM
======================================================== */

.system__wrapper,
.system__overlay {
  position: relative;
  z-index: 2;
}

/* ========================================================
   PROBLEM
======================================================== */

.problem__wrapper {
  position: relative;
  z-index: 2;
}

/* ========================================================
   INDUSTRIES
======================================================== */

.industries__bg {
  position: relative;
  z-index: 1;
}

.industries .container {
  position: relative;
  z-index: 2;
}

/* =========================
   SCROLL PROGRESS
========================= */

.scroll-progress {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 3px;

  background: linear-gradient(90deg, #00c97c, #3be3ab);

  box-shadow: 0 0 12px rgba(59, 227, 171, 0.28);

  transform: scaleX(0);

  transform-origin: 0 50%;

  will-change: transform;

  z-index: 99999;

  pointer-events: none;
}

.services__fallback {
  display: none;
}

.hero__fallback {
  display: none;

  width: 100%;

  max-width: 420px;

  height: auto;

  object-fit: contain;
}
@keyframes servicesFloatMobile {
  0% {
    transform: translate3d(0, 0px, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }

  100% {
    transform: translate3d(0, 0px, 0);
  }
}
/* =========================
   RESPONSIVE - MOBILE (768px)
========================= */

@media (max-width: 768px) {
  :root {
    --fs-h1: clamp(28px, 7vw, 40px);

    --fs-h2: clamp(22px, 5.5vw, 30px);

    --fs-h3: clamp(18px, 4.5vw, 24px);

    --fs-body: 14px;
  }

  p {
    font-size: var(--fs-body);
  }

  /* =========================
   MOBILE general refinements
========================= */

  /* botones menos agresivos */

  .btn {
    box-shadow: 0 8px 24px rgba(0, 208, 130, 0.16);
    background: linear-gradient(180deg, #00b36d 0%, #009f61 100%);

    border-color: rgba(0, 179, 109, 0.45);
  }

  /* fondos tech más suaves */

  .hero__bg-parallax,
  .system__bg-parallax,
  .problem__bg-parallax,
  .industries__bg-parallax {
    opacity: 0.28;

    transform: none !important;

    will-change: auto;
  }

  /* =========================
     HERO
  ========================= */

  .hero {
    min-height: 85svh;

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

    padding: 145px 0 55px;

    text-align: center;
  }

  .hero__wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;

    align-items: center;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 0;
  }

  .hero__title {
    line-height: 1.04;

    letter-spacing: -2px;

    max-width: 92%;
    margin: 0 auto;
  }
  .hero__text {
    max-width: 92%;

    margin: 18px auto 0;

    line-height: 1.6;
  }

  .hero .btn {
    margin-top: 22px;

    font-size: 13px;

    letter-spacing: 0.8px;
  }

  .hero__media {
    margin-top: 10px;
    justify-content: center;
  }

  .hero__model {
    height: 235px;

    max-width: 100%;

    transform: scale(0.96);
  }

  /* =========================
     SYSTEM
  ========================= */

  .system {
    min-height: 85svh;

    display: flex;
    align-items: center;

    padding: 80px 0;
  }

  .system__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 26px;
  }
  .system__title {
    max-width: 100%;

    margin: 0;

    line-height: 1.05;
  }

  .system__text {
    max-width: 92%;

    margin: 0;

    line-height: 1.7;
  }

  .system .btn {
    margin-top: 6px;

    font-size: 13px;
  }

  /* =========================
     SERVICES
  ========================= */

  .service {
    min-height: 90svh;

    padding-top: 10px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
  }

  .services__inner {
    grid-template-columns: 1fr;

    gap: 50px;

    text-align: center;
    align-items: center;
  }

  .services__media {
    order: -1;

    justify-content: center;
    align-items: center;
  }

  .services__model-wrap {
    height: 240px;

    margin-top: 0;
  }

  .services__model {
    height: 100%;

    max-height: none;

    margin-bottom: 0;

    transform: scale(1.2);
  }

  /* mobile: sin fade/entrada */

  .services__model,
  .footer__model {
    opacity: 1 !important;

    animation: none !important;

    transition: none !important;
  }
  .hero__media {
    margin-top: 10px;
    justify-content: center;
  }

  .hero__fallback {
    display: block;

    width: 88%;

    max-width: 320px;

    height: auto;

    object-fit: contain;

    animation: servicesFloatMobile 7s ease-in-out infinite;
  }

  .hero__model {
    display: none !important;
  }

  .services__model-wrap {
    transform: none !important;
  }

  .services__content,
  .service:nth-child(even) .services__content {
    width: 100%;

    margin-left: auto;
    margin-right: auto;

    display: flex;
    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
  }

  .service:nth-child(even) .services__description,
  .services__description {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
  }

  .services__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .services__description {
    font-size: 1rem;

    max-width: 100%;

    margin: 0 auto;
  }

  /* decor */

  .services__decor {
    opacity: 0.2;
  }

  .services__decor-wrap {
    display: none;
  }

  /* services text */

  .services__heading {
    font-size: 30px;

    font-weight: 800;

    letter-spacing: 0.2px;

    text-shadow:
      0 0 4px var(--color-primary),
      0 0 10px rgba(0, 208, 130, 0.35);
  }

  .services__heading::before {
    left: 1.5px;
    top: 1.5px;

    text-shadow:
      1px 1px 0 #1fa89a,
      2px 2px 0 #178c80;
  }

  .services__heading::after {
    filter: blur(3px);

    opacity: 0.22;
  }

  .services__description {
    font-size: 0.9rem;

    line-height: 1.65;

    max-width: 320px;
  }

  .services__content .btn {
    display: inline-block;

    margin: 25px auto 0;
  }

  /* =========================
     TEAM
  ========================= */

  .team__grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .section.team {
    padding: 70px 0;
  }

  .team__photo-wrapper {
    width: clamp(160px, 50vw, 220px);
  }

  .team__photo {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }

  .team__name {
    font-size: 16px;
  }

  .team__description {
    font-size: 13px;
  }

  .team__bg {
    height: 2800px;
  }

  /* =========================
     PROBLEM
  ========================= */
  .problem {
    min-height: 85svh;

    padding: 60px 0;
  }
  .problem__bg-parallax {
    background-position: 0% 20%;
    opacity: 1;
  }
  .problem::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, #000 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
  }
  .problem__wrapper {
    grid-template-columns: 1fr;

    gap: 50px;

    text-align: center;
  }

  .problem__content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  ul.problem__list {
    margin: 0 auto;
    margin-left: auto;
    margin-right: auto;
  }

  .problem__item {
    text-align: left;
  }

  .problem__icon {
    width: 20px;
    height: 20px;
  }

  /* =========================
     CONTACT
  ========================= */
  .section.contact {
    min-height: auto;

    padding: 70px 0;
  }
  .contact__wrapper {
    padding: 0 10px;
  }

  .contact__form {
    width: 100%;
  }

  /* =========================
   INDUSTRIES
========================= */
  .industries {
    padding: 80px 0;
  }

  /* =========================
   CTA MOBILE REFINED
========================= */

  .btn,
  .hero .btn,
  .system .btn,
  .services__content .btn {
    width: auto;

    min-width: 0;

    padding: 14px 28px;

    font-size: 13px;

    letter-spacing: 0.6px;

    border-radius: 25px;

    box-shadow:
      0 6px 18px rgba(0, 208, 130, 0.14),
      0 0 18px rgba(0, 208, 130, 0.08);
    background: linear-gradient(180deg, #00b36d 0%, #009f61 100%);

    border-color: rgba(0, 179, 109, 0.45);
  }
  /* ===== SERVICES FALLBACK MOBILE ===== */

  .services__fallback {
    display: block;

    width: 78%;

    max-width: 320px;

    height: auto;

    object-fit: contain;

    animation: servicesFloatMobile 7s ease-in-out infinite;
  }

  .services__model {
    display: none !important;
  }

  .services__glow::before,
  .services__glow::after {
    filter: blur(40px) !important;

    opacity: 0.12 !important;
  }

  .scroll-top {
    backdrop-filter: none;

    background: rgba(10, 10, 10, 0.9);
  }

  .contact-modal__overlay {
    backdrop-filter: none;
  }
}

@media (max-width: 932px) and (orientation: landscape) {
  .hero__fallback {
    max-height: 42vh;

    width: auto;

    margin-top: 24px;
  }

  .services__inner {
    min-height: auto;
  }

  .services__media {
    align-items: center;
  }

  .services__fallback {
    max-height: 56vh;

    width: auto;

    margin-top: 56px;
  }
}

@media (max-width: 1024px) {
  /* ========================================================
   MOBILE FLOATING 3D
======================================================== */

  .services__model-wrap {
    animation: mobileFloat 5s ease-in-out infinite;
  }

  .service--2 .services__model-wrap {
    animation-duration: 5.8s;
  }

  .service--3 .services__model-wrap {
    animation-duration: 4.8s;
  }

  .service--4 .services__model-wrap {
    animation-duration: 6.2s;
  }

  @keyframes mobileFloat {
    0% {
      transform: translateY(0px);
    }

    50% {
      transform: translateY(-12px);
    }

    100% {
      transform: translateY(0px);
    }
  }
}
/* =========================
   TABLET PORTRAIT / IPAD
========================= */

@media (min-width: 769px) and (max-width: 1024px) {
  /* HERO */

  .hero {
    padding: 160px 0 90px;
  }

  .hero__wrapper {
    grid-template-columns: 1fr;

    gap: 20px;

    text-align: center;
  }

  .hero__title {
    max-width: 820px;

    margin: 0 auto;

    font-size: clamp(54px, 6vw, 72px);

    text-align: center;
  }

  .hero__content {
    text-align: center;

    align-items: center;
  }

  .hero__model {
    height: 360px;

    transform: scale(0.98);
  }
  .hero .btn {
    margin-top: 28px;
  }
  .hero__media {
    margin-top: 10px;
  }
  /* SYSTEM */

  .system {
    min-height: auto;

    padding: 120px 0;
  }

  .system__wrapper {
    max-width: 760px;
  }

  /* SERVICES */

  .service {
    min-height: auto;

    padding: 85px 0 100px;
  }
  .services__media {
    margin-bottom: -10px;
  }
  .services__inner {
    gap: 34px;
  }

  .services__model-wrap {
    height: 320px;

    margin-top: 0;

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

  .services__model {
    height: 100%;

    max-height: none;

    margin-bottom: 0;

    transform: scale(1.05);
  }
  .service:nth-child(even) .services__content {
    align-items: center;
  }
  .services__heading {
    font-size: 48px;
  }

  .services__description {
    max-width: 580px;

    margin: 0 auto;

    font-size: 1.15rem;
  }

  /* TEAM */

  .team__grid {
    grid-template-columns: 1fr;

    gap: 56px;

    max-width: 520px;

    margin: 50px auto 0;
  }
  /* INDUSTRIES */

  .industries__grid {
    grid-template-columns: repeat(3, 1fr);

    gap: 50px;
  }

  /* FOOTER */

  .footer__model {
    width: 130px;
    height: 130px;
  }

  .footer-email {
    font-size: 16px;
  }

  .section.team .container {
    overflow: visible;
  }
  /* =========================
   TABLET PORTRAIT ALIGN FIX
========================= */

  .hero__content,
  .services__content,
  .problem__content,
  .system__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    width: 100%;

    margin: 0 auto;
  }

  .services__description,
  .problem__text,
  .system__text {
    max-width: 680px;

    margin-left: auto;
    margin-right: auto;
  }

  .services__decor-wrap {
    display: block;

    opacity: 0.16;
  }

  /* izquierda */

  .service--1 .services__decor-wrap,
  .service--4 .services__decor-wrap {
    left: -120px;
    right: auto;
  }

  /* derecha */

  .service--2 .services__decor-wrap,
  .service--3 .services__decor-wrap {
    right: -120px;
    left: auto;
  }

  /* team */
  .section.team {
    min-height: auto;

    padding-bottom: 140px;

    overflow: visible;
  }
  .team__bg {
    height: 3200px;
  }
  /* (removed duplicate) */

  .team__extra {
    width: 100%;
  }

  .team__extra .team__grid {
    max-width: 520px;

    margin-left: auto;
    margin-right: auto;
  }
  /* =========================
   IPAD PORTRAIT STACK LAYOUT
========================= */

  .problem__wrapper,
  .services__inner {
    grid-template-columns: 1fr;

    align-items: center;

    text-align: center;
  }

  /* problem */

  .problem__content {
    max-width: 720px;

    margin: 0 auto;
  }

  .problem__list {
    max-width: 520px;

    margin: 0 auto;
  }

  /* services */

  .services__content,
  .service:nth-child(even) .services__content {
    width: 100%;

    margin-left: auto;
    margin-right: auto;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    order: 2;
  }
  .service:nth-child(even) .services__description,
  .services__description {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
  }

  .services__media,
  .service:nth-child(even) .services__media {
    order: 1;
  }

  .services__description {
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {
  .hero__title {
    font-size: 28px;
  }
  .services__heading {
    font-size: 22px;

    letter-spacing: 0.2px;
  }
}
