/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(7rem, 12vh, 9rem) 1.25rem clamp(2.5rem, 6vh, 4rem);
  position: relative;
  overflow: hidden;
  perspective: 1400px;
}

.hero__stage {
  position: relative;
  z-index: 20;
  width: min(100%, 1240px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
}

@media (min-width: 900px) {
  .hero__stage {
    display: grid;
    grid-template-columns: minmax(0, 520px) 500px;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: center;
    column-gap: 3.5rem;
    row-gap: 1.75rem;
    padding-inline: clamp(1.5rem, 3vw, 2.5rem);
  }

  .hero__copy {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__actions {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .hero__side {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* Blurred perspective video-like frames (decorative) */
.hero__ghosts {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ghost-frame {
  position: absolute;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 32, 0.55);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(46, 138, 221, 0.08);
  overflow: hidden;
  opacity: 0.55;
  filter: blur(10px);
  transform-style: preserve-3d;
  animation: ghost-float 12s ease-in-out infinite;
}

.ghost-frame__inner {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 25%, rgba(46, 138, 221, 0.35), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(49, 46, 129, 0.45), transparent 50%),
    linear-gradient(160deg, #0a1224 0%, #05080f 55%, #0d1830 100%);
  overflow: hidden;
}

.ghost-frame__bar {
  position: absolute;
  top: 10%;
  left: 8%;
  width: 42%;
  height: 8%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
}

.ghost-frame__blob {
  position: absolute;
  border-radius: 18px;
  filter: blur(2px);
}

.ghost-frame__blob--a {
  width: 48%;
  height: 36%;
  top: 28%;
  left: 12%;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.55), rgba(37, 99, 235, 0.2));
}

.ghost-frame__blob--b {
  width: 34%;
  height: 28%;
  bottom: 14%;
  right: 12%;
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.35), rgba(46, 138, 221, 0.15));
  border-radius: 50%;
}

.ghost-frame__blob--c {
  width: 58%;
  height: 42%;
  top: 30%;
  right: 8%;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.4), rgba(15, 23, 42, 0.1));
}

.ghost-frame__blob--d {
  width: 40%;
  height: 22%;
  bottom: 18%;
  left: 16%;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-frame__lines {
  position: absolute;
  inset: 55% 12% 18% 12%;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.12) 0 2px,
    transparent 2px 12px
  );
  opacity: 0.45;
  border-radius: 4px;
}

.ghost-frame__grid {
  position: absolute;
  inset: 22% 10% 16% 10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.4;
  border-radius: 10px;
}

.ghost-frame--1 {
  width: clamp(160px, 18vw, 280px);
  height: clamp(110px, 12vw, 180px);
  top: 12%;
  left: 2%;
  --gx: -18deg;
  --gy: 22deg;
  --gz: -8deg;
  filter: blur(12px);
  opacity: 0.48;
  animation-duration: 14s;
}

.ghost-frame--2 {
  width: clamp(140px, 15vw, 230px);
  height: clamp(180px, 20vw, 300px);
  top: 8%;
  right: 3%;
  --gx: 16deg;
  --gy: -24deg;
  --gz: 6deg;
  filter: blur(14px);
  opacity: 0.42;
  animation-duration: 16s;
  animation-delay: -3s;
}

.ghost-frame--3 {
  width: clamp(180px, 20vw, 320px);
  height: clamp(100px, 11vw, 170px);
  bottom: 14%;
  left: 1%;
  --gx: 12deg;
  --gy: 28deg;
  --gz: 4deg;
  filter: blur(13px);
  opacity: 0.45;
  animation-duration: 15s;
  animation-delay: -6s;
}

.ghost-frame--4 {
  width: clamp(150px, 16vw, 250px);
  height: clamp(95px, 10vw, 150px);
  bottom: 10%;
  right: 4%;
  --gx: -14deg;
  --gy: -20deg;
  --gz: -5deg;
  filter: blur(11px);
  opacity: 0.5;
  animation-duration: 13s;
  animation-delay: -2s;
}

.ghost-frame--5 {
  width: clamp(90px, 10vw, 150px);
  height: clamp(120px, 14vw, 210px);
  top: 42%;
  left: -1%;
  --gx: 20deg;
  --gy: 18deg;
  --gz: -10deg;
  filter: blur(16px);
  opacity: 0.35;
  animation-duration: 18s;
  animation-delay: -8s;
}

.ghost-frame--6 {
  width: clamp(100px, 11vw, 170px);
  height: clamp(70px, 8vw, 120px);
  top: 48%;
  right: -1%;
  --gx: -10deg;
  --gy: -16deg;
  --gz: 8deg;
  filter: blur(15px);
  opacity: 0.38;
  animation-duration: 17s;
  animation-delay: -5s;
}

@media (max-width: 899px) {
  .ghost-frame--5,
  .ghost-frame--6 {
    display: none;
  }

  .ghost-frame {
    opacity: 0.32;
    filter: blur(14px);
  }

  .ghost-frame--1 {
    top: 10%;
    left: -4%;
  }

  .ghost-frame--2 {
    top: 12%;
    right: -6%;
  }

  .ghost-frame--3 {
    bottom: 8%;
    left: -8%;
  }

  .ghost-frame--4 {
    bottom: 6%;
    right: -4%;
  }
}

.hero__copy {
  flex: 1 1 auto;
  max-width: 520px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 20;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.62);
}

.hero__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--homeworld);
  box-shadow: 0 0 12px rgba(46, 138, 221, 0.7);
}

.hero__logo-wrap {
  margin: 0 0 1.2rem;
  line-height: 0;
}

.hero__logo {
  display: block;
  width: min(100%, 520px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(46, 138, 221, 0.28));
}

.hero__lead {
  font-family: var(--font);
  font-size: clamp(1.12rem, 1.9vw, 1.35rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 30rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
  letter-spacing: -0.04em;
}

.hero__lead strong {
  color: var(--text);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero__side {
  position: relative;
  width: min(100%, 500px);
  min-height: 380px;
  flex: 0 0 auto;
  z-index: 20;
}

@media (min-width: 900px) {
  .hero__side {
    width: 500px;
    min-height: 400px;
  }
}

/* Floating promo cards */
.float-card {
  position: absolute;
  width: min(100%, 320px);
  padding: 1.55rem 1.65rem 1.7rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 28, 0.72);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.45),
    0 0 70px rgba(46, 138, 221, 0.18);
  animation: float-drift 7s ease-in-out infinite;
  cursor: pointer;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.45s ease,
    background 0.45s ease;
  will-change: transform;
}

.float-card--about {
  top: 0;
  left: 0;
  --tilt: -6deg;
  --scale: 1;
  transform: rotate(var(--tilt)) scale(var(--scale));
  z-index: 2;
  width: min(100%, 340px);
}

.float-card--clashi {
  top: 58%;
  right: 0;
  bottom: auto;
  --tilt: 5deg;
  --scale: 1.06;
  transform: rotate(var(--tilt)) scale(var(--scale));
  animation-delay: -2.4s;
  z-index: 3;
  width: min(100%, 360px);
  padding: 1rem 1.1rem 1.15rem;
  overflow: visible;
}

.float-card--mini {
  width: auto;
  max-width: 180px;
  padding: 0.85rem 1.15rem;
  border-radius: 18px;
  z-index: 5;
}

.float-card--speed {
  top: 46%;
  left: 6%;
  --tilt: 3deg;
  --scale: 1;
  transform: rotate(var(--tilt)) scale(var(--scale));
  animation-delay: -1.2s;
}

.float-card--cine {
  top: 22%;
  right: 0;
  --tilt: -4deg;
  --scale: 1;
  transform: rotate(var(--tilt)) scale(var(--scale));
  animation-delay: -3.1s;
}

.float-card:hover {
  animation-play-state: paused;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(14, 24, 48, 0.88);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(46, 138, 221, 0.35);
  transform: rotate(var(--tilt)) scale(calc(var(--scale) * 1.07)) translateY(-8px);
}

.float-card--about:hover {
  z-index: 3;
}

.float-card--clashi:hover {
  z-index: 4;
}

.float-card--mini:hover {
  z-index: 7;
}

.float-card--clashi:hover {
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(255, 120, 40, 0.22);
}

.float-card .eyebrow {
  margin-bottom: 0.75rem;
  font-size: 13px;
}

.float-card__text {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.35rem;
}

.float-card__highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12em;
  font-family: var(--font);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.15;
  margin: 0;
}

.float-card__highlight span {
  display: block;
  white-space: nowrap;
}

.float-card__mini-text {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  white-space: nowrap;
}

.float-card__clashi {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 120px;
  object-fit: contain;
  object-position: center center;
  transform: scale(1.35);
  transform-origin: center center;
  filter: drop-shadow(0 0 22px rgba(255, 100, 30, 0.45));
  transition: filter 0.45s ease, transform 0.45s var(--ease);
}

.float-card--clashi:hover .float-card__clashi {
  filter: drop-shadow(0 0 32px rgba(255, 120, 40, 0.65));
  transform: scale(1.42);
}

.float-card__cursor {
  position: absolute;
  right: -12px;
  bottom: -16px;
  width: 26px;
  height: 26px;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
  animation: cursor-nudge 3.2s ease-in-out infinite;
  pointer-events: none;
  transition: transform 0.35s var(--ease);
}

.float-card:hover .float-card__cursor {
  transform: translate(6px, 8px) scale(1.08);
}

.float-card__cursor--alt {
  right: auto;
  left: -10px;
  bottom: -20px;
  animation-delay: -1.1s;
}

.float-card__cursor svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 899px) {
  .hero__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  /* Mobile order in HTML: texto → tarjetas → botones */
  .hero__side {
    order: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    width: min(100%, 320px);
    min-height: 0;
    margin: 0.35rem 0;
  }

  .hero__copy {
    order: 1;
    align-items: center;
    text-align: center;
    max-width: 100%;
    width: 100%;
  }

  .hero__actions {
    order: 3;
    justify-content: center;
    width: 100%;
    margin-top: 0.55rem;
  }

  .hero__logo-wrap {
    display: block;
    margin: 0 auto 1rem;
  }

  .hero__logo {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .hero__badge {
    margin-bottom: 0.85rem;
  }

  .hero__lead {
    margin-bottom: 0;
    margin-inline: auto;
  }

  .hero__side .float-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(100%, 280px);
    padding: 1.05rem 1.15rem 1.15rem;
    border-radius: 20px;
    margin: 0 auto;
  }

  /* Mobile: mini arriba → quiénes somos → mini abajo; sin Clashi */
  .float-card--clashi {
    display: none;
  }

  .float-card--cine {
    order: 1;
    align-self: center;
    width: auto;
    max-width: 200px;
    padding: 0.7rem 0.95rem;
    --tilt: -3deg;
    --scale: 1;
    z-index: 4;
  }

  .float-card--about {
    order: 2;
    align-self: center;
    width: min(100%, 280px);
    --tilt: -4deg;
    --scale: 1;
    z-index: 2;
  }

  .float-card--speed {
    order: 3;
    align-self: center;
    width: auto;
    max-width: 200px;
    padding: 0.7rem 0.95rem;
    --tilt: 3deg;
    --scale: 1;
    z-index: 4;
  }

  .float-card--mini {
    opacity: 1;
    background: rgba(12, 20, 40, 0.92);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(46, 138, 221, 0.22);
  }

  .float-card__text {
    font-size: 0.88rem;
  }

  .float-card__highlight {
    font-size: 1rem;
  }

  .float-card__highlight span {
    white-space: normal;
  }

  .float-card__mini-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.03em;
  }

  .float-card__cursor {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

/* Apple-style section titles */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto 3.5rem;
  width: 100%;
  max-width: none;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.section-title__eyebrow {
  font-family: var(--font);
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1.1rem;
}

.section-title__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font);
  font-size: clamp(2.1rem, 5.8vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.08;
  margin: 0;
  width: 100%;
}

.section-title__heading--single {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.22em;
}

.page-hero .section-title__heading--single .section-title__line {
  width: auto;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.section-title__line {
  display: block;
  width: max-content;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.section-title__line--bright {
  color: #f5f5f7;
}

@media (max-width: 720px) {
  .section-title__heading {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .section-title__line {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    text-wrap: balance;
  }
}

.section-title.reveal {
  filter: blur(18px);
  transform: translateY(40px);
  transition:
    opacity 1.5s var(--ease),
    transform 1.5s var(--ease),
    filter 1.5s var(--ease);
}

.section-title.reveal .section-title__eyebrow {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
  transition:
    opacity 1.15s var(--ease),
    transform 1.15s var(--ease),
    filter 1.15s var(--ease);
  transition-delay: 0s;
}

.section-title.reveal .section-title__line {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(26px);
  transition:
    opacity 1.35s var(--ease),
    transform 1.35s var(--ease),
    filter 1.35s var(--ease);
}

.section-title.reveal .section-title__line:nth-child(1) {
  transition-delay: 0.12s;
}

.section-title.reveal .section-title__line:nth-child(2) {
  transition-delay: 0.26s;
}

.section-title.reveal .section-title__line:nth-child(3) {
  transition-delay: 0.4s;
}

.section-title.reveal.is-visible,
.section-title.reveal.is-visible .section-title__eyebrow,
.section-title.reveal.is-visible .section-title__line {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.section-title.reveal.is-visible .section-title__eyebrow {
  transition-delay: 0.05s;
}

.section-title--contact .section-title__heading {
  font-size: clamp(2.2rem, 6.4vw, 4.8rem);
}

.section-title--light .section-title__eyebrow {
  color: #2E8ADD;
}

.section-title--light .section-title__line {
  color: #2E8ADD;
}

.section-title--light .section-title__line--bright {
  color: #0a0a0a;
}

.apple-block {
  width: 100%;
  margin: 0 auto;
  padding: 5.5rem clamp(1rem, 3vw, 2rem) 6.5rem;
  text-align: center;
}

.apple-block__body {
  text-align: left;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.apple-block__label {
  font-family: var(--font);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.apple-block__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  max-width: 40rem;
}

@media (min-width: 720px) {
  .apple-block__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 100%;
  }
}

.stat-card {
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 28, 0.55);
  cursor: pointer;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.45s ease,
    background 0.45s ease;
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(14, 24, 48, 0.82);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.4),
    0 0 70px rgba(46, 138, 221, 0.22);
}

.stat-card__value {
  font-family: var(--font);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.stat-card__label {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--muted);
  margin: 0;
}

/* Apple-smooth flip timer */
.flip-counter {
  --digit-size: clamp(2.35rem, 4.2vw + 1rem, 5.4rem);
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(5px, 0.75vw, 11px);
  width: fit-content;
  max-width: 100%;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.flip-digit {
  position: relative;
  width: var(--digit-size);
  height: calc(var(--digit-size) * 1.4);
  border-radius: clamp(10px, 1.1vw, 16px);
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  overflow: hidden;
  flex: 0 0 auto;
  perspective: 900px;
}

.flip-digit--sep {
  width: clamp(0.85rem, 1.6vw, 1.7rem);
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.flip-digit--sep .flip-digit__static {
  font-family: var(--font);
  font-size: calc(var(--digit-size, 3rem) * 0.72);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1;
  letter-spacing: -0.06em;
}

.flip-digit__card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: calc(var(--digit-size) * 0.72);
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.06em;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.flip-digit__card--top {
  clip-path: inset(0 0 50% 0);
  background: linear-gradient(180deg, #2c2c2e 0%, #232326 100%);
  z-index: 2;
}

.flip-digit__card--bottom {
  clip-path: inset(50% 0 0 0);
  background: linear-gradient(180deg, #1a1a1c 0%, #121214 100%);
}

.flip-digit__hinge {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: 5;
  pointer-events: none;
}

.flip-digit__flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 50%;
  transform-origin: bottom center;
  transform-style: preserve-3d;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
}

.flip-digit.is-flipping .flip-digit__flap {
  opacity: 1;
  animation: flip-tick 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.flip-digit__flap-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: calc(var(--digit-size) * 0.72);
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #323234 0%, #1f1f21 100%);
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: clamp(10px, 1.1vw, 16px) clamp(10px, 1.1vw, 16px) 0 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.flip-digit__flap-face span {
  transform: translateY(50%);
}

@media (max-width: 640px) {
  .flip-counter {
    gap: 3px;
    transform: scale(0.92);
    transform-origin: left center;
  }

  .flip-digit {
    border-radius: 9px;
  }
}

.stat-premium {
  display: none;
}

.scroll-hint {
  position: absolute;
  bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.35s ease, opacity 0.35s ease;
}

.scroll-hint:hover {
  color: #fff;
}

.scroll-hint__mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-hint__dot {
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  animation: scroll-dot 1.7s var(--ease) infinite;
}

.scroll-hint__arrow {
  width: 20px;
  height: 20px;
  opacity: 0.75;
  animation: scroll-arrow 1.7s var(--ease) infinite;
}

@media (max-width: 899px) {
  .scroll-hint {
    display: none;
  }
}

/* About card */
.about-card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border-radius: 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 150px rgba(59, 130, 246, 0.3);
}

@media (min-width: 768px) {
  .about-card {
    padding: 3.5rem 4rem;
  }
}

.about-card__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.about-card__orbit--1 {
  width: 1600px;
  height: 1600px;
  animation: orbit 3s linear infinite;
}

.about-card__orbit--1 span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 700px;
  height: 700px;
  margin-left: -350px;
  background: rgba(59, 130, 246, 0.3);
  filter: blur(180px);
  border-radius: 50%;
}

.about-card__orbit--2 {
  width: 1300px;
  height: 1300px;
  animation: orbit-rev 4.5s linear infinite;
}

.about-card__orbit--2 span {
  position: absolute;
  bottom: 0;
  right: 25%;
  width: 600px;
  height: 600px;
  background: rgba(79, 70, 229, 0.25);
  filter: blur(160px);
  border-radius: 50%;
}

.about-card__orbit--3 {
  width: 1000px;
  height: 1000px;
  animation: orbit 6s linear infinite;
}

.about-card__orbit--3 span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 500px;
  height: 500px;
  background: rgba(96, 165, 250, 0.2);
  filter: blur(140px);
  border-radius: 50%;
}

.about-card__content {
  position: relative;
  z-index: 10;
  text-align: left;
  overflow: visible;
}

.eyebrow {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 1;
  margin-bottom: 1.25rem;
}

.about-card__lead {
  font-family: var(--font);
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.05em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
}

.about-card__lead strong {
  font-weight: 700;
}

.about-card__accent {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 600;
}

.about-card__body {
  margin-top: 1.75rem;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
  max-width: 22rem;
  letter-spacing: -0.05em;
}

.about-card__line {
  width: 6rem;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(to right, #60a5fa, transparent);
  box-shadow: 0 0 40px rgb(59, 130, 246);
}

.about-card__headline {
  font-family: var(--font);
  font-size: clamp(1.85rem, 3.6vw, 3.1rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.07em;
  line-height: 1.2;
}

.about-card__note {
  margin-top: 1.5rem;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 1px solid rgba(59, 130, 246, 0.4);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: normal;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  letter-spacing: -0.05em;
}

.about-card__founder {
  display: flex;
  justify-content: flex-start;
  margin-top: 2rem;
  width: min(100%, 220px);
}

.about-card__founder img {
  width: 100%;
  height: auto;
  max-height: 140px;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

/* Diseño de referencia: 780px de ancho. Todo se mide contra el ancho de la
   tarjeta, así los saltos de línea son siempre los mismos y la proporción
   se mantiene al hacer zoom o cambiar de monitor. */
@container (min-width: 200px) {
  .about-card {
    padding: 7.18cqw 8.21cqw;
    border-radius: 7.69cqw;
    box-shadow: 0 0 19.2cqw rgba(59, 130, 246, 0.3);
  }

  .about-card .eyebrow {
    font-size: 1.54cqw;
    margin-bottom: 2.56cqw;
  }

  .about-card__lead {
    font-size: 5.64cqw;
  }

  .about-card__accent {
    margin-top: 1.03cqw;
  }

  .about-card__body {
    margin-top: 3.59cqw;
    font-size: 2.18cqw;
    max-width: 45.1cqw;
  }

  .about-card__line {
    width: 12.31cqw;
    margin: 4.1cqw 0;
  }

  .about-card__headline {
    font-size: 6.36cqw;
  }

  .about-card__note {
    margin-top: 3.08cqw;
    padding: 0.32cqw 0 0.32cqw 3.08cqw;
    font-size: 1.95cqw;
  }

  .about-card__founder {
    margin-top: 4.1cqw;
    width: 28.2cqw;
  }

  .about-card__founder img {
    max-height: 17.95cqw;
  }
}

/* Process / Cómo lo hacemos */
.process {
  position: relative;
  width: 100%;
  padding: 5.5rem 1.25rem 6rem;
  background-color: #fff;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  overflow: hidden;
}

.process__workspace {
  width: min(100%, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}

.process__main {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.timeline {
  position: relative;
  border-radius: 24px;
  background: #0b0d12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  min-height: 460px;
  user-select: none;
  touch-action: none;
}

.timeline__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #2E8ADD;
  box-shadow: 0 0 12px rgba(46, 138, 221, 0.55);
}

.timeline__timecode {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.timeline__ruler {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 0.45rem 1rem 0.45rem 3.2rem;
  font-family: var(--font);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline__playhead {
  position: absolute;
  top: 52px;
  bottom: 0;
  left: 38%;
  width: 2px;
  background: #2E8ADD;
  box-shadow: 0 0 12px rgba(46, 138, 221, 0.55);
  pointer-events: none;
  z-index: 5;
}

.timeline__playhead::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2E8ADD;
  transform: translateX(-50%);
}

.timeline__tracks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 0.85rem 1.1rem;
}

.timeline__track {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.55rem;
  align-items: center;
  min-height: 64px;
}

.timeline__label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.timeline__lane {
  position: relative;
  height: 58px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.tl-clip {
  position: absolute;
  top: 6px;
  bottom: 6px;
  border: none;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  text-align: left;
  cursor: grab;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.25s ease, filter 0.25s ease;
  z-index: 2;
}

.tl-clip:active {
  cursor: grabbing;
}

.tl-clip.is-dragging {
  z-index: 8;
  filter: brightness(1.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.tl-clip.is-selected {
  outline: 2px solid #fff;
  outline-offset: 0;
}

.tl-clip small {
  display: block;
  font-family: var(--font);
  font-size: 9px;
  opacity: 0.7;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-clip strong {
  display: block;
  margin-top: 0.1rem;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.tl-clip__wave {
  display: block;
  margin-top: 0.25rem;
  height: 14px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.55) 0 2px,
      transparent 2px 4px
    );
  opacity: 0.55;
}

.tl-clip--reel {
  background: linear-gradient(135deg, #2E8ADD, #1a6fb8);
}

.tl-clip--edit {
  background: linear-gradient(135deg, #475569, #1e293b);
}

.tl-clip--cine {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.tl-clip--yt {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.tl-clip--color {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.tl-clip--vsl {
  background: linear-gradient(135deg, #ef4444, #991b1b);
}

.tl-clip--motion {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.tl-clip--audio {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.style-strip {
  text-align: left;
  padding: 0.15rem 0.1rem 0;
}

.style-strip__title {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111;
}

.style-strip__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.style-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: #0b1220;
  color: #fff;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  cursor: default;
  transition: transform 0.28s var(--ease), box-shadow 0.28s ease, background 0.28s ease;
}

.style-pill:hover {
  transform: translateY(-2px);
  background: #111827;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.16),
    0 0 0 3px rgba(46, 138, 221, 0.22),
    0 0 28px rgba(46, 138, 221, 0.45);
}

.project-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 460px;
}

.project-panel__eyebrow {
  margin: 0;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2E8ADD;
}

.project-panel__title {
  margin: 0.2rem 0 0;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111;
}

.project-folders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.folder-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.folder-item:hover {
  background: rgba(46, 138, 221, 0.06);
}

.folder-item.is-open {
  background: rgba(46, 138, 221, 0.12);
  border-color: rgba(46, 138, 221, 0.35);
}

.folder-item__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.folder-item__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.folder-item__text strong {
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
}

.folder-item__text small {
  font-family: var(--font);
  font-size: 0.72rem;
  color: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-card {
  margin-top: auto;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  padding: 1.1rem 1.1rem 1.2rem;
  position: relative;
  min-height: 210px;
}

.step-card__badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(46, 138, 221, 0.45);
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  color: #2E8ADD;
  background: #fff;
}

.step-card__visual {
  height: 78px;
  margin: 0.35rem 0 0.9rem;
  display: grid;
  place-items: center;
}

.step-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.step-visual__glow {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 138, 221, 0.42), transparent 70%);
  filter: blur(2px);
}

.step-visual__chip {
  position: relative;
  z-index: 1;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.step-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111;
}

.step-card__copy {
  margin: 0;
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: rgba(0, 0, 0, 0.55);
}

@media (max-width: 980px) {
  .process__workspace {
    grid-template-columns: 1fr;
  }

  .timeline,
  .project-panel {
    min-height: 0;
  }
}

/* Testimonials */
.testimonials {
  padding: 5rem 1.5rem 6rem;
}

.testimonials .section-title {
  margin-bottom: 3.25rem;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 1.5rem;
  width: min(100%, 980px);
  margin-inline: auto;
}

.testimonial-card {
  aspect-ratio: 9 / 16;
  max-height: 520px;
}

/* Restore Apple blur entrance — .video-card transition was overriding .reveal */
.testimonial-card.reveal {
  opacity: 0;
  filter: blur(18px);
  transform: translateY(36px) scale(0.98);
  transition:
    opacity 1.45s var(--ease),
    transform 1.45s var(--ease),
    filter 1.45s var(--ease),
    border-color 0.8s var(--ease);
  will-change: opacity, transform, filter;
}

.testimonial-card.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.testimonial-card.reveal.reveal-delay-1 {
  transition-delay: 0.18s;
}

.testimonial-card.reveal.reveal-delay-2 {
  transition-delay: 0.32s;
}

.testimonial-card.reveal.is-visible:hover {
  transform: translateY(-6px);
}

/* Inner page headers */
.page-hero {
  padding: 11rem 1.5rem 3rem;
  text-align: center;
}

.page-hero .section-title {
  margin-bottom: 1.15rem;
}

.page-hero .section-title__heading {
  font-size: clamp(2.4rem, 6.2vw, 4.8rem);
}

.page-hero__lead {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  font-style: normal;
  color: var(--muted);
  max-width: 30rem;
  margin: 0 auto;
  letter-spacing: -0.05em;
  line-height: 1.5;
}

.video-card--slot {
  cursor: default;
  background:
    radial-gradient(circle at 50% 35%, rgba(46, 138, 221, 0.12), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.video-card--slot:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 138, 221, 0.28);
}

.video-card__slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-card__slot-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
}

.video-card__slot-mark::before,
.video-card__slot-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%);
}

.video-card__slot-mark::before {
  width: 14px;
  height: 1.5px;
}

.video-card__slot-mark::after {
  width: 1.5px;
  height: 14px;
}

.video-gallery {
  display: grid;
  gap: 2rem;
  padding: 0 1.5rem 6rem;
  width: min(100%, var(--max));
  margin-inline: auto;
}

.video-gallery--vertical {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1080px;
}

.video-gallery--horizontal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 1480px);
  max-width: 1480px;
  gap: 1.5rem;
}

.gallery-item {
  min-width: 0;
}

.gallery-item .video-card {
  width: 100%;
  height: 100%;
}

.video-card--vertical {
  aspect-ratio: 9 / 16;
}

.video-card--horizontal {
  aspect-ratio: 16 / 9;
}

/* Final CTA / Contact glass */
.final-cta {
  padding: 5.5rem 1.5rem 8rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

.contact-glass {
  width: min(100%, 560px);
  padding: 2.25rem 1.75rem 1.9rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.contact-glass .section-title {
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.contact-glass .section-title--contact .section-title__heading {
  font-size: clamp(1.85rem, 5.2vw, 3.6rem);
  max-width: 100%;
  margin-inline: auto;
  align-items: center;
  text-align: center;
}

.contact-glass .section-title__line {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.contact-glass__features {
  list-style: none;
  margin: 0 auto 1.6rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1rem;
  text-align: left;
  max-width: 26rem;
  justify-items: center;
}

.contact-glass__features li {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding-left: 1.25rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  justify-self: center;
}

.contact-glass__features li:nth-child(1) {
  justify-self: end;
}

.contact-glass__features li:nth-child(2) {
  justify-self: start;
}

.contact-glass__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  font-size: 0.8rem;
}

.contact-glass__feature--center {
  grid-column: 1 / -1;
  justify-self: center;
  width: fit-content;
  text-align: left;
}

/* EN: less gap between the two top items so they don't look spread out */
html[lang="en"] .contact-glass__features {
  max-width: 20rem;
  gap: 0.65rem 0.55rem;
  column-gap: 0.55rem;
}

.contact-glass__cta {
  width: min(100%, 280px);
}

/* Contact */
.page-contacto {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-contacto .contact-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
  z-index: 2;
}

.contact-page {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 1.5rem 1.25rem;
  overflow: hidden;
}

.contact-page .hero__ghosts {
  z-index: 0;
}

.contact-card {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 42rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card .section-title {
  margin-bottom: 1.15rem;
  max-width: 100%;
}

.contact-card .section-title__heading {
  font-size: clamp(1.9rem, 5.5vw, 3.8rem);
  max-width: 100%;
  align-items: center;
  text-align: center;
}

.contact-card .section-title__line {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}

.contact-card__lead {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 2rem;
  line-height: 1.5;
  letter-spacing: -0.05em;
  max-width: 28rem;
}

.contact-card__cta {
  width: min(100%, 280px);
}

.contact-card__cta.reveal {
  overflow: visible;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(28px);
  transition:
    opacity 1.35s var(--ease),
    transform 1.35s var(--ease),
    filter 1.35s var(--ease);
}

.contact-card__cta.reveal.reveal-delay-2 {
  transition-delay: 0.32s;
}

.contact-card__cta.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* When entrance finishes, hover matches home buttons */
.contact-card__cta.reveal.is-visible.is-settled {
  transition: transform 0.4s var(--ease);
  transition-delay: 0s;
}

.contact-card__cta.reveal.is-visible.is-settled:hover {
  transform: scale(1.05);
}

.contact-card__cta.reveal.is-visible.is-settled:active {
  transform: scale(0.95);
}

.contact-card__number {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer--dock {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  margin-top: 0;
  padding: 0.85rem 1.5rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
}

@media (max-height: 720px) {
  .page-contacto .contact-card .section-title {
    margin-bottom: 0.75rem;
  }

  .page-contacto .contact-card .section-title__heading {
    font-size: clamp(1.7rem, 6vh, 2.8rem);
  }

  .page-contacto .contact-card__lead {
    margin-bottom: 1.25rem;
    font-size: 0.98rem;
  }

  .page-contacto .contact-page .ghost-frame {
    opacity: 0.28;
  }
}

@media (max-width: 899px) {
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    justify-content: flex-start;
    padding:
      calc(7.85rem + env(safe-area-inset-top, 0px))
      1.15rem
      calc(5.4rem + env(safe-area-inset-bottom, 0px));
    gap: 0.85rem;
  }

  .hero__stage {
    gap: 1.65rem;
    flex: 0 1 auto;
    justify-content: flex-start;
    padding-top: 0.35rem;
    width: 100%;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero__logo-wrap {
    display: block;
    margin: 0 auto 1rem;
  }

  .hero__logo {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .hero__lead {
    font-size: 1.02rem;
    margin-bottom: 0;
    margin-inline: auto;
    max-width: 22rem;
  }

  .hero__side {
    margin: 0.15rem 0;
  }

  .hero__actions {
    margin-top: 0.55rem;
  }

  .about-card {
    padding: 1.5rem 1.25rem 1.65rem;
    border-radius: 28px;
    box-shadow: 0 0 80px rgba(59, 130, 246, 0.22);
  }

  .about-card__lead {
    font-size: 1.35rem;
  }

  .about-card__body,
  .about-card__note {
    font-size: 0.95rem;
    max-width: none;
  }

  .about-card__headline {
    font-size: 1.45rem;
  }

  .about-card__founder {
    width: min(100%, 180px);
    margin-left: 0;
    margin-right: auto;
    margin-top: 1.5rem;
  }

  .apple-block {
    width: 100%;
    padding: 3.25rem 1rem 3.75rem;
  }

  .flip-counter {
    --digit-size: clamp(1.7rem, 8.2vw, 2.6rem);
  }

  .apple-block__stats {
    margin-top: 1.5rem;
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1.1rem 1.05rem 1.15rem;
    border-radius: 18px;
  }

  .stat-card__value {
    font-size: 1.45rem;
  }

  .stat-card__label {
    font-size: 0.85rem;
  }

  .process {
    padding: 3.5rem 1rem 4rem;
  }

  .section-title {
    margin-bottom: 2.25rem;
  }

  .section-title__heading {
    font-size: clamp(2.05rem, 9.2vw, 2.85rem);
  }

  .section-title__line {
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .timeline__ruler {
    padding-left: 2.6rem;
  }

  .contact-glass {
    padding: 1.75rem 1.2rem 1.5rem;
    border-radius: 22px;
  }

  .contact-glass .section-title--contact .section-title__heading {
    font-size: clamp(2.05rem, 9.2vw, 2.85rem);
  }

  .apple-block .section-title__heading,
  .process .section-title__heading,
  .testimonials .section-title__heading {
    font-size: clamp(2.05rem, 9.2vw, 2.85rem);
  }

  .contact-glass__features {
    max-width: 22rem;
    gap: 0.65rem 0.75rem;
  }

  html[lang="en"] .contact-glass__features {
    max-width: 18.5rem;
    gap: 0.6rem 0.4rem;
  }

  .testimonials {
    padding: 2.5rem 1.15rem 3.5rem;
  }

  .testimonials__grid {
    gap: 0.75rem;
    width: 100%;
  }

  .testimonial-card {
    max-height: none;
    border-radius: 18px;
  }

  .page-hero {
    padding: calc(7.5rem + env(safe-area-inset-top, 0px)) 1.15rem 2rem;
  }

  .page-hero .section-title__heading {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .page-hero__lead {
    font-size: 1rem;
  }

  .video-gallery {
    gap: 0.75rem;
    padding: 0 1.15rem 4rem;
  }

  .video-gallery--vertical {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .video-gallery--horizontal {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-width: 560px;
  }

  .final-cta {
    padding: 4.5rem 1.15rem 5.5rem;
  }

  .contact-page {
    padding: calc(5.25rem + env(safe-area-inset-top, 0px)) 1.15rem 0.75rem;
  }

  .contact-card .section-title__heading {
    font-size: clamp(2.15rem, 10vw, 3.1rem);
  }

  .contact-card__lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .footer--dock {
    padding: 0.75rem 1.15rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .page-contacto .footer--dock .footer__inner {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .page-contacto .footer--dock .footer__copy {
    display: none;
  }

  .page-contacto .footer--dock .footer__cookies {
    justify-self: center;
  }
}
