/* ===== VARIABLES ===== */
:root {
  --yellow: #f7df1e;
  --black: #000000;
  --gray-dark: #111111;
  --gray-medium: #333333;
  --gray-light: #666666;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--yellow) 0%, #ffd700 100%);
  --shadow-subtle: 0 4px 20px rgba(247, 223, 30, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Efecto de estrellas */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--black);
  background: 
    radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
    radial-gradient(2px 2px at 40px 70px, #ffffff, transparent),
    radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
    radial-gradient(1px 1px at 130px 80px, #ffffff, transparent),
    radial-gradient(2px 2px at 160px 30px, #ffffff, transparent),
    radial-gradient(1px 1px at 300px 120px, #ffffff, transparent),
    radial-gradient(2px 2px at 220px 180px, #ffffff, transparent),
    radial-gradient(1px 1px at 350px 200px, #ffffff, transparent),
    radial-gradient(1px 1px at 180px 250px, #ffffff, transparent),
    radial-gradient(2px 2px at 400px 300px, #ffffff, transparent);
  background-repeat: repeat;
  background-size: 450px 350px;
  animation: stars-move 50s linear infinite;
  opacity: 0.6;
}

@keyframes stars-move {
  0% { transform: translateY(0); }
  100% { transform: translateY(-350px); }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Secciones */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin: 0 auto 60px;
  position: relative;
  display: block;
  width: 100%;
  padding: 0 20px;
}

.highlight {
  color: var(--yellow);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  bottom: 5px;
  left: 0;
  background: var(--gradient);
  z-index: -1;
  opacity: 0.5;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--gradient);
  color: var(--black);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.2s ease;
  margin-left: 15px;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(247, 223, 30, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(247, 223, 30, 0.1);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  transition: var(--transition);
}

.brand-link {
  text-decoration: none;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.brand-dot {
  color: var(--yellow);
  font-size: 3rem;
  line-height: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Navigation Menu */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  position: relative;
  z-index: 1000;
}

/* Menu Toggle Button (Mobile) */
.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
  margin-right: 10px;
  outline: none;
}

.toggle-line {
  display: block;
  position: absolute;
  height: 2.5px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-line:nth-child(1) {
  top: 0;
}

.toggle-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.toggle-line:nth-child(3) {
  bottom: 0;
}

.nav-toggle.active .toggle-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  transform-origin: left center;
}

.nav-toggle.active .toggle-line:nth-child(2) {
  opacity: 0;
  width: 0%;
}

.nav-toggle.active .toggle-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  transform-origin: left center;
}

/* Menu Container */
.nav-menu-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--black);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 30px;
  z-index: 999;
  transition: all 0.4s ease;
  border-left: 1px solid rgba(247, 223, 30, 0.1);
  overflow-y: auto;
}

.nav-menu-container.active {
  right: 0;
}

/* Navigation Menu */
.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-item {
  margin: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  text-align: center;
}

.nav-menu.animating .nav-item {
  opacity: 1;
  transform: translateX(0);
}

.nav-menu.animating .nav-item:nth-child(1) { transition-delay: 0.1s; }
.nav-menu.animating .nav-item:nth-child(2) { transition-delay: 0.15s; }
.nav-menu.animating .nav-item:nth-child(3) { transition-delay: 0.2s; }
.nav-menu.animating .nav-item:nth-child(4) { transition-delay: 0.25s; }
.nav-menu.animating .nav-item:nth-child(5) { transition-delay: 0.3s; }

.nav-link {
  display: inline-block;
  position: relative;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 20px;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.nav-link-text {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 10px;
}

.nav-link-line {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--yellow);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover .nav-link-line,
.nav-link.active .nav-link-line {
  width: 60%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--yellow);
  transform: translateY(-2px);
}

.nav-link:active {
  transform: translateY(0);
}

/* Social Icons */
.nav-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.45s;
}

.nav-menu-container.active .nav-social {
  opacity: 1;
  transform: translateY(0);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--gradient);
  color: var(--black);
  transform: translateY(-3px);
}

.social-link:hover i {
  color: var(--black) !important;
}

/* Nav Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Desktop Styles */
@media (min-width: 993px) {
  .nav-toggle {
    display: none;
  }
  
  .nav-menu-container {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    box-shadow: none;
    overflow: visible;
    transform: none;
    border: none;
  }
  
  .nav-menu {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  
  .nav-item {
    opacity: 1;
    transform: none;
    margin: 0;
  }
  
  .nav-link {
    font-size: 0.95rem;
    padding: 8px 12px;
    font-weight: 500;
  }
  
  .nav-link-line {
    bottom: 5px;
    height: 2px;
  }
  
  .nav-link:hover .nav-link-line,
  .nav-link.active .nav-link-line {
    width: 70%;
  }
  
  .nav-overlay {
    display: none;
  }
}

/* Mobile Styles */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
  }
  
  .nav-menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .nav-brand {
    z-index: 1001;
  }
  
  .header {
    padding: 15px 0;
  }
}

/* Prevent scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

.toggle-line:nth-child(3) {
  bottom: 0;
  transform-origin: left center;
}

.nav-toggle.active .toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(1px, -3px);
  width: 100%;
}

.nav-toggle.active .toggle-line:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.nav-toggle.active .toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(1px, 3px);
  width: 100%;
}

/* Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  order: 1;
}

.hero-visual {
  order: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 30px;
}

.hero-line {
  display: block;
  color: var(--white);
}

.hero-name {
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 4.5rem;
  margin: 10px 0;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--gray-light);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.gif-container {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}


.hero-gif {
  width: 100%;
  height: auto;
  display: block;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  transition: var(--transition);
}

.hero-scroll:hover {
  opacity: 1;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  color: var(--white);
}

.scroll-arrow {
  width: 20px;
  height: 30px;
  border: 2px solid var(--yellow);
  border-radius: 10px;
  margin-top: 10px;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--yellow);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 10px); opacity: 0; }
}

/* About Section */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-intro h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-light);
  margin-bottom: 40px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(17, 17, 17, 0.3);
  border-radius: 15px;
  border: 1px solid var(--gray-medium);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-item:hover {
  border-color: var(--yellow);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-stats {
  margin-bottom: 30px;
}

.about-specialties {
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

.specialties h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.specialties ul {
  padding-left: 20px;
  margin: 0;
}

.specialties li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--gray-light);
}

/* Responsive */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-intro h3 {
    font-size: 1.8rem;
  }
  
  .about-intro p {
    font-size: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .stat-item {
    padding: 25px 15px;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

/* Skills Section */
.skills-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

/* Filtros */
.skills-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.filter-btn {
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid var(--gray-medium);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-btn:hover {
  background: rgba(247, 223, 30, 0.1);
  border-color: var(--yellow);
  color: var(--yellow);
}

.filter-btn.active {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
  font-weight: 600;
}

.tech-stack {
  width: 100%;
  transition: var(--transition);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 25px;
  margin-top: 0;
}

.tech-item {
  background: rgba(17, 17, 17, 0.5);
  border: 1px solid var(--gray-medium);
  border-radius: 15px;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 140px;
  opacity: 1;
  transform: translateY(0);
}

.tech-item.hidden {
  display: none;
}

.tech-item.fade-out {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
  z-index: 1;
}

.tech-item:hover {
  transform: translateY(-5px);
  border-color: var(--yellow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-item:hover::before {
  transform: scaleX(1);
}

.tech-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--yellow);
  transition: var(--transition);
}

.tech-item:hover .tech-icon {
  transform: scale(1.2);
}

.tech-item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  transition: var(--transition);
}

.tech-item:hover span {
  color: var(--yellow);
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .tech-item {
    padding: 20px 10px;
    height: 110px;
  }
  
  .tech-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .tech-item span {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-item {
    height: 100px;
  }
  
  .tech-icon {
    font-size: 1.8rem;
  }
}

/* GitHub Repositories Section */
#repositories {
  padding: 100px 0
}

.section-subtitle {
  text-align: center;
  color: var(--gray-light);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.repositories-container {
  margin-top: 40px;
}

.repositories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.repo-card {
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid var(--gray-medium);
  border-radius: 10px;
  padding: 25px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.repo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
  transform: scaleY(0);
  transform-origin: top;
  transition: var(--transition);
}

.repo-card:hover {
  transform: translateY(-5px);
  border-color: var(--yellow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.repo-card:hover::before {
  transform: scaleY(1);
}

.repo-header {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.repo-icon {
  color: var(--yellow);
  font-size: 1.2rem;
}

.repo-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  flex-grow: 1;
}

.repo-name a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.repo-name a:hover {
  color: var(--yellow);
}

.repo-description {
  color: var(--gray-light);
  margin-bottom: 20px;
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.repo-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--gray-medium);
}

.repo-language {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--gray-light);
}

.language-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--yellow);
}

.repo-stats {
  display: flex;
  align-items: center;
  gap: 15px;
}

.repo-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--gray-light);
}

.github-cta {
  text-align: center;
  margin-top: 40px;
}

.github-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  font-weight: 500;
  transition: var(--transition);
}

.github-cta .btn i {
  transition: transform 0.3s ease;
}

.github-cta .btn:hover i {
  transform: translateX(5px);
}

/* Skeleton Loading */
.repo-skeleton {
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid var(--gray-medium);
  border-radius: 10px;
  padding: 25px;
  height: 180px;
  position: relative;
  overflow: hidden;
}

.skeleton-header {
  height: 24px;
  width: 70%;
  background: var(--gray-medium);
  border-radius: 4px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.skeleton-description {
  height: 60px;
  width: 100%;
  background: var(--gray-medium);
  border-radius: 4px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.skeleton-footer {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.skeleton-tag {
  height: 20px;
  width: 60px;
  background: var(--gray-medium);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

/* Skeleton Animation */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-header::after,
.skeleton-description::after,
.skeleton-tag::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .repositories-grid {
    grid-template-columns: 1fr;
  }
  
  .repo-card {
    padding: 20px;
  }
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  background: rgba(17, 17, 17, 0.7);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  padding: 10px 25px;
  background: var(--gradient);
  color: var(--black);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.project-link:hover {
  transform: translateY(-3px);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--white);
}

.project-info p {
  color: var(--gray-light);
  margin-bottom: 15px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(247, 223, 30, 0.1);
  color: var(--yellow);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  padding: 0 15px;
}

.contact-info {
  width: 100%;
  box-sizing: border-box;
}

.contact-visual {
  width: 100%;
  box-sizing: border-box;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

.contact-item {
  width: 100%;
  min-width: 200px;
  box-sizing: border-box;
  padding: 5px;
  background: rgba(17, 17, 17, 0.5);
  border-radius: 10px;
  border: 1px solid var(--gray-medium);
  transition: var(--transition);
}

.contact-card {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0;
  }
  
  .contact-visual {
    order: -1;
    max-width: 100%;
    margin: 0;
  }
  
  .contact-info {
    text-align: left;
    padding: 0 10px;
  }
  
  .contact-item {
    justify-content: flex-start;
    text-align: left;
    margin: 0;
  }
  
  .contact-card {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .contact-content {
    gap: 25px;
  }
  
  .contact-item {
    padding: 12px;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
  
  .contact-details h4 {
    font-size: 1rem;
  }
  
  .contact-details a {
    font-size: 0.9rem;
  }
}

.contact-intro {
  margin-bottom: 40px;
}

.contact-intro h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-light);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(17, 17, 17, 0.5);
  border-radius: 12px;
  border: 1px solid var(--gray-medium);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.contact-item:hover {
  border-color: var(--yellow);
  transform: translateX(8px);
}

.contact-icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.contact-icon i {
  color: var(--black);
  font-size: 1.2rem;
}

.contact-details h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--white);
}

.contact-details a {
  color: var(--yellow);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--white);
}

.contact-details span {
  color: var(--gray-light);
  font-size: 0.95rem;
}

.social-section h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--yellow);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: rgba(17, 17, 17, 0.5);
  border-radius: 10px;
  border: 1px solid var(--gray-medium);
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
  font-size: 14px;
}

.social-link:hover {
  border-color: var(--yellow);
  background: rgba(247, 223, 30, 0.1);
  transform: translateY(-2px);
}

.social-link i {
  font-size: 1.2rem;
  color: var(--yellow);
  width: 24px;
  text-align: center;
}

/* Contact Card */
.contact-visual {
  position: relative;
  height: 100%;
}

.contact-card {
  background: linear-gradient(145deg, #121212, #1a1a1a);
  border-radius: 16px;
  border: 1px solid var(--gray-medium);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
  background: rgba(247, 223, 30, 0.05);
  padding: 25px 20px;
  border-bottom: 1px solid var(--gray-medium);
  box-sizing: border-box;
  width: 100%;
}

.card-header h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: var(--white);
}

.card-header p {
  color: var(--yellow);
  font-size: 1rem;
  opacity: 0.9;
}

.card-body {
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 15px;
  background: rgba(17, 17, 17, 0.5);
  border-radius: 8px;
  border: 1px solid var(--gray-medium);
  width: 100%;
  box-sizing: border-box;
}

.status-indicator {
  width: 12px;
  height: 12px;
  background: #4caf50;
  border-radius: 50%;
  position: relative;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.availability span {
  color: var(--white);
  font-size: 0.95rem;
}

.specialties h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--yellow);
  position: relative;
  padding-bottom: 10px;
}

.specialties h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient);
}

.specialties ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specialties li {
  color: var(--gray-light);
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  font-size: 1rem;
}

.specialties li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--yellow);
}

/* Footer */
.footer {
    background-color: var(--black);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(247, 223, 30, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

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

.brand-link {
    text-decoration: none;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

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

.brand-dot {
    color: var(--yellow);
    font-size: 3rem;
    line-height: 1;
}

.footer-description {
    color: var(--gray-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}

.footer-section h4 {
    color: var(--yellow);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section ul li a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    padding-left: 15px;
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--yellow);
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
}

.footer-section ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-section ul li a:hover {
    color: var(--yellow);
    padding-left: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(247, 223, 30, 0.1);
    border: 1px solid rgba(247, 223, 30, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    color: var(--yellow);
}

.social-link:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    padding-top: 30px;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-light);
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
    color: var(--gray-light);
}

/* Estilos responsivos para el footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: left;
    }
    
    .brand-link {
        justify-content: flex-start;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        text-align: left;
    }
    
    .footer-section h4 {
        text-align: left;
        margin-left: 0;
        padding-left: 0;
    }
    
    .footer-section ul {
        align-items: flex-start;
        text-align: left;
        padding-left: 0;
    }
    
    .footer-section ul li {
        text-align: left;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 10px;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .footer-links {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .footer-section ul {
        align-items: flex-start;
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-name {
    font-size: 4rem;
  }
  
  .hero-content {
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .hero-text {
    order: 2;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
  }
  
  .hero-visual {
    order: 1;
    max-width: 400px;
    margin: 0 auto 20px;
  }
  
  .hero-buttons {
    order: 3;
    justify-content: center;
    margin-top: 20px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-image {
    order: -1;
    margin-bottom: 40px;
  }
  
  .detail-item {
    justify-content: center;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .info-item {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-content {
    text-align: center;
  }
  
  .footer-links h4::after,
  .footer-newsletter h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--gray-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
    margin: 15px 0;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-name {
    font-size: 3.2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-name {
    font-size: 2.5rem;
  }
  
  .hero-visual {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .hero-gif {
    max-height: 300px;
    object-fit: contain;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-secondary {
    margin-left: 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .image-frame {
    height: 350px;
  }
  
  .contact-form button[type="submit"] {
    padding: 12px;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 5px;
  }
  
  .footer-legal span {
    display: none;
  }
}
