/* Video de fondo */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-background video {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Overlay semitransparente */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7); /* negro con opacidad */
  z-index: 0;
}

/* Contenido encima del video */
.contenido {
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: #f5f5f5;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
}

.hero-section p.lead {
  font-size: 1.5rem;
}
  /* Rectángulo negro detrás del hero */
.hero-overlay {
    background: rgba(0,0,0,1.0); /* negro semitransparente */
    padding: 2rem;              /* espacio interno */
    border-radius: 8px;         /* esquinas suaves */
    max-width: 1200px;          /* ancho máximo */
    margin: 0 auto;             /* centrado horizontal */
    }

/* Foto de perfil */
.foto-perfil {
  width: 280px;
  height: 360px;
  border-radius: 50%;
  border: 6px solid #1b1a1a;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}

/* Botones sociales */
.social-btn {
  display: inline-block;
  margin: 0 0.7rem;
  font-size: 1.6rem;
  color: #fff;
  padding: 0.8rem;
  border-radius: 50%;
  transition: transform 0.3s, opacity 0.3s;
}

.social-btn:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

/* Ajuste de los íconos .ico dentro de los botones */
.icono-red {
  width: 28px;   /* tamaño del icono */
  height: 28px;
  display: block;
}

/* Mantener estilo circular de los botones */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.7rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform 0.3s, opacity 0.3s;
}

.social-btn:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

/* Colores de fondo */
.social-btn.linkedin { background: #0077b5; }
.social-btn.github { background: #333; }
.social-btn.whatsapp { background: #25d366; }


/* Botones de navegación */
.btn-outline-light {
  border-color: #f5f5f5;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
}

.btn-outline-light:hover {
  background-color: #0077b5;
  color: #fff;
}

/* Secciones estilo tarjeta */
section.card {
  border-radius: 10px;
  background: #ffffff;
  color: #333;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: none;
  opacity: 0;
  margin: 2rem auto;
  max-width: 100%;
  padding: 2rem;
}

section.card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  background: rgba(0,119,181,0.9);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  .foto-perfil {
    margin-bottom: 1.5rem;
    width: 220px;
    height: 280px;
  }
  .hero-section h1 {
    font-size: 2.2rem;
  }
}
