/* Design update 2026-10 (Figma "HAPPY_WEB-DEF").
 * Loaded after happy-mx.webflow.css on every page.
 * Sizes follow the existing convention: Figma px (2531 frame) / 27.97 = rem.
 */

/* ---------- Animated underline / highlighter (driven by js/happy.js) ---------- */
.u-line {
  text-decoration: none !important;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - .17em);
  background-size: 0% max(1px, .028em);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .9s cubic-bezier(.65, 0, .35, 1);
}

.u-line.is-in {
  background-size: 100% max(1px, .028em);
}

.u-mark {
  background-image: linear-gradient(var(--fosfo), var(--fosfo));
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 0% 100%;
  padding: 0 .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .8s cubic-bezier(.65, 0, .35, 1);
}

.u-mark.is-in {
  background-size: 100% 100%;
}

/* ---------- Mobile menu (built by js/happy.js) ---------- */
.hp-menu-toggle,
.hp-menu-close {
  cursor: pointer;
  background: none;
  border: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  display: none;
}

.hp-menu-toggle span,
.hp-menu-close span {
  background-color: #fff;
  width: 26px;
  height: 2px;
  display: block;
  transition: transform .3s;
}

.hp-menu-close {
  display: flex;
}

.hp-menu-close span {
  background-color: var(--fosfo);
}

.hp-menu-close span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.hp-menu-close span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.hp-menu {
  z-index: 100;
  opacity: 0;
  background-color: var(--negro);
  flex-direction: column;
  padding: 12px 20px 32px;
  transition: opacity .3s;
  display: flex;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.hp-menu[hidden] {
  display: none;
}

.hp-menu.is-open {
  opacity: 1;
}

.hp-menu-top {
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  display: flex;
}

.hp-menu-home {
  color: #f7f7f7;
  letter-spacing: -.05em;
  font-family: Barlow, sans-serif;
  font-size: 28px;
  font-weight: 500;
  text-decoration: none;
}

.hp-menu-links {
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 6px;
  display: flex;
}

.hp-menu-link {
  color: #f7f7f7;
  letter-spacing: -.07em;
  font-family: Barlow, sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
  transition: color .2s;
}

.hp-menu-link[aria-current="page"],
.hp-menu-link:hover,
.hp-menu-link:focus-visible {
  color: var(--fosfo);
}

.hp-menu-link[aria-current="page"] {
  font-family: Playfair Display, serif;
  font-style: italic;
  letter-spacing: -.04em;
}

.hp-menu-mail {
  color: var(--fosfo);
  font-family: Barlow, sans-serif;
  font-size: 16px;
  text-decoration: none;
}

html.hp-menu-open,
html.hp-menu-open body {
  overflow: hidden;
}

/* ---------- Platiquemos (CTA) ---------- */
.hp-cta-title {
  font-size: 5.36rem;
}

.hp-cta-link {
  text-decoration: underline;
}

/* ---------- Home ---------- */
.hp-services {
  padding-left: 3.22rem;
  padding-right: 3.22rem;
  padding-bottom: 6.6rem;
}

.hp-services-head {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 84.06rem;
  margin: 0 auto .6rem;
  padding: 0 1.79rem;
  display: flex;
}

.hp-services-head .hp-services-label {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: 1.72rem;
  font-weight: 400;
  line-height: 1.17;
}

.hp-services-head .hp-meta-link {
  font-size: 1.72rem;
  font-weight: 500;
}

.hp-services .hp-services-list {
  max-width: 84.06rem;
}

.hover-container.hp-service-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.hp-services .hp-service-item {
  padding: .37rem 1.45rem .3rem;
  font-size: 4.79rem;
  line-height: 1.17;
  letter-spacing: -.09em;
}

.hp-marquee-serif {
  font-weight: 500;
}

/* ---------- Servicios ---------- */
.sv-hero {
  padding-top: 21.5rem;
  padding-bottom: 24.5rem;
}

.sv-hero-title {
  letter-spacing: -.09em;
}

.sv-hero-italic {
  font-family: Playfair Display, sans-serif;
  font-style: italic;
  font-weight: 500;
}

.sv-imgcol {
  width: 27.34%;
}

.sv-list {
  width: 70.82%;
  padding-top: 16.8rem;
}

.sv-list .sv-item {
  width: 100%;
  max-width: 66.2rem;
  padding: .93rem 1.5rem;
  cursor: default;
}

.sv-list .inside-sv-item {
  font-size: 2.86rem;
  line-height: 1.15;
  letter-spacing: -.09em;
}

/* ---------- Work ---------- */
.ns-hero-title-b.wk-work {
  text-decoration: none;
}

.wk-work-bang {
  font-family: Barlow, sans-serif;
  font-style: normal;
  font-weight: 500;
}

@media screen and (max-width: 991px) {
  .hp-cta-title {
    font-size: 64px;
  }

  .hp-services {
    padding: 40px 32px 48px;
  }

  .hp-services-head {
    padding: 0;
    margin-bottom: 16px;
  }

  .hp-services-head .hp-services-label,
  .hp-services-head .hp-meta-link {
    font-size: 22px;
  }

  .hp-services .hp-service-item {
    padding: 6px 0;
    font-size: 44px;
  }

  .sv-hero {
    padding: 180px 32px 64px;
  }

  .sv-list {
    width: 100%;
    padding-top: 0;
  }

  .sv-list .inside-sv-item {
    padding: 0;
    font-size: 32px;
  }
}

@media screen and (max-width: 767px) {
  .hp-menu-toggle {
    display: flex;
  }

  .hp-cta-title {
    font-size: 48px;
  }

  .hp-cta-text,
  .hp-cta-link {
    font-size: 18px;
  }

  .hp-footer-link {
    font-size: 16px;
  }

  .hp-footer-contact-line {
    font-size: 13px;
  }

  .hp-footer-copy {
    font-size: 11px;
  }

  .hp-services {
    padding: 32px 20px 40px;
  }

  .hp-services-head .hp-services-label,
  .hp-services-head .hp-meta-link {
    font-size: 18px;
  }

  .hp-services .hp-service-item {
    font-size: 30px;
    white-space: normal;
  }

  .hp-services .hover-image-cont {
    display: none;
  }

  .sv-hero {
    padding: 130px 20px 48px;
  }

  .sv-list .sv-item {
    padding: 8px 20px;
  }

  .sv-list .inside-sv-item {
    font-size: 24px;
  }
}
