/* ===== Variables de diseño (colores tomados del logo de FDP Software) ===== */
:root {
  --ink: #111111;
  --text: #2c2c2c;
  --muted: #5a5a5a;
  --bg: #ffffff;
  --gray: #f3f3f3;
  --gray-2: #e6e6e6;
  --night: #0b0d1a;

  --blue: #3347c9;
  --teal: #1f9a87;
  --green: #2e9d57;
  --orange: #e3862b;
  --magenta: #c9307a;
  --violet: #4b2bd6;

  /* Degradado del logo: azul → verde → naranja → magenta */
  --brand-gradient: linear-gradient(90deg, #3b46c4, #1f9a87, #e3862b, #c9307a);
  --brand-mesh:
    radial-gradient(40% 55% at 78% 28%, rgba(59, 70, 196, 0.85), transparent 70%),
    radial-gradient(35% 50% at 92% 70%, rgba(201, 48, 122, 0.75), transparent 70%),
    radial-gradient(30% 40% at 62% 80%, rgba(227, 134, 43, 0.55), transparent 70%),
    radial-gradient(30% 45% at 58% 18%, rgba(31, 154, 135, 0.55), transparent 70%),
    var(--night);

  --radius: 20px;
  --radius-lg: 28px;
  --container: 1240px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

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

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.display--md { font-size: clamp(2rem, 4.4vw, 3.4rem); }

/* ===== Botones y enlaces ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--small { padding: 0.5rem 1.15rem; font-size: 0.95rem; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #333; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e9e9e9; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink);
  font-weight: 700;
}
.link-arrow::after {
  content: "›";
  font-size: 1.35em;
  line-height: 1;
  transition: transform 0.2s;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Insignias de color (como los íconos de producto) */
.badge {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}
.badge--blue    { background: var(--blue); }
.badge--teal    { background: var(--teal); }
.badge--green   { background: var(--green); }
.badge--orange  { background: var(--orange); }
.badge--magenta { background: var(--magenta); }
.badge--violet  { background: var(--violet); }
.badge--brand   { background: linear-gradient(135deg, #3b46c4, #1f9a87 40%, #e3862b 70%, #c9307a); }

/* ===== Encabezado flotante ===== */
.header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 16px;
}
.header__inner {
  max-width: var(--container);
  height: 60px;
  margin: 0 auto;
  padding: 0 10px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.header.is-scrolled .header__inner {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.logo__img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.25s;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav a:not(.btn) {
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s, opacity 0.2s;
}
.nav a:not(.btn):hover { opacity: 0.7; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s, background 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sobre la portada (arriba del todo) el encabezado es transparente y blanco */
.header:not(.is-scrolled) .logo__text { color: #fff; }
.header:not(.is-scrolled) .nav-toggle span { background: #fff; }
@media (min-width: 761px) {
  .header:not(.is-scrolled) .nav a:not(.btn) { color: #fff; }
  .header:not(.is-scrolled) .nav .btn--dark { background: #fff; color: var(--ink); }
}

/* ===== Portada con carrusel ===== */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
}
.slide__bg {
  position: absolute;
  inset: 0;
}
.slide__bg > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 18, 0.92) 0%, rgba(6, 7, 18, 0.7) 38%, rgba(6, 7, 18, 0.1) 75%),
    linear-gradient(0deg, rgba(6, 7, 18, 0.85) 0%, transparent 35%);
}

.slide--brand .slide__bg { background: var(--brand-mesh); }
.slide--brand .slide__bg::after { background: linear-gradient(0deg, rgba(6, 7, 18, 0.6) 0%, transparent 35%); }
.slide__logo {
  position: absolute;
  right: 7%;
  top: 42%;
  width: min(28vw, 50vh, 400px);
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  transform: translateY(-50%) rotate(-4deg);
}
.slide--sigma .slide__bg { background: var(--brand-mesh); }
.slide--sigma .slide__bg::after { background: linear-gradient(90deg, rgba(6, 7, 18, 0.85) 0%, rgba(6, 7, 18, 0.3) 45%, transparent 70%); }
.slide--sigma .slide__bg > img {
  position: absolute;
  right: 3%;
  top: 46%;
  width: min(50vw, 1366px);
  height: auto;
  border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  transform: translateY(-50%);
}
.slide--sigma .slide__content > * { max-width: 520px; }

/* La foto se muestra a su tamaño real (nunca ampliada), anclada abajo y desplazada a la derecha;
   arriba el cielo continúa con un degradado del mismo color */
.slide--sim .slide__bg { background: linear-gradient(180deg, #6f93ad 0%, #7ba0b9 60%, #7ba0b9 100%); }
.slide--sim .slide__bg > img {
  position: absolute;
  left: 14%;
  bottom: 0;
  width: 100%;
  max-width: 1920px;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%), linear-gradient(90deg, transparent 0%, #000 12%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%), linear-gradient(90deg, transparent 0%, #000 12%);
  mask-composite: intersect;
}

.slide__content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 24px 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slide__content > * { max-width: 760px; }
.slide__label {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}
.slide__title {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, min(5.4vw, 8.5vh), 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 0.35em;
}
.slide__text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
}
.slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.2rem;
}

.hero__controls {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 28px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.hero__pause {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 20, 20, 0.65);
  cursor: pointer;
}
.hero__pause svg { width: 16px; height: 16px; fill: #fff; }
.hero__pause .icon-play { display: none; }
.hero.is-paused .hero__pause .icon-play { display: block; }
.hero.is-paused .hero__pause .icon-pause { display: none; }

.hero__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hero__tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: rgba(30, 30, 34, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.hero__tab:hover { background: rgba(50, 50, 56, 0.75); }
.hero__tab.is-active {
  background: #fff;
  color: var(--ink);
}
.hero__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--brand-gradient);
}
.hero__tab.is-active .hero__progress {
  animation: progress var(--slide-time, 7s) linear forwards;
}
.hero.is-paused .hero__tab.is-active .hero__progress { animation-play-state: paused; }

@keyframes progress {
  to { width: 100%; }
}

/* ===== Hoja blanca que sube sobre la portada ===== */
.sheet {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.25);
}

.section { padding: 120px 0; }
.section--tight { padding: 64px 0; }
.section--gray { background: var(--gray); }

.section__head {
  max-width: 860px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Carril horizontal de soluciones ===== */
.rail {
  --gutter: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding: 4px var(--gutter) 8px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.rail-card {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  height: 500px;
  border-radius: var(--radius);
  background: var(--gray);
  overflow: hidden;
  scroll-snap-align: start;
}
.rail-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 10px;
}
.rail-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}
.rail-card p {
  padding: 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}
.rail-card__panel {
  position: relative;
  margin-top: auto;
  height: 300px;
  display: grid;
  place-items: center;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.rail-card__panel--blue    { background: linear-gradient(160deg, #4a5ee0, var(--blue)); }
.rail-card__panel--magenta { background: linear-gradient(160deg, #e2559b, var(--magenta)); }
.rail-card__panel--dark    { background: radial-gradient(circle at 50% 50%, #0f3b3a, #071a20 75%); }
.rail-card__panel--orange  { background: linear-gradient(160deg, #f5a54f, var(--orange)); }
.rail-card__panel--violet  { background: linear-gradient(160deg, #6b4dff, var(--violet)); }
.rail-card__panel--green   { background: linear-gradient(160deg, #46b871, var(--green)); }
.rail-card__panel--photo   { background: #071019; }
.rail-card__panel--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  max-width: var(--container);
  margin: 20px auto 0;
  padding: 0 24px;
}
.round-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-2);
  background: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.round-btn:hover { background: var(--gray); }
.round-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ilustraciones dentro de los paneles */
.art-window,
.art-table {
  width: 74%;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.art-window { height: 62%; }
.art-window i,
.art-table i { display: block; border-radius: 6px; }
.art-window i:nth-child(1) { height: 12px; width: 40%; background: var(--blue); }
.art-window i:nth-child(2) { height: 9px; width: 80%; background: #dde3ff; }
.art-window i:nth-child(3) { flex: 1; background: linear-gradient(135deg, #e8ecff, #f6e8ff); }
.art-table i { height: 20px; background: var(--gray); }
.art-table i:nth-child(1) { background: #ffd9b3; }

.art-chat {
  width: 76%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.art-chat i {
  display: block;
  height: 36px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.art-chat i:nth-child(1) { width: 72%; background: #fff; }
.art-chat i:nth-child(2) { width: 55%; align-self: flex-end; background: var(--ink); }
.art-chat i:nth-child(3) { width: 84%; background: rgba(255, 255, 255, 0.75); }

.art-chip i {
  position: relative;
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 18px;
  background: var(--ink);
  outline: 10px dashed rgba(255, 255, 255, 0.55);
  outline-offset: 8px;
}
.art-chip i::before {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 8px;
  background: var(--brand-gradient);
}

.art-shield i {
  position: relative;
  display: block;
  width: 104px;
  height: 120px;
  border-radius: 18px 18px 56px 56px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.art-shield i::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 38px;
  width: 30px;
  height: 18px;
  border-left: 6px solid var(--green);
  border-bottom: 6px solid var(--green);
  transform: rotate(-45deg);
}

/* Radar animado (simulación) */
.radar {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(95, 211, 198, 0.6);
  background:
    repeating-radial-gradient(circle, transparent 0 14%, rgba(95, 211, 198, 0.25) 14% calc(14% + 1px)),
    linear-gradient(rgba(95, 211, 198, 0.2), rgba(95, 211, 198, 0.2)) center / 1px 100% no-repeat,
    linear-gradient(rgba(95, 211, 198, 0.2), rgba(95, 211, 198, 0.2)) center / 100% 1px no-repeat;
  overflow: hidden;
}
.radar span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(95, 211, 198, 0.55), transparent 22%);
  animation: sweep 4s linear infinite;
}
.radar::before,
.radar::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5b25a;
  box-shadow: 0 0 12px #f5b25a;
}
.radar::before { top: 28%; left: 62%; }
.radar::after { top: 64%; left: 30%; background: #5fd3c6; box-shadow: 0 0 12px #5fd3c6; }
@keyframes sweep {
  to { transform: rotate(360deg); }
}

/* ===== Proyectos ===== */
.feature__media {
  position: relative;
  max-height: 600px;
  overflow: hidden;
  padding: 48px 0 0 48px;
  border-radius: var(--radius-lg);
  background: var(--brand-mesh);
}
.feature__media img {
  border-radius: 14px 0 0 0;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s ease;
}

/* Proyecto destacado con foto a sangre y galería (simuladores de tiro) */
.feature--photo { margin-top: 96px; }
.feature--photo .feature__media {
  max-height: none;
  padding: 0;
  background: var(--night);
}
.feature--photo .feature__media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery figcaption {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.feature__badge,
.media-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
}
.feature__caption {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding: 28px 4px 0;
}
.feature__caption h3,
.media-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.feature__caption p,
.media-card p { color: var(--muted); }

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--ink);
  font-weight: 500;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.checks--light li { color: #fff; }
.checks--light li::before { background: rgba(255, 255, 255, 0.22); }

.cards2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 80px;
}
.media-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.media-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Tarjeta ancha (AeroEscuela): imagen y texto lado a lado, con una captura de cabina superpuesta */
.media-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}
.media-card--wide .media-card__media { margin-bottom: 0; }
.media-card .media-card__inset {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 46%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.media-card__media--radar {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, #0f3b3a, #071a20 72%);
}
.media-card__media--radar .radar { width: 46%; }

.note {
  font-size: 0.9rem;
  font-style: italic;
}

/* ===== Apps (FDP Aplicaciones) ===== */
.apps__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.app-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gray);
}
.app-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #120c2b;
}
.app-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.app-card__body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}
.app-card__body p { color: var(--muted); }
.app-card__body .link-arrow { margin-top: auto; }

/* ===== Sectores (píldoras) ===== */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.pill {
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--gray);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.pill:hover { background: var(--gray-2); }
.pill.is-active { background: var(--ink); color: #fff; }

.pill-panel { animation: fade-in 0.45s ease; }
.pill-panel[hidden] { display: none; }

.sector {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.9);
}
.sector h3 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.025em;
}
.sector p { font-size: 1.1rem; margin: 0; }
.sector--blue    { background: linear-gradient(135deg, #1c2580, var(--blue) 60%, var(--violet)); }
.sector--teal    { background: linear-gradient(135deg, #0b2a2a, #0f3b3a 40%, var(--teal)); }
.sector--violet  { background: linear-gradient(135deg, #20165e, var(--violet)); }
.sector--orange  { background: linear-gradient(135deg, #8a430c, var(--orange)); }
.sector--magenta { background: linear-gradient(135deg, #6e1640, var(--magenta)); }
.sector--green   { background: linear-gradient(135deg, #144d2b, var(--green)); }

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

/* ===== Cita ===== */
.quote {
  margin: 0;
  padding: clamp(40px, 7vw, 96px);
  border-radius: var(--radius-lg);
  background: var(--brand-mesh);
}
.quote blockquote {
  margin: 0;
  max-width: 22ch;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.quote figcaption {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

/* ===== Método ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.step__num {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.step p { color: var(--muted); }

/* ===== Nosotros ===== */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 88px;
}
.about__logo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

/* Marcas (FDP Software, FDP Simuladores, FDP Aplicaciones) */
.brands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}
.brand {
  overflow: hidden;
  border-radius: var(--radius);
  background: #111114;
  color: rgba(255, 255, 255, 0.75);
}
.brand img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.brand div { padding: 4px 22px 22px; }
.brand h4 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.3em;
}
.brand p { margin: 0; font-size: 0.95rem; }
.about__text > p { font-size: 1.15rem; color: var(--muted); }
.vision {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
}
.vision h3 { font-size: 1.1rem; }
.vision p { margin: 0; color: var(--muted); }

.team__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team__card {
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
}
.team__card .badge { margin-bottom: 16px; }
.team__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.team__area {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}
.team__card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 32px;
  padding: 32px;
  background: var(--ink);
}
.team__card--lead .team__area {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.team__card--lead strong {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.team__card--lead p { color: rgba(255, 255, 255, 0.75); }

/* ===== Contacto ===== */
.cta {
  padding: 140px 0;
  text-align: center;
}
.cta p {
  font-size: 1.2rem;
  color: var(--muted);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.cta .cta__place {
  margin-top: 28px;
  font-size: 0.95rem;
}

/* ===== Pie de página ===== */
.footer {
  padding: 64px 0 28px;
  background: var(--gray);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-2);
}
.footer__brand p { margin-top: 16px; max-width: 30ch; }
.footer h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer ul a { word-break: break-word; transition: color 0.2s; }
.footer ul a:hover { color: var(--ink); text-decoration: underline; }
.footer__bottom {
  padding-top: 24px;
  font-size: 0.85rem;
}
.footer__bottom p { margin: 0; }

/* ===== Botón flotante de WhatsApp ===== */
.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, opacity 0.2s;
}
.fab:hover { transform: translateY(-3px); }
/* Sobre la portada se oculta para no tapar las pestañas del carrusel */
.header:not(.is-scrolled) ~ .fab {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}
.fab svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Animación al hacer scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pill-panel { animation: none; }
  .radar span { animation: none; }
  .slide,
  .slide__bg > img { transition: none; }
}

/* ===== Tablet ===== */
@media (max-width: 1000px) {
  .hero__tab { height: 64px; font-size: 0.9rem; }
  .feature__caption { grid-template-columns: 1fr; gap: 28px; }
  .brands { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .media-card--wide { grid-template-columns: 1fr; gap: 0; }
  .media-card--wide .media-card__media { margin-bottom: 22px; }
  .apps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .sector { grid-template-columns: 1fr; gap: 28px; padding: 40px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__logo { max-width: 280px; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Celular ===== */
@media (max-width: 760px) {
  .header { top: 10px; padding: 0 10px; }
  .header__inner { height: 56px; padding: 0 6px 0 14px; }
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 74px;
    left: 10px;
    right: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-2);
  }
  .nav .btn { margin-top: 16px; }

  .container { padding: 0 20px; }
  .section { padding: 88px 0; }
  .section--tight { padding: 48px 0; }

  .slide__content { padding: 100px 20px 190px; justify-content: flex-end; }
  .slide__text { font-size: 1.05rem; }
  .slide__logo { display: none; }
  .slide__bg::after {
    background: linear-gradient(0deg, rgba(6, 7, 18, 0.95) 0%, rgba(6, 7, 18, 0.75) 50%, rgba(6, 7, 18, 0.35) 100%);
  }
  .slide--sigma .slide__bg > img { top: 90px; right: auto; left: 4vw; width: 140vw; transform: none; }
  .slide--sigma .slide__content > * { max-width: none; }
  .slide--sim .slide__bg > img { left: -40%; bottom: auto; top: 70px; width: 180%; }
  .slide__actions .btn { flex: 1 1 auto; }

  .hero__controls { bottom: 18px; padding: 0 20px; }
  .hero__pause { margin-bottom: 12px; }
  .hero__tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -20px;
    padding: 0 20px;
  }
  .hero__tabs::-webkit-scrollbar { display: none; }
  .hero__tab { flex: 0 0 auto; height: 56px; font-size: 0.85rem; padding: 0 14px; }

  .rail-card { flex-basis: 280px; height: 470px; }
  .rail-card__panel { height: 270px; }

  .feature__media { padding: 28px 0 0 28px; }
  .feature__caption h3,
  .media-card h3 { font-size: 1.35rem; }
  .cards2 { grid-template-columns: 1fr; gap: 48px; margin-top: 56px; }

  .pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -20px 28px;
    padding: 0 20px;
  }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: 0 0 auto; }
  .sector { padding: 32px 24px; }

  .steps { grid-template-columns: 1fr; }
  .team,
  .brands { grid-template-columns: 1fr; }
  .brand { display: grid; grid-template-columns: 110px 1fr; align-items: center; }
  .brand img { aspect-ratio: 1; }
  .brand div { padding: 14px 18px; }
  .apps { grid-template-columns: 1fr; }
  .feature--photo .feature__media img { aspect-ratio: 16 / 10; }
  .team__card--lead { grid-template-columns: 1fr; padding: 26px; }
  .team__card--lead strong { margin-bottom: 6px; font-size: 1.45rem; }

  .cta { padding: 100px 0; }
  .cta__actions .btn { width: 100%; white-space: normal; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
