/* ============================================
   PORTAFOLIO.CSS - Estilos para Página de Portafolio
   ============================================ */

/* HERO SECTION - PORTAFOLIO */
.portafolio-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #2e0a1a 100%);
  position: relative;
}

.portafolio-hero .hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(26, 10, 46, 0.7) 40%,
    rgba(46, 10, 26, 0.8) 100%
  );
  animation: gradientShiftPortafolio 8s ease infinite;
  z-index: 1;
}

@keyframes gradientShiftPortafolio {
  0%, 100% {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 10, 46, 0.7) 40%, rgba(46, 10, 26, 0.8) 100%);
  }
  50% {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(46, 10, 26, 0.7) 40%, rgba(26, 10, 46, 0.8) 100%);
  }
}

.portafolio-hero .hero-content {
  z-index: 3;
}

/* MAIN CONTENT */
.portafolio-main {
  background-color: #000;
  color: #fff;
}

/* SECTION BASE */
section {
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 3.5rem;
  margin-bottom: 30px;
  font-family: 'Michroma', sans-serif;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* INTRO SECTION */
.intro-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #0a0a1a 100%);
  border-bottom: 1px solid rgba(255, 20, 147, 0.1);
}

.intro-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #ddd;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PORTFOLIO GRID */
.portfolio-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a0a1a 100%);
  border-bottom: 1px solid rgba(255, 20, 147, 0.1);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.portfolio-item {
  background: rgba(255, 20, 147, 0.05);
  border: 1px solid rgba(255, 20, 147, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: slideIn 0.8s ease both;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio-item:hover {
  background: rgba(255, 20, 147, 0.1);
  border-color: rgba(255, 20, 147, 0.5);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 20, 147, 0.15);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 20, 147, 0.2);
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.placeholder {
  font-size: 4rem;
  opacity: 0.5;
}

.portfolio-info {
  padding: 25px;
}

.portfolio-info h3 {
  font-size: 1.3rem;
  color: #ff1493;
  margin: 0 0 10px 0;
  font-family: 'Michroma', sans-serif;
}

.portfolio-category {
  color: #999;
  font-size: 0.9rem;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portfolio-description {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tags span {
  background: rgba(255, 20, 147, 0.1);
  border: 1px solid rgba(255, 20, 147, 0.3);
  color: #ff1493;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* STATS SECTION */
.stats-section {
  background: linear-gradient(180deg, #1a0a1a 0%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(255, 20, 147, 0.1);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.stat-card {
  padding: 40px;
  background: rgba(255, 20, 147, 0.05);
  border: 1px solid rgba(255, 20, 147, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: zoomIn 0.8s ease both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-card:hover {
  background: rgba(255, 20, 147, 0.1);
  border-color: rgba(255, 20, 147, 0.5);
  transform: scale(1.05);
}

.stat-number {
  font-size: 3rem;
  color: #ff1493;
  font-family: 'Michroma', sans-serif;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-card p {
  color: #bbb;
  font-size: 1rem;
  margin: 0;
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
  color: #000;
  text-align: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  background: none;
  -webkit-text-fill-color: unset;
  color: #000;
  margin-bottom: 20px;
  font-size: 3rem;
}

.cta-section p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 300;
}

.btn-premium {
  background: #000;
  color: #ff1493;
  padding: 18px 45px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-premium:hover {
  background: #1a1a1a;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  section {
    padding: 60px 20px;
  }

  section h2 {
    font-size: 2.5rem;
  }

  .portfolio-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 15px;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .portfolio-image {
    height: 150px;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}
