.lab-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--ivory);
}
main, .footer { position: relative; z-index: 1; }
.lab-room { position: absolute; inset: 0; opacity: 0; }
.lab-room:first-child { opacity: 1; }
.lab-room img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: translate3d(var(--room-pan, 0%), 0, 0) scale(var(--room-scale, 1));
  transform-origin: var(--room-origin, 68% 54%);
}
.lab-room::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--room-wash);
}
.lab-room[data-room="inicio"] {
  --room-wash: linear-gradient(90deg,#f9f7eeeb 0%,#f9f7efdf 27%,#f9f7ef84 50%,#f9f7ef00 77%),linear-gradient(0deg,#ded9cc94,transparent 37%);
}
.lab-room[data-room="lineas"] {
  --room-wash: linear-gradient(90deg,#f7f5ec1f 10%,#f7f5ec55 45%,#f7f5ecc9 100%);
}
.lab-room[data-room="catalogo"] {
  --room-wash: linear-gradient(180deg,#f8f6eff2 0%,#f8f6efdc 22%,#f8f6ef78 70%,#f8f6efa8 100%);
}
.lab-room[data-room="servicios"] {
  --room-wash: linear-gradient(180deg,#f7f5eff0 0%,#f7f5efcc 25%,#f7f5ef8c 72%,#f7f5efb8 100%);
}
.lab-room[data-room="contacto"] {
  --room-wash: linear-gradient(180deg,#f3f0eab8 0%,#f3f0ea4d 40%);
}
.lab-tour [data-home] { background: transparent; }
.lab-tour .footer {
  background: linear-gradient(105deg,#101a2bf5 0%,#101a2bed 58%,#101a2bbd 100%);
}

.lab-tour .lines-photo { background: transparent; }
.lines-content {
  padding: clamp(20px,3vw,36px);
  border: 1px solid #fff9;
  border-radius: 28px;
  background: #fbf9f1ed;
  backdrop-filter: blur(12px);
}
body:not(.lab-tour) .hero {
  background: linear-gradient(90deg,#f9f7eee8,#f9f7ef20),url('assets/lab-entrada.jpg') 62% center / cover;
}
@media (max-width: 760px) {
  .lab-room img { object-position: 65% 48%; }
  .lab-room[data-room="inicio"] {
    --room-wash: linear-gradient(90deg,#f9f7edf5,#f9f7efba 52%,#f9f7ef3b),linear-gradient(0deg,#ded9cca9,transparent 50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lab-room img { transform: none; }
}

/* Immersive laboratory journey and frosted product collection. */
.brand { gap: 21px; }
.brand-nameplate { font-family: var(--heading); font-weight: 800; font-size: 14px; letter-spacing: .085em; -webkit-text-stroke: .25px currentColor; }
.lab-room[data-room="lineas"] img { object-position: 43% center; }
.lab-room[data-room="lineas"] { --room-wash: linear-gradient(90deg,#f7f5ec05 20%,#f7f5ec16 46%,#f7f5ec88 100%); }
.lab-room[data-room="catalogo"] { --room-wash: linear-gradient(180deg,#f8f6efdc 0%,#f8f6efc2 18%,#f8f6ef18 58%,#f8f6ef7a 100%); }
.lab-room[data-room="servicios"] { --room-wash: linear-gradient(180deg,#f7f5efe6 0%,#f7f5efbb 25%,#f7f5ef30 72%,#f7f5ef8a 100%); }
.lab-tour .footer { background: linear-gradient(105deg,#101a2bef 0%,#101a2bdb 58%,#101a2ba6 100%); }
.lines-content { background: #fbf9f198; backdrop-filter: blur(22px) saturate(115%); -webkit-backdrop-filter: blur(22px) saturate(115%); box-shadow: 0 18px 60px #1b2a4914; }
.glass { background: linear-gradient(125deg,#fffcf06e,#fff9eb42); border: 1px solid #ffffffc9; box-shadow: inset 0 1px 0 #fff8,0 16px 42px #1b2a491c; backdrop-filter: blur(20px) saturate(115%); -webkit-backdrop-filter: blur(20px) saturate(115%); }
.hero { gap: 14px; padding-bottom: clamp(30px,5svh,60px); }
.hero-copy { padding-top: 6px; }
.hero-bottom { position: relative; justify-content: center; align-items: center; }
.featured-panel { width: min(100%,940px); overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
.featured-viewport { position: relative; display: block; width: 100%; height: 264px; overflow: hidden; scroll-snap-type: none; touch-action: pan-y; }
.featured-card { position: absolute; left: 50%; top: 12px; width: 430px; max-width: 76%; height: 230px; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) 144px; gap: 20px; padding: 25px; border-radius: 29px; }
.featured-card img { width: 144px; height: 158px; object-fit: cover; border-radius: 20px; background: #fff4; box-shadow: 0 8px 22px #1b2a4915; }
.featured-copy { display: flex; min-width: 0; flex-direction: column; align-items: start; gap: 8px; }
.featured-card .eyebrow { margin: 0; font-size: 8px; letter-spacing: .1em; }
.featured-card h2 { font-size: 25px; font-weight: 600; line-height: 1.12; letter-spacing: -.055em; margin: 0; }
.featured-format { font-size: 10px; border-radius: 8px; background: #fffc; border: 1px solid #fff9; padding: 4px 8px; color: #49566b; }
.featured-card .text-link { margin-top: auto; font-size: 12px; padding-top: 4px; }
[data-coverflow] > article { --card-scale: .78; --card-shift: 70%; z-index: 0; opacity: 0; visibility: hidden; transform: translateX(calc(-50% + var(--card-offset,0) * var(--card-shift))) scale(var(--card-scale)); filter: blur(3px); transition: transform .6s cubic-bezier(.22,.75,.25,1),opacity .5s,filter .5s,visibility .6s; transform-origin: center; }
[data-coverflow] > .is-adjacent { z-index: 1; opacity: .7; visibility: visible; pointer-events: none; }
[data-coverflow] > .is-current { --card-scale: 1; z-index: 2; opacity: 1; visibility: visible; filter: none; }
.featured-controls { position: relative; inset: auto; display: flex; justify-content: center; margin-top: 1px; gap: 10px; padding: 0; background: none; }
.featured-controls .arrow-button { height: 35px; width: 35px; }
.featured-index { margin: 0 5px 0 0; font-size: 11px; }
.scene-next { position: absolute; right: 0; bottom: -24px; font-size: 10px; }
.scene-next .arrow-button { height: 30px; width: 30px; }
.catalog-section { min-height: calc(100svh - var(--header-height)); }
.card-track[data-coverflow] { position: relative; display: block; height: 485px; width: 100%; overflow: hidden; padding: 0; scroll-snap-type: none; touch-action: pan-y; }
.card-track[data-coverflow] > article { position: absolute; top: 15px; left: 50%; width: 430px; max-width: 76%; height: 440px; --card-shift: 78%; }
.glass-card { min-height: 420px; padding: 19px; border-radius: 32px; border-color: #ffffffc9; background: #ffffff24; box-shadow: 0 16px 35px #1b2a4910; }
.card-panel { min-height: 190px; padding: 21px; border-radius: 25px; }
.card-panel h3 { font-size: clamp(20px,1.8vw,26px); font-weight: 600; line-height: 1.15; letter-spacing: -.045em; }
.card-panel p { color: #33435b; font-size: 13px; }
.card-panel .card-kicker { font-size: 9px; letter-spacing: .1em; }
.card-panel .text-link { padding-top: 9px; }
.services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.service-card { min-height: 405px; }
.service-card .card-panel { min-height: 178px; }
.service-media { inset: 0; height: 100%; }
.product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.credentials { grid-template-columns: 1fr; gap: 18px; margin: 30px 0; padding: clamp(22px,3vw,34px); border: 1px solid #d6c29aab; background: linear-gradient(115deg,#1b2a49f2,#263957eb); color: #fff; box-shadow: 0 18px 40px #1b2a4920; }
.credentials .eyebrow { color: var(--gold); font-size: 10px; margin: 0 0 7px; }
.credentials h3 { color: #fff; font-size: clamp(22px,2.6vw,32px); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
.credentials p:not(.eyebrow) { color: #d0d9e6; font-size: 12px; margin-top: 8px; }
.credential-links { display: grid; grid-template-columns: 1.1fr 1.3fr .8fr; gap: 12px; align-items: stretch; }
.credential-links a { display: flex; flex-direction: column; justify-content: center; gap: 8px; border-radius: 17px; border: 1px solid #d6c29a69; background: #ffffff0c; color: #fff; padding: 17px; }
.credential-links a:hover { border-color: var(--gold); background: #ffffff17; }
.credential-label { color: #e5d4b2; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.credential-links strong { font-size: clamp(16px,1.6vw,22px); font-weight: 600; line-height: 1.2; }
.credential-detail { color: #d0d9e6; font-size: 10px; }
@supports not (backdrop-filter: blur(1px)) { .glass, .lines-content { background: #fbf8f0eb; } }
@media (max-width: 1100px) {
  .brand { gap: 14px; }
  .brand-nameplate { font-size: 11px; }
  .site-header { gap: 12px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .brand { gap: 13px; }
  .brand-nameplate { font-size: 10px; letter-spacing: .055em; }
  .hero { gap: 10px; padding-top: calc(var(--header-height) + 20px); padding-bottom: 24px; }
  .hero-bottom { display: flex; margin-inline: calc(-1 * var(--shell)); }
  .hero-copy { padding-top: 0; }
  .hero h1 { font-size: clamp(35px,7.4vw,53px); }
  .hero-lede { font-size: 13px; max-width: 410px; }
  .featured-viewport { height: 245px; }
  .featured-card { top: 14px; max-width: 73%; width: 390px; height: 210px; padding: 20px; grid-template-columns: minmax(0,1fr) 110px; gap: 12px; border-radius: 24px; }
  .featured-card img { width: 110px; height: 136px; border-radius: 16px; }
  .featured-card h2 { font-size: 22px; }
  .featured-card > div { padding-top: 0; }
  .featured-controls { inset: auto; background: none; padding: 0; }
  .featured-controls .arrow-button { width: 32px; height: 32px; }
  .lines-section { padding-block: 45px; gap: 24px; }
  .lines-photo { height: 23svh; }
  .card-track[data-coverflow] { height: 450px; }
  .card-track[data-coverflow] > article { height: 410px; width: 380px; max-width: 78%; }
  .card-panel { padding: 18px; min-height: 175px; }
  .glass-card { min-height: 390px; padding: 14px; }
  .credentials { padding: 22px; }
  .credential-links { grid-template-columns: 1fr; gap: 10px; }
  .credential-links a { padding: 15px; gap: 5px; }
  .services-grid { gap: 16px; }
  .product-grid { gap: 16px; }
}
@media (max-width: 490px) {
  .brand { gap: 10px; }
  .brand-nameplate { font-size: 9px; }
  .featured-viewport { height: 228px; }
  .featured-card { max-width: 76%; height: 201px; padding: 18px; gap: 12px; grid-template-columns: minmax(0,1fr) 88px; }
  .featured-card img { width: 88px; height: 116px; }
  .featured-card h2 { font-size: 21px; }
  .featured-card .eyebrow { font-size: 7px; }
  .featured-card .text-link { font-size: 11px; }
  .featured-format { font-size: 9px; padding: 3px 6px; }
  .product-grid, .services-grid { grid-template-columns: 1fr; }
}
@media (max-height: 740px) and (min-width: 761px) {
  .hero { padding-top: calc(var(--header-height) + 8px); padding-bottom: 25px; gap: 5px; }
  .hero h1 { font-size: clamp(40px,4.5vw,60px); }
  .hero-lede { font-size: 14px; margin-block: 12px 14px; }
  .featured-viewport { height: 221px; }
  .featured-card { height: 195px; padding: 20px; }
  .featured-card img { height: 144px; }
  .featured-card h2 { font-size: 22px; }
  .scene-next { bottom: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-room img { transform: none; }
  [data-coverflow] > article { transition: none; }
}

@media (max-height: 740px) and (max-width: 760px) {
  .hero { gap: 6px; padding-top: calc(var(--header-height) + 12px); padding-bottom: 16px; }
  .hero h1 { font-size: clamp(28px,7vw,38px); }
  .hero-lede { font-size: 12px; line-height: 1.45; margin-block: 10px 14px; }
  .hero-copy .eyebrow { font-size: 8px; margin-bottom: 9px; }
  .hero .button { min-height: 40px; padding-block: 9px; font-size: 12px; }
  .featured-viewport { height: 190px; }
  .featured-card { height: 165px; padding: 16px; grid-template-columns: minmax(0,1fr) 78px; gap: 10px; }
  .featured-copy { gap: 5px; }
  .featured-card img { width: 78px; height: 96px; }
  .featured-card h2 { font-size: 18px; }
  .featured-card .eyebrow { font-size: 6px; }
  .featured-controls .arrow-button { width: 29px; height: 29px; }
}
