/* Estilos generales */

 html {
      scroll-behavior: smooth;
    }

    /* Evitar que el overlay bloquee los clics en .hero */
    .hero::before {
      pointer-events: none;
    }
    .hero img.avatar,
    .hero h1,
    .hero p,
    .hero .btn-primary,
    .hero .hero-links {
      position: relative;
      z-index: 2;
    }
    
    /* Enlaces de la Hero Section */
    .hero-links {
      margin-top: 20px;
      display: flex;
      gap: 10px;
      justify-content: center;
    }
    .hero-links a {
      background-color: #6441a5;
      padding: 10px 15px;
      border-radius: 5px;
      color: #fff;
      text-decoration: none;
      font-weight: bold;
      transition: background 0.3s;
    }
    .hero-links a:hover {
      background-color: #563a94;
    }
    
    /* Espacio para los íconos en las secciones */
    section h2 i {
      margin-right: 8px;
    }
    .social-icons a i,
    .streaming-links a i {
      margin-right: 5px;
    }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #18181B;
    color: #ffffff;
    text-align: center;
    scroll-behavior: smooth;
}

/* Header con Flying Menu Moderno */
header {
    background-color: #18181B;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.flying-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.flying-menu li {
    display: inline;
}

.flying-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.flying-menu a:hover {
    background: #6441a5;
    color: white;
}

/* Hero Section */
.hero {
    
    color: white;
    min-height: 50vh;
    padding: 150px 20px;
    position: relative;
}

.hero img.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* el overlay oscuro */
  z-index: 1; /* Está detrás del contenido */
  pointer-events: none; /* Para que no bloquee clics */
}

/* El contenido dentro de .hero */
.hero img.avatar,
.hero h1,
.hero p,
.hero .btn-primary,
.hero .hero-links {
  position: relative;
  z-index: 2; /* Para que esté encima del overlay */
}

.hero h1, .hero p, .hero .btn-primary {
    position: relative;
    z-index: 2;
}

/* Sección de Portfolio con más imágenes */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.portfolio-item img {
  width: 100%;
  height: 170px;      /* Ajusta la altura que desees */
  object-fit: cover;  /* Recorta la imagen manteniendo su proporción */
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.portfolio-item img:hover {
    transform: scale(1.35);
}

/* Estilo para la sección de lenguajes */
.lenguajes {
    background: #282828;
    padding: 30px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 53%;
}

.lenguajes ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.lenguajes li {
    background: #6441a5;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    color: white;
}

/* Sección de Contacto */
.contacto form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contacto input, .contacto textarea {
    width: 80%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #737373;
    background-color: #18181B;
    color: white;
    border-radius: 5px;
}

.contacto button {
    background: #6441a5;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.contacto button:hover {
    background: #563a94;
}

/* Sección de Certificaciones (sin imágenes, minimalista) */
.certificaciones {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.cert-item {
  background-color: #282828; /* o #18181B si prefieres */
  padding: 20px;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}
.cert-item h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #ffffff;
}
.cert-item p {
  margin: 0;
  color: #aaaaaa;
}

/* Sección de Streaming */
.streaming {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}
.streaming-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}
.streaming-links a {
  background-color: #6441a5; /* un color base */
  padding: 10px 15px;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.streaming-links a:hover {
  background-color: #563a94;
}

/* Sección de Redes Sociales */
.redes-sociales {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}
.redes-sociales .social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}
.redes-sociales .social-icons a {
  background-color: #282828;
  padding: 10px 15px;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}
.redes-sociales .social-icons a:hover {
  background-color: #6441a5;
}
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Ajuste para forzar el "cover" en el iframe */
.video-background iframe {
  position: absolute;
  top: 32%;
  left: 49%;
  /* Trasladamos el iframe al centro de su contenedor */
  transform: translate(-50%, -50%);
  width: 100%;
  height: 136%;
}

.hero.full-screen {
  min-height: 100vh;   /* ocupa al menos la altura de la ventana */
  position: relative;
  overflow: hidden;
}

/* Footer */
footer {
    background: #18181B;
    color: white;
    padding: 20px;
    margin-top: 30px;
}
