:root {
  /* Diseño base: 1131 x 1463 px. Todo escala a partir de --u */
  --u: calc(min(100vw, 1131px) / 1131);
  --ink: #000;
  --text: #111;
  --muted: #1e1e1e;
  --body-font: "Inter", Arial, sans-serif;
}

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

html, body { background: #fff; overflow-x: hidden; }

body {
  font-family: var(--body-font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

.page {
  position: relative;
  width: calc(1131 * var(--u));
  height: calc(1463 * var(--u));
  margin: 0 auto;
  overflow: hidden;
  background: transparent; /* Cambiado a transparente para dejar ver el glow de fondo */
  z-index: 2; /* Para que el contenido esté por encima del glow */
}

/* Fondo degradado inferior a ancho completo */
.glow {
  position: absolute;
  left: 0; 
  right: 0; 
  bottom: 0;
  width: 100vw;
  height: calc(240 * var(--u));
  background:
    radial-gradient(ellipse 75% 110% at 88% 118%, #b9b9b9 0%, #d3d3d3 38%, rgba(255,255,255,0) 78%),
    linear-gradient(to bottom, rgba(255,255,255,0) 0%, #dcdcdc 75%, #cfcfcf 100%);
  z-index: 1; /* Detrás del contenido de la página */
  pointer-events: none;
}

.abs { position: absolute; white-space: nowrap; }

/* Logo (imagen) */
.logo {
  left: calc(117 * var(--u));
  top: calc(168 * var(--u));
  width: calc(171 * var(--u));
  line-height: 0;
  font-size: 0;
}
.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Texto principal */
.intro {
  left: calc(113 * var(--u));
  top: calc(350 * var(--u));
  font-weight: 600;
  font-size: calc(20.6 * var(--u));
  line-height: calc(27 * var(--u));
  letter-spacing: -0.04em;
  color: var(--ink);
}
.intro p + p { margin-top: calc(27 * var(--u)); }

/* Servicios */
.services {
  left: calc(288 * var(--u));
  top: calc(725 * var(--u));
  font-size: calc(16.2 * var(--u));
  line-height: calc(21.4 * var(--u));
  letter-spacing: -0.03em;
  color: var(--muted);
}
.services h2,
.services h3 {
  font-size: inherit;
  font-weight: 500;
  color: var(--text);
}
.services .item { margin-top: calc(21.4 * var(--u)); }
.services p { font-weight: 400; }

/* Pie */
.foot {
  top: calc(1367 * var(--u));
  font-size: calc(17 * var(--u));
  line-height: calc(21 * var(--u));
  letter-spacing: -0.04em;
  color: var(--text);
}
.foot-left { left: calc(113 * var(--u)); }
.foot-left strong { font-weight: 700; }
.foot-right { right: calc(170 * var(--u)); text-align: right; }
.foot-right a { color: inherit; text-decoration: none; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1000;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.wa-float:focus-visible { outline: 3px solid #111; outline-offset: 3px; }

/* ===== Móvil y tablet pequeña: diseño fluido con tamaños legibles ===== */
@media (max-width: 820px) {
  .page {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 48px 24px 110px;
  }

  .abs {
    position: static;
    white-space: normal;
  }

  .intro br,
  .services br { display: none; }

  .glow { height: 240px; width: 100%; }

  .logo {
    width: 170px;
    margin-bottom: 64px;
  }

  .intro {
    font-size: 19px;
    line-height: 1.4;
    letter-spacing: -0.03em;
    margin-bottom: 64px;
  }
  .intro p + p { margin-top: 1.4em; }

  .services {
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: -0.015em;
  }
  .services .item { margin-top: 1.45em; }

  footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 72px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
  }
  .foot {
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.02em;
  }
  .foot-right { text-align: right; }

  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}