:root {
  --orange: #e98c65;
  --gold: #f9c754;
  --blue: #30779b;
  --purple: #9d428d;
  --purple-dark: #4e1f4f;
  --ink: #18121f;
  --muted: #6f6678;
  --line: #eee8f1;
  --paper: #ffffff;
  --soft: #f7f4f8;
  --shadow: 0 24px 70px rgba(34, 22, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.is-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.entry-screen {
  --entry-x: 0px;
  --entry-y: 0px;
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 64px);
  color: #fff;
  overflow: hidden;
  transition: opacity 700ms ease, transform 900ms cubic-bezier(.16, 1, .3, 1), visibility 700ms ease;
}

.entry-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.entry-screen > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(calc(var(--entry-x) * -0.45), calc(var(--entry-y) * -0.45), 0) scale(1.08);
  transition: transform 220ms ease-out;
}

.entry-screen.is-hidden > img {
  transform: scale(1);
}

.entry-screen__tiles {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}

.entry-screen__tiles::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: calc(100% / 6) calc(100% / 4);
  opacity: 0.22;
  mix-blend-mode: screen;
}

.entry-screen__tile {
  background-image: url("../img/slider-nosotros-1920x1080.png");
  background-repeat: no-repeat;
  background-size: 600% 400%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.94);
  animation: build-tile 1100ms cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(var(--tile-index) * 55ms);
}

@keyframes build-tile {
  0% {
    opacity: 0;
    clip-path: inset(50% 50% 50% 50%);
    transform: translate3d(0, 20px, 0) scale(0.92);
  }

  70% {
    opacity: 0.48;
  }

  100% {
    opacity: 0;
    clip-path: inset(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.entry-screen__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(19, 13, 27, 0.86) 0%, rgba(78, 31, 79, 0.58) 38%, rgba(48, 119, 155, 0.18) 100%),
    radial-gradient(circle at 20% 10%, rgba(249, 199, 84, 0.28), transparent 28%);
  transform: translate3d(calc(var(--entry-x) * 0.08), calc(var(--entry-y) * 0.08), 0);
  transition: transform 220ms ease-out;
}

.entry-screen__content {
  position: relative;
  z-index: 3;
  width: min(560px, 100%);
  max-height: calc(100vh - clamp(36px, 8vw, 128px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.entry-logo {
  display: inline-flex;
  width: clamp(60px, 7vw, 78px);
  margin-bottom: clamp(18px, 3vh, 28px);
}

.entry-screen h1,
.section-copy h2 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.entry-screen h1 {
  max-width: 720px;
  font-size: clamp(2.7rem, 6.1vw, 5.05rem);
  line-height: 0.96;
}

.entry-screen p:not(.eyebrow) {
  max-width: 520px;
  margin: clamp(14px, 2vh, 20px) 0 clamp(18px, 3vh, 28px);
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.entry-screen .eyebrow {
  margin-bottom: clamp(8px, 1.6vh, 12px);
  color: var(--gold);
}

.page-shell {
  min-height: 100vh;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease 220ms, transform 700ms ease 220ms;
}

body.has-entered .page-shell {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 72px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 800;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
}

.primary-nav a::before {
  content: "";
  position: absolute;
  inset: 6px auto 6px 8px;
  width: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  opacity: 0.12;
  transition: inset 260ms ease, width 260ms ease, opacity 260ms ease;
  z-index: -1;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--ink);
}

.primary-nav a:hover::before,
.primary-nav a:focus-visible::before {
  inset: 2px;
  width: calc(100% - 4px);
  opacity: 0.18;
}

.primary-nav svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  filter: drop-shadow(0 0 0 rgba(249, 199, 84, 0));
  transition: color 260ms ease, filter 260ms ease, transform 260ms ease;
}

.primary-nav a:hover svg,
.primary-nav a:focus-visible svg {
  color: var(--purple);
  filter: drop-shadow(0 9px 12px rgba(157, 66, 141, 0.28));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
}

.intro-section,
.process-section,
.request-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
}

.section-copy h2 {
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.section-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.square-button,
.mini-button {
  --button-color: var(--gold);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 26px 0 34px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(24, 18, 31, 0.08);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.square-button::before,
.mini-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--button-color);
  transition: width 260ms ease;
  z-index: -1;
}

.square-button::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  order: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}

.square-button:hover::before,
.square-button:focus-visible::before,
.mini-button:hover::before,
.mini-button:focus-visible::before {
  width: 100%;
}

.square-button:hover::after,
.square-button:focus-visible::after {
  transform: scaleX(1);
}

.square-button:hover,
.square-button:focus-visible,
.mini-button:hover,
.mini-button:focus-visible {
  color: #18121f;
  border-color: var(--button-color);
}

.square-button svg,
.mini-button svg {
  width: 18px;
  height: 18px;
}

.square-button--gold,
.mini-button--gold {
  --button-color: var(--gold);
}

.square-button--orange,
.mini-button--orange {
  --button-color: var(--orange);
}

.square-button--blue,
.mini-button--blue {
  --button-color: #9bd4ee;
}

.square-button--purple,
.mini-button--purple {
  --button-color: #e7b1de;
}

.image-lift,
.location-card__images {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.image-lift img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.image-lift::after,
.location-card__images::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 199, 84, 0.28), rgba(48, 119, 155, 0.26));
  opacity: 0;
  transition: opacity 320ms ease;
}

.image-lift:hover img,
.location-card:hover .location-card__image {
  transform: scale(1.08) rotate(1deg);
  filter: saturate(1.12) contrast(1.04);
}

.image-lift:hover::after,
.location-card:hover .location-card__images::after {
  opacity: 1;
}

.image-lift figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 10px 14px;
  color: #fff;
  background: rgba(24, 18, 31, 0.72);
  backdrop-filter: blur(8px);
}

.value-grid,
.equal-card-grid,
.location-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.value-card,
.credit-card,
.location-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(24, 18, 31, 0.08);
}

.value-card {
  padding: 26px;
}

.value-card svg {
  width: 32px;
  height: 32px;
  color: var(--purple);
  margin-bottom: 36px;
}

.value-card h3,
.credit-card h3,
.location-card h3,
.process-board h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.value-card p,
.credit-card p,
.location-card p,
.process-board p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.credit-section {
  width: min(1320px, calc(100% - 40px));
}

.equal-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
}

.credit-card {
  position: relative;
  overflow: hidden;
}

.credit-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.credit-card:hover img {
  transform: scale(1.08);
  filter: grayscale(0.25) brightness(1.04);
}

.credit-card div {
  flex: 1;
  padding: 24px;
}

.mini-button {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 36px;
  padding: 0 12px 0 18px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  box-shadow: none;
}

.process-section {
  width: 100%;
  padding-inline: clamp(20px, 6vw, 84px);
  background: var(--soft);
}

.process-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.process-board article {
  position: relative;
  min-height: 210px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(24, 18, 31, 0.08);
  overflow: hidden;
}

.process-board article::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--purple), var(--blue));
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 300ms ease;
}

.process-board article:hover::before {
  transform: scaleX(1);
}

.process-board span {
  color: var(--gold);
  font-weight: 900;
}

.process-board svg {
  display: block;
  width: 34px;
  height: 34px;
  margin: 32px 0 18px;
  color: var(--blue);
}

.locations-section {
  width: min(1280px, calc(100% - 40px));
}

.location-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 36px;
}

.location-card {
  padding-bottom: 22px;
  overflow: hidden;
}

.location-card__images {
  width: 100%;
  aspect-ratio: 16 / 10;
  box-shadow: none;
}

.location-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 320ms ease, transform 500ms ease, filter 500ms ease;
}

.location-card__image--hover {
  opacity: 0;
}

.location-card:hover .location-card__image--hover {
  opacity: 1;
}

.location-card h3,
.location-card p,
.location-card .square-button {
  margin-left: 22px;
  margin-right: 22px;
}

.location-card h3 {
  margin-top: 24px;
}

.location-card p {
  flex: 1;
  margin-bottom: 24px;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.request-form label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-weight: 800;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 15px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(157, 66, 141, 0.12);
}

.form-wide {
  grid-column: 1 / -1;
}

.partners-section {
  text-align: center;
}

.partners-section .section-copy h2,
.partners-section .section-copy p {
  margin-inline: auto;
}

.social-icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

.social-icon-row a {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(24, 18, 31, 0.08);
  transition: transform 260ms ease, color 260ms ease, background 260ms ease;
}

.social-icon-row a:hover,
.social-icon-row a:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  transform: translateY(-10px) rotate(6deg);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding: 54px clamp(20px, 6vw, 84px);
  color: #fff;
  background: var(--ink);
}

.site-footer img {
  width: 82px;
  height: auto;
}

.site-footer nav {
  display: grid;
  gap: 12px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer svg {
  width: 17px;
  height: 17px;
}

.whatsapp-button {
  width: fit-content;
  padding: 11px 14px;
  color: #fff !important;
  background: #25d366;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--purple);
  border: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
  cursor: pointer;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    background: #fff;
    border: 1px solid var(--line);
  }

  .menu-toggle span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .primary-nav {
    position: fixed;
    inset: 88px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    justify-content: flex-start;
  }

  .intro-section,
  .process-section,
  .request-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .value-grid,
  .equal-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .entry-screen {
    align-items: end;
    padding: 22px;
  }

  .entry-screen h1 {
    font-size: clamp(2.25rem, 13vw, 3.65rem);
  }

  .entry-screen__content {
    max-height: calc(100vh - 44px);
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 72px 0;
  }

  .value-grid,
  .equal-card-grid,
  .location-grid,
  .process-board,
  .request-form {
    grid-template-columns: 1fr;
  }

  .form-wide {
    grid-column: auto;
  }

  .square-button {
    width: 100%;
  }
}
