:root {
  --fondo: #0a0f1c;
  --azul-brillante: #1e90ff;
  --texto-principal: #f0f0f0;
  --texto-secundario: #c0c0c0;
  --resaltado: #0077ff;
  --fuente: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--fondo);
  color: var(--texto-principal);
  font-family: var(--fuente);
  line-height: 1.6;
}

/* clases hero */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.logo-img img {
  width: 100px;
  margin-bottom: 1rem;
}

.nombre {
  font-size: 2.8rem;
  color: var(--texto-principal);
}

.pnombre {
  color: var(--resaltado);
}

.tagline {
  font-size: 1.2rem;
  color: var(--texto-secundario);
  margin-top: 0.5rem;
}

/* clases seccion de navegacion al estilo header */
.nav {
  background-color: #10172a;
  position: relative;
}

/* Enlaces principales */
.nav ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 1rem;
}

.nav a {
  color: var(--texto-principal);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--resaltado);
}

/* Botón de menú hamburguesa */
.menu-toggle {
  display: none;
  cursor: pointer;
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  background: none;
  border: none;
}

.menu-toggle img {
  width: 36px;
  height: 36px;
}

/* Secciones enlaces a cada seccion */
.seccion {
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid #1c1c2a;
}

.seccion a {
  position: relative;
  z-index: 1;
  color: var(--texto-principal);
  text-decoration: none;
  font-size: 2rem;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
}

.seccion a:hover {
  color: var(--azul-brillante);
  transform: scale(1.1);
}

/* Clases seccion footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  background-color: #0d1224;
  color: var(--texto-secundario);
}

.footer-links {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.footer-links a {
  color: var(--azul-brillante);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links img.icono-red {
  width: 20px;
  height: 20px;
}

/* Responsive general */
@media (max-width: 768px) {
  .nombre { font-size: 1.8rem; }
  .tagline { font-size: 1rem; }
}

/* Responsive específico para secciones */
@media (max-width: 600px) {
  .seccion {
    padding: 3rem 1rem;
    background-position: center top;
  }

  .seccion a {
    font-size: 1.6rem;
  }
}

/* Fondos con imágenes para cada sección */
.seccion.sobremi {
  background-image: url("./images/sobreMi.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.seccion.proyectos {
  background-image: url("./images/proyectos.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.seccion.slides {
  background-image: url("./images/slides.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.seccion.articulos {
  background-image: url("./images/articulos.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.seccion.contacto {
  background-image: url("./images/contacto.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Responsive: menú hamburguesa desde 425px hacia abajo */
@media (max-width: 425px) {
  .nav ul {
    display: none;
    flex-direction: column;
    background-color: #10172a;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
  }

  .nav ul.show {
    display: flex;
  }

  .nav ul li {
    padding: 0.5rem 0;
    text-align: center;
  }

  .nav a {
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }
}

/* Desde 670px hacia arriba: menú horizontal con ajuste */
@media (min-width: 670px) {
  .nav ul {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  .nav a {
    font-size: 1.05rem;
  }

  .menu-toggle {
    display: none;
  }
}
