/* Transiciones suaves generales  */
* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

html,
body {
  scroll-behavior: smooth;
  font-family: Arial, sans-serif;
  background: #111;
  color: #eee;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

/* Enlaces */
a {
  color: #e30000;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

a:hover,
.nav-item--active {
  text-decoration: underline;
  transform: scale(1.05);
}

a.enlace-netflix {
  color: #e50914;
  text-decoration: underline dotted;
}

a.enlace-netflix:hover {
  color: #af141c;
  text-decoration: none;
}

/* Fuentes */
h1 {
  font-family: "Nosifer", sans-serif;
  color: #e30000;
  text-shadow: 2px 2px 4px #000;
}

h2,
h3 {
  color: #e30000;
  text-shadow: 2px 2px 4px #000;
}

/* Imagenes */
.img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.4);
}

.img-banner,
.img {
  border-radius: 12px;
  transition: transform 0.4s ease;
}

/* Navbar */
.navbar {
  background-color: #000;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
}

.navbar-logo h1 {
  margin: 0;
}

.navbar-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin: 0;
}

.navbar-item a {
  color: #fff;
  background-color: #e30000;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 8px rgba(227, 0, 0, 0.3);
}

.navbar-item a:hover,
.nav-item--active {
  background-color: #af141c;
  transform: translateY(-2px) scale(1.05);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(255, 50, 50, 0.6);
}

/* Contenido Principal */
main {
  flex: 1 1 auto;
  display: flex;
}

.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: 60vh;
}

.section--centered {
  text-align: center;
}

.section {
  flex: 2;
  margin-bottom: 32px;
}

.section img {
  width: 100%;
  margin: 16px 0;
}

/* Footer */
.footer {
  background: linear-gradient(to right, #111, #000, #111);
  color: #bbb;
  text-align: center;
  padding: 24px 16px;
  font-size: 0.95rem;
  border-top: 1px solid #333;
  box-shadow: inset 0 1px 0 #222;
  letter-spacing: 0.5px;
}

/* Btn general de error */
.btn-error {
  color: #fff;
  background-color: #e30000;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 8px rgba(227, 0, 0, 0.3);
}

.btn-error:hover {
  background-color: #af141c;
  transform: translateY(-2px) scale(1.05);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(255, 50, 50, 0.6);
}

/* Tablet  */
@media (min-width: 601px) and (max-width: 991px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    padding: 14px 6vw;
    gap: 8px;
  }

  .navbar-menu {
    flex-direction: row;
    gap: 12px;
    width: auto;
    padding: 0;
  }

  .navbar-logo h1 {
    font-size: 1.25rem;
  }

  .main-content,
  .main-content--404 {
    flex-direction: column;
    padding: 28px 6vw 28px 6vw;
    min-height: 70vh;
    width: 100%;
    box-sizing: border-box;
  }

  .section--centered,
  .section {
    max-width: 92vw;
    width: 100%;
    padding: 0 3vw;
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.05rem;
    box-sizing: border-box;
  }

  .section img,
  .img,
  .img-banner {
    width: 96vw;
    max-width: 96vw;
    margin: 0 auto;
    border-radius: 10px;
    display: block;
  }

  h1 {
    font-size: 1.35rem;
  }

  h2 {
    font-size: 1.09rem;
  }

  h3 {
    font-size: 1.03rem;
  }

  .footer {
    font-size: 0.94rem;
    padding: 16px 6vw;
  }
}

/* Telefono */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 4vw;
    gap: 3px;
  }

  .navbar-menu {
    flex-direction: column;
    gap: 7px;
    width: 100%;
    padding: 0;
  }

  .navbar-logo h1 {
    font-size: 1.1rem;
  }

  .main-content,
  .main-content--404 {
    flex-direction: column;
    padding: 16px 4vw 16px 4vw;
    min-height: 65vh;
    width: 100%;
    box-sizing: border-box;
  }

  .section--centered,
  .section {
    max-width: 98vw;
    width: 100%;
    padding: 0 2vw;
    text-align: center;
    margin-bottom: 18px;
    font-size: 0.99rem;
    box-sizing: border-box;
  }

  .section img,
  .img,
  .img-banner {
    width: 97vw;
    max-width: 97vw;
    margin: 0 auto;
    border-radius: 7px;
    display: block;
  }

  h1 {
    font-size: 1.13rem;
  }

  h2 {
    font-size: 1.03rem;
  }

  h3 {
    font-size: 0.96rem;
  }

  .footer {
    font-size: 0.87rem;
    padding: 12px 2vw;
  }
}
