/* =========================================================
   Lanlab — Design System
   ========================================================= */

:root {
  --bg-dark: #0b0b0f;
  --bg-dark-alt: #16161f;
  --bg-light: #ffffff;
  --bg-light-alt: #f4f5f9;

  --text-on-dark: #ffffff;
  --text-on-dark-muted: #9a9db3;
  --text-on-light: #13131a;
  --text-on-light-muted: #585b70;

  --accent: #4c5fff;
  --accent-2: #00d4ff;
  --accent-hover: #6577ff;

  --border-dark: rgba(255, 255, 255, 0.12);
  --border-light: rgba(19, 19, 26, 0.1);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;

  --max-width: 1160px;

  --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.25);
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-on-light);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline-dark {
  border-color: rgba(19, 19, 26, 0.2);
  color: var(--text-on-light);
}
.btn--outline-dark:hover {
  border-color: var(--text-on-light);
  background: rgba(19, 19, 26, 0.05);
}

.btn--block {
  width: 100%;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.navbar__logo img {
  height: 30px;
  width: auto;
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__links a {
  color: var(--text-on-dark-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.navbar__links a:hover,
.navbar__links a.is-active {
  color: #fff;
}

.navbar__cta {
  margin-left: 8px;
}

.navbar__toggle {
  display: none;
  color: #fff;
  padding: 4px;
}

@media (max-width: 860px) {
  .navbar__toggle {
    display: block;
  }

  .navbar__links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .navbar__links.is-open {
    max-height: 400px;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border-dark);
  }

  .navbar__links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-dark);
  }

  .navbar__cta {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
  }

  .navbar__cta .btn {
    width: 100%;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(76, 95, 255, 0.35), transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(0, 212, 255, 0.25), transparent 50%),
    var(--bg-dark);
  color: #fff;
  padding: 140px 0 110px;
  text-align: center;
  overflow: hidden;
}

.hero--sm {
  padding: 90px 0 70px;
  text-align: left;
}

.hero__eyebrow {
  display: inline-block;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}

.hero--sm h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.hero p {
  color: var(--text-on-dark-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero--sm p {
  margin: 0;
  max-width: 640px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero--sm .hero__actions {
  justify-content: flex-start;
}

/* ===== Sections ===== */
.section {
  padding: 90px 0;
}

.section--alt {
  background: var(--bg-light-alt);
}

.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__head.left {
  margin: 0 0 48px;
  text-align: left;
}

.eyebrow {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}

.section__head p {
  color: var(--text-on-light-muted);
  font-size: 1.05rem;
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 28px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ===== Cards ===== */
.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-on-light-muted);
  font-size: 0.95rem;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

/* ===== Tag ===== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(76, 95, 255, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== Project / Portfolio cards ===== */
.project-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.project-card__image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__body {
  padding: 28px;
}

.project-card__body .tag {
  margin-bottom: 14px;
}

.project-card__body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.project-card__body p {
  color: var(--text-on-light-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.project-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.projects-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
  justify-content: center;
}

.portfolio-empty {
  text-align: center;
  padding: 60px 24px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  color: var(--text-on-light-muted);
}

/* ===== Values / Nosotros ===== */
.value-card {
  padding: 28px 0;
  border-top: 1px solid var(--border-light);
}

.value-card:last-child {
  border-bottom: 1px solid var(--border-light);
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-on-light-muted);
  font-size: 0.95rem;
}

/* ===== Contact cards ===== */
.contact-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(76, 95, 255, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-on-light-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(76, 95, 255, 0.35), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.25), transparent 55%),
    var(--bg-dark);
}

.cta-banner h2 {
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-on-dark-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-banner__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 70px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer__brand .navbar__logo {
  margin-bottom: 16px;
}

.footer__brand p {
  max-width: 320px;
  font-size: 0.9rem;
}

.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer ul li {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer a:hover {
  color: #fff;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.footer__social a:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.footer__bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== Misc layout helpers ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col--reverse > *:first-child {
  order: 2;
}

.two-col--reverse > *:last-child {
  order: 1;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .two-col--reverse > *:first-child,
  .two-col--reverse > *:last-child {
    order: initial;
  }
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-on-light);
}

.stat span {
  color: var(--text-on-light-muted);
  font-size: 0.9rem;
}

/* ===== Check list (servicios) ===== */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-on-light-muted);
  font-size: 0.95rem;
}

.check-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

/* ===== Icon panel (visual placeholder) ===== */
.icon-panel {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 25%, rgba(76, 95, 255, 0.4), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.3), transparent 55%),
    var(--bg-dark);
}

.icon-panel svg {
  width: 72px;
  height: 72px;
  position: relative;
  z-index: 1;
}

/* ===== Process steps (nosotros) ===== */
.step-card {
  position: relative;
}

.step-card__number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 12px;
}

/* ===== Legal / prose content ===== */
.legal {
  max-width: 720px;
  margin: 0 auto;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  color: var(--text-on-light-muted);
  margin-bottom: 16px;
}

.legal p:last-child {
  margin-bottom: 0;
}

.legal .legal__note {
  font-size: 0.9rem;
  font-style: italic;
}

.legal .legal__updated {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.placeholder-note {
  background: #fff7e6;
  border: 1px dashed #e0b04c;
  color: #7a5b12;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
