/* === Contact Hero === */
.contact-hero {
  margin-top: 100px;
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* === Team Section === */
.team-section {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
}

.team-card {
  background: linear-gradient(135deg, rgba(118, 75, 162, 0.15) 0%, rgba(15, 15, 25, 0.5) 100%);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 25px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
  border-color: #667eea;
}

.team-image-wrapper {
  position: relative;
  height: 350px;
  overflow: hidden;
}

/* Media query para pantallas de PC - imagen completa */
@media (min-width: 1024px) {
  .team-image-wrapper {
    height: 500px;
    width: 100%;
    overflow: visible; /* importante */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .team-image {
    border: 10px inset #140422;
    border-radius: 10px;
    width: 70%;
    background: rgba(15, 15, 25, 0.5);
    margin: 0 auto;
    display: block;
    transition: all 1.0s;
  }
}
/* === Imagen adaptada para pantallas móviles === */
@media (max-width: 768px) {
  .team-image-wrapper {
    height: auto; /* se adapta al contenido */
    width: 100%;
    overflow: visible; /* evita recortes */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0; /* un poco de espacio arriba y abajo */
  }

  .team-image {
    border: 6px inset #140422;
    border-radius: 10px;
    width: 90%; /* ocupa casi todo el ancho */
    height: auto; /* mantiene proporción */
    margin: 0 auto;
    display: block;
    transition: all 0.6s;
  }
}


.team-card:hover .team-image {
  transform: scale(1.0);
}

.team-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.team-badge.owner {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1a1a;
}

.team-badge.developer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.team-content {
  padding: 35px;
}

.team-name {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.team-role {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  font-weight: 600;
}

.team-bio {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* === Stats === */
.team-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  padding: 25px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

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

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* === Contact Info === */
.contact-info {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #fff;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

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

.contact-icon {
  font-size: 1.2rem;
}

.contact-item a {
  color: #667eea;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item a:hover {
  color: #764ba2;
  transform: translateX(3px);
}

/* === Social Links === */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}



/* === Responsive === */
@media (max-width: 768px) {
  .contact-hero h1 {
    font-size: 2rem;
  }

  .team-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 30px 20px;
  }

  .team-content {
    padding: 25px;
  }

  .social-links {
    flex-direction: column;
  }

  .social-btn {
    min-width: 100%;
  }
}