/* One background under the entire document, including the spaces between sections. */
body {
  --bg: #050f26;
  background:
    radial-gradient(ellipse 66% clamp(34rem, 75vw, 65rem) at 72% 5%, #1651a437, transparent),
    radial-gradient(ellipse 54% clamp(34rem, 68vw, 63rem) at 97% 29%, #26478229, transparent),
    radial-gradient(ellipse 62% clamp(36rem, 78vw, 69rem) at 15% 50%, #125ba62e, transparent),
    radial-gradient(ellipse 70% clamp(39rem, 82vw, 76rem) at 86% 76%, #273f872d, transparent),
    radial-gradient(ellipse 55% clamp(30rem, 67vw, 58rem) at 38% 89%, #412d7226, transparent),
    linear-gradient(180deg, #071632, var(--bg) 26%, #071632 62%, #040c20);
  background-repeat: no-repeat;
}

.hero-art {
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
}

@media (min-width: 1280px) {
  .hero-art {
    right: calc(1% + clamp(0px, (100% - 1280px) / 6, 105px));
  }

  .hero .copy {
    max-width: 790px;
  }
}

.hero h1 {
  margin-block-start: 0;
  line-height: 1.075;
}

.hero-action {
  display: grid;
  inline-size: fit-content;
  max-inline-size: 100%;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-block-size: clamp(3.625rem, 4.85vw, 4.125rem);
  padding: .85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: .95rem;
  background:
    linear-gradient(155deg, #2b71f5, #195fe4 55%, #164dc9) padding-box,
    linear-gradient(165deg, #a1ccff, #568ffb 48%, #2052ba) border-box;
  box-shadow: inset 0 1px 0 #ffffff21, inset 0 -2px 0 #10339c55,
    0 4px 8px #03102e49, 0 10px 28px -10px #0961ff90;
  color: #fff;
  font: 800 clamp(1.125rem, 1.35vw, 1.25rem)/1.2 var(--renduva-font);
  letter-spacing: -.025em;
  text-align: center;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero-cta:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
  }
}

.hero-cta:focus-visible {
  outline: 2px solid #b6e4ff;
  outline-offset: 4px;
}

.hero-cta:active {
  filter: brightness(.94);
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta { transition: none; }
  .hero-cta:is(:hover, :active) { transform: none; }
}

@media (min-width: 1001px) {
  .hero h1 {
    font-size: clamp(56px, 5.62vw, 104px);
  }
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(38px, 12.1vw, 66px);
  }
}

@media (forced-colors: none) {
  h2 .gradient {
    filter: saturate(2.1875);
  }

  h2 .gradient {
    background-image: linear-gradient(99deg, #3ca4ff 0%, #04c8ff 41.7%, #e597df 100%);
  }

  .hero h1 > .hero-title-pearl {
    background: linear-gradient(174deg, #f1f7ff 4%, #fff 34%, #fff 43%, #e8f0fb 76%, #d6e5f7 100%);
    background-clip: text;
    color: transparent;
  }

  .hero h1 > .hero-title-pearl:first-child {
    padding-inline-end: .08em;
    margin-inline-end: -.08em;
  }
}

@media (forced-colors: active) {
  .hero h1 > .gradient {
    background-image: none;
    color: CanvasText;
  }
}

.group-header img,
.core-frame img {
  mix-blend-mode: normal;
  mask-image: radial-gradient(ellipse farthest-side, #000 72%, #000b 89%, transparent);
}

.meeting {
  padding-block: clamp(3rem, 6vw, 6.5rem);
  padding-block-end: clamp(1.5rem, 2.4vw, 2.75rem);
}

#proyectos .section-head > p,
#cifras .stats-note {
  max-width: min(100%, 24rem);
  padding-inline-start: .85em;
  border-inline-start: 1px solid #59ddfb;
  border-image: linear-gradient(180deg, #59ddfb, #bd74fd) 1;
  color: #f0f5ff;
  text-wrap: pretty;
}

#servicios .services-listing-intro,
#proyectos .section-head > p,
#cifras .stats-note {
  font-size: clamp(1rem, .89rem + .26vw, 1.2rem);
  font-weight: 700;
  line-height: 1.42;
}

main > :is(#servicios, #proyectos) {
  display: grid;
  align-items: center;
  min-block-size: calc(100svh - var(--section-header-space, 105px));
  padding-block: clamp(1.5rem, 3.8svh, 3.5rem);
}

main > :is(#servicios, #proyectos) > .wrap {
  width: 100%;
  max-width: calc(109rem + 2 * var(--pad));
}

@media (min-width: 1001px) {
  main > :is(#servicios, #proyectos) > .wrap {
    --pad: clamp(2rem, 3.8vw, 6.25rem);
  }

  :is(#servicios, #proyectos) .section-head {
    margin-block-end: clamp(1.25rem, 3.5svh, 2.8rem);
  }

  #servicios .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(12rem, 17vw, 18rem);
    column-gap: clamp(1rem, 2.1vw, 3rem);
  }

  #servicios .section-head h2 {
    max-width: none;
    font-size: clamp(2.4rem, min(4.1vw, 6.9svh), 4.75rem);
  }

  #proyectos .section-head h2 {
    font-size: clamp(2.5rem, min(5.2vw, 8.3svh), 4.75rem);
  }
}

@media (min-width: 1001px) and (max-height: 960px) {
  main > :is(#servicios, #proyectos) {
    padding-block: clamp(1.05rem, 2.2svh, 2rem);
  }

  :is(#servicios, #proyectos) .section-head {
    margin-block-end: clamp(.85rem, 2svh, 1.35rem);
  }
}

#reunion {
  padding-block-end: 0;
}

#reunion + .faq {
  padding-block-start: clamp(3rem, 5vw, 6rem);
}

.meeting + .method {
  padding-block-start: clamp(2.5rem, 4vw, 4rem);
}

.meeting-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  align-items: center;
  text-align: center;
  gap: clamp(1.5rem, 2.8vw, 3rem);
  container-type: inline-size;
  padding: clamp(1.4rem, 3vw, 3.25rem);
  border: 1px solid transparent;
  border-radius: clamp(1.15rem, 1.8vw, 1.65rem);
  background:
    linear-gradient(110deg, #061326, #081a34 73%, #073064) padding-box,
    linear-gradient(105deg, #1689ff, #29ceff 67%, #19a2ff) border-box;
  box-shadow: inset 0 0 28px #39a7ff12, 0 10px 38px #03102242;
}

.meeting-title {
  --section-title-line-height: 1.075;
  font-size: clamp(1.75rem, 3.4cqw, 2.75rem);
  letter-spacing: var(--renduva-heading-tracking);
  text-wrap: pretty;
}

.meeting-cta {
  display: flex;
  width: 100%;
  min-height: 51px;
  margin-top: clamp(1.25rem, 2vw, 1.8rem);
  border-radius: 999px;
  border-color: #49c1ff7a;
  background: linear-gradient(105deg, #0756df, #0879e5 63%, #168eca);
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(1.0625rem, 6cqw, 1.25rem);
}

.meeting-copy {
  padding-inline-start: clamp(1.5rem, 2.8vw, 3rem);
  border-inline-start: 1px solid #269fff92;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1rem, 1.9cqw, 1.4rem);
  line-height: 1.48;
  text-wrap: pretty;
}

@media (max-width: 760px) {
  .meeting-panel {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .meeting-copy {
    padding: 1.05rem 0 0;
    border-inline-start: 0;
    border-block-start: 1px solid #269fff65;
  }
}

.footer {
  padding-block: 1.5rem calc(3.65rem + env(safe-area-inset-bottom));
  border-block-start: 1px solid #99b3e025;
  font-size: .875rem;
  color: #c6d4ec;
}

.footer .foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .65rem clamp(1.25rem, 3vw, 2.5rem);
  margin-block-end: 1rem;
  text-align: center;
}

.footer .logo {
  width: clamp(9.5rem, 13vw, 10.75rem);
  max-width: 100%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1rem;
}

.footer-contact {
  display: flex;
  flex: 0 0 100%;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .25rem .85rem;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.footer-contact > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem .85rem;
  font-size: .8rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  text-align: center;
  gap: .25rem 1.5rem;
  padding-block-start: .65rem;
  border-block-start: 1px solid #99b3e025;
  font-size: .75rem;
  color: #a7b9d5;
}

.footer a:not(.logo) {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--renduva-font);
  font-size: clamp(.72rem, .9vw, .98rem);
  font-weight: 800;
  line-height: normal;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6'%3E%3Ccircle cx='3' cy='3' r='3' fill='%2387dfff'/%3E%3C/svg%3E") center / contain no-repeat;
}
