@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  font-family: 'DM Sans', sans-serif;
  color: #f7f8fa;
  background: #151c27;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --accent: #d92336;
  --muted: #d0d4dc;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; margin: 0; }

body {
  min-height: 100vh;
  background-color: #151c27;
  background-image:
    linear-gradient(90deg, rgba(13, 19, 28, .94) 0%, rgba(13, 19, 28, .86) 42%, rgba(13, 19, 28, .48) 100%),
    linear-gradient(0deg, rgba(13, 19, 28, .64), rgba(13, 19, 28, .05) 58%),
    url('assets/laboratorio-fondo.jpg');
  background-position: center, center, center;
  background-size: cover;
  background-attachment: fixed;
}

.page-shell {
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 5.5vw, 76px) clamp(22px, 8.5vw, 124px) 28px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(230px, 280px);
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 4vw, 56px);
  width: 100%;
  max-width: 1060px;
  margin: auto;
}

.notice {
  width: 100%;
  max-width: 660px;
  align-self: center;
  padding: clamp(26px, 4.2vw, 52px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-left: 3px solid var(--accent);
  border-radius: 5px 20px 20px 5px;
  background: rgba(18, 25, 35, .58);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .26);
  backdrop-filter: blur(12px);
  animation: reveal .75s cubic-bezier(.2, .75, .25, 1) both;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 24px);
}

.brand-logo {
  display: block;
  flex: 0 0 clamp(68px, 8vw, 92px);
  width: clamp(68px, 8vw, 92px);
  height: auto;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.brand-identity h1 {
  min-width: 0;
  max-width: none;
  flex: 1;
  font-size: clamp(1.85rem, 3.8vw, 3rem);
}

.related-sites {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(18, 25, 35, .62);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .2);
  backdrop-filter: blur(12px);
}

.related-sites h2 {
  max-width: none;
  margin: 0 0 16px;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  line-height: 1.4;
}

.related-site-links {
  display: grid;
  gap: 10px;
}

.related-site-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 10px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.related-site-link:hover,
.related-site-link:focus-visible {
  border-color: rgba(242, 161, 169, .65);
  background: rgba(217, 35, 54, .16);
  transform: translateX(3px);
}

.related-site-link:focus-visible { outline: 2px solid #f2a1a9; outline-offset: 3px; }

.related-arrow { color: #f2a1a9; font-size: 1.05rem; }

.eyebrow {
  margin: 0 0 12px;
  color: #f2a1a9;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1, h2 { font-family: 'Manrope', 'DM Sans', sans-serif; }

h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2.15rem, 5.1vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.02;
}

h1 span { display: block; color: #fff; }

.rule {
  width: 100%;
  height: 1px;
  margin: 28px 0 23px;
  background: rgba(255, 255, 255, .19);
}

.rule span {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-.5px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .075);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.status i { padding: 0 3px; color: #f2a1a9; font-style: normal; }

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ed5262;
  box-shadow: 0 0 0 4px rgba(237, 82, 98, .15);
  animation: pulse 2.2s ease-in-out infinite;
}

h2 {
  max-width: 490px;
  margin: 25px 0 10px;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.message {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.return-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 0;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .025em;
}

.return-line { width: 25px; height: 1px; background: #f16b78; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 0;
  padding-top: 34px;
  color: rgba(255, 255, 255, .78);
  font-size: .76rem;
  letter-spacing: .035em;
}

.footer-separator { color: #f16b78; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 7px rgba(237, 82, 98, .04); }
}

@media (max-width: 1120px) {
  .content-layout {
    grid-template-columns: minmax(0, 660px);
    gap: 20px;
  }

  .related-sites {
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
  }

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

@media (max-width: 700px) {
  body {
    background-image:
      linear-gradient(90deg, rgba(13, 19, 28, .88), rgba(13, 19, 28, .68)),
      linear-gradient(0deg, rgba(13, 19, 28, .72), rgba(13, 19, 28, .15)),
      url('assets/laboratorio-fondo.jpg');
    background-position: center, center, 59% center;
    background-attachment: scroll;
  }

  .page-shell { min-height: 100svh; padding: 24px 18px 22px; }
  .content-layout { gap: 16px; }
  .notice { margin: auto 0; padding: 27px 23px 30px; }
  .brand-identity { gap: 12px; }
  .brand-logo { flex-basis: clamp(54px, 16vw, 68px); width: clamp(54px, 16vw, 68px); }
  .eyebrow { font-size: .69rem; letter-spacing: .13em; }
  .brand-identity h1 { font-size: clamp(1.35rem, 6.4vw, 1.75rem); }
  .rule { margin: 23px 0 20px; }
  .status { gap: 8px; padding: 8px 11px; font-size: .67rem; }
  .related-sites { padding: 20px; }
  .related-sites h2 { font-size: 1rem; }
  .related-site-links { grid-template-columns: minmax(0, 1fr); }
  .related-site-link { padding: 12px 13px; }
  h2 { margin-top: 22px; }
  .message { font-size: .94rem; line-height: 1.65; }
  .site-footer { gap: 6px; justify-content: center; padding-top: 24px; font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
