* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-main: #050816;
  --bg-deep: #020617;
  --card-bg: rgba(255, 255, 255, 0.065);

  --text-main: #f4f7fb;
  --text-muted: #aab4c8;

  --primary: #7c3aed;
  --secondary: #06b6d4;
  --accent: #22c55e;

  --border-soft: rgba(255, 255, 255, 0.12);
  --shadow-glow: 0 0 45px rgba(6, 182, 212, 0.25);

  --max-width: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-main), var(--bg-deep));
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;

  background:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(6, 182, 212, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.11) 1px, transparent 1px);

  background-size: 84px 84px, 84px 84px, 336px 336px, 336px 336px;
  opacity: 0.92;

  mask-image: radial-gradient(circle at center, black 0%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 88%);

  animation: techGridDrift 26s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: -22%;
  z-index: -3;
  pointer-events: none;

  background:
    radial-gradient(circle at 18% 20%, rgba(124, 58, 237, 0.38), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(6, 182, 212, 0.34), transparent 28%),
    radial-gradient(circle at 50% 82%, rgba(34, 197, 94, 0.18), transparent 24%),
    radial-gradient(circle at 74% 68%, rgba(124, 58, 237, 0.22), transparent 22%);

  filter: blur(18px);
  opacity: 1;
  animation: ambientGlow 14s ease-in-out infinite alternate;
}

main::before {
  content: "";
  position: fixed;
  left: 0;
  top: -25%;
  width: 100%;
  height: 260px;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(6, 182, 212, 0.03) 20%,
    rgba(6, 182, 212, 0.105) 45%,
    rgba(124, 58, 237, 0.08) 52%,
    transparent 100%
  );

  filter: blur(20px);
  opacity: 0.85;
  animation: scanLine 10s ease-in-out infinite;
}

main::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background-image:
    radial-gradient(circle, rgba(6, 182, 212, 0.26) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(124, 58, 237, 0.20) 1px, transparent 1.5px);

  background-size: 120px 120px, 180px 180px;
  background-position: 0 0, 60px 80px;
  opacity: 0.38;
  animation: particleDrift 18s linear infinite;
}

@keyframes techGridDrift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: 84px 84px, 84px 84px, 336px 336px, 336px 336px;
  }
}

@keyframes ambientGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-2.5%, 2%, 0) scale(1.05);
  }

  100% {
    transform: translate3d(2.5%, -1.5%, 0) scale(1.08);
  }
}

@keyframes scanLine {
  0% {
    transform: translateY(-25vh);
    opacity: 0;
  }

  18% {
    opacity: 0.45;
  }

  50% {
    opacity: 0.78;
  }

  100% {
    transform: translateY(145vh);
    opacity: 0;
  }
}

@keyframes particleDrift {
  from {
    background-position: 0 0, 60px 80px;
  }

  to {
    background-position: 120px 120px, 240px 260px;
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 22, 0.74);
  border-bottom: 1px solid var(--border-soft);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 2rem;
  font-weight: 950;
  text-decoration: none;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--secondary), var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

nav a:hover,
nav a.active-link {
  color: var(--text-main);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 28px;
  position: relative;
  z-index: 1;
}

.page {
  display: none;
  min-height: 74vh;
  animation: pageEnter 0.45s ease;
}

.active-page {
  display: block;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  margin-bottom: 132px;
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 76px;
  align-items: center;
  padding-top: 20px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: -12%;
  top: 18%;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.24), transparent 62%);
  filter: blur(18px);
  z-index: -1;
  animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  from {
    opacity: 0.55;
    transform: scale(0.96);
  }

  to {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.eyebrow,
.section-tag {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 999px;
  color: #b9f7ff;
  background: rgba(6, 182, 212, 0.08);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 4.5vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -3.6px;
  font-weight: 950;
  margin-bottom: 32px;
}

.brand-title {
  display: block;
  width: fit-content;
  margin-bottom: 18px;
  font-size: clamp(4.5rem, 10vw, 8rem);
  line-height: 0.9;
  background: linear-gradient(135deg, var(--secondary), var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(6, 182, 212, 0.28));
}

.hero p {
  max-width: 690px;
  color: var(--text-muted);
  font-size: 1.14rem;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
}

.hero-card {
  position: relative;
  padding: 38px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.28);
  filter: blur(40px);
}

.card-label {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.flow-step {
  position: relative;
  z-index: 1;
  padding: 17px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-soft);
  font-weight: 800;
}

.flow-step.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.55), rgba(6, 182, 212, 0.35));
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.25);
}

.flow-line {
  width: 2px;
  height: 22px;
  margin: 8px 0 8px 24px;
  background: linear-gradient(var(--primary), var(--secondary));
  opacity: 0.8;
}

section h2 {
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: -2.5px;
  margin-bottom: 34px;
}

section > p,
.premium-block > p,
.impact-section > p,
.use-cases > p {
  color: var(--text-muted);
  max-width: 820px;
  font-size: 1.08rem;
  margin-bottom: 34px;
}

.trust-strip {
  margin-top: 36px;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
}

.trust-strip span,
.tech-tags span {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  color: #dffbff;
  font-size: 0.88rem;
  font-weight: 800;
  border: 1px solid rgba(6, 182, 212, 0.28);
  background: rgba(6, 182, 212, 0.075);
}

.home-summary,
.services-grid,
.value-grid,
.case-grid,
.team-grid,
.mission-grid,
.challenge-grid,
.standards-grid {
  display: grid;
  gap: 22px;
}

.home-summary,
.services-grid,
.case-grid,
.challenge-grid {
  grid-template-columns: repeat(3, 1fr);
}

.value-grid,
.impact-grid,
.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.team-grid {
  grid-template-columns: repeat(2, 1fr);
  margin: 40px 0;
}

.mission-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
}

.home-summary-spaced {
  margin-top: 90px;
}

article,
.impact-grid div,
.mission-grid div,
.method-note {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 30px;
  padding: 34px;
  backdrop-filter: blur(18px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

article {
  min-height: 260px;
}

article::before,
.impact-grid div::before,
.mission-grid div::before,
.method-note::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.20), rgba(6, 182, 212, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}

article:hover,
.impact-grid div:hover,
.mission-grid div:hover,
.method-note:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

article:hover::before,
.impact-grid div:hover::before,
.mission-grid div:hover::before,
.method-note:hover::before {
  opacity: 1;
}

article h3,
article p,
.service-number,
.impact-grid strong,
.impact-grid p,
.mission-grid h3,
.mission-grid p,
.method-note h3,
.method-note p {
  position: relative;
  z-index: 1;
}

.service-number {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--secondary);
  font-weight: 900;
  font-size: 0.95rem;
}

article h3,
.mission-grid h3,
.method-note h3 {
  font-size: 1.38rem;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

article p,
.impact-grid p,
.mission-grid p,
.method-note p {
  color: var(--text-muted);
}

.premium-block,
.impact-section,
.use-cases,
.standards-block,
.tech-block,
.faq-block {
  margin-top: 118px;
}

.impact-grid strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: var(--text-main);
}

.boxed-page {
  padding: 64px;
  border-radius: 38px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.20), transparent 35%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
}

.process-roadmap {
  margin-top: 54px;
  display: grid;
  gap: 0;
  position: relative;
}

.roadmap-step {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 26px;
  position: relative;
  padding-bottom: 42px;
}

.roadmap-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 74px;
  width: 2px;
  height: calc(100% - 44px);
  background: linear-gradient(180deg, var(--secondary), var(--primary));
  opacity: 0.65;
}

.roadmap-number {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.55rem;
  font-weight: 950;
  color: white;

  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.95), transparent 48%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(6, 182, 212, 0.48));

  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 44px rgba(6, 182, 212, 0.22);
  position: relative;
  z-index: 2;
}

.roadmap-content {
  padding: 30px 34px;
  border-radius: 30px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
  transition: all 0.3s ease;
}

.roadmap-content:hover {
  transform: translateX(8px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.roadmap-content h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.roadmap-content p {
  color: var(--text-muted);
}

.method-note {
  margin-top: 42px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 900px;
}

.team-card {
  min-height: 620px;
}

.photo-placeholder {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.4rem;
  font-weight: 950;
  letter-spacing: -1px;

  color: white;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.8), transparent 45%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(6, 182, 212, 0.45));

  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 42px rgba(6, 182, 212, 0.25);
}

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.faq-question {
  width: 100%;
  padding: 24px 28px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 28px;
  top: 22px;
  color: var(--secondary);
  font-size: 1.4rem;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq-answer p {
  padding: 0 28px 24px 28px;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 260px;
}

.contact-page {
  text-align: center;
  padding: 80px 40px;
  border-radius: 42px;
  background:
    radial-gradient(circle at top, rgba(6, 182, 212, 0.28), transparent 35%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-soft);
}

.contact-page p {
  margin: 0 auto 32px auto;
}

.contact-page a {
  display: inline-flex;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 800;
  transition: all 0.25s ease;
}

.contact-page a:hover {
  background: white;
  color: #050816;
  transform: translateY(-3px);
}

footer {
  border-top: 1px solid var(--border-soft);
  padding: 32px 28px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(5, 8, 22, 0.8);
}

.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 520px;
  }

  .home-summary,
  .services-grid,
  .value-grid,
  .impact-grid,
  .case-grid,
  .team-grid,
  .mission-grid,
  .challenge-grid,
  .standards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip {
    border-radius: 28px;
  }
}

@media (max-width: 700px) {
  nav {
    flex-direction: column;
    gap: 18px;
  }

  nav ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    padding: 48px 20px;
  }

  section {
    margin-bottom: 86px;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .brand-title {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .home-summary,
  .services-grid,
  .value-grid,
  .impact-grid,
  .case-grid,
  .team-grid,
  .mission-grid,
  .challenge-grid,
  .standards-grid {
    grid-template-columns: 1fr;
  }

  .boxed-page {
    padding: 36px;
  }

  .roadmap-step {
    grid-template-columns: 58px 1fr;
    gap: 18px;
    padding-bottom: 34px;
  }

  .roadmap-number {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 1.2rem;
  }

  .roadmap-step:not(:last-child)::before {
    left: 28px;
    top: 58px;
  }

  .roadmap-content {
    padding: 24px;
  }

  .contact-page {
    padding: 52px 24px;
  }

  .premium-block,
  .impact-section,
  .use-cases,
  .standards-block,
  .tech-block,
  .faq-block {
    margin-top: 82px;
  }
}
.no-fade {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 768px) {

  body {
    background: #050816 !important;
  }

  body::before,
  body::after,
  main::before,
  main::after {
    opacity: 0.15;
    filter: none;
  }

  article,
  .hero-card,
  .roadmap-content,
  .faq-item,
  .boxed-page,
  .contact-page {
    background: rgba(10, 15, 35, 0.92) !important;
    backdrop-filter: none !important;
  }

  .hero {
    gap: 30px;
  }

  .hero-card {
    max-width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* =========================
   MENÚ MÓVIL HAMBURGUESA
   ========================= */

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  transition: all 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  nav {
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid var(--border-soft);
    background: rgba(5, 8, 22, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--text-main);
    font-weight: 700;
  }

  .nav-menu a:hover,
  .nav-menu a.active-link {
    background: rgba(6, 182, 212, 0.12);
    color: white;
  }
}
/* =========================================================
   OPTIMIZACIÓN MÓVIL PREMIUM - KW
   Pegar este bloque al FINAL del archivo styles.css
   ========================================================= */

@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }

  body {
    background: #050816 !important;
    line-height: 1.55;
  }

  body::before,
  body::after,
  main::before,
  main::after {
    opacity: 0.10 !important;
    filter: none !important;
    animation: none !important;
  }

  header {
    background: rgba(5, 8, 22, 0.96) !important;
    backdrop-filter: none !important;
  }

  nav {
    min-height: 68px;
    padding: 14px 18px !important;
  }

  .logo {
    font-size: 1.75rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.075);
  }

  .nav-menu {
    top: 68px !important;
    left: 16px !important;
    right: 16px !important;
    padding: 12px !important;
    border-radius: 22px !important;
    background: rgba(5, 8, 22, 0.98) !important;
  }

  .nav-menu a {
    padding: 13px 15px !important;
    font-size: 0.96rem;
  }

  main {
    padding: 34px 18px 52px 18px !important;
  }

  section {
    margin-bottom: 72px !important;
  }

  .page {
    min-height: auto;
  }

  .hero {
    min-height: auto !important;
    padding-top: 18px !important;
    gap: 26px !important;
    grid-template-columns: 1fr !important;
  }

  .hero::before {
    width: 260px;
    height: 260px;
    left: -80px;
    top: 20px;
    opacity: 0.42;
    filter: blur(12px);
    animation: none;
  }

  .eyebrow,
  .section-tag {
    margin-bottom: 16px !important;
    padding: 7px 12px !important;
    font-size: 0.74rem !important;
    line-height: 1.25;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.35rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -1.8px !important;
    margin-bottom: 22px !important;
  }

  .brand-title {
    font-size: clamp(4.1rem, 23vw, 6.4rem) !important;
    margin-bottom: 14px !important;
    filter: drop-shadow(0 0 18px rgba(6, 182, 212, 0.22));
  }

  .hero p {
    font-size: 1rem !important;
    margin-bottom: 24px !important;
    max-width: 100% !important;
  }

  .hero-actions {
    gap: 12px !important;
  }

  .btn-primary,
  .btn-secondary {
    width: 100% !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
  }

  .hero-card {
    max-width: 100% !important;
    padding: 24px !important;
    border-radius: 26px !important;
    background: rgba(10, 15, 35, 0.94) !important;
    backdrop-filter: none !important;
  }

  .card-label {
    margin-bottom: 18px !important;
  }

  .flow-step {
    padding: 14px 16px !important;
    border-radius: 15px !important;
    font-size: 0.94rem;
  }

  .flow-line {
    height: 16px !important;
    margin: 6px 0 6px 20px !important;
  }

  .trust-strip {
    margin-top: 28px !important;
    padding: 14px !important;
    border-radius: 24px !important;
    justify-content: flex-start !important;
    background: rgba(10, 15, 35, 0.92) !important;
    backdrop-filter: none !important;
  }

  .trust-strip span,
  .tech-tags span {
    width: 100%;
    justify-content: center;
    padding: 9px 12px !important;
    font-size: 0.82rem !important;
    text-align: center;
  }

  .home-summary-spaced {
    margin-top: 56px !important;
  }

  .premium-block,
  .impact-section,
  .use-cases,
  .standards-block,
  .tech-block,
  .faq-block {
    margin-top: 68px !important;
  }

  section h2 {
    font-size: clamp(1.85rem, 8vw, 2.65rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -1.4px !important;
    margin-bottom: 22px !important;
  }

  section > p,
  .premium-block > p,
  .impact-section > p,
  .use-cases > p {
    font-size: 0.98rem !important;
    margin-bottom: 26px !important;
  }

  .home-summary,
  .services-grid,
  .value-grid,
  .impact-grid,
  .case-grid,
  .team-grid,
  .mission-grid,
  .challenge-grid,
  .standards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  article,
  .impact-grid div,
  .mission-grid div,
  .method-note {
    min-height: auto !important;
    padding: 24px !important;
    border-radius: 24px !important;
    background: rgba(10, 15, 35, 0.94) !important;
    backdrop-filter: none !important;
  }

  article:hover,
  .impact-grid div:hover,
  .mission-grid div:hover,
  .method-note:hover,
  .roadmap-content:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .contact-page a:hover {
    transform: none !important;
  }

  .service-number {
    margin-bottom: 16px !important;
    font-size: 0.86rem !important;
  }

  article h3,
  .mission-grid h3,
  .method-note h3 {
    font-size: 1.16rem !important;
    margin-bottom: 12px !important;
  }

  article p,
  .impact-grid p,
  .mission-grid p,
  .method-note p,
  .roadmap-content p,
  .faq-answer p {
    font-size: 0.95rem !important;
  }

  .boxed-page {
    padding: 28px 18px !important;
    border-radius: 28px !important;
    background: rgba(10, 15, 35, 0.88) !important;
    backdrop-filter: none !important;
  }

  .process-roadmap {
    margin-top: 36px !important;
  }

  .roadmap-step {
    grid-template-columns: 46px 1fr !important;
    gap: 14px !important;
    padding-bottom: 24px !important;
  }

  .roadmap-number {
    width: 46px !important;
    height: 46px !important;
    border-radius: 16px !important;
    font-size: 1rem !important;
  }

  .roadmap-step:not(:last-child)::before {
    left: 22px !important;
    top: 48px !important;
    height: calc(100% - 30px) !important;
    opacity: 0.42 !important;
  }

  .roadmap-content {
    padding: 18px !important;
    border-radius: 20px !important;
    background: rgba(10, 15, 35, 0.94) !important;
    backdrop-filter: none !important;
  }

  .roadmap-content h3 {
    font-size: 1.05rem !important;
    margin-bottom: 9px !important;
  }

  .method-note {
    margin-top: 28px !important;
  }

  .faq-list {
    gap: 12px !important;
    margin-top: 26px !important;
  }

  .faq-item {
    border-radius: 20px !important;
    background: rgba(10, 15, 35, 0.94) !important;
    backdrop-filter: none !important;
  }

  .faq-question {
    padding: 18px 48px 18px 18px !important;
    font-size: 0.95rem !important;
    line-height: 1.35;
  }

  .faq-question::after {
    right: 20px !important;
    top: 16px !important;
  }

  .faq-answer p {
    padding: 0 18px 20px 18px !important;
  }

  .team-card {
    min-height: auto !important;
  }

  .photo-placeholder {
    width: 76px !important;
    height: 76px !important;
    border-radius: 22px !important;
    margin-bottom: 20px !important;
  }

  .mission-grid {
    margin-top: 28px !important;
  }

  .tech-tags {
    gap: 10px !important;
  }

  .contact-page {
    padding: 46px 20px !important;
    border-radius: 28px !important;
    background: rgba(10, 15, 35, 0.92) !important;
    backdrop-filter: none !important;
  }

  .contact-page a {
    width: 100%;
    justify-content: center;
    padding: 14px 16px !important;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
  }

  footer {
    padding: 26px 18px !important;
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  main {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hero h1 {
    font-size: clamp(2rem, 10.5vw, 2.75rem) !important;
  }

  .brand-title {
    font-size: clamp(3.75rem, 24vw, 5.3rem) !important;
  }

  .eyebrow {
    max-width: 100%;
  }

  .boxed-page {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  article,
  .impact-grid div,
  .mission-grid div,
  .method-note,
  .hero-card {
    padding: 20px !important;
  }

  .roadmap-step {
    grid-template-columns: 40px 1fr !important;
    gap: 12px !important;
  }

  .roadmap-number {
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
  }

  .roadmap-step:not(:last-child)::before {
    left: 19px !important;
    top: 42px !important;
  }

  .roadmap-content {
    padding: 16px !important;
  }
}


/* =========================================================
   FASE ESCRITORIO PREMIUM - KW
   Hero centrado + roadmap alternado + CTA con formulario
   ========================================================= */

/* HERO CENTRADO */
.hero.hero-centered {
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 54px;
  text-align: center;
  padding-top: 34px;
}

.hero.hero-centered .hero-content {
  max-width: 1060px;
  margin: 0 auto;
}

.hero.hero-centered .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.hero.hero-centered h1 {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -2.8px;
}

.hero-title-text {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
}

.hero.hero-centered .brand-title {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
  font-size: clamp(5.0rem, 9vw, 8rem);
  letter-spacing: -6px;
}

.hero.hero-centered p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero.hero-centered .hero-actions {
  justify-content: center;
}

.hero-card-horizontal {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 30px;
}

.hero-card-horizontal .card-label {
  text-align: center;
  margin-bottom: 22px;
  color: #d8f8ff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.flow-horizontal {
  display: grid;
  grid-template-columns: 1fr 54px 1fr 54px 1fr 54px 1fr;
  align-items: center;
  gap: 0;
}

.flow-horizontal .flow-step {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 20px;
}

.flow-horizontal .flow-line {
  width: 100%;
  height: 2px;
  margin: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* ROADMAP ALTERNADO PREMIUM */
.process-roadmap {
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  gap: 22px;
}

.process-roadmap::before {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(6, 182, 212, 0.9),
      rgba(124, 58, 237, 0.95),
      rgba(34, 197, 94, 0.72),
      transparent
    );
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.32);
  opacity: 0.9;
}

.roadmap-step {
  grid-template-columns: 1fr 96px 1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 0;
}

.roadmap-step:not(:last-child)::before {
  display: none;
}

.roadmap-number {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 88px;
  height: 88px;
  border-radius: 28px;
  font-size: 1.65rem;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.38), transparent 30%),
    linear-gradient(135deg, #06b6d4 0%, #7c3aed 58%, #22c55e 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 8px rgba(6, 182, 212, 0.06),
    0 0 34px rgba(6, 182, 212, 0.34),
    0 18px 60px rgba(0, 0, 0, 0.42);
}

.roadmap-number::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 34px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  opacity: 0.85;
}

.roadmap-content {
  position: relative;
  padding: 34px 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.038));
}

.roadmap-content::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  opacity: 0.82;
}

.roadmap-step:nth-child(odd) .roadmap-content {
  grid-column: 1;
  text-align: right;
}

.roadmap-step:nth-child(odd) .roadmap-content::after {
  right: -28px;
}

.roadmap-step:nth-child(even) .roadmap-content {
  grid-column: 3;
  text-align: left;
}

.roadmap-step:nth-child(even) .roadmap-content::after {
  left: -28px;
}

.roadmap-step:nth-child(even) .roadmap-content:hover {
  transform: translateX(-8px);
}

.roadmap-step:nth-child(odd) .roadmap-content:hover {
  transform: translateX(8px);
}

/* CTA / CONTACTO PREMIUM */
.contact-page {
  text-align: left;
  padding: 78px 64px;
}

.contact-page > .section-tag {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.contact-page > h2,
.contact-page > p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.contact-layout {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
}

.contact-copy,
.contact-form {
  border: 1px solid var(--border-soft);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.contact-copy::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(6, 182, 212, 0.08));
  opacity: 0.7;
  pointer-events: none;
}

.contact-copy h3,
.contact-copy p,
.contact-benefits,
.contact-email-link,
.contact-form .form-group,
.contact-form button,
.contact-form .form-note {
  position: relative;
  z-index: 1;
}

.contact-copy h3 {
  font-size: 1.55rem;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}

.contact-copy p {
  color: var(--text-muted);
  margin-bottom: 26px;
}

.contact-benefits {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-benefits span {
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.075);
  color: #dffbff;
  font-weight: 800;
  font-size: 0.92rem;
}

.contact-page .contact-email-link {
  display: inline-flex;
  width: auto;
  padding: 14px 20px;
  border-radius: 999px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 900;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 15px 16px;
  background: rgba(5, 8, 22, 0.72);
  color: var(--text-main);
  font: inherit;
  outline: none;
  transition: all 0.25s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 148px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(170, 180, 200, 0.72);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.10);
}

.contact-form .btn-primary {
  border: none;
  cursor: pointer;
  font: inherit;
  margin-top: 4px;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.86rem;
  text-align: center;
}

/* AJUSTES TABLET */
@media (max-width: 1000px) {
  .hero.hero-centered {
    min-height: auto;
  }

  .flow-horizontal {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flow-horizontal .flow-line {
    width: 2px;
    height: 18px;
    justify-self: center;
    background: linear-gradient(var(--primary), var(--secondary));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ROADMAP EN MÓVIL: conserva lectura clara y estable */
@media (max-width: 768px) {
  .hero.hero-centered {
    text-align: center;
    gap: 26px !important;
  }

  .hero.hero-centered .brand-title {
    letter-spacing: -3px;
  }

  .hero-title-text {
    max-width: 100%;
  }

  .hero-card-horizontal {
    padding: 24px !important;
  }

  .flow-horizontal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-horizontal .flow-step {
    min-height: auto;
  }

  .flow-horizontal .flow-line {
    width: 2px !important;
    height: 16px !important;
    margin: 6px auto !important;
  }

  .process-roadmap::before {
    display: none;
  }

  .roadmap-step {
    grid-template-columns: 46px 1fr !important;
    gap: 14px !important;
    align-items: start;
    padding-bottom: 24px !important;
  }

  .roadmap-step:not(:last-child)::before {
    display: block;
  }

  .roadmap-number {
    grid-column: 1 !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 16px !important;
    font-size: 1rem !important;
  }

  .roadmap-number::after {
    display: none;
  }

  .roadmap-content {
    grid-column: 2 !important;
    text-align: left !important;
  }

  .roadmap-content::after {
    display: none;
  }

  .roadmap-step:nth-child(even) .roadmap-content:hover,
  .roadmap-step:nth-child(odd) .roadmap-content:hover {
    transform: none !important;
  }

  .contact-page {
    text-align: center;
    padding: 46px 20px !important;
  }

  .contact-layout {
    margin-top: 30px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-copy,
  .contact-form {
    padding: 22px !important;
    border-radius: 24px !important;
    background: rgba(10, 15, 35, 0.94) !important;
    backdrop-filter: none !important;
  }

  .contact-copy {
    text-align: left;
  }

  .contact-benefits span {
    font-size: 0.86rem;
  }

  .contact-page .contact-email-link {
    width: 100%;
    justify-content: center;
    overflow-wrap: anywhere;
  }

  .form-group {
    text-align: left;
  }

  .contact-form .btn-primary {
    width: 100%;
  }
}


/* =========================================================
   LINKEDIN - KW
   Enlaces profesionales para perfiles, contacto y footer
   ========================================================= */

.linkedin-link,
.footer-linkedin {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.32);
  background: rgba(6, 182, 212, 0.08);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 850;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

.linkedin-link:hover,
.footer-linkedin:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.62);
  background: rgba(6, 182, 212, 0.14);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.18);
}

.linkedin-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: white;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #0a66c2, #06b6d4);
  box-shadow: 0 0 18px rgba(10, 102, 194, 0.35);
}

.linkedin-link-personal {
  margin: -4px 0 24px 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.contact-links .contact-email-link,
.contact-links .linkedin-link {
  margin: 0;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto 22px auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  text-align: left;
}

.footer-content strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, var(--secondary), var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-content p {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.footer-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 800;
}

.footer-links > a:not(.footer-linkedin) {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
}

.footer-links > a:not(.footer-linkedin):hover {
  border-color: rgba(6, 182, 212, 0.48);
  background: rgba(6, 182, 212, 0.08);
}

.footer-copy {
  margin: 0 auto;
  padding: 0 28px;
  max-width: var(--max-width);
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .linkedin-link,
  .footer-linkedin {
    justify-content: center;
  }

  .linkedin-link-personal {
    margin-bottom: 20px;
  }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-links .contact-email-link,
  .contact-links .linkedin-link {
    width: 100%;
  }

  .footer-content {
    padding: 0 18px;
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    width: 100%;
    flex-direction: column;
    justify-content: center;
  }

  .footer-links a {
    width: 100%;
    justify-content: center;
  }

  .footer-copy {
    padding: 0 18px;
  }
}


/* =========================================================
   EQUIPO KW - LAYOUT ALTERNADO PREMIUM
   ========================================================= */

.team-page > p {
  max-width: 880px;
}

.team-timeline {
  position: relative;
  display: grid;
  gap: 34px;
  margin: 56px 0 58px 0;
}

.team-timeline::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(6, 182, 212, 0.72),
      rgba(124, 58, 237, 0.9),
      rgba(34, 197, 94, 0.55),
      transparent
    );
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.24);
  opacity: 0.82;
}

.team-profile-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: stretch;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  overflow: visible;
}

.team-profile-row::before {
  display: none;
}

.team-profile-row:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.team-profile-right {
  grid-template-columns: minmax(0, 1.28fr) minmax(250px, 0.72fr);
}

.team-profile-card,
.team-profile-content {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.team-profile-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.24), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.team-profile-content {
  padding: 34px 38px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032));
}

.team-profile-card::after,
.team-profile-content::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(124, 58, 237, 0.09));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.team-profile-row:hover .team-profile-card::after,
.team-profile-row:hover .team-profile-content::after {
  opacity: 1;
}

.team-profile-card .photo-placeholder {
  margin-bottom: 24px;
}

.team-profile-card .service-number {
  margin-bottom: 12px;
}

.team-profile-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  font-size: 1.22rem;
}

.team-profile-content p {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
}

.team-profile-content p + p {
  margin-top: 16px;
}

.team-profile-left .team-profile-card {
  text-align: left;
}

.team-profile-right .team-profile-card {
  text-align: right;
  align-items: flex-end;
}

.team-profile-right .photo-placeholder {
  margin-left: auto;
}

.team-profile-right .linkedin-link {
  justify-content: flex-end;
}

.team-profile-right .team-profile-content {
  text-align: left;
}

.team-profile-left::after,
.team-profile-right::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  opacity: 0.75;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.28);
}

.team-profile-left::after {
  left: calc(50% - 17px);
}

.team-profile-right::after {
  left: calc(50% - 17px);
}

@media (max-width: 900px) {
  .team-timeline::before,
  .team-profile-left::after,
  .team-profile-right::after {
    display: none;
  }

  .team-profile-row,
  .team-profile-right {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .team-profile-right .team-profile-card {
    order: 1;
    text-align: left;
    align-items: flex-start;
  }

  .team-profile-right .team-profile-content {
    order: 2;
  }

  .team-profile-right .photo-placeholder {
    margin-left: 0;
  }

  .team-profile-right .linkedin-link {
    justify-content: flex-start;
  }

  .team-profile-card,
  .team-profile-content {
    border-radius: 26px;
  }
}

@media (max-width: 768px) {
  .team-timeline {
    gap: 20px;
    margin: 34px 0 38px 0;
  }

  .team-profile-card,
  .team-profile-content {
    padding: 22px !important;
    border-radius: 22px !important;
    background: rgba(10, 15, 35, 0.94) !important;
    backdrop-filter: none !important;
  }

  .team-profile-card {
    min-height: auto;
  }

  .team-profile-card h3 {
    font-size: 1.08rem;
    margin-bottom: 16px;
  }

  .team-profile-content p {
    font-size: 0.95rem;
  }
}


/* =========================================================
   FOOTER DEFINITIVO + SEO VISUAL - KW
   ========================================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 44px 28px 34px 28px;
  background:
    radial-gradient(circle at 16% 0%, rgba(6, 182, 212, 0.16), transparent 34%),
    radial-gradient(circle at 84% 0%, rgba(124, 58, 237, 0.14), transparent 34%),
    rgba(5, 8, 22, 0.92);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.08), transparent);
  opacity: 0.65;
}

.site-footer .footer-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto 24px auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  text-align: left;
}

.footer-brand {
  max-width: 560px;
}

.site-footer .footer-brand strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.7rem;
  font-weight: 950;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--secondary), var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-footer .footer-brand p {
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.site-footer .footer-brand span {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.site-footer .footer-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 800;
}

.site-footer .footer-links > a:not(.footer-linkedin) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.045);
  transition: all 0.25s ease;
}

.site-footer .footer-links > a:not(.footer-linkedin):hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.48);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.12);
}

.site-footer .footer-copy {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 22px 0 0 0;
  max-width: var(--max-width);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 34px 18px 28px 18px !important;
  }

  .site-footer .footer-content {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .site-footer .footer-links {
    width: 100%;
    flex-direction: column;
    justify-content: center;
  }

  .site-footer .footer-links a,
  .site-footer .footer-linkedin {
    width: 100%;
    justify-content: center;
  }

  .site-footer .footer-copy {
    padding-top: 18px;
    font-size: 0.84rem;
  }
}

