/* ===== PORTAFOLIO - ESTILOS COMPLETOS ===== */

/* Hero Section del Portafolio */
.portfolio-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -80px;
  padding-top: 80px;
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="portfolio-grid" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="2" fill="%230ea5e9" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23portfolio-grid)"/></svg>');
  background-size: 60px 60px;
}

.portfolio-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="hero1" cx="20%" cy="30%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.15"/><stop offset="100%" stop-color="%230ea5e9" stop-opacity="0"/></radialGradient><radialGradient id="hero2" cx="80%" cy="70%"><stop offset="0%" stop-color="%2306b6d4" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="300" r="200" fill="url(%23hero1)"/><circle cx="800" cy="700" r="250" fill="url(%23hero2)"/><circle cx="600" cy="100" r="150" fill="url(%23hero1)" opacity="0.7"/></svg>');
  animation: float 30s infinite linear;
}

/* Profile Section */
.profile-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
  color: var(--white);
  animation: fadeInUp 1s ease-out;
}

.profile-avatar {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid rgba(14, 165, 233, 0.5);
  box-shadow: 
    0 0 0 8px rgba(14, 165, 233, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  object-fit: cover;
}

.avatar-img:hover {
  transform: scale(1.05);
  border-color: var(--accent-color);
  box-shadow: 
    0 0 0 8px rgba(6, 182, 212, 0.3),
    0 25px 50px rgba(0, 0, 0, 0.4);
}

.avatar-status {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  background: #10b981;
  border: 4px solid var(--white);
  border-radius: 50%;
  animation: pulse-status 2s infinite;
}

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

.profile-info h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.profile-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.title-badge {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.title-badge.primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: var(--white);
}

.title-badge.secondary {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: var(--white);
}

.title-badge.accent {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: var(--white);
}

.profile-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
}

.profile-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.profile-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-links .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Filtros del Portfolio */
.portfolio-filters {
  background: var(--white);
  padding: 2rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 80px;
  z-index: 100;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid rgba(14, 165, 233, 0.2);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

/* Secciones del Portfolio */
.portfolio-section {
  padding: 5rem 0;
}

.academic-projects {
  background: var(--light-color);
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="academic-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%230ea5e9" stroke-width="0.3" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23academic-pattern)"/></svg>');
}

.software-projects {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Grid de Proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

/* Cards de Proyectos */
.project-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.project-card.featured {
  border: 2px solid var(--accent-color);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.2);
}

.project-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  z-index: 2;
}

/* Imagen del Proyecto */
.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(6, 182, 212, 0.8) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

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

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

.tech-tag {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.demo-gif {
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.project-category i {
  color: var(--primary-color);
}

.project-year {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-status {
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.project-status.featured {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--white);
}

.project-status.trending {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--white);
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.project-content > p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-details {
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.detail-item i {
  color: var(--primary-color);
  width: 16px;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-tag {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.feature-tag i {
  font-size: 0.7rem;
}

.project-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-project {
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.btn-project.primary {
  background: var(--gradient-primary);
  color: var(--white);
}

.btn-project.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
  color: var(--white);
  text-decoration: none;
}

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

.btn-project.outline:hover {
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
}

/* Skills Section */
.skills-section {
  padding: 5rem 0;
  background: var(--gradient-secondary);
  color: var(--white);
}

.skills-section .section-title h2,
.skills-section .section-title p {
  color: var(--white);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.skill-category {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-header i {
  font-size: 2rem;
  color: var(--accent-color);
}

.category-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.skill-item {
  margin-bottom: 1rem;
}

.skill-name {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.skill-bar {
  background: rgba(255, 255, 255, 0.2);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 10px;
  width: 0%;
  transition: width 1s ease-in-out;
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: var(--light-color);
  text-align: center;
}

.contact-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-content p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.contact-btn i {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
}

.contact-btn.whatsapp i {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.contact-btn.linkedin i {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.contact-btn.github i {
  background: linear-gradient(135deg, #333 0%, #24292e 100%);
}

.contact-btn.facebook i {
  background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
}

.btn-content {
  text-align: left;
  flex-grow: 1;
}

.btn-title {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.btn-subtitle {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
}

.achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.achievement-item {
  text-align: center;
}

.achievement-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.achievement-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Footer Personalizado */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-hero {
    min-height: 80vh;
    padding-top: 120px;
    margin-top: -120px;
  }

  .profile-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .avatar-img {
    width: 150px;
    height: 150px;
  }

  .profile-stats {
    justify-content: center;
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    margin: 0 1rem;
  }

  .filter-tabs {
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .achievements {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .profile-info h1 {
    font-size: 2rem;
  }

  .profile-description {
    font-size: 1.1rem;
  }

  .profile-titles {
    justify-content: center;
  }

  .title-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .project-actions {
    flex-direction: column;
  }

  .contact-btn {
    padding: 1rem;
  }
}

/* Animaciones adicionales */
.project-card.hidden {
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transition: all 0.3s ease;
}

.project-card.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Efectos de hover mejorados */
.project-card:hover .tech-tag {
  animation: pulse-tech 0.6s ease-in-out;
}

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

/* Gradient text mejorado para fondo oscuro */
/* Gradient text mejorado para fondo oscuro */
.portfolio-hero .text-gradient {
  background: linear-gradient(135deg, #d82e2e 0%, #06b6d4 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}
