/* NeoKLR 360 — Dark tech, Space Grotesk, cyan + indigo */
:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --bg-card: #1c2333;
  --indigo: #6366f1;
  --indigo-dark: #4f46e5;
  --cyan: #22d3ee;
  --cyan-dark: #06b6d4;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: rgba(99, 102, 241, 0.2);
  --glow: rgba(34, 211, 238, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --font: 'Space Grotesk', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--indigo); }
.container { width: min(1140px, 92%); margin-inline: auto; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__bar {
  background: var(--bg-elevated);
  font-size: 0.72rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.header__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.header__badge { font-weight: 600; letter-spacing: 0.02em; }
.header__link { font-weight: 500; color: var(--cyan); }
.header__link:hover { color: var(--text); text-decoration: underline; }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  flex-wrap: wrap;
  max-width: 260px;
}
.logo__text { flex: 1; min-width: 140px; }
.logo strong { color: var(--cyan); font-weight: 700; }
.logo__ring {
  width: 26px;
  height: 26px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.logo__ring::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--indigo);
  border-radius: 50%;
}
.logo__tagline {
  flex-basis: 100%;
  padding-left: calc(26px + 0.55rem);
  margin-top: -0.15rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}
.logo--footer { display: block; margin-bottom: 0.5rem; color: var(--text); }
.nav { display: flex; gap: 1.4rem; }
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--cyan); }
.header__cta { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.nav-toggle span { width: 100%; }
.nav-toggle::before,
.nav-toggle::after { content: ''; position: absolute; width: 100%; left: 0; }
.nav-toggle::before { top: 0; }
.nav-toggle::after { bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  font-family: inherit;
}
.btn--primary {
  background: linear-gradient(135deg, var(--indigo), var(--cyan-dark));
  color: var(--text);
  border-color: transparent;
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--indigo-dark), var(--cyan));
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--cyan);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--cyan); background: rgba(34, 211, 238, 0.08); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn--ghost:hover { border-color: var(--cyan); background: rgba(34, 211, 238, 0.1); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn--block { width: 100%; }

/* Hero with orbit */
.hero {
  position: relative;
  padding: 7.5rem 0 4.5rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 35%, var(--glow), transparent),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(99, 102, 241, 0.12), transparent);
  z-index: 0;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.55rem);
  line-height: 1.15;
  margin-bottom: 1.1rem;
  font-weight: 700;
}
.hero__subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 1.75rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.25rem; }
.hero__disclaimer {
  font-size: 0.76rem;
  color: var(--text-muted);
  max-width: 500px;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
}
.hero__disclaimer strong { color: var(--text); }

/* Orbit visual */
.hero__visual { display: flex; justify-content: center; }
.orbit {
  position: relative;
  width: 300px;
  height: 300px;
}
.orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.25);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.orbit__ring--outer { width: 100%; height: 100%; animation: spin 30s linear infinite; }
.orbit__ring--mid { width: 72%; height: 72%; border-color: rgba(99, 102, 241, 0.3); animation: spin 20s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.orbit__core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--glow);
}
.orbit__degree {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.orbit__label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}
.orbit__sat {
  position: absolute;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.orbit__sat--1 { top: 4%; left: 50%; transform: translateX(-50%); }
.orbit__sat--2 { right: -2%; top: 42%; }
.orbit__sat--3 { bottom: 4%; left: 50%; transform: translateX(-50%); }
.orbit__sat--4 { left: -2%; top: 42%; }

/* About */
.about__content h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 1rem;
  font-weight: 700;
}
.about__content p { color: var(--text-muted); margin-bottom: 1rem; }
.about__address {
  font-style: normal;
  font-size: 0.9rem;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  line-height: 1.7;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--bg-elevated); }
.section--legal { padding: 3rem 0; }
.section--contact { background: var(--bg-elevated); }
.section h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
  text-align: center;
  font-weight: 700;
}
.section__lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

/* Hexagon grid */
.hex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}
.hex-card {
  position: relative;
  padding-top: 115%;
}
.hex-card__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: none;
  transition: transform 0.2s;
}
.hex-card:hover .hex-card__inner {
  transform: scale(1.03);
  background: linear-gradient(160deg, var(--bg-card), rgba(99, 102, 241, 0.15));
}
.hex-card__num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.hex-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.hex-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 140px;
}

/* Tabs */
.tabs { max-width: 760px; margin: 0 auto; }
.tabs__nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.tabs__btn {
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.tabs__btn:hover { color: var(--text); border-color: var(--cyan); }
.tabs__btn.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(34, 211, 238, 0.15));
  border-color: var(--cyan);
}
.tabs__panel {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tabs__panel h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--cyan);
}
.tabs__panel p { color: var(--text-muted); margin-bottom: 1rem; }
.tabs__panel ul {
  list-style: none;
  padding: 0;
}
.tabs__panel li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.tabs__panel li::before {
  content: '▸ ';
  color: var(--indigo);
}

/* Legal box */
.legal-box {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  border-top: 2px solid var(--cyan);
}
.legal-box h2 { color: var(--cyan); margin-bottom: 0.75rem; text-align: center; }
.legal-box p { font-size: 0.94rem; color: var(--text-muted); }

/* Contact */
.contact-details {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Form */
.form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.5rem;
}
.form__full { grid-column: 1 / -1; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}
.form input,
.form select,
.form textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg-elevated);
  color: var(--text);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--cyan);
  border-color: var(--cyan);
}
.form__notice {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}
.form__consent {
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.6rem !important;
  font-size: 0.76rem !important;
  font-weight: 400 !important;
  line-height: 1.45;
  cursor: pointer;
}
.form__consent input[type="checkbox"] {
  width: auto;
  min-width: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.form__consent a { text-decoration: underline; }

/* Gradient footer */
.footer {
  background: linear-gradient(160deg, var(--indigo-dark) 0%, var(--bg) 45%, var(--bg-elevated) 100%);
  color: var(--text);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
}
.footer a { color: rgba(230, 237, 243, 0.85); }
.footer a:hover { color: var(--cyan); }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__address {
  font-style: normal;
  font-size: 0.88rem;
  margin-top: 0.75rem;
  line-height: 1.7;
  opacity: 0.9;
}
.footer nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.78rem;
  opacity: 0.8;
}
.footer__legal p + p { margin-top: 0.5rem; }

/* Legal pages */
.legal-page { padding: 6rem 0 4rem; }
.legal-page h1 { color: var(--cyan); margin-bottom: 1.5rem; font-weight: 700; }
.legal-page h2 { color: var(--text); margin: 2rem 0 0.75rem; font-size: 1.15rem; font-weight: 600; }
.legal-page p, .legal-page li { color: var(--text-muted); margin-bottom: 0.75rem; }
.legal-page ul { padding-left: 1.25rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
  color: var(--text);
}
.cookie-banner__inner {
  width: min(1140px, 92%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-banner__text { flex: 1; min-width: 240px; font-size: 0.84rem; line-height: 1.5; color: var(--text-muted); }
.cookie-banner__text p { margin: 0 0 0.25rem; }
.cookie-banner__text strong { color: var(--text); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__disclaimer { margin-inline: auto; }
  .hero__visual { order: -1; }
  .orbit { width: 260px; height: 260px; }
  .header__cta .btn--outline { display: none; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .header__cta { display: none; }
  .header__bar { display: none; }
  .hero { padding-top: 5.5rem; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions .btn { width: 100%; }
  .hex-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hex-grid { grid-template-columns: 1fr; max-width: 220px; }
}

/* SEO / LLM content */
.seo-section { background: var(--gray, #f4f6f8); }
.seo-section .seo-prose { max-width: 720px; margin: 1rem 0 1.25rem; }
.seo-section .seo-prose p { margin-bottom: 0.85rem; color: inherit; opacity: 0.92; }
.seo-keywords, .seo-area, .service-area, .service-area-block, .footer__service-area {
  font-size: 0.9rem;
  line-height: 1.5;
}
.seo-keywords { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 8px; background: rgba(0,0,0,0.04); }
.seo-area, .service-area-block { margin-top: 0.75rem; }
.footer__service-area { margin: 0.35rem 0; opacity: 0.9; }

/* === Mejoras layout, tipografía e imágenes === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}
.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.service-card__icon svg { width: 100%; height: 100%; display: block; }
.service-card h3 {
  text-wrap: balance;
  line-height: 1.3;
}
.service-card p {
  text-wrap: pretty;
  flex: 1;
  line-height: 1.55;
  margin-top: auto;
  padding-top: 0.5rem;
}
.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.scroll-hint {
  display: none;
  font-size: 0.82rem;
  color: var(--gray-dark, #607d8b);
}
.content-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.content-split__figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.content-split__figure img,
.content-split__figure svg {
  width: 100%;
  height: auto;
  display: block;
}
.ai-seo-section {
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, transparent 100%);
}
.ai-summary {
  max-width: 680px;
}
.ai-summary p { margin-bottom: 0.85rem; line-height: 1.65; text-wrap: pretty; }
.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.ai-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.process-step {
  text-align: center;
  padding: 1.25rem 1rem;
}
.process-step__img {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
}
.process-step h3 { font-size: 0.95rem; margin-bottom: 0.4rem; text-wrap: balance; }
.process-step p { font-size: 0.85rem; opacity: 0.88; text-wrap: pretty; }
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .content-split { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1.25rem;
    padding: 0 1.25rem 1rem;
    scroll-snap-type: x mandatory;
  }
  .services-grid {
    display: flex;
    width: max-content;
    gap: 1rem;
  }
  .services-grid .service-card {
    flex: 0 0 min(85vw, 300px);
    scroll-snap-align: start;
  }
  .scroll-hint { display: block; width: 100%; text-align: center; margin-top: 0.5rem; }
  .process-grid { grid-template-columns: 1fr; }
}

/* Fix tarjetas y tipografía en layouts alternativos */
.card-grid { align-items: stretch; }
.card, .card-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}
.card h3, .card-grid .card h3 { text-wrap: balance; line-height: 1.3; }
.card p, .card-grid .card p { text-wrap: pretty; line-height: 1.55; flex: 1; }
.timeline__content p, .timeline__content h3 { text-wrap: pretty; }
.timeline__content h3 { text-wrap: balance; }
.bento__item, .hex-card, .stack-card { text-wrap: pretty; }
.bento__item h3, .hex-card h3, .stack-card h3 { text-wrap: balance; }
.feature-row, .zigzag-row { text-wrap: pretty; }

