/* ==========================================================================
   TAURUS TECH — Estilos minimalistas
   Cambia los colores en :root para ajustar la identidad.
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e3;
  /* Colores de marca (tomados del logo) */
  --navy: #0b1933;
  --navy-2: #12254a;
  --cyan: #22f0e4;
  --accent: #0a7f78;      /* turquesa oscuro: legible sobre blanco */
  --accent-soft: #e3f7f5;
  --ok: #2f7d4f;
  --beta: #7a5bb5;
  --soon: #8a8a8a;
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1933;
    --bg-alt: #0f2040;
    --text: #eef3fa;
    --muted: #93a3c0;
    --line: #1d2f55;
    --accent: #22f0e4;
    --accent-soft: #0f2f45;
    --ok: #5cbf86;
    --beta: #a98ae0;
    --soon: #7d7d7d;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--text);
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn:hover { opacity: 0.85; }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); opacity: 1; }
.btn--small { padding: 8px 16px; font-size: 0.875rem; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: color-mix(in srgb, var(--navy) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled { border-bottom-color: rgba(255, 255, 255, 0.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 1.1rem; }
.brand__mark { border-radius: 9px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 0.925rem; }
.nav__links a:not(.btn) { color: rgba(255, 255, 255, 0.7); transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: #fff; }
.nav .btn { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav__toggle span { display: block; height: 1.5px; background: #fff; }

/* ---------- Hero (siempre en azul marino de marca) ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: clamp(48px, 9vh, 96px) 0 clamp(56px, 10vh, 104px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 32px;
}
.hero .eyebrow { color: rgba(255, 255, 255, 0.6); }
.hero__title {
  font-size: clamp(3rem, 7vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.hero__tagline {
  margin-top: 20px;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--cyan);
  font-weight: 400;
}
.hero__desc { margin-top: 20px; max-width: 540px; color: rgba(255, 255, 255, 0.72); font-size: 1.05rem; }
.hero__actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.hero .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.hero .btn--ghost:hover { border-color: #fff; background: #fff; color: var(--navy); }
.hero__media img {
  display: block;
  width: 118%;
  max-width: none;
  height: auto;
  margin-left: -9%;
  /* Funde los bordes del banner con el fondo azul marino */
  -webkit-mask-image: radial-gradient(ellipse 62% 64% at 50% 46%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 64% at 50% 46%, #000 62%, transparent 100%);
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 12vh, 120px) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 48px; max-width: 640px; }
.section__head h2, .contact h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.section__sub { margin-top: 14px; color: var(--muted); }

/* ---------- Servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.service:hover { background: var(--bg-alt); }
.service__num { font-size: 0.8rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.service h3 { margin-top: 18px; font-size: 1.2rem; }
.service p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font: inherit;
  font-size: 0.875rem;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Sistemas ---------- */
.systems {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.system {
  font: inherit;
  text-align: left;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  min-height: 210px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: fade 0.35s ease both;
}
.system:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--accent) 70%, transparent);
}
.system:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.system__top { display: flex; justify-content: space-between; align-items: center; }
.system__num { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.system__name { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; margin-top: 8px; }
.system__summary { color: var(--muted); font-size: 0.925rem; flex: 1; }
.system__foot { display: flex; justify-content: space-between; align-items: center; }
.system__icons { display: flex; gap: 8px; color: var(--accent); font-size: 0.9rem; }
.system__cat { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

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

/* ---------- Etiquetas de estado ---------- */
.tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  letter-spacing: 0.02em;
  text-transform: none;
}
.tag--disponible { color: var(--ok); }
.tag--beta { color: var(--beta); }
.tag--proximamente { color: var(--soon); }

/* ---------- Proceso ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step { border-top: 1px solid var(--text); padding-top: 20px; }
.step__num { font-size: 0.8rem; color: var(--accent); }
.step h3 { margin-top: 12px; font-size: 1.25rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact__label { color: var(--muted); font-size: 0.9rem; }
.contact__brochure { margin-top: 28px; }
.contact__list a { border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.contact__list a:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.875rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; }
.footer__brand img { border-radius: 6px; }
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover { color: var(--text); }

/* ---------- Modal ---------- */
.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 64px);
  padding: 40px 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(3px); }
.modal[open] { animation: fade 0.25s ease both; }
.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  font-size: 1.6rem;
  color: var(--muted);
  cursor: pointer;
}
.modal__close:hover { color: var(--text); }
.modal .eyebrow { display: flex; align-items: center; gap: 8px; }
.modal__title { font-size: 1.9rem; }
.modal__desc { margin-top: 14px; color: var(--muted); }
.modal__features { margin: 24px 0 0; padding: 0; list-style: none; }
.modal__features li { padding: 10px 0 10px 22px; border-top: 1px solid var(--line); position: relative; font-size: 0.95rem; }
.modal__features li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 1.5px; background: var(--accent); }
.modal__actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__media { order: -1; margin: -8px -16px 0; }
  .hero__media img { width: 100%; margin-left: 0; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; width: 100%; }
  .nav__links .btn { width: auto; margin-top: 8px; padding: 10px 18px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .modal { padding: 36px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
