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

body {
  font-family: "Poppins", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

/* HEADER */
header {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

#sobre-mi,
#tarjetas,
#habilidades,
#contacto,
#peliculas {
  text-align: center;
}

/* NAVBAR CUSTOM */
.navbar-custom {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  padding: 1rem 2rem;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  color: #38bdf8;
}

/* MENU */
.menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.menu a {
  color: #e2e8f0;
  text-decoration: none;
}

/* HAMBURGUESA */
.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

/* SECCIONES */
section {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.image {
  width: 8rem;
  height: 8rem;
  margin-top: 2.5rem;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.text-about-me {
  margin-top: 2rem;
}

h2 {
  color: #38bdf8;
}

/* TARJETAS */
.contenedor-tarjetas {
  display: flex;
  justify-content: center;
  flex-direction: row;
  width: 100%;
  height: 20rem;
  gap: 2rem;
  margin-top: 2rem;
}

.tarjeta {
  background: #1e293b;
  padding: 1rem;
  border-radius: 10px;
  flex: 1;
  text-align: center;
}

.tarjeta img {
  width: 100%;
  border-radius: 10px;
}

.tarjeta:hover {
  transform: scale(1.05);
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.8);
}

a {
  color: white;
  transition: 0.3s;
  font-size: 2.8rem;
}

a:hover {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.container-links {
  height: 2rem;
  gap: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

/* LISTA */
#habilidades ul {
  background: #1e293b;
  padding: 1rem;
  border-radius: 10px;
  list-style-position: inside;
  text-align: left;
}
#habilidades {
  width: 100%;
}

/* CONTENEDOR */
.contenedor-peliculas {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* CARD */
.pelicula {
  background: #1e293b;
  padding: 1rem;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  transition: 0.3s;
}

/* IMAGEN */
.pelicula img {
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
  height: 18rem;
}

/* HOVER */
.pelicula:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.8);
}

/* FORM */
form {
  margin-top: 2rem;
}

/* INPUTS */
.container-form input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
  background: #1e293b;
  color: white;
}

/* BOTON */
.container-form button {
  width: 100%;
}
.container-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #1e293b;
  padding: 2rem;
  border-radius: 10px;
}
input {
  padding: 10px;
  border-radius: 5px;
  border: none;
  background: #1e293b;
  color: white;
  margin-top: 1rem;
  width: 10rem;
}

.btn-custom {
  background: #38bdf8;
  color: black;
  padding: 10px;
  border-radius: 5px;
  border: none;
}

/* PELICULAS */
.pelicula {
  margin-top: 1rem;
  background: #1e293b;
  padding: 1rem;
  border-radius: 10px;
  width: 20rem;
  height: 25rem;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  background: #020617;
}

@media (min-width: 576px) and (max-width: 768px) {
  .menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0f172a;
    flex-direction: column;
    display: none;
  }

  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }
  a {
    font-size: 1.8rem;
  }
  #sobre-mi,
  #tarjetas,
  #habilidades,
  #contacto,
  #peliculas {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  h2 {
    margin-top: 2rem;
  }

  .menu-icon {
    display: block;
  }

  .contenedor-tarjetas {
    flex-direction: column;
  }
}
.container-redes {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0f172a;
    flex-direction: column;
    display: none;
  }

  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }
  a {
    font-size: 1.8rem;
  }
  #sobre-mi,
  #tarjetas,
  #habilidades,
  #contacto,
  #peliculas {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .menu-icon {
    display: block;
  }

  .contenedor-tarjetas {
    flex-direction: column;
    margin-top:2rem;
    margin-bottom: 4rem;
  }
}
