/* ==========================================================================
   Tlanextli Labs — Hoja de estilos
   Paleta: coral #FF513D · azul-negro #0A1119 · blanco #FFFFFF
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --coral: #FF513D;
  --coral-hover: #ff6a58;
  --coral-active: #e64430;
  --coral-soft: rgba(255, 81, 61, 0.14);
  --coral-glow: rgba(255, 81, 61, 0.28);

  --bg: #0A1119;
  --bg-soft: #0c1520;
  --bg-elevated: #0f1a27;
  --bg-card: #101c2b;
  --bg-card-hover: #14232f;

  --white: #ffffff;
  --text: #ffffff;
  --text-70: rgba(255, 255, 255, 0.72);
  --text-55: rgba(255, 255, 255, 0.55);
  --text-40: rgba(255, 255, 255, 0.42);

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.38);

  --header-h: 72px;
  --container: 1160px;
  --gap: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--coral);
  color: var(--bg);
}

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

.icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--coral);
  color: var(--bg);
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.section {
  padding: 96px 0;
  scroll-margin-top: var(--header-h);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-soft);
}

.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 18px;
}

.section__lead {
  color: var(--text-70);
  font-size: 1.06rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  will-change: transform;
}

.btn .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--coral);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--coral-glow);
}

.btn--primary:hover .icon {
  transform: translateX(3px);
}

.btn--primary:active {
  background: var(--coral-active);
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--coral);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost:active {
  transform: translateY(0);
}

.btn--sm {
  padding: 11px 18px;
  font-size: 0.92rem;
  border-radius: 10px;
}

/* ---------- Estado / badges ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-70);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-soft);
  flex: none;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-55);
}

/* ==========================================================================
   Header / navegación
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 17, 25, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 17, 25, 0.88);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand__logo {
  display: block;
  height: 34px;
  width: auto;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
  border-radius: 9px;
}

.brand__text {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__accent {
  color: var(--coral);
  margin-left: 2px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  position: relative;
  padding: 9px 13px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-70);
  border-radius: 8px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav__link.is-active {
  color: var(--white);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 112px 0 96px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 40%, rgba(255, 81, 61, 0.12), transparent 62%),
    radial-gradient(700px 500px at 12% 10%, rgba(255, 255, 255, 0.04), transparent 60%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(2.35rem, 5.4vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: 1.16rem;
  color: var(--text-70);
  max-width: 34ch;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- Visual del hero (tarjetas flotantes) --- */
.hero__visual {
  position: relative;
  height: 460px;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--coral-glow);
  filter: blur(90px);
  opacity: 0.55;
}

.hero__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 128px;
  height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: var(--shadow-md), 0 0 0 10px var(--coral-soft);
}

.hero__hub-icon {
  width: 40px;
  height: 40px;
  color: var(--coral);
}

.hero__hub-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-70);
}

.hero__node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  animation: float 6s ease-in-out infinite;
}

.hero__node-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--coral-soft);
  color: var(--coral);
}

.hero__node-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.hero__node-tag {
  font-size: 0.74rem;
  color: var(--text-55);
}

.hero__node-logo {
  height: 26px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

.hero__node--aula {
  top: 16%;
  left: 4%;
  animation-delay: 0s;
}

.hero__node--blocks {
  top: 8%;
  right: 4%;
  animation-delay: -2s;
}

.hero__node--sim {
  bottom: 12%;
  left: 8%;
  animation-delay: -4s;
}

.hero__node--soon {
  bottom: 18%;
  right: 2%;
  animation-delay: -1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ==========================================================================
   Aplicaciones / carrusel
   ========================================================================== */
.apps {
  background: var(--bg-soft);
}

.carousel {
  position: relative;
}

.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 12px;
  border-radius: var(--radius);
}

.carousel__viewport::-webkit-scrollbar {
  display: none;
}

.carousel__viewport:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

.carousel__track {
  display: flex;
  gap: var(--gap);
  --slides-per-view: 1;
}

.carousel__slide {
  flex: 0 0 calc(
    (100% - (var(--slides-per-view) - 1) * var(--gap)) / var(--slides-per-view)
  );
  scroll-snap-align: start;
  display: flex;
}

/* --- Tarjeta de aplicación --- */
.app-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 360px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.app-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.app-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.app-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--coral);
}

.app-card__icon .icon {
  width: 26px;
  height: 26px;
}

.app-card__logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.app-card__name {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.app-card__desc {
  color: var(--text-70);
  font-size: 0.96rem;
  flex: 1;
}

.app-card__action {
  margin-top: 24px;
  display: flex;
}

.app-card__action .btn {
  width: 100%;
}

/* Variante "próximamente" */
.app-card--soon {
  background: transparent;
  border: 1px dashed var(--border-strong);
  opacity: 0.92;
}

.app-card--soon:hover {
  transform: translateY(-4px);
  background: var(--bg-elevated);
  border-color: var(--text-40);
}

.app-card--soon .app-card__icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-55);
}

.app-card--soon .app-card__logo {
  opacity: 0.82;
}

.app-card--soon .app-card__desc {
  color: var(--text-55);
}

/* --- Flechas del carrusel --- */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.carousel__arrow:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--bg);
}

.carousel__arrow--prev {
  left: -16px;
}

.carousel__arrow--next {
  right: -16px;
}

.carousel__arrow:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* --- Indicadores (dots) --- */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background-color 0.25s var(--ease), width 0.25s var(--ease);
}

.carousel__dot:hover {
  background: var(--text-55);
}

.carousel__dot.is-active {
  width: 26px;
  background: var(--coral);
}

.carousel__dot:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* ==========================================================================
   T-Suite
   ========================================================================== */
.suite__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.suite__map {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.suite__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.suite__lines line {
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.suite__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform 0.25s var(--ease);
}

.suite__node:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.suite__logo {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.suite__node--hub {
  left: 50%;
  top: 50%;
}

.suite__hub-logo {
  height: 64px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.suite__copy > p {
  color: var(--text-70);
  font-size: 1.08rem;
  margin-bottom: 30px;
}

.suite__features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.suite__feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.suite__feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--coral-soft);
  color: var(--coral);
}

.suite__feature-icon .icon {
  width: 20px;
  height: 20px;
}

.suite__feature h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.suite__feature p {
  color: var(--text-55);
  font-size: 0.94rem;
}

/* ==========================================================================
   Novedades
   ========================================================================== */
.news {
  background: var(--bg-soft);
}

.news__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gap);
}

.news-card {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.news-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.news-card__title {
  font-size: 1.22rem;
  margin-bottom: 12px;
}

.news-card__text {
  color: var(--text-70);
  font-size: 0.96rem;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-tag--muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-55);
}

.news-card__date {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-70);
}

.news-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.news-card__facts li {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-70);
}

.news-card__action {
  margin-top: 22px;
}

/* ==========================================================================
   Nosotros
   ========================================================================== */
.about__layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  max-width: 820px;
}

.about__mark {
  width: 72px;
  height: 72px;
  flex: none;
}

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

.about__text {
  color: var(--text-70);
  font-size: 1.12rem;
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 48px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--coral);
  background: var(--bg-card-hover);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--coral-soft);
  color: var(--coral);
  margin-bottom: 6px;
}

.contact-card__icon .icon {
  width: 24px;
  height: 24px;
}

.contact-card__name {
  font-size: 1.12rem;
}

.contact-card__desc {
  color: var(--text-55);
  font-size: 0.94rem;
  flex: 1;
}

.contact-card__mail {
  color: var(--coral);
  font-weight: 600;
  font-size: 0.92rem;
  word-break: break-word;
}

.contact__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.contact__social-label {
  color: var(--text-55);
  font-size: 0.95rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.social-link:hover {
  border-color: var(--coral);
  background: var(--coral-soft);
  transform: translateY(-2px);
}

.social-link .icon {
  color: var(--coral);
}

.social-link__ext {
  color: var(--text-40);
  width: 0.9em;
  height: 0.9em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 72px 0 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.brand--footer {
  margin-bottom: 18px;
}

.site-footer__tagline {
  color: var(--text-55);
  font-size: 0.95rem;
  max-width: 30ch;
}

.site-footer__heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-40);
  margin-bottom: 18px;
}

.site-footer__nav ul,
.site-footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__nav a,
.site-footer__contact a {
  color: var(--text-70);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}

.site-footer__nav a:hover,
.site-footer__contact a:hover {
  color: var(--coral);
}

.social-link--footer {
  padding: 11px 16px;
}

.site-footer__bottom {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.site-footer__bottom p {
  color: var(--text-40);
  font-size: 0.86rem;
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  z-index: 300;
  padding: 13px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Animaciones de entrada (scroll reveal)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1024px) {
  .carousel__track {
    --slides-per-view: 3;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .carousel__track {
    --slides-per-view: 2;
  }
}

@media (max-width: 960px) {
  .hero {
    padding: 72px 0 64px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    height: 400px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .suite__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }

  .nav__list {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 22px;
    background: rgba(10, 17, 25, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .nav__list.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    display: block;
    padding: 13px 14px;
    font-size: 1.02rem;
  }

  .nav__link.is-active::after {
    left: 14px;
    right: auto;
    width: 26px;
    bottom: 6px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .hero__title {
    font-size: 2.3rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__visual {
    height: 340px;
  }

  .hero__hub {
    width: 104px;
    height: 104px;
  }

  .hero__node {
    padding: 9px 12px;
    gap: 8px;
  }

  .hero__node-tag {
    display: none;
  }

  .hero__node-logo {
    height: 22px;
    max-width: 110px;
  }

  .suite__logo {
    height: 24px;
    max-width: 110px;
  }

  .suite__hub-logo {
    height: 52px;
  }

  .carousel__arrow {
    display: none;
  }

  .carousel__viewport {
    padding: 4px 0 10px;
  }

  .app-card {
    min-height: 320px;
    padding: 24px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact__social {
    flex-direction: column;
    gap: 14px;
  }
}

/* ==========================================================================
   prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero__node {
    animation: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
