/* UsaLab: estilos compartidos. Colores de marca en :root. */

:root {
  --paper:#f4f3ec;
  --ink:#092a30;
  --teal:#00a7bf;
  --lime:#a6ce39;
  --line:#cbd3cc;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:100px;
}

body {
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.65;
}

a {
  color:inherit;
}

a:focus-visible,button:focus-visible {
  outline:3px solid var(--teal);
  outline-offset:5px;
}

.skip {
  position:fixed;
  top:-100px;
  background:white;
  z-index:100;
  padding:15px;
}

.skip:focus {
  top:0;
}

header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:100px;
  padding:15px 5%;
  border-bottom:1px solid var(--line);
  background:var(--paper);
  position:sticky;
  top:0;
  z-index:20;
}

.brand {
  display:flex;
  align-items:center;
  gap:22px;
  text-decoration:none;
}

.brand img {
  width:75px;
  height:65px;
  object-fit:contain;
}

.brand span {
  font-size:9px;
  font-weight:700;
  letter-spacing:1px;
  border-left:1px solid var(--line);
  padding-left:20px;
  line-height:1.6;
}

nav {
  display:flex;
  align-items:center;
  gap:28px;
}

nav a {
  text-decoration:none;
  font-size:12px;
  font-weight:700;
}

.nav-contact {
  border:1px solid var(--ink);
  padding:12px 17px;
}

#menu-button {
  display:none;
}

.hero {
  display:grid;
  grid-template-columns:58% 42%;
  min-height:710px;
}

.hero-text {
  padding:65px 8.6% 30px;
}

.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:1.7px;
  margin:0 0 27px;
  line-height:1.6;
}

.dot {
  display:inline-block;
  width:7px;
  height:7px;
  background:var(--teal);
  border-radius:50%;
  margin-right:6px;
}

h1,h2,h3,p {
  overflow-wrap:break-word;
}

h1 {
  font-size:clamp(48px,6.2vw,100px);
  line-height:1.02;
  letter-spacing:-.065em;
  font-weight:500;
  margin:0 0 30px;
}

em {
  font-style:normal;
  color:#007e8c;
}

.intro {
  font-size:18px;
  max-width:440px;
  color:#52666a;
}

.actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:22px;
  margin:30px 0 45px;
}

.button {
  background:var(--ink);
  color:white;
  padding:15px 22px;
  display:inline-flex;
  gap:35px;
  align-items:center;
  justify-content:space-between;
  text-decoration:none;
  font-weight:700;
  font-size:12px;
  min-height:50px;
}

.button:hover {
  background:#15535d;
}

.button span {
  font-size:23px;
  line-height:1;
}

.text-link {
  font-size:12px;
  font-weight:700;
  text-underline-offset:6px;
}

.location {
  font-size:9px;
  letter-spacing:1.5px;
  margin:0;
}

.hero-art {
  position:relative;
  overflow:hidden;
  background:#dcebec;
  display:flex;
  align-items:center;
  justify-content:center;
  border-left:1px solid var(--line);
}

.art-grid {
  position:absolute;
  inset:0;
  background-image:linear-gradient(#b1cccd66 1px,transparent 1px),linear-gradient(90deg,#b1cccd66 1px,transparent 1px);
  background-size:55px 55px;
}

.orbit {
  position:absolute;
  width:370px;
  height:370px;
  border:1px solid #91b1b3;
  border-radius:50%;
  transform:rotate(-30deg);
}

.orbit-two {
  width:510px;
  height:250px;
  transform:rotate(-55deg);
}

.art-center {
  width:210px;
  height:245px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:190px;
  letter-spacing:-20px;
  font-weight:700;
  line-height:1;
  color:var(--paper);
  background:var(--teal);
  border-radius:55px;
  transform:rotate(-12deg);
  box-shadow:28px 30px 0 var(--lime);
}

.art-center span {
  font-size:70px;
  position:absolute;
  right:15px;
  top:18px;
  letter-spacing:0;
  color:var(--ink);
}

.art-tag {
  position:absolute;
  background:var(--paper);
  padding:10px 15px;
  border:1px solid #91b1b3;
  font-size:9px;
  letter-spacing:1px;
}

.tag-one {
  top:17%;
  left:8%;
}

.tag-two {
  right:6%;
  top:45%;
}

.tag-three {
  left:9%;
  bottom:19%;
}

.art-caption {
  position:absolute;
  bottom:30px;
  font-size:9px;
  letter-spacing:2px;
}

.art-plus {
  position:absolute;
  top:25px;
  right:25px;
  font-size:35px;
}

.ticker {
  display:flex;
  justify-content:space-around;
  gap:20px;
  flex-wrap:wrap;
  padding:20px 5%;
  border-top:1px solid var(--ink);
  border-bottom:1px solid var(--ink);
  font-size:11px;
  font-weight:700;
}

.ticker b {
  color:#008899;
}

.section {
  padding:90px 5%;
}

h2 {
  font-size:clamp(37px,4.4vw,68px);
  line-height:1.07;
  letter-spacing:-.055em;
  font-weight:500;
  margin:0 0 25px;
}

p {
  margin:0 0 20px;
}

.about {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10%;
  border-bottom:1px solid var(--line);
}

.large {
  font-size:24px;
  line-height:1.45;
  letter-spacing:-.6px;
}

.about-copy>p:not(.large) {
  font-size:15px;
  color:#52666a;
}

.about-copy .text-link {
  display:inline-block;
  margin-top:15px;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:30px;
  margin-bottom:40px;
}

.section-heading>p {
  font-size:14px;
  color:#52666a;
}

.cards {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border:1px solid var(--line);
}

.cards article {
  padding:30px;
  border-right:1px solid var(--line);
}

.cards article:last-child {
  border:0;
}

.card-number {
  font-size:10px;
  letter-spacing:1px;
}

.icon {
  font-size:65px;
  line-height:1.3;
  color:#008c9d;
  margin:30px 0;
}

.cards h3 {
  font-size:29px;
  line-height:1.12;
  letter-spacing:-1px;
  font-weight:500;
  margin:0 0 20px;
}

.cards p {
  font-size:14px;
  color:#52666a;
  margin:0;
}

.event {
  background:var(--ink);
  color:var(--paper);
  position:relative;
  overflow:hidden;
}

.event-top,.event-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.event-top .eyebrow {
  margin:0;
}

.pill {
  border:1px solid #658284;
  border-radius:30px;
  padding:8px 14px;
  font-size:9px;
  letter-spacing:1px;
}

.event-grid {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:10%;
  padding:65px 0;
}

.event h2 {
  font-size:clamp(50px,6vw,90px);
  margin:0;
}

.event h2 span {
  color:var(--lime);
}

.event-kicker {
  font-size:10px;
  letter-spacing:2px;
}

.event-copy {
  align-self:center;
}

.event-copy>p:not(.large) {
  font-size:14px;
  color:#bfcdce;
}

.event-copy strong {
  color:white;
}

.event dl {
  margin:30px 0;
}

.event dl>div {
  border-top:1px solid #456065;
  padding:15px 0;
}

.event dt {
  font-size:9px;
  letter-spacing:1px;
  color:#b1c4c7;
}

.event dd {
  font-size:13px;
  margin:6px 0 0;
}

.green {
  background:var(--lime);
  color:var(--ink);
}

.green:hover {
  background:#c5e85b;
}

.event-copy .event-foot {
  font-size:11px;
  margin:15px 0 0;
}

.event-bottom {
  border-top:1px solid #456065;
  padding-top:25px;
  font-size:9px;
  letter-spacing:1px;
}

.contact {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10%;
}

.contact>div>p:not(.eyebrow) {
  max-width:360px;
  color:#52666a;
  font-size:15px;
}

.contact-details {
  padding-top:15px;
}

.contact-details h3 {
  font-size:25px;
  letter-spacing:-.7px;
  line-height:1.3;
  margin:0 0 25px;
}

.contact-details>a {
  display:block;
  margin-bottom:14px;
  text-underline-offset:5px;
  font-size:14px;
  overflow-wrap:anywhere;
}

.contact-details a.email {
  font-size:20px;
}

.address {
  border-top:1px solid var(--line);
  margin-top:35px;
  padding-top:25px;
}

.address .eyebrow {
  margin-bottom:15px;
}

.address p {
  font-size:13px;
  color:#52666a;
}

footer {
  margin:0 5%;
  padding:30px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
}

footer>span {
  font-size:28px;
  font-weight:bold;
  letter-spacing:-1px;
}

footer small {
  display:block;
  font-size:8px;
  letter-spacing:1px;
}

footer p,footer a {
  font-size:11px;
  margin:0;
}

footer a {
  text-underline-offset:5px;
}

@media(min-width:1700px) {
  body {
    max-width:1800px;
    margin:auto;
  }

}

@media(max-width:1000px) {
  nav {
    gap:16px;
  }

  .brand span {
    display:none;
  }

  .hero {
    grid-template-columns:60% 40%;
  }

  .art-center {
    transform:rotate(-12deg) scale(.8);
  }

  .actions {
    gap:20px;
  }

  .tag-two {
    right:2%;
    top:60%;
  }

  .cards article {
    padding:23px;
  }

  .cards h3 {
    font-size:25px;
  }

}

@media(max-width:720px) {
  html {
    scroll-padding-top:80px;
  }

  header {
    min-height:80px;
    padding:8px 6%;
  }

  .brand img {
    height:60px;
    width:65px;
  }

  #menu-button {
    display:block;
    background:none;
    border:1px solid var(--ink);
    padding:10px 15px;
    font:inherit;
    font-size:12px;
  }

  nav {
    display:none;
    position:absolute;
    top:79px;
    left:0;
    right:0;
    background:var(--paper);
    border-bottom:1px solid var(--line);
    padding:20px 6%;
    flex-direction:column;
    align-items:stretch;
  }

  nav.open {
    display:flex;
  }

  nav a {
    padding:12px;
  }

  .hero {
    grid-template-columns:1fr;
    min-height:0;
  }

  .hero-text {
    padding:45px 6% 35px;
  }

  h1 {
    font-size:clamp(48px,12vw,76px);
  }

  .intro {
    font-size:17px;
  }

  .hero-art {
    height:340px;
    border-left:0;
    border-top:1px solid var(--line);
  }

  .art-center {
    transform:rotate(-12deg) scale(.72);
  }

  .tag-one {
    top:12%;
  }

  .tag-three {
    bottom:15%;
  }

  .art-caption {
    bottom:15px;
  }

  .ticker {
    justify-content:flex-start;
    gap:12px 20px;
    font-size:10px;
  }

  .ticker b {
    display:none;
  }

  .ticker span {
    width:calc(50% - 10px);
  }

  .section {
    padding:55px 6%;
  }

  .about,.contact {
    grid-template-columns:1fr;
    gap:30px;
  }

  h2 {
    font-size:42px;
  }

  .large {
    font-size:22px;
  }

  .section-heading {
    display:block;
  }

  .section-heading>p {
    margin-top:20px;
  }

  .cards {
    grid-template-columns:1fr;
  }

  .cards article {
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:25px;
  }

  .icon {
    font-size:45px;
    margin:15px 0;
  }

  .cards h3 {
    font-size:28px;
  }

  .event-top {
    align-items:start;
    flex-direction:column;
  }

  .event-grid {
    grid-template-columns:1fr;
    padding:40px 0;
    gap:40px;
  }

  .event h2 {
    font-size:62px;
  }

  .event-bottom {
    flex-direction:column;
    align-items:start;
    gap:10px;
  }

  .contact-details {
    padding-top:0;
  }

  .contact-details a.email {
    font-size:18px;
  }

  footer {
    align-items:start;
    flex-direction:column;
    padding:30px 0;
  }

  .eyebrow {
    font-size:9px;
  }

}

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

}

/* Navegación institucional y contacto del laboratorio. */
nav {
  gap:20px;
}

.services-menu {
  position:relative;
}

.services-toggle {
  border:0;
  background:none;
  color:var(--ink);
  font:inherit;
  font-size:12px;
  font-weight:700;
  padding:12px 0;
  cursor:pointer;
}

.services-toggle:focus-visible {
  outline:3px solid var(--teal);
  outline-offset:5px;
}

#services-links {
  position:absolute;
  top:100%;
  right:0;
  min-width:165px;
  background:var(--paper);
  border:1px solid var(--line);
  padding:8px;
  box-shadow:0 12px 20px #092a3010;
}

#services-links a {
  display:block;
  padding:12px;
}

#services-links a:hover {
  background:#dcebec;
}

[hidden] {
  display:none!important;
}

.lab-phones {
  display:grid;
  gap:10px;
  font-size:14px;
}

.lab-phones a {
  text-underline-offset:5px;
}

.brand img {
  width:88px;
  height:75px;
}

nav a[aria-current=page] {
  text-decoration:underline;
  text-underline-offset:6px;
}

@media(max-width:1100px) {
  .brand span {
    display:none;
  }

  nav {
    gap:15px;
  }

}

@media(max-width:720px) {
  .brand img {
    width:70px;
    height:60px;
  }

  .services-toggle {
    padding:12px;
    width:100%;
    text-align:left;
  }

  #services-links {
    position:static;
    box-shadow:none;
    margin-left:12px;
  }

  nav {
    gap:8px;
    max-height:calc(100dvh - 80px);
    overflow-y:auto;
  }

}

/* Páginas interiores: sistema visual compartido con el inicio. */
.inner-hero {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:8%;
  border-bottom:1px solid var(--line);
  align-items:center;
}

.inner-hero h1 {
  font-size:clamp(45px,5.6vw,85px);
}

.inner-hero .intro {
  max-width:620px;
}

.inner-art {
  height:340px;
  background:#dcebec;
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  background-image:linear-gradient(#adcacc55 1px,transparent 1px),linear-gradient(90deg,#adcacc55 1px,transparent 1px);
  background-size:40px 40px;
}

.inner-art>span {
  width:180px;
  height:200px;
  border:3px solid var(--teal);
  border-radius:45px;
  display:grid;
  place-items:center;
  font-size:110px;
  line-height:1;
  background:var(--paper);
  box-shadow:22px 22px 0 var(--lime);
  transform:rotate(-12deg);
  color:var(--teal);
}

.inner-art small {
  position:absolute;
  bottom:18px;
  font-size:8px;
  letter-spacing:1.5px;
}

.interior-block {
  border-bottom:1px solid var(--line);
}

.interior-block>h2 {
  margin-bottom:40px;
}

.prose {
  max-width:760px;
  color:#52666a;
}

.editorial-note {
  border-left:4px solid var(--teal);
  padding:25px 30px;
  background:#e8eee7;
  max-width:850px;
}

.editorial-note p {
  max-width:620px;
}

.steps {
  padding:0;
  list-style:none;
  counter-reset:steps;
  max-width:850px;
  margin:30px 0;
}

.steps li {
  border-top:1px solid var(--line);
  padding:25px 0 25px 65px;
  position:relative;
  counter-increment:steps;
}

.steps li:before {
  content:'0' counter(steps);
  position:absolute;
  left:0;
  font-size:25px;
  color:#007e8c;
}

.steps p {
  color:#52666a;
  font-size:14px;
  margin:8px 0 0;
}

.inner-hero+.interior-block {
  padding-top:70px;
}

@media(max-width:720px) {
  .inner-hero {
    grid-template-columns:1fr;
    gap:35px;
  }

  .inner-art {
    height:250px;
  }

  .inner-art>span {
    transform:rotate(-12deg) scale(.75);
  }

  .inner-hero h1 {
    font-size:clamp(43px,11vw,65px);
  }

  .interior-block>h2 {
    margin-bottom:30px;
  }

  .editorial-note {
    padding:20px;
  }

  .steps li {
    padding-left:50px;
  }

}

.content-cards {
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
}

.content-cards article {
  border:1px solid var(--line);
  margin:-1px;
}

.content-cards article:last-child {
  border:1px solid var(--line);
}

.content-cards h3 {
  margin-top:28px;
}

.detail-list {
  max-width:1000px;
}

.detail-list details {
  border-top:1px solid var(--line);
  padding:0 0 0 0;
}

.detail-list details:last-child {
  border-bottom:1px solid var(--line);
}

.detail-list summary {
  cursor:pointer;
  font-size:18px;
  font-weight:700;
  padding:24px 35px 24px 0;
  position:relative;
  list-style:none;
}

.detail-list summary::-webkit-details-marker {
  display:none;
}

.detail-list summary:after {
  content:'+';
  position:absolute;
  right:6px;
}

.detail-list details[open] summary:after {
  content:'−';
}

.detail-list .prose {
  font-size:15px;
  padding-bottom:12px;
}

.detail-list summary:focus-visible {
  outline:3px solid var(--teal);
  outline-offset:2px;
}

.page-links {
  display:grid;
  grid-template-columns:1fr 1fr;
  border-top:1px solid var(--line);
}

.page-links a {
  display:flex;
  justify-content:space-between;
  padding:24px 20px;
  border-bottom:1px solid var(--line);
  text-decoration:none;
  font-size:20px;
  gap:20px;
}

.page-links a:hover {
  background:#dcebec;
}

.page-links a b {
  color:#007e8c;
}

@media(max-width:720px) {
  .content-cards {
    grid-template-columns:1fr;
  }

  .page-links {
    grid-template-columns:1fr;
  }

  .detail-list summary {
    font-size:16px;
  }

  .page-links a {
    font-size:18px;
  }

}


/* Selector de modo claro y oscuro. */
.theme-toggle {
  align-self: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-inline: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.theme-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121c1e;
  --ink: #eef5f3;
  --line: #425758;
  --dark-surface: #1d2d30;
  --dark-muted: #b8cecb;
}

[data-theme="dark"] .intro,
[data-theme="dark"] .about-copy > p:not(.large),
[data-theme="dark"] .section-heading > p,
[data-theme="dark"] .cards p,
[data-theme="dark"] .contact > div > p:not(.eyebrow),
[data-theme="dark"] .address p,
[data-theme="dark"] .prose,
[data-theme="dark"] .steps p {
  color: var(--dark-muted);
}

[data-theme="dark"] .hero-art,
[data-theme="dark"] .inner-art,
[data-theme="dark"] .editorial-note,
[data-theme="dark"] #services-links a:hover,
[data-theme="dark"] .page-links a:hover {
  background-color: var(--dark-surface);
}

[data-theme="dark"] .event {
  background: #0b1517;
  color: var(--ink);
}

[data-theme="dark"] .button,
[data-theme="dark"] .skip {
  color: #092a30;
}

[data-theme="dark"] .button:hover {
  background: #a7dade;
}

[data-theme="dark"] .art-center {
  color: #092a30;
}

[data-theme="dark"] .brand img {
  background: #f4f3ec;
  padding: 4px;
  border-radius: 4px;
}

[data-theme="dark"] em,
[data-theme="dark"] .icon,
[data-theme="dark"] .steps li::before,
[data-theme="dark"] .page-links a b {
  color: #74d7e1;
}

[data-theme="dark"] #menu-button {
  color: var(--ink);
}
