/* style.css */
:root {
  /* Paleta principal actualizada */
  --bg: #010919;               /* Azul noche */
  --bg-soft: #03122b;          /* Azul noche aclarado para jerarquía */
  --surface: #061c40;          /* Superficie base */
  --surface-light: #092857;    /* Superficie elevada */
  --text: #EFF2F7;             /* Blanco platino */
  --muted: #8ea3c2;            /* Blanco platino atenuado */
  
  --line: rgba(239, 242, 247, 0.1);
  --line-strong: rgba(239, 242, 247, 0.18);
  
  --accent: #005EDD;           /* Azul tecnológico */
  --accent-bright: #00CDE8;    /* Cian de innovación */
  --copper: #00A6D6;           /* Tono de transición cyan-azul */
  
  --accent-soft: rgba(0, 94, 221, 0.12);
  --whatsapp: #25d366;
  
  --title: "Syne", sans-serif;
  --body: "Inter", sans-serif;
  --container: 1240px;
  --radius: 26px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(0, 94, 221, 0.65);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(6rem, 10vw, 9rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  content: "";
}

.section-title {
  max-width: 850px;
  font-family: var(--title);
  font-size: clamp(2.55rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 4rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-copy {
  max-width: 470px;
  justify-self: end;
  color: var(--muted);
  font-size: 1.03rem;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.9rem 1.55rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #003B8E);
  color: #fff;
  box-shadow: 0 14px 38px rgba(0, 94, 221, 0.23);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow: 0 18px 42px rgba(0, 205, 232, 0.32);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(239, 242, 247, 0.035);
  color: #fff;
}

.button-secondary:hover {
  border-color: rgba(239, 242, 247, 0.34);
  background: rgba(239, 242, 247, 0.08);
}

.button-light {
  background: var(--text);
  color: var(--bg);
}

.button-light:hover {
  background: #d8e2f0;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.2rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.35rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.text-link:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 2000;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 18px rgba(0, 205, 232, 0.7);
}

/* NAVEGACIÓN */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(1, 9, 25, 0.82);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 43px;
  object-fit: contain;
}

.brand span {
  font-family: var(--title);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links > a:not(.button) {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 1px;
  background: var(--accent-bright);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links > a:not(.button):hover::after,
.nav-links > a:not(.button).active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  min-height: 46px;
  padding-inline: 1.25rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(239, 242, 247, 0.035);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.25s ease;
}

.menu-toggle.active span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* HERO */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 10rem 0 7rem;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 25%;
  background: linear-gradient(transparent, rgba(1, 9, 25, 0.9));
  content: "";
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(239, 242, 247, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 242, 247, 0.065) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(to bottom, #000 15%, transparent 92%);
}

.hero-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-glow-one {
  top: -22rem;
  right: -12rem;
  width: 48rem;
  height: 48rem;
  background: radial-gradient(
    circle,
    rgba(0, 94, 221, 0.23),
    transparent 68%
  );
}

.hero-glow-two {
  bottom: -18rem;
  left: -16rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(
    circle,
    rgba(0, 205, 232, 0.1),
    transparent 70%
  );
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(239, 242, 247, 0.025);
  padding: 0.5rem 0.85rem;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 5px rgba(0, 205, 232, 0.12);
  animation: pulse 2s infinite;
}

.hero-title {
  max-width: 1130px;
  font-family: var(--title);
  font-size: clamp(3.5rem, 8.2vw, 7.9rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.87;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
  background: linear-gradient(
    95deg,
    var(--accent-bright),
    var(--accent) 50%,
    #8ea3c2
  );
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 4rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.hero-intro {
  max-width: 650px;
}

.hero-intro > p {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-signature {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1.15rem;
  border-left: 1px solid var(--line-strong);
  padding-left: 1.6rem;
}

.hero-signature strong {
  font-family: var(--title);
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.08em;
  line-height: 1;
}

.hero-signature span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(-100%);
  transform-origin: right bottom;
}

.scroll-cue span {
  width: 38px;
  height: 1px;
  background: currentColor;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(0, 205, 232, 0.12);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 205, 232, 0);
  }
}

/* MARQUESINA */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 1.15rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding-right: 1.8rem;
}

.marquee span {
  font-family: var(--title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee b {
  color: var(--accent-bright);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* NOSOTROS */

.about {
  background:
    radial-gradient(
      circle at 80% 50%,
      rgba(0, 94, 221, 0.06),
      transparent 25rem
    ),
    var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(4rem, 8vw, 7rem);
}

.about-visual {
  position: relative;
}

.about-image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    transparent 40%,
    rgba(0, 94, 221, 0.2)
  );
  content: "";
  pointer-events: none;
}

.about-image img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.08);
  transition:
    transform 0.7s ease,
    filter 0.7s ease;
}

.about-visual:hover img {
  transform: scale(1.035);
  filter: saturate(0.95) contrast(1.05);
}

.floating-card {
  position: absolute;
  right: -2rem;
  bottom: 2rem;
  display: flex;
  max-width: 330px;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(6, 28, 64, 0.9);
  padding: 1.25rem;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.floating-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: 1.25rem;
}

.floating-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.floating-card p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.about-content > p {
  max-width: 630px;
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.about-content > p strong {
  color: var(--text);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 2.4rem;
  border-block: 1px solid var(--line);
}

.about-values div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.about-values div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.about-values div:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: 1rem;
}

.about-values div:nth-child(even) {
  padding-left: 1rem;
}

.about-values span {
  color: var(--accent-bright);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.about-values strong {
  font-size: 0.83rem;
}

/* SERVICIOS */

.services {
  background:
    linear-gradient(rgba(239, 242, 247, 0.022) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(239, 242, 247, 0.022) 1px,
      transparent 1px
    ),
    var(--bg);
  background-size: 80px 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  display: flex;
  min-height: 570px;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 18, 43, 0.7);
  padding: 2rem;
  isolation: isolate;
  transition:
    background 0.35s ease,
    transform 0.35s ease;
}

.service-card::before {
  position: absolute;
  inset: auto -20% -45% auto;
  z-index: -1;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 205, 232, 0.18),
    transparent 68%
  );
  content: "";
  opacity: 0;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.service-card:hover {
  background: rgba(6, 28, 64, 0.96);
  transform: translateY(-5px);
}

.service-card:hover::before {
  opacity: 1;
  transform: scale(1.15);
}

.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.service-number {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.service-icon {
  width: 66px;
  color: var(--accent-bright);
  filter: drop-shadow(0 8px 20px rgba(0, 205, 232, 0.16));
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition:
    color 0.3s ease,
    transform 0.35s ease;
}

.service-card:hover .service-icon {
  color: var(--accent);
  transform: translateY(-4px) rotate(-2deg);
}

.service-content {
  margin-top: 3.4rem;
}

.service-content h3 {
  min-height: 2.3em;
  font-family: var(--title);
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-transform: uppercase;
}

.service-content > p {
  min-height: 4.9em;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-content ul {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.6rem;
  list-style: none;
}

.service-content li {
  position: relative;
  padding-left: 1rem;
  color: var(--text);
  font-size: 0.78rem;
}

.service-content li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-bright);
  content: "";
}

.service-open {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: transparent;
  padding-top: 1.25rem;
  color: var(--text);
  cursor: pointer;
  font-size: 0.77rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.service-open span {
  color: var(--accent-bright);
  font-size: 1.05rem;
  transition: transform 0.25s ease;
}

.service-open:hover span {
  transform: translate(3px, -3px);
}

/* PROCESO */

.process {
  overflow: hidden;
  background: var(--bg-soft);
}

.process::before {
  position: absolute;
  top: 0;
  right: -15rem;
  width: 35rem;
  height: 35rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 205, 232, 0.08),
    transparent 70%
  );
  content: "";
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-step {
  display: grid;
  grid-template-columns: 80px minmax(230px, 0.7fr) minmax(280px, 1fr);
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-block: 2.1rem;
  transition:
    padding 0.3s ease,
    background 0.3s ease;
}

.process-step:hover {
  background: linear-gradient(90deg, var(--accent-soft), transparent 75%);
  padding-inline: 1rem;
}

.process-step > span {
  color: var(--accent-bright);
  font-family: var(--title);
  font-size: 0.82rem;
  font-weight: 700;
}

.process-step small {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.process-step h3 {
  font-family: var(--title);
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  letter-spacing: -0.035em;
}

.process-step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* CONTACTO */

.contact {
  background: var(--bg);
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 4rem;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 90% 15%,
      rgba(255, 255, 255, 0.18),
      transparent 19rem
    ),
    linear-gradient(125deg, var(--accent), #003B8E);
  padding: clamp(2.5rem, 6vw, 5.5rem);
  box-shadow: 0 34px 100px rgba(0, 94, 221, 0.25);
}

.contact-panel::after {
  position: absolute;
  right: -6rem;
  bottom: -10rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.contact-panel .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.contact-panel .eyebrow::before {
  background: #fff;
}

.contact-copy h2 {
  font-family: var(--title);
  font-size: clamp(2.6rem, 5.5vw, 5.1rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
  text-transform: uppercase;
}

.contact-copy h2 span {
  color: rgba(255, 255, 255, 0.56);
}

.contact-copy p {
  max-width: 670px;
  margin-top: 1.7rem;
  color: rgba(255, 255, 255, 0.78);
}

.contact-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.contact-details {
  display: grid;
  gap: 0.45rem;
  margin-top: 2rem;
}

.contact-details a,
.contact-details span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  text-decoration: none;
}

.contact-details a:hover {
  color: #fff;
}

/* FOOTER */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 5rem 0 1.7rem;
}

.footer-grid {
  display: grid;
  grid-template-columns:
    minmax(300px, 1.5fr)
    repeat(2, minmax(150px, 0.5fr));
  gap: 4rem;
}

.footer-main p {
  max-width: 430px;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.footer-column h3 {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: var(--text);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-column a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  overflow-y: auto;
  place-items: center;
  background: rgba(1, 9, 25, 0.82);
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  width: min(100%, 660px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 95% 0%,
      rgba(0, 205, 232, 0.16),
      transparent 18rem
    ),
    var(--surface);
  padding: clamp(2rem, 6vw, 4rem);
  box-shadow: var(--shadow);
  transform: translateY(28px) scale(0.97);
  transition: transform 0.35s ease;
}

.modal.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(239, 242, 247, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.modal-close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}

.modal-number {
  position: absolute;
  top: 1.5rem;
  left: 1.6rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.modal-icon {
  width: 82px;
  margin: 1.5rem 0 2.3rem;
  color: var(--accent-bright);
}

.modal-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.modal h2 {
  max-width: 520px;
  font-family: var(--title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.modal-dialog > p {
  margin-top: 1.3rem;
  color: var(--muted);
}

.modal ul {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0 2rem;
  list-style: none;
}

.modal li {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 0 0 0.7rem 1.2rem;
  color: var(--text);
  font-size: 0.86rem;
}

.modal li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
  content: "";
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 900;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 20px 46px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 30px;
  fill: currentColor;
}

/* ANIMACIONES DE ENTRADA */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.05s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.13s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.21s; }

/* RESPONSIVE */

@media (max-width: 1050px) {
  .nav-links { gap: 1.15rem; }
  .nav-links > a:not(.button) { font-size: 0.72rem; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 540px; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-side { align-items: flex-start; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 86px 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.1rem;
    background:
      radial-gradient(
        circle at 80% 10%,
        rgba(0, 205, 232, 0.13),
        transparent 22rem
      ),
      rgba(1, 9, 25, 0.98);
    padding: 3rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links > a:not(.button) {
    font-family: var(--title);
    font-size: clamp(1.8rem, 7vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: none;
  }
  .nav-links .nav-cta { margin-top: 1.2rem; }
  .hero-bottom { align-items: flex-start; }
  .hero-signature { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 1.6rem; }
  .section-copy { justify-self: start; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 680px; }
  .floating-card { right: 1.5rem; }
  .process-step { grid-template-columns: 55px minmax(220px, 0.75fr) 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 2rem), var(--container)); }
  .section { padding-block: 5rem; }
  .nav { min-height: 76px; }
  .brand img { width: 42px; height: 38px; }
  .brand span { font-size: 1.15rem; }
  .nav-links { inset: 76px 0 0; padding: 2rem; }
  .hero { min-height: auto; padding: 8.5rem 0 5.5rem; }
  .hero-grid { background-size: 58px 58px; }
  .hero-badge { font-size: 0.6rem; letter-spacing: 0.07em; }
  .hero-title { font-size: clamp(3rem, 15vw, 5rem); line-height: 0.91; }
  .hero-bottom { margin-top: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .scroll-cue { display: none; }
  .section-title { font-size: clamp(2.35rem, 12vw, 3.6rem); }
  .about-image img { min-height: 420px; }
  .floating-card { right: 1rem; bottom: 1rem; left: 1rem; max-width: none; }
  .about-values { grid-template-columns: 1fr; }
  .about-values div,
  .about-values div:nth-child(odd),
  .about-values div:nth-child(even) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-inline: 0;
  }
  .about-values div:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .about-values div:last-child { border-bottom: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 530px; padding: 1.5rem; }
  .service-content h3 { min-height: 0; }
  .service-content > p { min-height: 0; }
  .process-step { grid-template-columns: 42px 1fr; gap: 1rem; padding-block: 1.6rem; }
  .process-step p { grid-column: 2; }
  .contact-panel { gap: 2.5rem; border-radius: 24px; }
  .contact-copy h2 { font-size: clamp(2.3rem, 12vw, 3.8rem); }
  .contact-side .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-main { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .modal { align-items: end; padding: 0.7rem; }
  .modal-dialog {
    max-height: calc(100svh - 1.4rem);
    overflow-y: auto;
    border-radius: 24px;
    padding: 2rem 1.4rem;
  }
  .modal-icon { width: 68px; }
  .whatsapp-float { right: 1rem; bottom: 1rem; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}