:root {
  --primary-blue: #0a74f7;
  --background-dark: #0a192f;
  --background-light: #112240;
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --text-title: #e6f1ff;
  --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  --sidebar-width: 200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--text-primary);
}

.main-content {
  margin-left: var(--sidebar-width);
}

.section {
  padding: 6rem 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-title);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-blue);
  margin: 10px auto 0;
}

.btn {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-blue);
  padding: 12px 28px;
  border: 1px solid var(--primary-blue);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: rgba(10, 116, 247, 0.1);
}

/* Barra de Navegación */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--background-light);
  border-right: 1px solid #1a2c4e;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  z-index: 1000;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-blue);
  text-decoration: none;
  background-color: rgba(10, 117, 247, 0.359);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 3rem;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sidebar-nav ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 15px 30px;
  gap: 15px;
  transition: color 0.3s, background-color 0.3s;
}

.sidebar-nav ul li a i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.sidebar-nav ul li a:hover {
  color: var(--primary-blue);
  background-color: rgba(10, 116, 247, 0.05);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  background-color: hsla(222, 80%, 33%, 0.283);
  border-radius: 50px;
}

.hero-intro {
  color: var(--primary-blue);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  margin-left: 50px;
  margin-top: 50px;
}
.hero-title {
  font-size: clamp(40px, 8vw, 80px);
  color: var(--text-title);
  line-height: 1.1;
  margin-left: 50px;
}
.hero-subtitle {
  font-size: clamp(30px, 6vw, 60px);
  color: var(--text-secondary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  padding-right: 50px;
  margin-left: 50px;
}
.hero-description {
  max-width: 550px;
  margin-bottom: 2.5rem;
  margin-left: 50px;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-left: 50px;
  margin-bottom: 50px;
}
.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  filter: brightness(0.5);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(10, 99, 245, 0.2),
    rgba(26, 42, 108, 0.7)
  );
}

/* --- Timeline de Formación --- */
.timeline-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.timeline-container::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: var(--background-light);
  top: 0;
  bottom: 0;
  left: 20px;
}
.timeline-item {
  padding: 10px 40px;
  padding-left: 60px;
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: 11px;
  top: 21px;
  width: 20px;
  height: 20px;
  border: 3px solid var(--primary-blue);
  border-radius: 50%;
  background-color: var(--background-dark);
  z-index: 1;
}
.timeline-content {
  padding: 20px 30px;
  background-color: var(--background-light);
  border-radius: 8px;
  position: relative;
}
.timeline-content h3 {
  color: var(--text-title);
}
.timeline-date {
  font-size: 0.9rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ESTILOS PARA LA SECCIÓN DE TECNOLOGÍAS */
#tecnologias {
  padding: 80px 20px;
  color: #0f172a;
}

.tech-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.tech-category {
  flex: 1;
  min-width: 300px;
  background: #2c3e5e;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.category-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0a63f5;
  color: #e6f1ff;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-pill {
  background: linear-gradient(45deg, #0a63f5, #1e88e5);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
}

.tech-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(10, 99, 245, 0.3);
  background: linear-gradient(45deg, #1e40af, #0a63f5);
}

/* Responsive */
@media (max-width: 768px) {
  .tech-container {
    gap: 30px;
  }

  .tech-category {
    min-width: 100%;
  }
}

/* --- Proyectos --- */
.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--background-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-10px);
}
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.project-card:hover img {
  opacity: 1;
}
.project-info {
  padding: 1.5rem;
  flex-grow: 1;
}
.project-info h3 {
  color: var(--text-title);
}
.project-links {
  margin-top: 1rem;
}
.project-links a {
  text-decoration: none;
  color: var(--primary-blue);
  margin-right: 1rem;
  font-weight: 600;
}

/* --- Contacto --- */
.contact-container {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  background-color: var(--background-light);
  padding: 2.5rem;
  border-radius: 8px;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: 2rem;
  color: var(--text-title);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.contact-info i {
  color: var(--primary-blue);
  margin-right: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: 1px solid #2c3e5e;
  background-color: var(--background-dark);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.contact-form button {
  width: 100%;
  border: 1px solid var(--primary-blue);
}

.form-message {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2rem 5%;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .main-content {
    margin-left: 0;
    padding-bottom: 70px;
  }
  .sidebar-nav {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    height: 70px;
    bottom: 0;
    top: auto;
    border-right: none;
    border-top: 1px solid #1a2c4e;
    padding: 0;
  }
  .sidebar-nav .nav-logo {
    display: none;
  }
  .sidebar-nav ul {
    flex-direction: row;
    justify-content: space-around;
    height: 100%;
  }
  .sidebar-nav ul li a {
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 5px 10px;
    gap: 5px;
  }
  .sidebar-nav ul li a span {
    font-size: 0.7rem;
  }
  .contact-container {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .section {
    padding: 4rem 3%;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.8rem;
  }
}
