/* ============================= */
/* GAMILAR LAB */
/* ============================= */

main .container {
  display: block;
}

.lab-page {
  background: #0b0f17;
  color: #f8fafc;
}

/* HERO */

.lab-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background:
    linear-gradient(rgba(255, 145, 0, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 145, 0, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 78% 26%, rgba(249, 115, 22, 0.24), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(37, 99, 235, 0.14), transparent 30%),
    linear-gradient(180deg, #0b0f17 0%, #111827 100%);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
}

.lab-hero-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: center;
  padding: 58px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 78% 42%, rgba(249, 115, 22, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.86));
  border: 1px solid rgba(249, 115, 22, 0.18);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.10);
  border: 1px solid rgba(249, 115, 22, 0.22);
  color: #fb923c;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lab-eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.12);
}

.lab-hero h1 {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 720;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.lab-hero h1 strong {
  display: block;
  color: #f97316;
  font-weight: 720;
}

.lab-hero-subtitle {
  max-width: 720px;
  margin: 0 0 32px;
  color: #cbd5e1;
  font-size: 1.18rem;
  line-height: 1.7;
}

.lab-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lab-hero-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 700;
}

.lab-hero-panel {
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(249, 115, 22, 0.18);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.lab-hero-panel > span {
  display: block;
  margin-bottom: 14px;
  color: #fb923c;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lab-hero-panel h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.lab-hero-panel p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* SECCIONES */

.lab-focus,
.lab-featured-project,
.lab-projects {
  padding: 90px 0;
}

.lab-focus {
  background: #0f172a;
}

.lab-featured-project,
.lab-projects {
  background:
    linear-gradient(rgba(255, 145, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 145, 0, 0.04) 1px, transparent 1px),
    #0b0f17;
  background-size: 38px 38px;
}

.lab-section-header {
  max-width: 780px;
  margin-bottom: 52px;
}

.lab-section-header span {
  display: inline-block;
  margin-bottom: 14px;
  color: #fb923c;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.lab-section-header h2 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.lab-section-header p {
  max-width: 680px;
  margin: 0;
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* FOCUS */

.lab-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lab-focus-grid article {
  min-height: 280px;
  padding: 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.lab-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  font-size: 1.55rem;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.24);
}

.lab-focus-grid h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
}

.lab-focus-grid p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ============================= */
/* PROYECTO DESTACADO YAGI */
/* ============================= */

.lab-featured-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
  padding: 46px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.86));
  border: 1px solid rgba(249, 115, 22, 0.20);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lab-featured-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: #fb923c;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.lab-featured-content h2 {
  max-width: 640px;
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.lab-featured-lead {
  max-width: 620px;
  margin: 0 0 18px;
  color: #fb923c;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.35;
}

.lab-featured-description {
  max-width: 620px;
  margin: 0 0 30px;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.75;
}

.lab-range-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.lab-range-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.lab-range-card.highlighted {
  background: rgba(249, 115, 22, 0.10);
  border-color: rgba(249, 115, 22, 0.30);
}

.lab-range-card span {
  display: block;
  margin-bottom: 10px;
  color: #fb923c;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lab-range-card strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.lab-range-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

.lab-range-arrow {
  color: #f97316;
  font-size: 2.6rem;
  font-weight: 700;
}

.lab-featured-note {
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(249, 115, 22, 0.09);
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.lab-featured-note strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 0.98rem;
}

.lab-featured-note span {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* IMAGEN ÚNICA PROYECTO DESTACADO */

.lab-featured-media {
  position: relative;
}

.lab-featured-image-single {
  position: relative;
  overflow: hidden;
  padding: 35px;
  border-radius: 28px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.015)
    );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.lab-featured-image-single img {
  width: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lab-featured-image-single:hover img {
  transform: scale(1.03);
}

.lab-image-floating-card {
  position: absolute;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(18, 20, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(16px);
}

.lab-image-floating-card span {
  display: block;
  margin-bottom: 4px;
  color: #9aa3af;
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lab-image-floating-card strong {
  color: #ffffff;
  font-size: 0.95rem;
}

.lab-image-floating-card.top {
  top: 25px;
  left: 25px;
}

.lab-image-floating-card.bottom {
  right: 25px;
  bottom: 25px;
}

.lab-featured-specs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.lab-featured-specs div {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.lab-featured-specs span {
  display: block;
  margin-bottom: 10px;
  color: #fb923c;
  font-size: 0.78rem;
  font-weight: 900;
}

.lab-featured-specs strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 0.98rem;
}

.lab-featured-specs p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* PROYECTOS */

.lab-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lab-card {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transition: all 0.25s ease;
}

.lab-card:hover {
  transform: translateY(-7px);
  border-color: rgba(249, 115, 22, 0.34);
  box-shadow:
    0 30px 78px rgba(0, 0, 0, 0.36),
    0 0 42px rgba(249, 115, 22, 0.08);
}

.lab-card-status {
  align-self: flex-start;
  display: inline-flex;
  margin-bottom: 24px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lab-card-status.available {
  background: rgba(249, 115, 22, 0.13);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.20);
}

.lab-card-status.researching {
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.lab-card h3 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.lab-card p {
  margin: 0 0 24px;
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.7;
}

.lab-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.lab-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.lab-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f97316;
}

.lab-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 16px;
  background: #f97316;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.20);
  transition: all 0.22s ease;
}

.lab-card-link:hover {
  background: #ea580c;
  color: #ffffff;
  transform: translateY(-2px);
}

.lab-card-link.disabled {
  background: rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  box-shadow: none;
  cursor: default;
}

.lab-card-disabled {
  opacity: 0.76;
}

/* RESPONSIVE */

@media (max-width: 991px) {
  .lab-hero-shell,
  .lab-featured-shell {
    grid-template-columns: 1fr;
  }

  .lab-focus-grid,
  .lab-project-grid {
    grid-template-columns: 1fr;
  }

  .lab-featured-specs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lab-hero {
    padding: 58px 0;
  }

  .lab-hero-shell,
  .lab-featured-shell {
    padding: 30px 20px;
    border-radius: 30px;
  }

  .lab-hero h1 {
    font-size: 4rem;
  }

  .lab-focus,
  .lab-featured-project,
  .lab-projects {
    padding: 64px 0;
  }

  .lab-section-header h2,
  .lab-featured-content h2 {
    font-size: 2.7rem;
  }

  .lab-card,
  .lab-focus-grid article {
    padding: 26px 22px;
    border-radius: 28px;
  }

  .lab-range-grid {
    grid-template-columns: 1fr;
  }

  .lab-range-arrow {
    text-align: center;
    transform: rotate(90deg);
  }

  .lab-featured-image-single {
    padding: 20px;
  }

  .lab-image-floating-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 15px;
  }

  .lab-featured-specs {
    grid-template-columns: 1fr;
  }
}