:root {
  --bg: #0b1021;
  --bg-2: #0f1730;
  --panel: #121a33;
  --panel-2: #11182e;
  --blue: #5fb3ff;
  --blue-2: #74d0ff;
  --violet: #a593ff;
  --gold: #ff9b4a;
  --text: #e7ecf6;
  --muted: #9cabc9;
  --shadow: 20px 20px 50px rgba(7, 10, 22, 0.75), -18px -18px 40px rgba(34, 46, 86, 0.35);
  --inner-shadow: inset 10px 10px 25px rgba(8, 12, 26, 0.6), inset -10px -10px 25px rgba(34, 46, 86, 0.25);
  --radius-lg: 26px;
  --radius-sm: 16px;
  font-family: "Space Grotesk", "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(95, 179, 255, 0.08), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(165, 147, 255, 0.08), transparent 30%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}

:root[data-theme="light"] {
  --bg: #e8edf8;
  --bg-2: #d9e3f6;
  --panel: #f5f7fc;
  --panel-2: #e8edf8;
  --text: #0d1830;
  --muted: #4a5875;
  --shadow: 14px 14px 34px rgba(0, 0, 0, 0.08), -12px -12px 32px rgba(255, 255, 255, 0.7);
  --inner-shadow: inset 8px 8px 16px rgba(0, 0, 0, 0.06), inset -8px -8px 16px rgba(255, 255, 255, 0.7);
  background: radial-gradient(circle at 18% 20%, rgba(95, 179, 255, 0.15), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(165, 147, 255, 0.12), transparent 26%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  transition: background 0.4s ease, color 0.4s ease;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}

.orb-1 {
  background: #5fb3ff;
  top: -60px;
  left: -60px;
  animation-duration: 22s;
}

.orb-2 {
  background: #a593ff;
  bottom: 40px;
  right: -30px;
  animation-duration: 18s;
  animation-delay: -4s;
}

.orb-3 {
  background: var(--gold);
  bottom: -120px;
  left: 15%;
  animation-duration: 26s;
  animation-delay: -8s;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 33, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] .top-bar {
  background: rgba(232, 237, 248, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: var(--inner-shadow);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0b0d16;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--text);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  gap: 8px;
  padding: 10px 14px;
  min-width: 52px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: none;
  background: linear-gradient(135deg, rgba(95, 179, 255, 0.2), rgba(165, 147, 255, 0.15));
  color: var(--text);
  border-radius: 30px;
}

:root[data-theme="dark"] .icon-btn {
  background: linear-gradient(135deg, rgba(95, 179, 255, 0.25), rgba(165, 147, 255, 0.25));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow);
}

:root[data-theme="light"] .icon-btn {
  background: linear-gradient(135deg, rgba(255, 155, 74, 0.85), rgba(255, 195, 110, 0.92));
  color: #1c1205;
  box-shadow: 0 12px 32px rgba(255, 155, 74, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 155, 74, 0.8);
}

.icon-btn .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.icon-btn .label {
  transition: color 0.3s ease;
}

:root[data-theme="light"] .icon-btn .label {
  color: #0d1830;
}

.icon-btn.toggling {
  animation: themePulse 0.35s ease;
}

@keyframes themePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}

.icon-btn .sun {
  opacity: 0;
  transform: scale(0.8) rotate(-90deg);
}

.icon-btn .moon {
  opacity: 1;
  transform: scale(1);
}

:root[data-theme="light"] .icon-btn .sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

:root[data-theme="light"] .icon-btn .moon {
  opacity: 0;
  transform: scale(0.8) rotate(90deg);
}

.icon-btn:active {
  transform: scale(0.98);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease;
}

.btn.primary {
  background-image: linear-gradient(135deg, var(--blue), var(--violet), #ffe066, #ff9c42, #ff5b45);
  background-size: 220% 220%;
  background-position: left center;
  color: #0b0d16;
  box-shadow: 12px 12px 30px rgba(0, 0, 0, 0.35);
  transition: background-position 1.2s ease, box-shadow 1.2s ease, color 1.2s ease;
}

:root[data-theme="light"] .btn.primary {
  color: #0d1830;
  box-shadow: 10px 10px 28px rgba(0, 0, 0, 0.12);
}

.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .btn.ghost {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary:hover {
  background-position: right center;
  color: #1d0c06;
  box-shadow: 0 12px 32px rgba(255, 120, 40, 0.45);
}

.btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #1ebe57);
  color: #041b0d;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  margin-top: 16px;
}

.btn.whatsapp:hover {
  color: #041b0d;
}

.container {
  position: relative;
  z-index: 1;
  padding: 80px 6vw;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
  padding-top: 100px;
}

.hero-text h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin: 12px 0 10px;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.quote {
  margin: 18px 0;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-style: italic;
  color: var(--text);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .quote {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.8);
  color: #1a2540;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.clay {
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

:root[data-theme="light"] .clay {
  background: linear-gradient(145deg, #fdfdff, #e9edf7);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.clay:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-chip {
  background: rgba(95, 179, 255, 0.12);
  color: var(--blue-2);
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(95, 179, 255, 0.3);
  font-weight: 600;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.metric {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.metric-note {
  color: var(--muted);
  margin: 6px 0 0;
}

.muted {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.timeline-step span {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 10px 0;
  letter-spacing: -0.01em;
}

.section-header p {
  margin: 0 0 14px;
  max-width: 720px;
}

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

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 20px;
  line-height: 1.5;
}

.card h3 {
  margin-top: 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

#equipo {
  grid-template-columns: minmax(0, 1fr);
}

#equipo .section-header {
  width: 100%;
}

#equipo .cta-panel {
  justify-self: end;
  width: min(520px, 100%);
}

.value-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.value-item {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(10, 12, 26, 0.4));
}

:root[data-theme="light"] .value-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(232, 237, 248, 0.85));
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 8px 8px 18px rgba(0, 0, 0, 0.05), -6px -6px 16px rgba(255, 255, 255, 0.7);
}

.value-item span {
  font-weight: 700;
}

.value-panel {
  padding: 24px;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 0;
}

.target {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.process-step {
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.circle {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #0b0d16;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

@media (min-width: 960px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.team-card {
  padding: 20px;
  width: 100%;
}

.clients .logo-carousel {
  overflow: hidden;
  padding: 20px;
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: marquee 80s linear infinite;
  width: max-content;
  flex-wrap: nowrap;
}

.logos-track img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.logos-track img:hover {
  opacity: 1;
  filter: grayscale(0.2);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-25px);
  }
  100% {
    transform: translateY(0);
  }
}

.team-note {
  margin: 10px 0 22px;
  color: var(--text);
  font-weight: 600;
}

:root[data-theme="dark"] .team-note {
  color: #f0f4ff;
}

:root[data-theme="light"] .team-note {
  color: #1a2540;
}
.cta-panel {
  padding: 26px;
}

.cta-panel ul {
  list-style: none;
  padding: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cta-panel li::before {
  content: "•";
  color: var(--blue);
  margin-right: 8px;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
}

form {
  padding: 20px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(95, 179, 255, 0.5);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.highlight {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-sm);
}

:root[data-theme="light"] .highlight {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 60px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 960px) {
  .top-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .cards-3 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 6vw 14px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scroll-padding: 0 6vw;
  }

  .cards-3 .card {
    flex: 0 0 calc(100% - 70px);
    min-width: calc(100% - 70px);
    scroll-snap-align: start;
    margin-right: 8px;
  }

  .cards-3::-webkit-scrollbar {
    height: 6px;
  }

  .cards-3::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
  }

  .value-list,
  .process {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 6vw 14px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scroll-padding: 0 6vw;
  }

  .value-list .value-item,
  .process .process-step {
    flex: 0 0 calc(100% - 70px);
    min-width: calc(100% - 70px);
    scroll-snap-align: start;
    margin-right: 8px;
  }

  .value-list::-webkit-scrollbar,
  .process::-webkit-scrollbar {
    height: 6px;
  }

  .value-list::-webkit-scrollbar-thumb,
  .process::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
  }

  .value-list::after,
  .process::after {
    content: "";
    flex: 0 0 40px;
  }
  .cards-3::after {
    content: "";
    flex: 0 0 40px;
  }
}
.certifications .cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 20px;
  align-items: center;
  justify-items: center;
}

.certifications .cert-grid img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.1);
  opacity: 0.85;
}
