:root {
  --ink:      #14171a;
  --ink-soft: #3d4348;
  --text-2:   #6b7278;
  --paper:    #ffffff;
  --paper-alt:#f7f7f5;
  --line:     #e4e4e0;
  --accent:   #0ea5e9;
  --accent-ink: #0b1620;
  --radius: 10px;
  --max: 1120px;

  /* Dark / brutalist theme (header + hero) */
  --dark-bg:      #0a0a0b;
  --dark-bg-alt:  #111114;
  --dark-ink:     #f5f5f2;
  --dark-text-2:  #85858c;
  --dark-line:    rgba(255, 255, 255, 0.1);
  --accent-dark:  #22e2a0;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-color: var(--accent) transparent;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

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

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

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

.center {
  text-align: center;
}

/* ---------- Intro veil (entrance filter) ---------- */
.intro-veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--dark-bg);
  opacity: 1;
  transition: opacity 0.9s ease;
}

.intro-veil.veil-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #38bdf8;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

.site-footer {
  flex-shrink: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 28px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark-text-2);
  margin-right: auto;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
}

.brand strong {
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--dark-ink);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.footer-brand-text strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.footer-brand-text small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

.main-nav {
  position: relative;
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark-text-2);
  transition: color 0.15s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a.active {
  color: var(--accent);
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: left 0.3s ease, width 0.3s ease;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  height: 1.5px;
  background: var(--dark-ink);
  border-radius: 2px;
}

/* ---------- Views (tab-style sections) ---------- */
.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--dark-bg);
  color: var(--dark-ink);
}

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

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-cta-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 19%;
  pointer-events: none;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 180px;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  padding: 16px 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--accent);
  color: #052330;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
}

.hero-cta:hover {
  background: #38bdf8;
}

.hero-cta.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-cta-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-text-2);
  margin-bottom: 20px;
}

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

#servicios.active,
#nosotros.active,
#contacto.active {
  min-height: 100vh;
}

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

.section-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}

.section-subtitle {
  color: var(--text-2);
  font-size: 15px;
  max-width: 540px;
  margin: 0 0 52px;
}

.section-subtitle.center {
  margin-left: auto;
  margin-right: auto;
}

.products-subtitle {
  max-width: none;
  white-space: nowrap;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .products-subtitle {
    white-space: normal;
  }
}

.nosotros-subtitle {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contacto-subtitle {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Misión / Visión / Valores ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mission-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.mission-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.mission-bio {
  flex: 1 0 auto;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.check-list svg {
  flex-shrink: 0;
  color: var(--accent);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.value-box {
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(90deg, #dbeafe, #7dd3fc);
}

.stats-card {
  grid-column: 1 / -1;
  margin-top: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-left: 1px solid var(--line);
}

.stat-item:first-child {
  border-left: none;
}

.stat-item strong {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
}

.stat-item span {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}

.commitment-card {
  grid-column: 1 / -1;
  margin-top: 24px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
}

.commitment-intro h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

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

.commitment-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 12px;
}

.commitment-point h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.commitment-point p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}

.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.icon-badge.sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 16px;
  flex-shrink: 0;
}

/* ---------- Services / Products ---------- */
.products-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.product-card {
  --prod-accent: var(--accent);
  --prod-accent-ink: #0b1620;
  --prod-tint-1: #eaf2ff;
  --prod-tint-2: #f8fbff;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 16px;
  overflow: hidden;
  border-radius: 28px;
  padding: 40px 0 40px 40px;
  background: radial-gradient(120% 140% at 0% 0%, var(--prod-tint-1) 0%, var(--prod-tint-2) 55%, #ffffff 100%);
  border: 1px solid rgba(20, 23, 26, 0.06);
}

.product-card--wordexa {
  --prod-accent: #f97316;
  --prod-accent-ink: #431407;
  --prod-tint-1: #ffe7d1;
  --prod-tint-2: #fff8f2;
}

.product-card--findesk {
  --prod-accent: #16a34a;
  --prod-accent-ink: #072114;
  --prod-tint-1: #dcf5e6;
  --prod-tint-2: #f3fbf6;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  padding-right: 28px;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.product-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(20, 23, 26, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--prod-accent);
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-head h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 2px;
}

.product-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--prod-accent);
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .product-tag {
    white-space: normal;
  }
}

.product-desc {
  flex: 1 0 auto;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.product-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  margin: 0 0 26px;
  padding: 0;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.product-features svg {
  flex-shrink: 0;
  color: var(--prod-accent);
}

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

.product-btn {
  background: var(--prod-accent);
  color: #fff;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 10px;
}

.product-btn:hover {
  background: var(--prod-accent-ink);
}

.product-btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: rgba(20, 23, 26, 0.12);
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 10px;
}

.product-btn-ghost:hover {
  border-color: var(--ink);
}

/* ---------- Product preview mockup ---------- */
.product-preview {
  position: relative;
  height: 100%;
  min-height: 260px;
}

.mock-window {
  position: absolute;
  top: 10%;
  left: 6%;
  right: -14%;
  bottom: -16%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(20, 23, 26, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mock-window--back {
  top: 22%;
  left: 16%;
  right: -4%;
  bottom: -4%;
  z-index: -1;
  opacity: 0.5;
}

.mock-topbar {
  display: flex;
  gap: 5px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.mock-topbar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.mock-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.mock-sidebar {
  width: 22%;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line);
}

.mock-pill {
  height: 8px;
  border-radius: 4px;
  background: var(--paper-alt);
}

.mock-pill--active {
  background: var(--prod-accent);
  opacity: 0.85;
}

.mock-content {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.mock-greeting {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-greeting span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.mock-greeting small {
  font-size: 10px;
  color: var(--text-2);
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  flex: 1;
}

.mock-card {
  border-radius: 8px;
  background: var(--prod-tint-1);
}

.mock-stats-row {
  display: flex;
  gap: 8px;
}

.mock-stat {
  flex: 1;
  height: 30px;
  border-radius: 8px;
  background: var(--prod-tint-1);
}

.mock-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: var(--paper-alt);
}

.mock-chart span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--prod-accent);
  opacity: 0.75;
}

.mock-chart span:nth-child(1) { height: 35%; }
.mock-chart span:nth-child(2) { height: 55%; }
.mock-chart span:nth-child(3) { height: 40%; }
.mock-chart span:nth-child(4) { height: 75%; }
.mock-chart span:nth-child(5) { height: 60%; }
.mock-chart span:nth-child(6) { height: 90%; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
  max-width: 1040px;
  margin: 96px auto 0;
}

.contact-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-list strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.contact-list strong:not(:first-child) {
  margin-top: 10px;
}

.contact-list span {
  color: var(--text-2);
  font-size: 13px;
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.form-row input,
.form-row textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row.invalid input,
.form-row.invalid textarea {
  border-color: #d64545;
}

.form-error {
  font-size: 12px;
  color: #d64545;
  min-height: 14px;
}

.form-success {
  text-align: center;
  color: #1a8a4a;
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-nav {
  display: flex;
  gap: 22px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-2);
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--ink);
}

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--text-2);
  font-size: 12px;
  margin: 16px 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .product-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .product-card-body {
    padding-right: 0;
  }

  .product-preview {
    display: none;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .hero-cta-wrap {
    justify-content: center;
    padding-right: 0;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--dark-line);
    padding: 16px 28px;
    gap: 16px;
  }

  .mission-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .stats-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .commitment-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .commitment-points {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }

  .stat-item:first-child {
    border-top: none;
    padding-top: 0;
  }

  .product-features {
    grid-template-columns: 1fr;
  }

  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(20, 23, 26, 0.18);
  padding: 22px 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.cookie-text {
  flex: 1 1 260px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions .btn {
  padding: 9px 16px;
  font-size: 13px;
}

.cookie-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-panel-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-panel-row strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 2px;
}

.cookie-panel-row p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-2);
}

.cookie-panel-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}
