:root {
  --paper: #ffffff;
  --ink: #111318;
  --muted: #555e69;
  --line: #dce2e7;
  --cyan: #00a7d9;
  --magenta: #ec007f;
  --yellow: #ffd800;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body.home-page {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body.home-page.is-loading {
  overflow: hidden;
}

.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}

.home-page a {
  color: inherit;
  text-decoration: none;
}

.home-page figure,
.home-page p,
.home-page h1,
.home-page h2,
.home-page h3,
.home-page ul {
  margin: 0;
}

.home-page main {
  min-height: 0;
  overflow: clip;
}

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

.loader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  overflow: hidden;
  color: #ffffff;
  background: #0c0f13;
  place-items: center;
}

.loader__panel {
  position: absolute;
  inset: 0 50% 0 0;
  background: var(--cyan);
  will-change: transform;
}

.loader__panel--magenta {
  inset: 0 0 0 50%;
  background: var(--magenta);
}

.loader__logo {
  position: relative;
  z-index: 2;
  width: min(66vw, 470px);
  aspect-ratio: 730 / 410;
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.28));
}

.loader__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loader__logo::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background: linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, 0.88) 43%, rgba(175, 190, 202, 0.55) 50%, transparent 68%);
  -webkit-mask: url("/assets/tarraco-print-logo-3d.webp") center / contain no-repeat;
  mask: url("/assets/tarraco-print-logo-3d.webp") center / contain no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}

.loader__number {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 2.2vw, 42px);
  bottom: clamp(18px, 2.2vw, 42px);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.home-stage {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 96px);
  padding-bottom: clamp(28px, 3.8vh, 48px);
  overflow: hidden;
  background: #ffffff;
}

.shape {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(clamp(22px, 2.4vw, 48px));
  transform-origin: center;
  pointer-events: none;
}

.shape--cyan {
  top: -30vw;
  left: -8vw;
  width: 52vw;
  aspect-ratio: 1;
  background: rgba(0, 167, 217, 0.13);
}

.shape--magenta {
  top: 1vw;
  right: -10vw;
  width: 37vw;
  aspect-ratio: 1;
  background: rgba(236, 0, 127, 0.09);
}

.shape--yellow {
  top: 8vw;
  left: 58vw;
  width: 18vw;
  aspect-ratio: 1;
  background: rgba(255, 216, 0, 0.13);
}

.shape--black {
  top: 30vw;
  right: 18vw;
  width: 27vw;
  aspect-ratio: 1;
  background: rgba(17, 19, 24, 0.035);
}

.hero,
.capabilities {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(24px, 2.35vw, 48px);
}

.hero {
  padding-top: clamp(15px, 1.9vh, 24px);
  padding-bottom: clamp(18px, 2.2vh, 26px);
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1760px;
}

.hero__dots {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.hero__dot {
  position: absolute;
  border-radius: 50%;
}

.hero__dot--cyan {
  background: var(--cyan);
}

.hero__dot--magenta {
  background: var(--magenta);
}

.hero__dot--yellow {
  background: var(--yellow);
}

.hero__dot:nth-child(1) {
  top: 6%;
  left: 78%;
  width: 14px;
  height: 14px;
  opacity: 0.55;
}

.hero__dot:nth-child(2) {
  top: 46%;
  left: 92%;
  width: 22px;
  height: 22px;
  opacity: 0.4;
}

.hero__dot:nth-child(3) {
  top: 78%;
  left: 84%;
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

.hero__dot:nth-child(4) {
  top: 16%;
  left: 62%;
  width: 8px;
  height: 8px;
  opacity: 0.45;
}

.hero__dot:nth-child(5) {
  top: 62%;
  left: 70%;
  width: 16px;
  height: 16px;
  opacity: 0.35;
}

.hero__dot:nth-child(6) {
  top: 90%;
  left: 60%;
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.hero__eyebrow,
.eyebrow {
  margin-bottom: 12px;
  font-size: clamp(0.72rem, 0.72vw, 0.86rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__eyebrow {
  color: #007fa8;
}

.hero__title {
  max-width: 1740px;
  padding-bottom: 0.26em;
  font-size: clamp(4rem, 7.3vw, 11rem);
  line-height: 0.86;
  font-weight: 790;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero__title > span {
  display: block;
  width: fit-content;
  transform-origin: left center;
}

.hero__accent {
  position: relative;
  z-index: 0;
}

.hero__accent::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.03em;
  bottom: 0.025em;
  left: 0.02em;
  height: 0.095em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan) 0 37%, var(--magenta) 37% 70%, var(--yellow) 70%);
  opacity: 0.9;
}

.hero__intro {
  width: min(100%, 1500px);
  margin-top: clamp(28px, 3vh, 38px);
  color: var(--muted);
  font-size: clamp(1.12rem, 1.45vw, 1.72rem);
  line-height: 1.34;
  letter-spacing: -0.022em;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.25vw, 24px);
}

.capability {
  position: relative;
  display: grid;
  grid-template-rows: minmax(175px, 52%) 1fr;
  min-width: 0;
  height: clamp(360px, 42vh, 480px);
  overflow: hidden;
  border: 1px solid rgba(201, 210, 217, 0.9);
  border-radius: 22px;
  background: rgba(248, 249, 250, 0.88);
  box-shadow: 0 16px 42px rgba(17, 19, 24, 0.1);
  backdrop-filter: blur(14px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.capability::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--cyan);
}

.capability:nth-child(2)::after {
  background: var(--magenta);
}

.capability:nth-child(3)::after {
  background: var(--yellow);
}

.capability:nth-child(4)::after {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.capability:hover,
.capability:focus-visible {
  z-index: 2;
  border-color: #c2ccd3;
  outline: none;
  box-shadow: 0 25px 58px rgba(17, 19, 24, 0.16);
  transform: translateY(-6px);
}

.capability__frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #e9edf0;
}

.capability__frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0.04), rgba(10, 12, 15, 0.2));
  pointer-events: none;
}

.capability__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transform: scale(1.015);
  transition: opacity 720ms ease, transform 1400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.capability__frame img.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.capability:hover .capability__frame img.is-active,
.capability:focus-visible .capability__frame img.is-active {
  transform: scale(1.04);
}

.capability__frame small {
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 15px;
  display: grid;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(12, 14, 18, 0.54);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  backdrop-filter: blur(9px);
  place-items: center;
}

.capability__content {
  min-width: 0;
  padding: clamp(18px, 1.3vw, 26px) clamp(20px, 1.7vw, 32px) 50px;
}

.capability h3 {
  font-size: clamp(1.48rem, 1.72vw, 2rem);
  line-height: 1.02;
  font-weight: 780;
  letter-spacing: -0.045em;
}

.capability p {
  margin-top: 11px;
  color: #555e69;
  font-size: clamp(0.84rem, 0.82vw, 1rem);
  line-height: 1.46;
}

.capability__arrow {
  position: absolute;
  z-index: 3;
  right: 19px;
  bottom: 16px;
  display: grid;
  width: 37px;
  height: 37px;
  border: 1px solid #c4ccd3;
  border-radius: 50%;
  color: var(--ink);
  background: #ffffff;
  font-size: 1rem;
  place-items: center;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.capability:hover .capability__arrow,
.capability:focus-visible .capability__arrow {
  color: #ffffff;
  background: var(--ink);
  transform: rotate(45deg);
}

.google-reviews {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  overflow: hidden;
  color: #ffffff;
  background: #111318;
}

.google-reviews__video,
.google-reviews__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.google-reviews__video {
  z-index: -3;
  object-fit: cover;
}

.google-reviews__shade {
  z-index: -2;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 167, 217, 0.24), transparent 34%),
    linear-gradient(115deg, rgba(5, 8, 11, 0.93) 0%, rgba(8, 11, 15, 0.82) 48%, rgba(8, 10, 14, 0.91) 100%);
  backdrop-filter: blur(2px);
}

.google-reviews__inner {
  width: 100%;
  margin-inline: auto;
  padding: clamp(66px, 7vw, 112px) clamp(24px, 2.35vw, 48px);
}

.google-reviews__heading {
  display: grid;
  grid-template-columns: minmax(200px, 0.28fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 92px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 70px);
}

.google-reviews .eyebrow {
  align-self: start;
  color: rgba(255, 255, 255, 0.72);
}

.google-reviews__heading h2 {
  max-width: 1100px;
  font-size: clamp(3.8rem, 6.7vw, 7.8rem);
  line-height: 0.88;
  font-weight: 750;
  letter-spacing: -0.07em;
}

.google-reviews__body,
.google-reviews__carousel {
  min-width: 0;
}

.google-reviews__summary {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.google-reviews__summary[hidden] {
  display: none;
}

.google-reviews__rating,
.google-reviews__maps-logo {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.google-reviews__rating {
  gap: 13px;
  min-height: 60px;
  padding: 9px 17px 9px 10px;
  border-radius: 18px;
}

.google-reviews__rating svg,
.google-reviews__maps-logo svg {
  display: block;
  width: 40px;
  height: 40px;
}

.google-reviews__rating-copy {
  display: grid;
  gap: 2px;
}

.google-reviews__rating-copy strong {
  font-size: 1.22rem;
  line-height: 1;
}

.google-reviews__rating-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
}

.google-reviews__maps-logo {
  display: grid;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  place-items: center;
}

.google-reviews__rating:hover,
.google-reviews__rating:focus-visible,
.google-reviews__maps-logo:hover,
.google-reviews__maps-logo:focus-visible {
  border-color: rgba(255, 255, 255, 0.58);
  outline: none;
}

.google-reviews__summary [data-review-stars],
.google-review-card__stars {
  color: #f4b400;
  letter-spacing: 0.08em;
}

.google-reviews__summary [data-review-stars] {
  font-size: 1.08rem;
  color: transparent;
  background: linear-gradient(90deg, #f4b400 0 var(--rating-fill, 100%), rgba(255, 255, 255, 0.28) var(--rating-fill, 100%) 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.google-reviews__carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
}

.google-reviews__list {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 5px 0 28px;
  animation: reviews-marquee var(--reviews-duration, 112s) linear infinite;
  will-change: transform;
}

@keyframes reviews-marquee {
  to {
    transform: translateX(calc(-50% - 11px));
  }
}

.google-review-card {
  display: flex;
  flex: 0 0 clamp(340px, 24.5vw, 470px);
  min-width: 0;
  min-height: 338px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 21px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  flex-direction: column;
}

.google-review-card__identity {
  width: 100%;
}

.google-review-card__identity.has-avatar {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.google-review-card__avatar {
  display: block;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
}

.google-review-card__identity h3 {
  margin: 0 0 5px;
  overflow-wrap: anywhere;
  font-size: 1.06rem;
  line-height: 1.2;
}

.google-review-card__source {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #747b85;
  font-size: 0.72rem;
}

.google-review-card__source b {
  color: #4285f4;
  font-size: 0.96rem;
}

.google-review-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 20px 0 15px;
}

.google-review-card__meta time {
  color: #777d86;
  font-size: 0.74rem;
}

.google-review-card__text {
  display: -webkit-box;
  overflow: hidden;
  color: #4f5660;
  font-size: 0.96rem;
  line-height: 1.58;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.google-review-card__toggle {
  display: none;
}

.google-review-card > a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  color: #006f94;
  font-size: 0.74rem;
  font-weight: 820;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.google-review-card > a:focus-visible {
  outline: 3px solid rgba(0, 167, 217, 0.25);
  outline-offset: 4px;
}

.google-review-card__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  margin-top: 18px;
}

.google-review-card__photos img {
  width: 100%;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
}

.google-reviews__footer {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.google-reviews__footer p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.google-reviews__link {
  display: inline-flex;
  flex: none;
  gap: 16px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--magenta);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 1181px) and (max-height: 800px) {
  .home-stage {
    min-height: calc(100svh - 96px);
    padding-bottom: 24px;
  }

  .hero {
    padding-top: 13px;
    padding-bottom: 15px;
  }

  .hero__title {
    font-size: clamp(3.6rem, 5.7vw, 5.2rem);
  }

  .hero__intro {
    margin-top: 22px;
    font-size: 1.05rem;
  }

  .capability {
    height: clamp(300px, 40vh, 328px);
  }

  .capability__content {
    padding-top: 16px;
  }

  .capability p {
    font-size: 0.78rem;
    line-height: 1.38;
  }
}

@media (min-width: 1181px) and (min-height: 1100px) {
  .capability {
    height: clamp(480px, 44vh, 620px);
  }
}

@media (max-width: 1180px) {
  .home-stage {
    min-height: 0;
  }

  .hero {
    padding-top: 26px;
    padding-bottom: 28px;
  }

  .hero__title {
    font-size: clamp(3.5rem, 9.2vw, 6.8rem);
  }

  .hero__intro {
    width: min(100%, 980px);
    font-size: clamp(1.08rem, 2vw, 1.45rem);
  }

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

  .capability {
    height: clamp(390px, 54vw, 510px);
  }

  .shape--cyan {
    top: -38vw;
    left: -18vw;
    width: 78vw;
  }

  .shape--magenta {
    top: 22vw;
    right: -28vw;
    width: 62vw;
  }
}

@media (max-width: 720px) {
  .hero,
  .capabilities {
    padding-inline: 18px;
  }

  .hero {
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .hero__eyebrow {
    margin-bottom: 10px;
  }

  .hero__title {
    font-size: clamp(3rem, 14.4vw, 5rem);
    line-height: 0.9;
  }

  .hero__intro {
    margin-top: 24px;
    font-size: clamp(1rem, 4.6vw, 1.18rem);
    line-height: 1.46;
  }

  .capability-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .capability {
    grid-template-rows: minmax(205px, 54%) 1fr;
    height: min(430px, 116vw);
    min-height: 370px;
    border-radius: 19px;
  }

  .capability__content {
    padding: 20px 22px 56px;
  }

  .capability h3 {
    font-size: 1.62rem;
  }

  .capability p {
    font-size: 0.88rem;
  }

  .shape--cyan {
    top: -42vw;
    left: -30vw;
    width: 120vw;
  }

  .shape--magenta {
    top: 76vw;
    right: -48vw;
    width: 108vw;
  }

  .shape--yellow {
    top: 56vw;
    left: 48vw;
    width: 54vw;
  }

  .shape--black {
    top: 220vw;
    right: -30vw;
    width: 88vw;
  }

  .google-reviews {
    min-height: 0;
  }

  .google-reviews__inner {
    padding: 66px 18px 72px;
  }

  .google-reviews__heading {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 38px;
  }

  .google-reviews__heading h2 {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .google-reviews__summary {
    gap: 10px;
  }

  .google-reviews__rating {
    min-height: 56px;
  }

  .google-reviews__maps-logo {
    width: 56px;
    height: 56px;
  }

  .google-reviews__summary [data-review-stars] {
    display: none;
  }

  .google-reviews__carousel {
    margin-right: -18px;
    -webkit-mask-image: linear-gradient(90deg, #000 0 95%, transparent);
    mask-image: linear-gradient(90deg, #000 0 95%, transparent);
  }

  .google-reviews__list {
    gap: 14px;
    padding-right: 18px;
  }

  .google-review-card {
    flex-basis: min(86vw, 370px);
    min-height: 350px;
    padding: 24px;
    border-radius: 19px;
  }

  .google-reviews__footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 24px;
  }

  .google-reviews__link {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .loader {
    display: none;
  }

  body.home-page.is-loading {
    overflow-x: hidden;
    overflow-y: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .capability__frame img {
    display: none;
  }

  .capability__frame img:first-of-type {
    display: block;
    opacity: 1;
  }

  .google-reviews__video {
    display: none;
  }

  .google-reviews__list {
    animation: none;
  }
}

/* Preguntas frecuentes */
.home-faq { padding: clamp(64px, 8vw, 120px) clamp(20px, 2.35vw, 48px); background: var(--paper); color: var(--ink); }
.home-faq__inner { display: grid; grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 92px); max-width: 1320px; margin: 0 auto; }
.home-faq .eyebrow { color: var(--magenta); }
.home-faq__heading h2 { margin: 0; font-size: clamp(2.4rem, 4.4vw, 4.6rem); line-height: 0.95; font-weight: 750; letter-spacing: -0.05em; }
.home-faq__list { border-top: 1px solid var(--line); }
.home-faq__item { border-bottom: 1px solid var(--line); }
.home-faq__item summary { position: relative; padding: 22px 48px 22px 0; font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 800; line-height: 1.35; list-style: none; cursor: pointer; }
.home-faq__item summary::-webkit-details-marker { display: none; }
.home-faq__item summary::after { content: "+"; position: absolute; top: 50%; right: 4px; color: var(--cyan); font-size: 1.8rem; font-weight: 400; line-height: 1; transform: translateY(-50%); transition: transform 180ms ease; }
.home-faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.home-faq__item summary:hover, .home-faq__item summary:focus-visible { color: var(--cyan); outline: none; }
.home-faq__item p { max-width: 720px; margin: 0 0 24px; color: var(--muted); line-height: 1.7; }
.home-faq__item a { color: var(--ink); font-weight: 700; }
@media (max-width: 800px) { .home-faq__inner { grid-template-columns: 1fr; gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .home-faq__item summary::after { transition: none; } }
