:root {
  color-scheme: light;
  --ink: #06111d;
  --ink-soft: #0e2a44;
  --text: #163047;
  --muted: #526678;
  --line: rgba(15, 23, 42, 0.10);
  --paper: #f8fbff;
  --surface: #ffffff;
  --cyan: #00b7ff;
  --blue: #1863d9;
  --deep-blue: #053159;
  --orange: #ff8a2a;
  --green: #16a08f;
  --brand-warm: #9a5c00;
  --shadow: 0 10px 30px rgba(5, 16, 31, 0.10);
  --radius: 10px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(234, 246, 255, 0.75), rgba(247, 250, 252, 0) 520px),
    var(--paper);
  font-size: 16px;
  line-height: 1.6;
}

body::selection {
  background: rgba(0, 183, 255, 0.22);
}

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

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

.site-header {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 40;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(5, 11, 20, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.brand,
.site-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand strong,
.site-footer strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: #fff;
}

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  min-width: 250px;
  display: grid;
  gap: 6px;
  padding: 10px;
  background: rgba(5, 11, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
}

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

.header-tools,
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  cursor: pointer;
}

.lang-button img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
}

.lang-button.active {
  background: #fff;
  border-color: #fff;
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.05;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.header-action {
  color: #06111e;
  background: #fff;
  white-space: nowrap;
}

.button.primary {
  color: #04111f;
  background: linear-gradient(135deg, #36d6ff, #77f4d0);
  box-shadow: 0 18px 34px rgba(0, 183, 255, 0.22);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.button:hover,
.header-action:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #020712;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("img/portada.png");
  background-position: center;
  background-size: cover;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 7, 18, 0.72) 0%, rgba(2, 7, 18, 0.5) 42%, rgba(2, 7, 18, 0.18) 100%),
    linear-gradient(180deg, rgba(2, 7, 18, 0.30) 0%, rgba(2, 7, 18, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #7fe6ff;
  background: rgba(0, 183, 255, 0.09);
  border: 1px solid rgba(0, 183, 255, 0.18);
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--deep-blue);
  background: rgba(0, 183, 255, 0.1);
  border-color: rgba(22, 103, 217, 0.18);
}

.hero h1 {
  max-width: 850px;
  margin: 22px 0 20px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 860px;
  margin-top: 34px;
}

.hero-stats span {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  font-weight: 700;
}

.intro-strip {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -34px auto 0;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-strip strong {
  color: var(--ink);
  margin-right: 8px;
}

.intro-strip span {
  color: var(--muted);
}

.intro-strip a {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2,
.split-copy h2,
.proof-panel h2,
.contact-card h2 {
  margin: 14px 0 14px;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.split-copy p,
.proof-panel p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 200px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}

.service-card.highlight {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 183, 255, 0.18), rgba(255, 159, 28, 0.12)),
    var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
}

.card-kicker {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
}

.service-card.highlight .card-kicker {
  color: var(--cyan);
}

.service-card h3,
.ecosystem-card h3,
.usecase-list h3,
.timeline h3 {
  margin: 14px 0 10px;
  color: inherit;
  font-size: 1.24rem;
  line-height: 1.2;
}

.service-card p,
.ecosystem-card p,
.usecase-list p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.service-card.highlight p {
  color: rgba(255, 255, 255, 0.72);
}

.ecosystem-section {
  width: 100%;
  max-width: none;
  padding-left: max(12px, calc((100vw - 1180px) / 2));
  padding-right: max(12px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(6, 24, 46, 0.92), rgba(8, 47, 86, 0.86)),
    #071428;
}

.ecosystem-section .section-heading h2 {
  color: #fff;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .ecosystem-profiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.ecosystem-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius) - 2px);
}

.ecosystem-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
}

.ecosystem-card div {
  padding: 20px;
}

.ecosystem-card.alpaca h3 {
  color: var(--brand-warm);
}

.product-hero {
  min-height: 58vh;
  padding: 92px 0 40px;
  color: #fff;
  background: #05101a;
}

.product-hero-inner,
.product-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.product-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

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

.product-hero h1 {
  margin: 18px 0;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.product-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.16rem;
}

.product-visual {
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-visual img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
}

.product-main {
  display: grid;
  gap: 18px;
  padding: 82px 0;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-feature,
.product-band,
.product-use {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.product-feature h2,
.product-band h2 {
  margin: 0 0 10px;
  color: var(--ink);
}

.product-feature p,
.product-band p {
  margin: 0;
  color: var(--muted);
}

.product-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.product-uses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.product-use {
  color: var(--deep-blue);
  font-weight: 900;
  text-align: center;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.split-copy {
  position: sticky;
  top: 120px;
}

.usecase-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.usecase-list article {
  min-height: 190px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.usecase-list article:nth-child(2) {
  border-top: 4px solid var(--green);
}

.usecase-list article:nth-child(3) {
  border-top: 4px solid var(--orange);
}

.method-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: #eef7ff;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline article {
  position: relative;
  min-height: 250px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(22, 103, 217, 0.12);
  border-radius: var(--radius);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: var(--radius);
  font-weight: 900;
}

.proof-section {
  padding-bottom: 54px;
}

.proof-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.proof-panel img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
}

.proof-panel > div {
  padding: 24px;
}

.proof-panel ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.proof-panel li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  font-weight: 700;
}

.proof-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 9px;
  background: var(--cyan);
  border-radius: 50%;
}

.contact-section {
  padding-top: 44px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 183, 255, 0.18), rgba(255, 159, 28, 0.18)),
    var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  color: #fff;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
  min-width: 270px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 34px 0 44px;
}

.site-footer img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer small {
  display: block;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: rgba(2,7,18,0.96);
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}
.cookie-banner p { margin: 0; color: rgba(255,255,255,0.92); }
.cookie-actions { display:flex; gap:8px; align-items:center; }

/* Portfolio */
.portfolio-section { padding: 56px 0; background: #fff; }
.portfolio-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
.portfolio-card { padding:18px; border:1px solid var(--line); border-radius:8px; background: #fff; display:flex; gap:12px; align-items:center; }
.portfolio-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  background: #f3f6f9;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.portfolio-card div { display:flex; flex-direction:column; }
.portfolio-card h4 { margin:0 0 6px; font-size:1rem; }
.portfolio-card p { margin:0; color:var(--muted); font-size:0.95rem; }

/* MVP promo */
.mvp-banner { margin: 34px 0; padding: 22px; border-radius: 12px; background: linear-gradient(90deg, rgba(54,214,255,0.12), rgba(119,244,208,0.08)); border:1px solid rgba(0,183,255,0.14); display:flex; align-items:center; justify-content:space-between; gap:16px; }
.mvp-copy h3 { margin:0 0 6px; }
.mvp-copy p { margin:0; color:var(--muted); }

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

@media (max-width: 720px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .cookie-banner { left:12px; right:12px; }
  .mvp-banner { flex-direction:column; align-items:flex-start; }
}

@media (max-width: 1050px) {
  .nav-links {
    display: none;
  }

  .services-grid,
  .ecosystem-grid,
  .timeline,
  .product-features,
  .product-uses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .proof-panel,
  .contact-card,
  .product-hero-inner,
  .product-band {
    grid-template-columns: 1fr;
  }

  .split-copy {
    position: static;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 0;
    width: 100%;
    border-radius: 0;
    flex-wrap: wrap;
  }

  .header-action {
    display: none;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .header-tools {
    margin-left: auto;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-bg {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(2, 7, 18, 0.66) 0%, rgba(2, 7, 18, 0.9) 72%),
      linear-gradient(90deg, rgba(2, 7, 18, 0.92), rgba(2, 7, 18, 0.28));
  }

  .hero-content {
    padding-top: 108px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.55rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-stats {
    margin-top: 22px;
  }

  .hero-stats span {
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .intro-strip,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-strip a {
    white-space: normal;
  }

  .section {
    padding: 68px 0;
  }

  .services-grid,
  .ecosystem-grid,
  .usecase-list,
  .timeline,
  .product-features,
  .product-uses {
    grid-template-columns: 1fr;
  }

  .product-hero {
    padding-top: 132px;
  }

  .service-card,
  .usecase-list article,
  .timeline article {
    min-height: auto;
  }

  .proof-panel {
    padding: 10px;
  }

  .proof-panel img {
    min-height: 280px;
  }

  .proof-panel > div,
  .contact-card {
    padding: 22px;
  }

  .site-footer p {
    text-align: left;
  }
}
