:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --bg-dark: #0f172a;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Blobs */
.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: blur(80px);
  opacity: 0.6;
}

.blob {
  position: absolute;
  border-radius: 50%;
  animation: move 20s infinite alternate;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background: #3b82f6;
  top: 40%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes move {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(100px, 100px) scale(1.2);
  }
}

/* Glassmorphism Utility */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

/* Container */
.cv-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.cv-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
}

/* Sidebar */
.cv-sidebar {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: fit-content;
  position: sticky;
  top: 40px;
}

.profile-section {
  text-align: center;
}

.image-container {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  position: relative;
}

.perfil-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--glass-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.occupation {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.social-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.contact-info {
  border-top: 1px solid var(--glass-border);
  padding-top: 25px;
}

.about-text {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.details-list {
  list-style: none;
}

.details-list li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
}

.details-list li strong {
  color: var(--primary);
  min-width: 60px;
}

.qr-section {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 16px;
}

.qr-img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  margin-bottom: 10px;
  filter: brightness(0.9);
}

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

/* Main Content */
.cv-main-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section-card {
  padding: 35px;
}

.section-card h2 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.insignias-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.insignia-item {
  width: 60px;
  height: 60px;
  background: var(--glass-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.insignia-item:hover {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
}

.insignia-item img {
  width: 35px;
  height: 35px;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: var(--glass-border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
  line-height: 1.6;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
  .cv-grid {
    grid-template-columns: 1fr;
  }

  .cv-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .cv-container {
    padding: 10px;
  }

  .section-card {
    padding: 20px;
  }

  .name {
    font-size: 1.5rem;
  }
}

/* Footer */
.footer-main {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  opacity: 0.7;
  width: 100%;
}