/* ===================================
   INDIGO TECH - Layout Asimétrico Moderno
   =================================== */
:root {
  /* Grises Zinc */
  --zinc-950: #09090B;
  --zinc-900: #18181B;
  --zinc-800: #27272A;
  --zinc-700: #3F3F46;
  --zinc-600: #52525B;
  --zinc-500: #71717A;
  --zinc-400: #A1A1AA;
  --zinc-300: #D4D4D8;
  --zinc-200: #E4E4E7;
  --zinc-100: #F4F4F5;
  --zinc-50: #FAFAFA;

  /* Color Indigo */
  --indigo-600: #4F46E5;
  --indigo-500: #6366F1;
  --indigo-400: #818CF8;
  --indigo-300: #A5B4FC;

  /* Aplicación */
  --bg-primary: #1F1F23;
  --bg-secondary: #27272A;
  --bg-dark: #18181B;
  --bg-darker: #09090B;
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --accent: #6366F1;
  --accent-hover: #818CF8;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --border-color: #3F3F46;
  --glass-bg: rgba(39, 39, 42, 0.7);
  --glass-border: rgba(63, 63, 70, 0.5);
}

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

html {
  height: 100%;
  scroll-padding-top: 5rem;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Inter", "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
}

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

a:hover {
  color: var(--accent-hover);
}

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

/* ===================================
   GLASS NAVIGATION - MINIMAL
   =================================== */
.navbar-glass {
  background: rgba(24, 24, 27, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.navbar-glass.scrolled {
  background: rgba(24, 24, 27, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#mainNav {
  padding: 0.75rem 0;
}

#mainNav .container {
  justify-content: center;
}

#mainNav .navbar-brand {
  display: none;
}

#mainNav .navbar-nav {
  display: flex;
  gap: 0.5rem;
}

#mainNav .navbar-nav li.nav-item a.nav-link {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.01em;
}

#mainNav .navbar-nav li.nav-item a.nav-link::after {
  display: none;
}

#mainNav .navbar-nav li.nav-item a.nav-link:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.15);
}

#mainNav .navbar-nav li.nav-item a.nav-link.active {
  color: var(--text-primary);
  background: var(--accent);
}

#mainNav .navbar-toggler {
  background: var(--accent);
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: white;
}

@media (max-width: 991px) {
  #mainNav .container {
    justify-content: flex-end;
  }

  #mainNav .navbar-nav {
    padding: 1rem 0;
    gap: 0.25rem;
  }

  #mainNav .navbar-nav li.nav-item a.nav-link {
    text-align: center;
    padding: 0.75rem 1.5rem;
  }
}

@media (min-width: 992px) {
  #mainNav {
    padding: 1rem 0;
  }
}

/* ===================================
   HERO - LAYOUT ASIMÉTRICO CON FONDO TECH
   =================================== */
.masthead {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Tech Grid Background */
.masthead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Glowing Orbs */
.masthead::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(129, 140, 248, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 30%);
  pointer-events: none;
  animation: float 15s ease-in-out infinite alternate;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

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

/* Additional Tech Elements */
.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-elements::before {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  animation: pulse-ring 8s ease-in-out infinite;
}

.hero-bg-elements::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 15%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(99, 102, 241, 0.08);
  transform: rotate(45deg);
  animation: rotate-slow 30s linear infinite;
}

@keyframes pulse-ring {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(45deg);
  }

  to {
    transform: rotate(405deg);
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-avatar-wrapper {
  flex-shrink: 0;
  position: relative;
}

/* Avatar ring animation */
.hero-avatar-wrapper::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  opacity: 0.5;
  animation: spin-ring 8s linear infinite;
}

@keyframes spin-ring {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.masthead-avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow:
    0 0 40px var(--accent-glow),
    0 0 80px rgba(99, 102, 241, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  z-index: 1;
}

.masthead-avatar:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 60px var(--accent-glow),
    0 0 100px rgba(99, 102, 241, 0.3),
    0 25px 50px rgba(0, 0, 0, 0.4);
}

.hero-text {
  max-width: 700px;
}

.masthead-heading {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.masthead-subheading {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-custom {
  background: var(--accent);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-custom:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-outline-custom {
  background: transparent;
  color: var(--text-primary);
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-custom:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .masthead-avatar {
    width: 200px;
    height: 200px;
  }

  .masthead-heading {
    font-size: 2.5rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

/* ===================================
   PAGE SECTIONS
   =================================== */
.page-section {
  padding: 5rem 0;
  background-color: var(--bg-primary);
}

.page-section-alt {
  background-color: var(--bg-secondary);
}

.page-section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

@media (min-width: 992px) {
  .page-section {
    padding: 6rem 0;
  }

  .page-section-heading {
    font-size: 2.5rem;
  }
}

/* ===================================
   DIVIDERS
   =================================== */
.divider-custom {
  margin: 1.5rem 0 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.divider-custom-line {
  width: 5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

.divider-custom-icon {
  color: var(--accent);
  font-size: 1.5rem;
}

/* ===================================
   CERTIFICATION CARDS
   =================================== */
.certification-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-item:hover {
  transform: translateY(-8px);
}

.certification-img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.certification-item:hover .certification-img {
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--accent);
}

/* ===================================
   PROJECT CARDS
   =================================== */
.project-item {
  height: 100%;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-item:hover .project-card {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
  text-align: center;
  margin-bottom: 1.25rem;
}

.project-icon {
  font-size: 2.5rem;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  padding: 1rem;
  border-radius: 1rem;
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.project-item:hover .project-icon {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

.project-content {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex: 1;
}

.project-tech {
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tech-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #8B8DF1;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.project-links .btn-outline-primary {
  border-color: var(--accent);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.project-links .btn-outline-primary:hover {
  background: var(--accent);
  color: white;
}

.project-stats {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-stats i {
  color: var(--accent);
  margin-right: 0.25rem;
  margin-left: 0.75rem;
}

.project-stats i:first-child {
  margin-left: 0;
}

/* ===================================
   VIDEO SECTION
   =================================== */
.video-item {
  transition: transform 0.3s ease;
}

.video-item:hover {
  transform: translateY(-8px);
}

.video-card {
  background: var(--bg-secondary);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.video-item:hover .video-card {
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--bg-dark);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-secondary) 100%);
}

.video-placeholder i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.video-item:hover .video-placeholder i {
  transform: scale(1.2);
}

.video-content {
  padding: 1.25rem;
}

.video-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.video-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section .lead {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.0625rem;
}

.about-section strong {
  color: var(--indigo-300);
  font-weight: 600;
}

/* ===================================
   CONTACT BUTTONS
   =================================== */
.contact-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-buttons .btn-outline-primary {
  border-color: var(--accent);
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
}

.contact-buttons .btn-outline-primary:hover {
  background: var(--accent);
  color: white;
}

.contact-buttons .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
}

.contact-buttons .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  padding: 4rem 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
}

.footer h4 {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer .lead {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.footer a {
  color: var(--indigo-600);
  text-decoration: underline;
  text-decoration-color: var(--indigo-600);
  text-underline-offset: 2px;
}

.footer a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.btn-social {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.btn-social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.copyright {
  background: var(--bg-darker);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===================================
   SCROLLBAR
   =================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ===================================
   UTILITIES
   =================================== */
.text-secondary {
  color: var(--text-secondary) !important;
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.7;
}