/* proyecto.css — Diseño premium para la página del proyecto */

/* ============================================
   HERO SECTION
   ============================================ */
.proyecto-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 100px;
}

.proyecto-hero .hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
  animation: patternShift 10s ease-in-out infinite alternate;
}

@keyframes patternShift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(5deg); }
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(248, 250, 252, 1) 0%, transparent 100%);
  z-index: 1;
}

/* Floating elements */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.float-el {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.15;
  filter: blur(1px);
}

.el-1 { top: 15%; left: 10%; animation: float1 8s ease-in-out infinite; }
.el-2 { top: 25%; right: 15%; animation: float2 10s ease-in-out infinite; }
.el-3 { bottom: 30%; left: 20%; animation: float3 12s ease-in-out infinite; }
.el-4 { top: 40%; right: 25%; animation: float1 9s ease-in-out infinite reverse; }
.el-5 { bottom: 25%; right: 10%; animation: float2 11s ease-in-out infinite; }

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, -20px) rotate(10deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-15px, 25px) rotate(-10deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, 15px); }
}

/* Hero Content */
.proyecto-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 50px;
  color: #a78bfa;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: fadeSlideUp 0.6s ease forwards;
}

.hero-badge svg {
  width: 18px;
  height: 18px;
}

.badge-alt {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

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

.proyecto-hero .hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.6s 0.1s ease forwards;
  opacity: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.proyecto-hero .hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  animation: fadeSlideUp 0.6s 0.2s ease forwards;
  opacity: 0;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeSlideUp 0.6s 0.3s ease forwards;
  opacity: 0;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero svg {
  width: 20px;
  height: 20px;
}

.btn-primary-hero {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
  text-decoration: none;
  color: #fff;
}

.btn-ghost-hero {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-ghost-hero:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  color: #fff;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #667eea;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   OBJETIVO SECTION
   ============================================ */
.objetivo-section {
  padding: 80px 0;
  background: #f8fafc;
}

.objetivo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.objetivo-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.objetivo-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.objetivo-card-featured {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.objetivo-card-featured h3 {
  color: #fff;
}

.objetivo-card-featured p {
  color: rgba(255, 255, 255, 0.9);
}

.objetivo-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.objetivo-icon svg {
  width: 30px;
  height: 30px;
  stroke: #fff;
}

.objetivo-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.objetivo-card p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Feature Cards */
.objetivo-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* ============================================
   EQUIPO SECTION
   ============================================ */
.equipo-section {
  padding: 100px 0;
  background: #fff;
}

/* Leader Card */
.equipo-leader {
  margin-bottom: 60px;
}

.leader-card {
  display: flex;
  gap: 40px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.leader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f472b6);
}

.leader-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.leader-avatar .avatar-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-radius: 32px;
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.leader-info {
  flex: 1;
}

.leader-role {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #667eea;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.leader-name {
  font-size: 2rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 8px;
}

.leader-title {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 20px;
}

.leader-bio {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 24px;
}

.leader-links {
  display: flex;
  gap: 16px;
}

.leader-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: all 0.3s ease;
}

.leader-link svg {
  width: 18px;
  height: 18px;
}

.leader-link:hover {
  border-color: #667eea;
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
  text-decoration: none;
}

/* Participantes Grid */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.participante-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.participante-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.participante-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.12);
  border-color: rgba(102, 126, 234, 0.3);
}

.participante-avatar {
  flex-shrink: 0;
}

.avatar-img {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.participante-avatar .avatar-photo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 16px;
  transition: all 0.3s ease;
}

/* Avatar placeholder cuando no hay foto */
.participante-avatar .avatar-placeholder {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.participante-avatar .avatar-placeholder svg {
  width: 36px;
  height: 36px;
  color: #94a3b8;
}

.participante-card:hover .avatar-placeholder {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.participante-card:hover .avatar-placeholder svg {
  color: white;
}

.participante-card:hover .avatar-img,
.participante-card:hover .avatar-photo {
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: scale(1.05);
}

.participante-info {
  flex: 1;
  min-width: 0;
}

.participante-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participante-role {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 8px;
}

.participante-area {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.participante-lineas {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 6px 0 0 0;
  font-style: italic;
}

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

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  position: relative;
  display: inline-block;
}

.section-subtitle::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* Developer Card Special Styles */
.developer-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-color: rgba(102, 126, 234, 0.2);
}

.developer-card:hover {
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.developer-avatar {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: white;
}

.participante-hover {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.participante-card:hover .participante-hover {
  opacity: 1;
}

.participante-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  color: #fff;
  transition: all 0.3s ease;
}

.participante-link svg {
  width: 20px;
  height: 20px;
}

.participante-link:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ============================================
   INSTITUCIONES SECTION
   ============================================ */
.instituciones-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.instituciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.institucion-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.institucion-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.institucion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}

.institucion-logo {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease;
}

.institucion-card:hover .institucion-logo {
  transform: scale(1.05) rotate(5deg);
}

.institucion-logo span {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

.institucion-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
  line-height: 1.4;
}

.institucion-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* ============================================
   AGRADECIMIENTOS SECTION
   ============================================ */
.agradecimientos-section {
  padding: 80px 0 100px;
  background: #fff;
}

.agradecimientos-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 32px;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.agradecimientos-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f472b6, #667eea, #22c55e, #f59e0b);
}

.agradecimientos-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.3);
}

.agradecimientos-icon svg {
  width: 36px;
  height: 36px;
  stroke: #fff;
  fill: rgba(255, 255, 255, 0.2);
}

.agradecimientos-card h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 24px;
}

.agradecimientos-card p {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 20px;
}

.agradecimientos-card strong {
  color: #1f2937;
}

.agradecimientos-decoration {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  font-size: 2rem;
}

.agradecimientos-decoration span {
  opacity: 0.6;
  transition: all 0.3s ease;
  cursor: default;
}

.agradecimientos-decoration span:hover {
  opacity: 1;
  transform: scale(1.3) rotate(10deg);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .objetivo-grid {
    grid-template-columns: 1fr;
  }
  
  .leader-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }
  
  .leader-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .proyecto-hero {
    padding: 120px 0 80px;
    min-height: auto;
  }
  
  .proyecto-hero .hero-title {
    font-size: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn-hero {
    width: 100%;
    justify-content: center;
  }
  
  .objetivo-features {
    grid-template-columns: 1fr;
  }
  
  .equipo-grid {
    grid-template-columns: 1fr;
  }
  
  .avatar-placeholder {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }
  
  .agradecimientos-card {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .hero-badge-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .leader-name {
    font-size: 1.5rem;
  }
  
  .participante-card {
    padding: 20px;
  }
  
  .avatar-img {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
}
