:root {
  --font-main: 'Outfit', sans-serif;

  /* Color Palette */
  --bg-color: #050505;
  --text-primary: #f2f2f2;
  --text-secondary: #a1a1aa;

  --primary-color: #0ea5e9;
  --secondary-color: #3b82f6;
  --accent-color: #06b6d4;

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);

  --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism Utilities */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
}

.logo-label {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta-mobile {
  display: none;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 999px;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 700;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  padding: 2.5rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.inst-logo {
  height: 60px;
  max-width: 170px;
  object-fit: contain;
  /* Estado inactivo: Silueta blanca para uniformidad y elegancia en el modo oscuro */
  filter: brightness(0) invert(1) opacity(0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 20px;
  /* Padding extra para dar espacio al resplandor luminoso sin que choque con los bordes de la imagen */
  padding: 1rem 1.5rem;
}

.inst-logo:hover {
  /* Al pasar el mouse: recupera colores originales al instante */
  filter: brightness(1) invert(0) opacity(1);
  transform: scale(1.1);
  /* Foco de luz suave (Spotlight) desde el centro hacia afuera. 
     Ilumina las letras negras pero sin formar un cuadro rígido. */
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85) 15%, rgba(255, 255, 255, 0) 75%);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: scroll-left 40s linear infinite;
  padding-left: 2rem;
  padding-right: 2rem;
}

.logos-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 2rem));
  }
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-primary-small {
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(14, 165, 233, 0.6);
  transform: translateY(-2px);
  color: white;
}

.btn-primary-small {
  background: var(--text-primary);
  color: var(--bg-color) !important;
  padding: 0.5rem 1.2rem;
}

.btn-primary-small:hover {
  background: var(--gradient-main);
  color: white !important;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 1rem 2rem;
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Layout */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 5rem;
  gap: 4rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  margin-top: 2rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.hero-proof span::first-letter {
  color: var(--accent-color);
}

/* Hero Visuals */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: float 10s infinite ease-in-out alternate;
}

.orb-1 {
  background: rgba(59, 130, 246, 0.4);
  top: -10%;
  left: 0;
}

.orb-2 {
  background: rgba(6, 182, 212, 0.25);
  bottom: -10%;
  right: 10%;
  animation-delay: -5s;
}

.main-hero-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cybersecurity hero panel */
.security-panel {
  max-width: 480px;
  aspect-ratio: auto;
  padding: 1.5rem;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(9, 22, 34, 0.92), rgba(8, 11, 17, 0.9));
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.04);
}

.security-panel-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 14px #f59e0b;
}

.status-label {
  margin-left: auto;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  font-size: 0.67rem;
  font-weight: 700;
}

.security-score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1.6rem 0;
}

.score-ring {
  display: grid;
  place-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #0b1620 57%, transparent 59%), conic-gradient(var(--accent-color) 0 78%, rgba(255, 255, 255, 0.08) 78%);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.15);
  text-align: center;
}

.score-ring span {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.score-ring small {
  color: var(--text-secondary);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.security-score strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.security-score p,
.panel-footer {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.control-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.control-list > div {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  font-size: 0.82rem;
}

.control-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 800;
}

.control-state {
  color: #67e8f9;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.panel-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.panel-footer span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

/* PYME services */
.services-section {
  padding-top: 7rem;
}

.section-kicker {
  margin-bottom: 0.8rem;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.section-intro {
  max-width: 760px;
  margin: -1.5rem auto 3rem;
  color: var(--text-secondary);
  text-align: center;
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  padding: 2rem;
  border-radius: 20px;
}

.service-number {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  color: rgba(255, 255, 255, 0.12);
  font-size: 2rem;
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.service-card p {
  min-height: 78px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  list-style: none;
}

.service-card li {
  color: #cbd5e1;
  font-size: 0.82rem;
}

.service-card li::before {
  content: '✓';
  margin-right: 0.55rem;
  color: var(--accent-color);
  font-weight: 800;
}

/* 90-day roadmap */
.roadmap-section {
  max-width: 1280px;
}

.roadmap-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  padding: 3.5rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(255, 255, 255, 0.02) 55%);
  border-color: rgba(14, 165, 233, 0.16);
}

.roadmap-copy .section-kicker {
  text-align: left;
}

.roadmap-copy h2 {
  margin-bottom: 1.2rem;
  font-size: 2.5rem;
}

.roadmap-copy p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.roadmap-steps {
  display: flex;
  flex-direction: column;
}

.roadmap-steps article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1.25rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.roadmap-steps article:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 46px;
  bottom: 4px;
  left: 21px;
  width: 1px;
  background: linear-gradient(var(--primary-color), rgba(14, 165, 233, 0.1));
}

.roadmap-steps article > span {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 14px;
  background: #08131d;
  color: #38bdf8;
  font-weight: 800;
}

.roadmap-steps strong {
  color: #38bdf8;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roadmap-steps h3 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.12rem;
}

.roadmap-steps p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.code-snippet {
  font-family: monospace;
  font-size: 0.95rem;
  color: #d1d5db;
}

.keyword {
  color: #c678dd;
}

.function {
  color: #61afef;
}

.operator {
  color: #56b6c2;
}

.string {
  color: #98c379;
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  font-weight: 500;
  animation: float 4s infinite ease-in-out alternate-reverse;
}

/* Purpose Section */
.purpose-card {
  max-width: 1000px;
  margin: 0 auto;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .purpose-grid {
    grid-template-columns: 1.2fr 2fr;
  }
}

.purpose-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
  border: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.profile-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 2px dashed rgba(255, 255, 255, 0.1);
  padding-left: 2rem;
  margin-left: 1rem;
}

.secondary-timeline {
  max-width: 800px;
  margin: 0 auto;
  border-left-color: rgba(6, 182, 212, 0.25);
}

.secondary-timeline .timeline-dot {
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
}

.secondary-timeline .timeline-date {
  color: var(--accent-color);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -2.65rem;
  top: 2rem;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-color);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.purpose-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.purpose-content strong {
  color: var(--primary-color);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hover-glow:hover {
  transform: translateY(-10px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(6, 182, 212, 0.05);
}

/* Contact */
.contact-card {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-btn {
  margin-top: 2rem;
}

.contact-note {
  margin-top: 1.4rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-20px) scale(1.05);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8rem;
  }

  .hero-subtitle {
    margin: 0 auto 2.5rem auto;
  }

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

  .nav-links {
    display: none;
  }

  .nav-cta-mobile {
    display: inline-block;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-shell {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 620px) {
  .nav-container {
    padding: 0.8rem 1.25rem;
  }

  .hero-section {
    min-height: auto;
    padding: 7rem 1.25rem 3rem;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.7rem;
    letter-spacing: -1.4px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-proof {
    justify-content: center;
  }

  .section {
    padding: 4.5rem 1.25rem;
  }

  .section-title,
  .roadmap-copy h2 {
    font-size: 2rem;
  }

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

  .service-card p {
    min-height: 0;
  }

  .roadmap-shell {
    padding: 2rem 1.25rem;
  }

  .security-panel {
    padding: 1rem;
  }

  .control-state {
    display: none;
  }

  .control-list > div {
    grid-template-columns: 34px 1fr;
  }

  .score-ring {
    width: 78px;
    height: 78px;
  }

  .glass-card {
    padding: 1.5rem;
  }
}

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

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