/* InnovaLab — identidad visual oficial */

:root {
  --navy: #0b1d6f;
  --navy-deep: #07144d;
  --navy-soft: #12308f;
  --cyan: #0096c8;
  --cyan-bright: #28c4f0;
  --white: #ffffff;
  --fog: rgba(255, 255, 255, 0.78);
  --panel: rgba(7, 20, 77, 0.62);
  --panel-border: rgba(0, 150, 200, 0.28);
  --max: 1120px;
  --header-h: 4.5rem;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--navy-deep);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Fixed brand scene */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--navy-deep);
}

.scene-fondo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(7, 20, 77, 0.35), rgba(11, 29, 111, 0.15) 45%, rgba(7, 20, 77, 0.55)),
    url("../assets/innovalab-fondo-web.png") center / cover no-repeat;
}

.scene-lines {
  position: absolute;
  opacity: 0.55;
  mix-blend-mode: screen;
  user-select: none;
}

.scene-lines--h1 {
  top: 4%;
  right: 0;
  left: auto;
  width: min(70vw, 920px);
}

.scene-lines--h2 {
  bottom: 8%;
  left: 0;
  right: auto;
  width: min(78vw, 1100px);
  opacity: 0.45;
}

.floating-icons {
  position: absolute;
  inset: 0;
}

.float-icon {
  position: absolute;
  width: clamp(42px, 5vw, 78px);
  height: auto;
  opacity: 0.28;
  filter: drop-shadow(0 0 12px rgba(0, 150, 200, 0.25));
  will-change: transform;
  transition: opacity 0.6s ease;
}

.float-icon.is-near {
  opacity: 0.48;
}

/* Content above scene */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(7, 20, 77, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 20, 77, 0.86);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.brand img {
  width: clamp(140px, 18vw, 200px);
  height: auto;
}

.nav {
  display: none;
  gap: 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  color: var(--fog);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--cyan-bright);
}

.partner-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.partner-link:hover {
  border-color: rgba(0, 150, 200, 0.55);
  background: rgba(0, 150, 200, 0.1);
}

.partner-link img {
  width: 92px;
  height: auto;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--cyan);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--cyan-bright);
  color: var(--navy-deep);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
}

/* Hero */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 5vw, 3.5rem) 4rem;
}

.hero-copy {
  max-width: 40rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-logo {
  width: min(100%, 420px);
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  font-size: clamp(1.45rem, 3.4vw, 2.05rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 30ch;
  margin-bottom: 1.8rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panels */
.panel {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
}

.panel-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.panel-head {
  margin-bottom: 2rem;
}

.panel-head p,
.panel p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
}

.panel h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.3rem);
}

.activity-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .activity-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.activity-grid li {
  padding: 1.1rem 0.2rem 0.2rem;
  border-top: 1px solid rgba(0, 150, 200, 0.28);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.activity-grid li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.activity-grid img {
  width: 52px;
  height: auto;
  margin: 0.9rem 0 0.7rem;
  filter: drop-shadow(0 0 10px rgba(0, 150, 200, 0.35));
}

.activity-grid h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.activity-grid p {
  margin: 0;
  font-size: 0.98rem;
}

/* Values */
.values {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  overflow: hidden;
}

.values-inner {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.values-inner p {
  color: rgba(255, 255, 255, 0.7);
}

.values-track {
  display: flex;
  gap: 2.25rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.values-track li {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
}

.values-track li::after {
  content: "·";
  margin-left: 2.25rem;
  color: var(--cyan);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Collab */
.collab-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .collab-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.collab-card {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 11rem;
  padding: 2rem;
  text-decoration: none;
  border-radius: 1.15rem;
  background:
    linear-gradient(145deg, rgba(0, 150, 200, 0.12), rgba(7, 20, 77, 0.35)),
    rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 150, 200, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.collab-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-bright);
}

.collab-card img {
  width: min(100%, 220px);
}

.collab-card span {
  color: var(--cyan-bright);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Location */
.location-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .location-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.location-grid address {
  font-style: normal;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
}

.location-grid address a {
  text-decoration: none;
  color: inherit;
}

.location-grid address a:hover strong {
  color: var(--white);
}

.location-grid address strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cyan-bright);
  transition: color 0.2s ease;
}

.map-link {
  margin-top: 1.25rem;
}

.map-link .btn {
  font-size: 0.9rem;
  padding: 0.7rem 1.15rem;
}

.location-photo {
  margin: 0;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.location-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.location-photo:hover img {
  transform: scale(1.03);
}

/* Contact */
.contact-inner {
  text-align: center;
}

.contact-inner p {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem clamp(1.25rem, 5vw, 3rem) 3rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 20, 77, 0.55);
  backdrop-filter: blur(10px);
}

.site-footer img {
  width: 160px;
  margin: 0 auto 1rem;
}

.site-footer a {
  color: var(--cyan-bright);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-note {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0.4rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .values-track,
  .hero-copy {
    animation: none !important;
  }

  .activity-grid li {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .collab-card:hover,
  .location-photo:hover img {
    transform: none;
  }

  .float-icon {
    transition: none;
  }
}
