/* =========================================================
   Taxo — clean responsive rebuild
   ========================================================= */

:root {
  --bg: #121212;
  --bg-raised: rgba(18, 18, 18, 0.75);
  --panel: #1c1c1a;
  --border: #3a3830;
  --border-soft: #3a3830;
  --white: #f4f4f6;
  --white-70: rgba(244, 244, 246, 0.7);
  --muted: #909eae;
  --muted-dim: #736f60;
  --accent: #6f9bd1;
  --secondary: #224193;
  --highlight: #df3c5f;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-logo: "Space Grotesk", "Inter", sans-serif;
  --font-heading: "Space Grotesk", "Inter", sans-serif;

  --container: 1200px;
  --gap-section: clamp(60px, 10vw, 150px);
  --pad-x: clamp(14px, 4vw, 50px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(34, 65, 147, 0.22) 0%, rgba(111, 155, 209, 0.14) 55%, rgba(223, 60, 95, 0.06) 100%);
  pointer-events: none;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

.section { padding: var(--gap-section) 0; }
.section--dotted {
  position: relative;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.6px, transparent 1.4px);
  background-size: 30px 30px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn--white {
  background: var(--white);
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(111, 155, 209, 0.35), 0 0 24px rgba(111, 155, 209, 0.25);
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  color: var(--white);
  transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.2s ease;
}
.btn--ghost:hover {
  border-color: rgba(111, 155, 209, 0.35);
  background-color: rgba(111, 155, 209, 0.035);
}
.btn--lg { padding: 18px 34px; font-size: 16px; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--muted-dim);
  margin: 0 0 20px;
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.eyebrow--light { color: var(--white); }
.eyebrow__dot--light { background: var(--white); }

.section__lead {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.15;
  max-width: 1100px;
  margin: 0 0 clamp(30px, 4vw, 70px);
}
.section__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  margin: 10px 0 0;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__logo { display: block; flex: none; }
.nav__logo-word {
  display: inline-block;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 25.9px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transform: translateZ(0);
}

.nav__cta { display: flex; align-items: center; gap: 5px; }
.nav__cta .btn { padding: 12px 22px; font-size: 14px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px var(--pad-x) 80px;
  text-align: center;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 900px;
}
.hero__title {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero__title-line { display: block; }
.hero__title-line--sans {
  font-size: clamp(47.5px, 11.25vw, 115px);
  font-family: var(--font-heading);
}
.hero__title-line--serif {
  font-size: clamp(47.5px, 11.25vw, 115px);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
}
.hero__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.4vw, 21px);
  color: var(--white);
  max-width: 560px;
  margin: 8px 0 6px;
  line-height: 1.5;
}
.hero__cta {
  margin-top: 36px;
  border-radius: 16px;
  background: var(--highlight);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(223, 60, 95, 0.4), 0 0 28px rgba(223, 60, 95, 0.35);
}
.hero__cta:hover { opacity: 0.88; }

/* =========================================================
   INTRODUCTION split text
   ========================================================= */
.split-text {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  padding-top: 70px;
  border-top: 1px solid var(--border-soft);
}
.split-text p {
  margin: 0;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  max-width: 600px;
}

/* =========================================================
   SEGMENTS (who we serve)
   ========================================================= */
.segments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 24px;
}
.segment-box {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}
.segment-box:hover,
.segment-box[open] {
  border-color: rgba(111, 155, 209, 0.35);
  background-color: rgba(111, 155, 209, 0.035);
}
.segment-box summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.segment-box summary::-webkit-details-marker { display: none; }
.segment-box__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  margin: 0;
}
.segment-box__icon {
  flex: none;
  width: 24px;
  height: 24px;
  position: relative;
}
.segment-box__icon::before, .segment-box__icon::after {
  content: "";
  position: absolute;
  background: var(--white);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.segment-box__icon::before { width: 12px; height: 1.5px; }
.segment-box__icon::after { width: 1.5px; height: 12px; }
.segment-box[open] .segment-box__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.segment-box__desc {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-sans);
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
}

/* =========================================================
   DELIVERABLES
   ========================================================= */
.deliverables__title {
  margin: 10px 0 clamp(30px, 4vw, 60px);
  max-width: 700px;
}
.deliverables {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.deliverable-card {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.deliverable-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.deliverable-visual {
  height: 160px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(223, 60, 95, 0.35), transparent 60%),
    linear-gradient(135deg, #14204a 0%, #08080a 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* mismo degradé que la caja "Potenciada por IA", con un ángulo distinto por tarjeta para dar variedad sin perder unidad */
.deliverable-visual--dashboard { background: radial-gradient(ellipse at 30% 30%, rgba(223, 60, 95, 0.35), transparent 60%), linear-gradient(105deg, #14204a 0%, #08080a 100%); }
.deliverable-visual--code { background: radial-gradient(ellipse at 30% 30%, rgba(223, 60, 95, 0.35), transparent 60%), linear-gradient(165deg, #14204a 0%, #08080a 100%); }
.deliverable-visual--slides { background: radial-gradient(ellipse at 30% 30%, rgba(223, 60, 95, 0.35), transparent 60%), linear-gradient(45deg, #14204a 0%, #08080a 100%); }
.deliverable-visual--doc { background: radial-gradient(ellipse at 30% 30%, rgba(223, 60, 95, 0.35), transparent 60%), linear-gradient(200deg, #14204a 0%, #08080a 100%); }
.deliverable-card__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(19px, 1.8vw, 22px);
  margin: 0;
}
.deliverable-card__desc {
  font-family: var(--font-sans);
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* ---- visual 1: animated dashboard bars + sparkline ---- */
.dv-dash {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 70px;
}
.dv-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(111, 155, 209, 0.25));
  animation: dv-bar-grow 2.4s ease-in-out infinite;
  transform-origin: bottom;
}
.dv-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.dv-bar:nth-child(2) { height: 65%; animation-delay: 0.15s; }
.dv-bar:nth-child(3) { height: 45%; animation-delay: 0.3s; }
.dv-bar:nth-child(4) { height: 80%; animation-delay: 0.45s; }
.dv-bar:nth-child(5) { height: 55%; animation-delay: 0.6s; }
.dv-bar:nth-child(6) { height: 70%; animation-delay: 0.75s; }
.dv-bar:nth-child(3n+1) { background: linear-gradient(180deg, var(--accent), rgba(111, 155, 209, 0.25)); }
.dv-bar:nth-child(3n+2) { background: linear-gradient(180deg, var(--secondary), rgba(34, 65, 147, 0.25)); }
.dv-bar:nth-child(3n) { background: linear-gradient(180deg, var(--highlight), rgba(223, 60, 95, 0.25)); }
@keyframes dv-bar-grow {
  0%, 100% { transform: scaleY(0.7); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}
.dv-spark {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 40px;
  width: calc(100% - 40px);
  overflow: visible;
}
.dv-spark polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: dv-spark-draw 3.2s ease-in-out infinite;
}
@keyframes dv-spark-draw {
  0% { stroke-dashoffset: 220; }
  55%, 100% { stroke-dashoffset: 0; }
}

/* ---- visual 2: code block with blinking cursor ---- */
.dv-code {
  width: 100%;
  padding: 18px 20px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.75);
}
.dv-code__line { white-space: pre; }
.dv-tok-kw { color: var(--accent); }
.dv-tok-fn { color: #4ade80; }
.dv-tok-var { color: var(--white); }
.dv-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: middle;
  animation: dv-blink 1s step-end infinite;
}
@keyframes dv-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ---- visual 3: floating stacked pages ---- */
.dv-pages {
  position: relative;
  width: 90px;
  height: 100px;
}
.dv-page {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  animation: dv-float 3.6s ease-in-out infinite;
}
.dv-page--3 { transform: rotate(-10deg) translateY(6px); opacity: 0.5; animation-delay: 0s; }
.dv-page--2 { transform: rotate(-3deg) translateY(2px); opacity: 0.75; animation-delay: 0.2s; }
.dv-page--1 {
  background: #1c1c1f;
  animation-delay: 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}
.dv-page__line {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.dv-page__line--short { width: 60%; background: var(--accent); }
@keyframes dv-float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-6px) rotate(var(--r, 0deg)); }
}
.dv-page--3 { --r: -10deg; }
.dv-page--2 { --r: -3deg; }
.dv-page--1 { --r: 0deg; }

/* ---- visual 4: presentation slide carousel ---- */
.dv-slides {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dv-slide--side {
  width: 34px;
  height: 60px;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  opacity: 0.5;
  animation: dv-side-pulse 3s ease-in-out infinite;
}
.dv-slide--side:first-child { animation-delay: 0s; }
.dv-slide--side:last-child { animation-delay: 1.5s; }
.dv-slide--main {
  width: 76px;
  height: 96px;
  border-radius: 6px;
  background: #1c1c1f;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  animation: dv-main-pulse 3s ease-in-out infinite;
}
.dv-slide__bar {
  display: block;
  height: 6px;
  width: 60%;
  border-radius: 2px;
  background: var(--accent);
}
.dv-slide__line {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.dv-slide__line--short { width: 50%; }
@keyframes dv-side-pulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(-3px); }
}
@keyframes dv-main-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .dv-bar, .dv-spark polyline, .dv-cursor, .dv-page, .dv-slide--side, .dv-slide--main { animation: none; }
}

/* =========================================================
   FAQ
   ========================================================= */
.container--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.faq__heading { position: sticky; top: 120px; }
.faq__heading .section__title { max-width: 400px; }

.faq__list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 30px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: var(--white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__num {
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: 14px;
  flex: none;
  padding-top: 3px;
}
.faq-item__q {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.6vw, 24px);
  flex: 1;
}
.faq-item__icon {
  flex: none;
  width: 24px;
  height: 24px;
  position: relative;
  margin-top: 4px;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--white);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-item__icon::before { width: 12px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 12px; }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-item__a { padding: 20px 0 0 44px; }
.faq-item__a p {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--white);
  font-size: 16px;
  line-height: 1.5;
  max-width: 640px;
}

/* =========================================================
   SECURITY
   ========================================================= */
.security {
  position: relative;
  overflow: hidden;
}
.security .container { position: relative; z-index: 1; }
.security__image {
  position: relative;
  min-height: clamp(280px, 36vw, 460px);
  border-radius: 15px;
  margin-bottom: 50px;
  padding: clamp(28px, 4vw, 60px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(223, 60, 95, 0.35), transparent 60%),
    linear-gradient(135deg, #14204a 0%, #08080a 100%);
  border: 1px solid var(--border);
}
.security__title-row { max-width: 1100px; }
.security__heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.3;
  margin: 10px 0 0;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact__heading { position: sticky; top: 120px; }
.contact__desc {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--white);
  font-size: 17px;
  line-height: 1.6;
  max-width: 420px;
  margin: 20px 0 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 40px);
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
}
.contact-form__field input,
.contact-form__field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--white);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease;
}
.contact-form__field textarea { resize: vertical; font-family: inherit; }
.contact-form__field input:focus,
.contact-form__field textarea:focus { border-color: var(--accent); }
.contact-form__submit { align-self: flex-start; margin-top: 10px; }
.contact-form__note {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--accent);
  margin: 0;
  min-height: 1em;
}
@media (max-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--bg-raised);
  padding: 70px 0 50px;
}
.footer__top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer__brand .nav__logo-word { font-size: 29.25px; }
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer__social svg { width: 18px; height: 18px; flex: none; }
.footer__social:hover { color: var(--highlight); }
.footer__tag {
  font-family: var(--font-sans);
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}
.footer__links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__links a {
  font-family: var(--font-serif);
  font-size: 15px;
  transition: opacity 0.2s ease;
}
.footer__links a:hover { opacity: 0.7; }

.footer__bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__copy {
  font-family: var(--font-sans);
  color: var(--white);
  font-size: 15px;
  margin: 0;
}
/* =========================================================
   RESPONSIVE — Tablet
   ========================================================= */
@media (max-width: 1199.98px) {
  .split-text { grid-template-columns: 1fr; gap: 30px; }
  .segments { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .deliverables { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .container--split { grid-template-columns: 1fr; }
  .faq__heading { position: static; }
  .contact__heading { position: static; }
}

@media (max-width: 809.98px) {
  .hero { padding: 120px var(--pad-x) 60px; min-height: 90vh; }
  .hero__inner { text-align: center; align-items: center; }
  .hero__title, .hero__subtitle { text-align: center; margin-left: auto; margin-right: auto; }
  .hero__cta { align-self: center; }

  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .segments { grid-template-columns: 1fr; gap: 16px; }
  .segment-box { padding: 24px; }
  .deliverables { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .btn--lg { width: 100%; }
  .hero__inner { width: 100%; }
}
