:root {
  --gf-ink: #17154d;
  --gf-blue: #009fda;
  --gf-pink: #e5007d;
  --gf-yellow: #f4d600;
  --gf-paper: #f4f6f8;
  --gf-line: #211b73;
}

.large-format-page {
  color: var(--gf-ink);
}

.large-format-main {
  min-height: 0;
}

.service-mosaic {
  position: relative;
  display: block;
  width: 100%;
  height: calc(100svh - 104px);
  min-height: 680px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.service-stage {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 88px;
  left: 18px;
  overflow: hidden;
  border: 4px solid var(--gf-line);
  background: var(--gf-paper);
}

.service-panel {
  --panel-x: 0%;
  --panel-y: 0%;
  --panel-w: 34%;
  --panel-h: 33.334%;
  position: absolute;
  isolation: isolate;
  left: var(--panel-x);
  top: var(--panel-y);
  width: var(--panel-w);
  height: var(--panel-h);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 2px solid var(--gf-line);
  background: #dce5eb;
  cursor: pointer;
  transition:
    left 900ms cubic-bezier(0.76, 0, 0.24, 1),
    top 900ms cubic-bezier(0.76, 0, 0.24, 1),
    width 900ms cubic-bezier(0.76, 0, 0.24, 1),
    height 900ms cubic-bezier(0.76, 0, 0.24, 1);
}

.service-gallery,
.service-image,
.service-shade {
  position: absolute;
  inset: 0;
}

.service-gallery {
  z-index: -3;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.93) contrast(1.04);
  transform: scale(1.08);
  transition: opacity 1.1s ease, transform 5s ease;
}

.service-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.service-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(9, 12, 30, 0.04) 5%, rgba(9, 12, 30, 0.86) 100%),
    linear-gradient(90deg, rgba(9, 12, 30, 0.3), transparent 72%);
  transition: background 700ms ease;
}

.service-panel.is-featured .service-shade {
  background:
    linear-gradient(180deg, rgba(9, 12, 30, 0.02) 10%, rgba(9, 12, 30, 0.2) 54%, rgba(9, 12, 30, 0.9) 100%),
    linear-gradient(90deg, rgba(9, 12, 30, 0.24), transparent 70%);
}

.service-copy {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(17px, 2vw, 30px);
  color: #ffffff;
  transition: padding 700ms ease;
}

.service-panel.is-featured .service-copy {
  max-width: 780px;
  padding: clamp(30px, 4vw, 64px);
}

.service-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.service-index::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--gf-blue);
}

.service-panel:nth-child(2) .service-index::after { background: var(--gf-pink); }
.service-panel:nth-child(3) .service-index::after { background: var(--gf-yellow); }
.service-panel:nth-child(4) .service-index::after { background: #ffffff; }

.service-copy h1,
.service-copy h2 {
  max-width: 18ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 1.7vw, 31px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  transition: font-size 700ms ease;
}

.service-panel.is-featured .service-copy h1,
.service-panel.is-featured .service-copy h2 {
  max-width: 15ch;
  font-size: clamp(44px, 5vw, 80px);
}

.service-copy p {
  max-width: 59ch;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px);
  transition: max-height 500ms ease, margin 500ms ease, opacity 380ms ease, transform 500ms ease;
}

.service-panel.is-featured .service-copy p {
  max-height: 160px;
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 320ms;
}

.service-copy strong {
  color: #ffffff;
  font-weight: 900;
}

.mosaic-cta {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  min-height: 58px;
  padding: 0 clamp(22px, 3vw, 44px);
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: linear-gradient(105deg, var(--gf-yellow), #ffbd00 48%, var(--gf-pink));
  color: var(--gf-ink);
  text-decoration: none;
}

.mosaic-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, var(--gf-blue), var(--gf-pink));
  transform: translateX(-102%);
  transition: transform 520ms cubic-bezier(0.76, 0, 0.24, 1);
}

.mosaic-cta:hover::before,
.mosaic-cta:focus-visible::before {
  transform: translateX(0);
}

.mosaic-cta span,
.mosaic-cta strong {
  position: relative;
  z-index: 1;
}

.mosaic-cta span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mosaic-cta strong {
  display: inline-flex;
  gap: 15px;
  align-items: center;
  font-size: clamp(20px, 2vw, 29px);
  letter-spacing: -0.035em;
}

.mosaic-cta i {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 36px;
  flex: 0 0 auto;
  animation: gf-arrow 1.55s ease-in-out infinite;
}

.mosaic-cta i::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 13px;
  width: 2px;
  height: 26px;
  border-radius: 2px;
  background: currentColor;
}

.mosaic-cta i::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 13px;
  height: 13px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.mosaic-cta:hover,
.mosaic-cta:focus-visible {
  color: #ffffff;
}

@keyframes gf-arrow {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

.large-format-contact {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(520px, 1.32fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
  min-height: 80vh;
  padding: clamp(70px, 9vw, 140px) clamp(24px, 7vw, 110px);
  background:
    radial-gradient(circle at 7% 16%, rgba(0, 159, 218, 0.12), transparent 25%),
    radial-gradient(circle at 95% 90%, rgba(229, 0, 125, 0.1), transparent 28%),
    var(--gf-paper);
}

.quote-heading {
  position: sticky;
  top: 36px;
}

.quote-kicker {
  margin: 0 0 14px;
  color: var(--gf-pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quote-heading h2 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(45px, 6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.quote-heading > p:last-child {
  max-width: 38ch;
  margin: 25px 0 0;
  color: #596273;
  font-size: 17px;
  line-height: 1.6;
}

.large-format-form {
  padding: clamp(28px, 4vw, 55px);
  border-top: 6px solid var(--gf-blue);
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(17, 26, 42, 0.11);
}

.large-format-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 22px;
}

.large-format-fields label {
  display: grid;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
}

.large-format-fields b {
  color: var(--gf-pink);
}

.large-format-fields input,
.large-format-fields textarea {
  width: 100%;
  border: 1px solid #cdd2da;
  border-radius: 0;
  outline: none;
  background: #ffffff;
  color: var(--gf-ink);
  font: inherit;
  font-weight: 400;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.large-format-fields input {
  min-height: 54px;
  padding: 0 15px;
}

.large-format-fields textarea {
  min-height: 220px;
  padding: 15px;
  resize: vertical;
}

.large-format-fields input:focus,
.large-format-fields textarea:focus {
  border-color: var(--gf-blue);
  box-shadow: 0 0 0 3px rgba(0, 159, 218, 0.14);
}

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

.large-format-form-footer {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.large-format-form-footer p,
.large-format-status {
  margin: 0;
  color: #687181;
  font-size: 13px;
}

.large-format-form-footer button {
  min-height: 54px;
  padding: 0 25px;
  border: 0;
  background: var(--gf-ink);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease;
}

.large-format-form-footer button:hover,
.large-format-form-footer button:focus-visible {
  background: var(--gf-pink);
  transform: translateY(-2px);
}

.large-format-status {
  min-height: 20px;
  margin: 18px 0 0;
  color: var(--gf-pink);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .service-mosaic {
    height: calc(100svh - 128px);
    min-height: 620px;
  }

  .service-panel.is-featured .service-copy h1,
  .service-panel.is-featured .service-copy h2 {
    font-size: clamp(36px, 7vw, 62px);
  }

  .large-format-contact {
    grid-template-columns: 1fr;
  }

  .quote-heading {
    position: static;
  }

  .quote-heading h2 {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .service-mosaic {
    height: auto;
    min-height: 0;
    padding: 12px 12px 82px;
  }

  .service-stage {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: grid;
    height: auto;
  }

  .service-panel {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 54svh !important;
    min-height: 390px;
  }

  .service-panel .service-copy,
  .service-panel.is-featured .service-copy {
    max-width: none;
    padding: 25px 22px;
  }

  .service-copy h1,
  .service-copy h2,
  .service-panel.is-featured .service-copy h1,
  .service-panel.is-featured .service-copy h2 {
    font-size: clamp(31px, 10vw, 46px);
  }

  .service-copy p,
  .service-panel.is-featured .service-copy p {
    max-height: 180px;
    margin-top: 14px;
    opacity: 1;
    transform: none;
  }
.mosaic-cta {
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-height: 58px;
  }

  .mosaic-cta span {
    display: none;
  }

  .large-format-contact {
    padding: 70px 18px;
  }

  .large-format-fields {
    grid-template-columns: 1fr;
  }

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

  .large-format-form-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-panel,
  .service-image,
  .mosaic-cta::before,
  .mosaic-cta i {
    transition: none;
    animation: none;
  }
}

/* Gran formato comparte el lenguaje de secciones de Personalización */
.large-format-page {
  --band-ink:#0d0d0d;
  --band-paper:#f5f3ee;
  overflow-x:hidden;
  color:var(--band-ink);
  background:var(--band-paper);
  font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;
}

.large-format-page .service-mosaic {
  height:auto;
  min-height:0;
  overflow:visible;
  background:var(--band-paper);
}

.large-format-page .service-stage {
  position:relative;
  inset:auto;
  overflow:visible;
  border:0;
  background:transparent;
}

.large-format-page .service-panel {
  --panel-accent:var(--gf-blue);
  position:relative;
  inset:auto !important;
  display:grid;
  grid-template-columns:minmax(300px,31%) minmax(0,69%);
  width:100% !important;
  height:clamp(360px,31vw,460px) !important;
  min-width:0;
  overflow:hidden;
  border:0;
  border-bottom:1px solid rgba(13,13,13,.24);
  background:var(--band-paper);
  isolation:isolate;
  transition:background-color 220ms ease;
}

.large-format-page .service-panel:nth-child(2) { --panel-accent:var(--gf-pink); color:#fff; background:#111319; border-bottom-color:rgba(255,255,255,.2); }
.large-format-page .service-panel:nth-child(3) { --panel-accent:var(--gf-yellow); background:#dff4fa; }
.large-format-page .service-panel:nth-child(4) { --panel-accent:var(--gf-yellow); background:#f7ddeb; }
.large-format-page .service-panel:focus-visible { outline:4px solid var(--panel-accent); outline-offset:-4px; }

.large-format-page .service-gallery {
  position:relative;
  inset:auto;
  z-index:0;
  display:flex;
  grid-column:2;
  grid-row:1;
  gap:14px;
  align-items:center;
  width:max-content;
  min-width:0;
  height:100%;
  padding:22px 0;
  animation:largeFormatMarquee 72s linear infinite;
  will-change:transform;
}

.large-format-page .service-panel:nth-child(even) .service-gallery { animation-direction:reverse; }
.large-format-page .service-panel:hover .service-gallery,
.large-format-page .service-panel:focus-visible .service-gallery { animation-play-state:paused; }

.large-format-page .service-image,
.large-format-page .service-image.is-active {
  position:relative;
  inset:auto;
  display:block;
  flex:none;
  width:clamp(220px,20vw,340px);
  height:calc(clamp(360px,31vw,460px) - 44px);
  border-radius:3px;
  opacity:1;
  object-fit:cover;
  filter:saturate(.96) contrast(1.03);
  transform:none;
  box-shadow:0 12px 32px rgba(0,0,0,.2);
  transition:filter 220ms ease,transform 220ms ease;
}

.large-format-page .service-panel:hover .service-image { filter:saturate(1.08) contrast(1.04); transform:scale(.985); }
.large-format-page .service-shade { display:none; }

.large-format-page .service-copy,
.large-format-page .service-panel.is-featured .service-copy {
  position:relative;
  inset:auto;
  z-index:2;
  display:flex;
  grid-column:1;
  grid-row:1;
  justify-content:center;
  align-items:flex-start;
  flex-direction:column;
  max-width:none;
  padding:clamp(34px,4vw,66px);
  color:inherit;
}

.large-format-page .service-copy::before { position:absolute; top:24px; left:clamp(34px,4vw,66px); color:var(--panel-accent); font-size:.68rem; font-weight:900; letter-spacing:.16em; }
.large-format-page .service-panel:nth-child(1) .service-copy::before { content:"01"; }
.large-format-page .service-panel:nth-child(2) .service-copy::before { content:"02"; }
.large-format-page .service-panel:nth-child(3) .service-copy::before { content:"03"; }
.large-format-page .service-panel:nth-child(4) .service-copy::before { content:"04"; }
.large-format-page .service-copy::after { margin-top:clamp(20px,2.6vw,34px); padding-bottom:5px; border-bottom:2px solid var(--panel-accent); content:"Solicitar presupuesto  ↘"; font-size:.72rem; font-weight:900; letter-spacing:.075em; text-transform:uppercase; }

.large-format-page .service-copy h1,
.large-format-page .service-copy h2,
.large-format-page .service-panel.is-featured .service-copy h1,
.large-format-page .service-panel.is-featured .service-copy h2 { max-width:520px; color:inherit; font-family:Arial,Helvetica,sans-serif; font-size:clamp(2.25rem,4.1vw,5rem); font-weight:800; line-height:.91; letter-spacing:-.065em; }
.large-format-page .service-copy p,
.large-format-page .service-panel.is-featured .service-copy p { max-width:480px; max-height:none; margin:clamp(18px,2.2vw,30px) 0 0; overflow:visible; color:#4a5058; font-size:clamp(.9rem,1.08vw,1.05rem); line-height:1.6; opacity:1; transform:none; transition:none; }
.large-format-page .service-panel:nth-child(2) .service-copy p { color:#bec4ce; }
.large-format-page .service-copy strong { color:inherit; }
.large-format-page .mosaic-cta { display:none; }

@keyframes largeFormatMarquee { from { transform:translateX(0); } to { transform:translateX(calc(-50% - 7px)); } }

@media (max-width:700px) {
  .large-format-page .service-panel { grid-template-columns:1fr; grid-template-rows:minmax(220px,43%) minmax(0,57%); height:clamp(520px,138vw,620px) !important; }
  .large-format-page .service-copy,
  .large-format-page .service-panel.is-featured .service-copy { grid-column:1; grid-row:1; padding:40px 22px 24px; }
  .large-format-page .service-copy::before { top:18px; left:22px; }
  .large-format-page .service-copy h1,
  .large-format-page .service-copy h2,
  .large-format-page .service-panel.is-featured .service-copy h1,
  .large-format-page .service-panel.is-featured .service-copy h2 { max-width:100%; font-size:clamp(2.35rem,11vw,4rem); }
  .large-format-page .service-copy p,
  .large-format-page .service-panel.is-featured .service-copy p { max-width:100%; margin-top:13px; font-size:.88rem; line-height:1.46; }
  .large-format-page .service-copy::after { margin-top:15px; }
  .large-format-page .service-gallery { grid-column:1; grid-row:2; padding:12px 0; }
  .large-format-page .service-image,
  .large-format-page .service-image.is-active { width:clamp(190px,57vw,260px); height:calc(clamp(520px,138vw,620px) * .57 - 24px); }
}

@media (prefers-reduced-motion:reduce) {
  .large-format-page .service-gallery { width:100%; overflow-x:auto; animation:none; will-change:auto; scrollbar-width:thin; }
  .large-format-page .service-gallery [aria-hidden="true"] { display:none; }
}

/* Marco fijo: el mismo difuminado lateral usado en Personalización */
.large-format-page .service-marquee {
  position:relative;
  z-index:0;
  grid-column:2;
  grid-row:1;
  min-width:0;
  height:100%;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
}
.large-format-page .service-marquee::after { position:absolute; inset:0; border-left:1px solid color-mix(in srgb,currentColor 20%,transparent); content:""; pointer-events:none; }
.large-format-page .service-marquee .service-gallery { grid-column:auto; grid-row:auto; }
@media (max-width:700px) {
  .large-format-page .service-marquee { grid-column:1; grid-row:2; -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); }
  .large-format-page .service-marquee::after { border-top:1px solid color-mix(in srgb,currentColor 20%,transparent); border-left:0; }
}
@media (prefers-reduced-motion:reduce) {
  .large-format-page .service-marquee { overflow-x:auto; -webkit-mask-image:none; mask-image:none; scrollbar-width:thin; }
  .large-format-page .service-marquee .service-gallery { width:max-content; overflow:visible; }
  .large-format-page .service-marquee .service-gallery [aria-hidden="true"] { display:none; }
}
