:root {
  --primary-color: #6c63ff;
  --primary-light: #a5a1ff;
  --secondary-color: #4d44db;
  --dark-color: #1e1e2c;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #777;
  --footer-text: white;
  --footer-bg: #1e1e2c;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --project-card-light: #ffffff;
  --project-card-dark: #2a2a3a;
  
  /* Nuevas variables para animaciones profesionales */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-fast: all 0.2s ease-out;
  --transition-slow: all 0.6s ease-in-out;
  --shadow-hover: 0 10px 30px rgba(108, 99, 255, 0.3);
  --shadow-pressed: 0 5px 15px rgba(108, 99, 255, 0.4);
}

[data-theme="dark"] {
  --dark-color: #f8f9fa;
  --light-color: #1e1e2c;
  --text-color: #f0f0f0;
  --text-light: #ccc;
  --footer-text: white;
  --footer-bg: #1e1e2c;
  --project-card-light: #2a2a3a;
  --project-card-dark: #1e1e2c;
}

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

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Barra de navegación */
.navbar {
  background-color: var(--light-color);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 620;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
}

.nav-links li a:hover::after {
  width: 100%;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 2rem;
}



.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section simplificado */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  width: 100%;
}

.hero-content .btn {
  display: block;
  margin: 0 auto;
  width: 250px;
  padding: 0.8rem 1rem;
  text-align: center;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 620;
  border: 2px solid;
}

.hero-content .btn-project {
  margin-bottom: 1rem;
  background-color: white;
  color: var(--primary-color);
  border-color: white;
}

.hero-content .btn-project:hover {
  background-color: transparent;
  color: white;
  border-color: white;
}

.hero-content .btn-contact {
  background-color: transparent;
  color: white;
  border-color: white;
}

.hero-content .btn-contact:hover {
  background-color: white;
  color: var(--primary-color);
  border-color: white;
}

[data-theme="dark"] .hero-content .btn-project {
  background-color: white;
  color: var(--primary-color);
  border-color: white;
}

[data-theme="dark"] .hero-content .btn-project:hover {
  background-color: transparent;
  color: white;
  border-color: white;
}

[data-theme="dark"] .hero-content .btn-contact {
  background-color: transparent;
  color: white;
  border-color: white;
}

[data-theme="dark"] .hero-content .btn-contact:hover {
  background-color: white;
  color: var(--primary-color);
  border-color: white;
}

/* Estilos para la foto de perfil */
.profile-pic-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  position: relative;
  opacity: 0;
  animation: zoomIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}



.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.hero .subtitle span {
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: white;
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 620;
  border: none;
  cursor: pointer;
  opacity: 0;
}



.section {
  padding: 4rem 0;
  scroll-margin-top: 90px;
}

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

.section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.bg-light {
  background-color: rgba(108, 99, 255, 0.05);
}

/* Sobre mí */
.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  width: 320px;
  height: 80px;
  box-shadow: var(--shadow);
  background-color: var(--light-color);
  text-decoration: none;
  color: var(--text-color);
}



.social-card i {
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.social-card.github i {
  background-color: #333;
}

.social-card.linkedin i {
  background-color: #0077b5;
}

.social-card.cv i {
  background-color: #DC2626;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.social-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 40px;
  overflow: hidden;
  flex: 1;
}

.social-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.2rem;
  display: none; /* Ocultar las etiquetas GitHub/LinkedIn */
}

.social-username {
  font-weight: 600;
  color: var(--text-color);
  margin-top: 0.2rem; /* Ajustar espaciado sin la etiqueta */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Habilidades */
.skills-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.skill-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.skill-icon i {
  font-size: 3.5rem;
}



.skill-icon span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
}



/* Contacto Directo Mejorado */
.contact-section {
  background-color: rgba(108, 99, 255, 0.03);
  padding: 2.5rem 0;
  min-height: auto;
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  background-color: var(--light-color);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: visible;
  transition: var(--transition-smooth);
  margin-bottom: 2rem;
  height: auto;
}

.contact-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1.3rem;
  text-align: center;
  border-radius: 16px 16px 0 0;
}

.contact-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-header p {
  opacity: 0.9;
  font-size: 1rem;
}

.contact-methods {
  padding: 1.2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  border: 1px solid rgba(108, 99, 255, 0.1);
}

.contact-method:last-child {
  margin-bottom: 0;
}



.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-method.whatsapp .contact-icon {
  background-color: #25D366;
}

.contact-method.email .contact-icon {
  background-color: #D44638;
}

.contact-details {
  flex-grow: 1;
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-details p {
  color: var(--text-light);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.contact-action {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 500;
}

.contact-footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  border-top: 1px solid rgba(108, 99, 255, 0.1);
  margin-top: 1rem;
}

.response-time {
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ===== SECCIÓN DE PROYECTOS - NUEVA IMPLEMENTACIÓN ===== */

/* Filtros de proyectos */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  background-color: transparent;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.filter-btn:hover:not(.active) {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.25);
}

/* Grid de proyectos */
.projects-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

/* Tarjetas de proyecto */
.project-card {
  background-color: var(--project-card-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  border: 1px solid rgba(108, 99, 255, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

[data-theme="dark"] .project-card {
  background-color: var(--project-card-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
}



/* Imagen del proyecto */
.project-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

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

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

.project-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contenido del proyecto */
.project-content {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.project-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.95rem;
}

/* Tecnologías */
.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.tech-icon {
  font-size: 1.8rem;
  position: relative;
}



.tech-icon::after {
  content: attr(title);
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-color);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.tech-icon:hover::after {
  opacity: 1;
}

/* Botones de acción */
.project-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
}

.project-btn {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  min-width: 0;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

[data-theme="dark"] .btn-outline {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--primary-light);
  color: var(--dark-color);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop (1200px+) */
@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .project-image {
    height: 220px;
  }
}

/* Laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
  
  .project-btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
    flex: 1;
    min-width: 0;
  }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .project-image {
    height: 180px;
  }
  
  .project-content {
    padding: 1.3rem;
  }
  
  .project-title {
    font-size: 1.1rem;
  }
  
  .project-description {
    font-size: 0.9rem;
  }
  
  .tech-icon {
    font-size: 1.5rem;
  }
  
  .project-btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.6rem;
    flex: 1;
    min-width: 0;
  }
}

/* Mobile Large (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-content {
    padding: 1.2rem;
  }
  
  .project-actions {
    flex-direction: row;
    gap: 0.4rem;
  }
  
  .project-btn {
    font-size: 0.7rem;
    padding: 0.5rem 0.4rem;
    flex: 1;
    min-width: 0;
  }
  
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* Mobile Small (575px y menos) */
@media (max-width: 575px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .project-card {
    margin: 0;
    border-radius: 12px;
  }
  
  .project-image {
    height: 180px;
  }
  
  .project-content {
    padding: 1.2rem;
  }
  
  .project-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }
  
  .project-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
  }
  
  .project-technologies {
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .tech-icon {
    font-size: 1.6rem;
  }
  
  .project-actions {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .project-btn {
    font-size: 0.8rem;
    padding: 0.7rem 0.5rem;
    flex: 1;
    text-align: center;
    min-width: 0;
  }
  
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    margin: 0.2rem;
  }
  
  .project-filters {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  
  .project-filters {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-container {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--secondary-color);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .nav-links li a {
    margin-left: 0;
    font-size: 1.2rem;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
  }

  .nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .nav-links li a::after {
    display: none;
  }
  
  .navbar {
    padding: 1rem 0;
    height: 80px;
    box-sizing: border-box;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .profile-pic-container {
    width: 160px;
    height: 160px;
  }

  .skills-icons {
    gap: 1rem;
  }

  .skill-icon i {
    font-size: 3rem;
  }

  /* Reducir padding de secciones en móvil */
  .section {
    padding: 2.5rem 0;
  }

  .section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  /* Optimización sección Sobre mí para móvil */
  .about-content {
    max-width: 100%;
    padding: 0 1rem;
  }

  .about-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  /* Social links responsive */
  .social-links {
    flex-direction: row !important;
    gap: 0.7rem !important;
    align-items: center !important;
    margin-top: 1.5rem !important;
    justify-content: center !important;
  }
  
  .social-card {
    width: 280px !important;
    height: 100px !important;
    max-width: 280px !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
    padding: 1rem 1.2rem !important;
    text-align: center !important;
  }
  
  .social-card .social-info {
    text-align: center !important;
    flex: none !important;
    height: 40px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .social-card i {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.3rem !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .social-card.cv i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .social-info .social-label {
    font-size: 0.85rem;
    font-weight: 500;
  }

  .social-info .social-username {
    font-size: 0.8rem;
    font-weight: 600;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
  }

  /* Optimización sección Contacto para móvil */
  .contact-section {
    padding: 2rem 0;
  }

  .contact-card {
    max-width: 95%;
    margin: 0 auto;
  }

  .contact-header {
    padding: 1.2rem;
  }

  .contact-header h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .contact-header p {
    font-size: 0.9rem;
  }

  .contact-methods {
    padding: 1rem;
  }
  
  .contact-method {
    padding: 0.8rem;
    flex-direction: row;
    align-items: center;
    text-align: left;
    margin-bottom: 0.8rem;
  }
  
  .contact-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
    margin-right: 0.8rem;
    margin-bottom: 0;
  }
  
  .contact-details {
    width: 100%;
  }
  
  .contact-details h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }
  
  .contact-details p {
    font-size: 0.8rem;
    word-break: break-all;
    line-height: 1.3;
    margin-bottom: 0.2rem;
  }

  .contact-action {
    font-size: 0.75rem;
  }

  .contact-footer {
    padding: 0.8rem;
    font-size: 0.8rem;
  }

  .response-time {
    margin-top: 0.3rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .profile-pic-container {
    width: 140px;
    height: 140px;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  /* Optimización máxima sección Sobre mí para móvil pequeño */
  .about-content {
    padding: 0 0.5rem;
  }

  .about-content p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
  }

  /* Social links móvil pequeño */
  .social-links {
    flex-direction: row !important;
    gap: 0.5rem !important;
    align-items: center !important;
    margin-top: 1.2rem !important;
    justify-content: center !important;
  }
  
  .social-card {
    width: 250px !important;
    height: 90px !important;
    max-width: 250px !important;
    justify-content: center !important;
    flex-direction: column !important;
    padding: 0.8rem 1rem !important;
    gap: 0.4rem !important;
    text-align: center !important;
  }
  
  .social-card .social-info {
    text-align: center !important;
    flex: none !important;
    height: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  
  .social-card i {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .social-card.cv i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .social-info .social-label {
    font-size: 0.8rem;
    font-weight: 500;
  }

  .social-info .social-username {
    font-size: 0.75rem;
    font-weight: 600;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
  }

  /* Optimización máxima sección Contacto para móvil pequeño */
  .contact-section {
    padding: 2rem 0;
  }

  .contact-card {
    max-width: 100%;
    margin: 0 auto;
  }

  .contact-header {
    padding: 1rem;
  }

  .contact-header h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }

  .contact-header p {
    font-size: 0.85rem;
  }

  .contact-methods {
    padding: 0.8rem;
  }

  .contact-method {
    padding: 0.6rem;
    flex-direction: row;
    align-items: center;
    text-align: left;
    margin-bottom: 0.6rem;
  }
  
  .contact-icon {
    margin-right: 0.6rem;
    margin-bottom: 0;
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  
  .contact-details h4 {
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
  }
  
  .contact-details p {
    font-size: 0.7rem;
    word-break: break-all;
    line-height: 1.2;
    max-width: 100%;
    margin-bottom: 0.1rem;
  }
  
  .contact-action {
    font-size: 0.7rem;
    margin-top: 0.2rem;
  }

  .contact-footer {
    padding: 0.6rem;
    font-size: 0.75rem;
  }

  .response-time {
    margin-top: 0.2rem;
  }
}

/* Proyectos optimizados para móvil muy pequeño */
@media (max-width: 480px) {
  .projects-grid {
    gap: 1.2rem;
    padding: 0 0.2rem;
  }
  
  .project-card {
    border-radius: 10px;
  }
  
  .project-image {
    height: 160px;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .project-title {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
  }
  
  .project-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }
  
  .project-technologies {
    gap: 0.6rem;
    margin-bottom: 1.2rem;
  }
  
  .tech-icon {
    font-size: 1.4rem;
  }
  
  .project-actions {
    flex-direction: row;
    gap: 0.4rem;
  }
  
  .project-btn {
    font-size: 0.75rem;
    padding: 0.6rem 0.4rem;
    flex: 1;
    min-width: 0;
  }
  
  .project-filters {
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    flex: 1;
    text-align: center;
  }
}

/* ===============================================
   ANIMACIONES Y TRANSICIONES PROFESIONALES
   =============================================== */

/* Keyframes para animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Clases de animación para elementos */
.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-zoom-in {
  animation: zoomIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-slide-in-bottom {
  animation: slideInFromBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Delays para animaciones secuenciales */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ===============================================
   TRANSICIONES APLICADAS A ELEMENTOS
   =============================================== */

/* Navegación */
.navbar {
  transition: var(--transition-smooth);
}

.nav-links li a {
  transition: var(--transition-fast);
  position: relative;
}

.nav-links li a::after {
  transition: var(--transition-smooth);
}

.nav-links li a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-links li a:hover::after {
  width: 100%;
}

.theme-toggle {
  transition: var(--transition-bounce);
}

.theme-toggle:hover {
  transform: rotate(180deg) scale(1.1);
  color: var(--primary-color);
}

/* Hero Section */
.profile-pic-container {
  transition: var(--transition-smooth);
}

.profile-pic {
  transition: var(--transition-smooth);
}

.profile-pic:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 15px 40px rgba(108, 99, 255, 0.4);
}

.hero h1.animate-fade-in-up {
  opacity: 1;
}

.hero .subtitle.animate-fade-in-up {
  opacity: 1;
}

/* Botones */
.btn {
  opacity: 0;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.8s forwards;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.btn:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: var(--shadow-pressed);
}

.hero-content .btn {
  transition: var(--transition-smooth);
}

.hero-content .btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

/* Tarjetas Sociales */
.social-card {
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.1), transparent);
  transition: left 0.6s;
}

.social-card:hover::before {
  left: 100%;
}

.social-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.social-card i {
  transition: var(--transition-bounce);
}

.social-card:hover i {
  transform: scale(1.2) rotate(5deg);
  animation: pulse 0.6s ease-in-out;
}

/* Iconos de habilidades */
.skill-icon {
  transition: var(--transition-smooth);
}

.skill-icon i {
  transition: var(--transition-bounce);
}

.skill-icon:hover {
  transform: translateY(-5px);
}

.skill-icon:hover i {
  transform: scale(1.3) rotate(-5deg);
  animation: float 2s ease-in-out infinite;
}

/* Tarjetas de proyecto */
.project-card {
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.1), transparent);
  transition: left 0.8s;
}

.project-card:hover::before {
  left: 100%;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-hover);
}

.project-card img {
  transition: var(--transition-slow);
}

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

.project-card .tech-icons {
  transition: var(--transition-smooth);
}

.project-card:hover .tech-icons {
  transform: translateY(-3px);
}

.project-card .project-actions {
  transition: var(--transition-smooth);
}

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

/* Botones de acción de proyectos */
.project-actions .btn {
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.project-actions .btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.project-actions .btn-outline:hover {
  transform: translateY(-3px) scale(1.05);
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.project-actions .btn-secondary:hover {
  transform: translateY(-3px) scale(1.05);
  background-color: var(--text-color);
  color: white;
  box-shadow: 0 8px 25px rgba(51, 51, 51, 0.3);
}

/* Filtros de proyecto */
.filter-btn {
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.filter-btn.active {
  animation: pulse 0.3s ease-in-out;
}

/* Contacto */
.contact-info .contact-item {
  transition: var(--transition-smooth);
}

.contact-info .contact-item:hover {
  transform: translateX(10px);
  color: var(--primary-color);
}

.contact-info .contact-item i {
  transition: var(--transition-bounce);
}

.contact-info .contact-item:hover i {
  transform: scale(1.3) rotate(15deg);
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 2rem 0;
  margin-top: 0;
  transition: var(--transition-smooth);
}

.footer-text {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* Utilidades para desactivar animaciones en dispositivos con preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Mejorar la performance de las animaciones */
.project-card,
.social-card,
.skill-icon,
.btn,
.filter-btn {
  will-change: transform;
}

.project-card:hover,
.social-card:hover,
.skill-icon:hover,
.btn:hover,
.filter-btn:hover {
  will-change: auto;
}


