:root {
  --bg: #0a0f2e;
  --bg-alt: #0d1b4b;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(0, 200, 255, 0.2);
  --text: #ebf2ff;
  --muted: #a0b4d0;
  --accent: #00c8ff;
  --accent-strong: #0099dd;
  --accent-soft: rgba(0, 200, 255, 0.16);
  --glow: 0 0 40px rgba(0, 200, 255, 0.28);
  --radius: 28px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 200, 255, 0.14), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(0, 80, 200, 0.12), transparent 24%),
    linear-gradient(135deg, #0a0f2e 0%, #0d1b4b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 90%);
}

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

/* ─── Layout ─────────────────────────────────────────── */
.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

/* ─── Navbar ─────────────────────────────────────────── */
.hero {
  padding: 22px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 14px 0 18px;
  position: relative;
}

/* Logo imagen */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 65px;
  width: auto;
  display: block;
  background: transparent;
  mix-blend-mode: screen;
  image-rendering: -webkit-optimize-contrast;
}

/* Fallback texto si la imagen falla */
.brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand-mark { color: var(--accent); }
.brand-slash,
.brand-rest  { color: #f0f4ff; }

/* Nav links */
.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  align-items: center;
}

.nav-links a {
  transition: color 180ms ease;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

/* Hamburger button — oculto en desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 280ms ease, opacity 200ms ease;
}

/* Estado abierto */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ─── Hero ───────────────────────────────────────────── */
.hero-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 42px 70px;
  min-height: 78vh;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(145deg, rgba(10, 15, 46, 0.88), rgba(13, 27, 75, 0.78)),
    radial-gradient(circle at top, rgba(0, 200, 255, 0.12), transparent 34%),
    url("assets/hero-bg.png") center right / cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-grid::after {
  content: "";
  position: absolute;
  inset: auto -10% 8% 35%;
  height: 220px;
  background:
    linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.50), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(0, 200, 255, 0.05) 0 14px,
      rgba(0, 200, 255, 0.18) 14px 16px
    );
  filter: blur(1px);
  transform: perspective(350px) rotateX(62deg);
  opacity: 0.85;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* Logo en hero — versión grande centrada */
.hero-logo {
  height: clamp(96px, 14vw, 160px);
  width: auto;
  margin: 0 auto 14px;
  display: block;
  mix-blend-mode: screen;
}

.hero-kicker {
  display: none; /* reemplazado por hero-logo */
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  max-width: 12ch;
  margin: 0 auto;
  text-wrap: balance;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.18);
}

.lead {
  max-width: 52ch;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* ─── Buttons ─────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04111f;
  box-shadow: var(--glow);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

/* ─── Cards base ─────────────────────────────────────── */
.capability-card,
.expertise-card,
.section-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-card p,
.expertise-card p,
.footer p,
.contact-list p {
  color: var(--muted);
  line-height: 1.7;
}

.capability-card h3,
.expertise-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

/* ─── Sections ───────────────────────────────────────── */
.section {
  padding: 42px 0;
}

.visual-band {
  position: relative;
  padding: 42px 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background-color: rgba(6, 14, 29, 0.7);
  box-shadow: var(--shadow);
}

.visual-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.9;
  transform: scale(1.02);
}

.visual-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 22, 0.5), rgba(5, 12, 24, 0.78));
}

.visual-band > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  max-width: 18ch;
}

/* ─── Story / Quiénes somos ──────────────────────────── */
.story::before {
  background-image: url("assets/solutions-bg.png");
  background-position: center right;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(28px, 7vw, 96px);
  min-height: 560px;
}

.about-card {
  width: 100%;
  padding: 28px;
  border-radius: 22px;
  margin: 0;
}

.about-card .section-heading { margin-bottom: 18px; }

.about-card .section-heading h2 {
  max-width: 10ch;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.story-grid {
  display: grid;
  gap: 18px;
}

.story-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
  text-align: justify;
  text-justify: inter-word;
}

.about-proof {
  justify-self: end;
  width: min(430px, 100%);
  padding: 30px;
  border-left: 1px solid rgba(0, 200, 255, 0.34);
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.12), transparent);
}

.about-proof span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-proof strong {
  display: block;
  margin: 8px 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.9;
}

.about-proof p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ─── Capabilities ───────────────────────────────────── */
.capabilities::before {
  background-image: url("assets/ai-bg.png");
  background-position: center right;
}

.capabilities .section-heading h2 { max-width: 9ch; }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 280px));
  justify-content: center;
  gap: 18px;
}

.capability-card {
  padding: 26px;
  border-radius: 24px;
  background: var(--panel);
  min-height: 240px;
}

.capability-card h3 {
  margin-top: 18px;
  font-family: "Space Grotesk", sans-serif;
}

/* ─── Expertise ──────────────────────────────────────── */
.expertise::before {
  background-image: url("assets/network-bg.png");
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.expertise-card {
  padding: 26px;
  border-radius: 24px;
  background: var(--panel);
}

.expertise-card h3 {
  margin-top: 18px;
  font-family: "Space Grotesk", sans-serif;
}

/* ─── Clientes ───────────────────────────────────────── */
.clients::before {
  background-image: url("assets/footer-bg.png");
}

.client-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 14px;
  padding: 16px 0 6px;
}

.client-viewport {
  overflow: hidden;
  padding: 22px 0;
  scroll-behavior: smooth;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.logo-track {
  display: flex;
  width: 100%;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 calc(100% / 3);
  min-height: 150px;
  padding: 18px 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  transition: opacity 0.2s, transform 0.2s;
}

.logo-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.client-logo {
  max-height: 86px;
  max-width: min(100%, 250px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  border-radius: 0;
  mix-blend-mode: screen;
  transition: opacity 0.2s;
}

.client-logo--svg {
  max-height: 70px;
  filter: brightness(0) invert(1);
}

.client-logo--white {
  max-height: 74px;
  filter: brightness(0) invert(1);
}

.client-logo--bitacora {
  max-height: 76px;
}

.client-logo--fresh {
  max-height: 94px;
  filter: none;
}

.client-logo--aluzak {
  max-height: 82px;
  max-width: 210px;
  image-rendering: auto;
}

.client-logo--startrust {
  max-height: 86px;
  max-width: min(100%, 260px);
  mix-blend-mode: normal;
}

.santander-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #e50000;
  color: #fff;
  border-radius: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1;
}

.santander-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.icc-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icc-logo img {
  width: min(260px, 100%);
  height: auto;
  object-fit: contain;
}


.logo-item:hover .client-logo {
  opacity: 1;
}

.carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition:
    opacity 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  border-color: rgba(0, 200, 255, 0.5);
  background: rgba(0, 200, 255, 0.12);
  transform: translateY(-1px);
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.35;
  transform: none;
}

.carousel-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 12px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(235, 242, 255, 0.32);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.carousel-dots button.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.footer::before {
  background-image: url("assets/footer-bg.png");
  background-position: center right;
}

.footer-copy,
.contact-list {
  padding: 18px 6px;
}

.footer-copy {
  min-height: 220px;
  display: grid;
  align-content: end;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 14px;
}

/* Logo en footer */
.footer-brand .brand-logo {
  height: 68px;
  mix-blend-mode: screen;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: rgba(0, 200, 255, 0.5);
  background: rgba(0, 200, 255, 0.12);
  transform: translateY(-1px);
}

.social-links svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.contact-list {
  display: grid;
  gap: 12px;
  justify-items: end;
  text-align: right;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.contact-title {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.contact-list a {
  color: var(--accent);
  transition: opacity 180ms ease;
}

.contact-list a:hover { opacity: 0.8; }

/* ─── Responsive: Tablet (≤ 1024px) ─────────────────── */
@media (max-width: 1024px) {
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: stretch;
  }

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

  .logo-item {
    flex-basis: 50%;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .contact-list {
    justify-items: start;
    text-align: left;
    padding-left: 6px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }

  .visual-band {
    padding: 32px 22px;
  }

  .hero-grid {
    min-height: 65vh;
  }

  .about-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-proof {
    justify-self: start;
  }
}

/* ─── Responsive: Móvil (≤ 720px) ───────────────────── */
@media (max-width: 720px) {
  .site-shell {
    width: calc(100% - 20px);
  }

  /* Navbar móvil */
  .topbar {
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 12px 0 20px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 4px;
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 200, 255, 0.08);
  }

  /* Hero */
  .hero { padding: 16px 0 28px; }

  .hero-grid {
    padding: 36px 20px 52px;
    min-height: auto;
    border-radius: 22px;
  }

  .hero-logo {
    height: 86px;
    margin-bottom: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .button {
    width: 100%;
    max-width: 300px;
  }

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

  .visual-band { padding: 24px 16px; }

  .section-heading h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    max-width: none;
  }

  /* Cards */
  .capability-card,
  .expertise-card,
  .section-card {
    padding: 20px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  /* Clientes */
  .client-carousel {
    grid-template-columns: 40px 1fr 40px;
    gap: 8px;
  }

  .client-viewport {
    padding: 10px 0;
  }

  .logo-item {
    flex-basis: 100%;
    min-height: 110px;
    padding: 8px 14px;
  }

  .client-logo {
    max-height: 72px;
    max-width: 220px;
  }

  .client-logo--svg {
    max-height: 58px;
  }

  .santander-logo {
    font-size: 1.45rem;
    padding: 9px 14px;
  }

  .santander-logo img {
    width: 32px;
    height: 32px;
  }

  .icc-logo {
    max-width: 230px;
  }

  .icc-logo img {
    width: 220px;
    height: auto;
  }

  .client-logo--aluzak {
    max-height: 72px;
    max-width: 190px;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 1.65rem;
  }

  /* About card */
  .about-card {
    width: 100%;
    margin: 0;
  }

  .about-proof {
    width: 100%;
    padding: 22px;
  }

  /* Footer */
  .footer {
    margin-top: 16px;
  }

  .footer-copy {
    min-height: auto;
  }

  .contact-title { font-size: 1.5rem; }
}

/* ─── Responsive: Muy pequeño (≤ 400px) ─────────────── */
@media (max-width: 400px) {
  .brand-logo {
    height: 30px;
  }
}
