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

body {
  font-family: 'Inter', sans-serif;
  background-color: #000; 
  color: #000;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.app {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  background-color: #000; 
  border-radius: 40px;
  overflow: hidden;
}


.top-bar {
  background-color: #ad92bf;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-size: 0.95em;
}
.menu-btn {
  display: none;
  font-size: 1.5em;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #d2c6da;
  text-align: center;
}

.mobile-menu a {
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #000;
}

.mobile-menu.open {
  display: flex;
}


.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000;
}

.hero img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  filter: grayscale(100%);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  display: block;
}

.overlay-text {
  position: absolute;
  bottom: 18%;
  left: 8%;
  color: #000000;
}

.overlay-text h1 {
  font-size: 2em;
  font-weight: 700;
  line-height: 1.1em;
}

.search {
  margin-top: 15px;
  display: flex;
  align-items: center;
}

.search input {
  border: none;
  outline: none;
  padding: 8px 10px;
  flex: 1;
  font-size: 0.9em;
}

.search button {
  border: none;
  background: none;
  padding: 0 10px;
  font-size: 1.1em;
  cursor: pointer;
}

.info {
  background-color: #fff;
  padding: 30px 20px 60px;
  border-radius: 40px;
  margin-top: 0;
}

.info h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: lighter;
  margin-top: 10px;
  font-size: 1.9em;
  line-height: 1.2em;
  margin-bottom: 10px;
}

.info p {
  font-size: 0.9em;
  line-height: 1.5em;
  color: #333;
}

.featured {
  background-color: white;
  border-radius: 40px;
  margin: 20px;
  padding: 20px;
}

.featured h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.movie-card {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 160px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info {
  text-align: center;
}

.info h2 {
  margin-bottom: 16px;
}


.info {
  overflow-x: auto;
  white-space: nowrap; 
  padding-bottom: 10px;
}


.info > .movie-card {
  display: inline-block;
  vertical-align: top;
  width: 160px;
  margin: 0 10px;
  white-space: normal; 
  box-sizing: border-box;
}

.mensaje {
  background-color: #f5f0f8;
  border-radius: 25px;
  padding: 20px;
  margin-bottom: 20px; 
}

.mensaje:last-child {
  margin-bottom: 0; 
}


@media (min-width: 769px) {
  .info > .movie-card {
    width: 200px;
    margin: 0 16px;
  }
}

.movie-card img {
  height: 240px;
  border-radius: 12px;
}

.movie-card img:hover {
  filter: grayscale(0%);
}

.movie-info {
  padding: 15px;
}

.movie-card h3 {
  font-size: 13px;
  font-weight: 500;
  padding: 8px;
  margin: 0;
  background-color: #fff;
  color: #222;
}

.movie-info p {
  font-size: 0.9rem;
  color: #555;
}


.foro-mensajes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 26px;
}
.mensaje {
  background: #f3eef7;
  padding: 14px 16px;
  border-radius: 20px;
}
.user {
  font-weight: 600;
  font-size: .85em;
  margin-bottom: 4px;
}
.mensaje p {
  font-size: .88em;
  margin-bottom: 6px;
}
.time {
  font-size: .75em;
  color: #555;
}


.foro-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foro-form textarea {
  width: 100%;
  min-height: 90px;
  border-radius: 18px;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: .9em;
}
.foro-form button {
  background: #cbb7e6;
  font-weight: bold;
  border: none;
  padding: 12px;
  border-radius: 30px;
  cursor: pointer;
}


@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero img {
    height: 75vh;
  }

  .overlay-text h1 {
    font-size: 1.8em;
  }

  .info {
    padding: 25px 18px 50px;
    margin-top: 0;
  }

  .movie-card {
    max-width: 180px;
    flex: 0 0 auto;
  }

  
  .movies-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-behavior: smooth;
    padding: 0 18px 14px; 
  }

  .movies-scroll::-webkit-scrollbar {
    height: 6px;
  }

  .movies-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
  }

  .movies-scroll::-webkit-scrollbar-track {
    background-color: transparent;
  }

 
  .info h2 {
    text-align: left;
    font-size: 1.4em;
    margin-bottom: 14px;
  }
}


@media (min-width: 1024px) {
  .movies-scroll {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 10px 0 25px;
    scroll-behavior: smooth;
  }

  .movies-scroll::-webkit-scrollbar {
    height: 8px;
  }

  .movies-scroll::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 4px;
  }

  .movies-scroll::-webkit-scrollbar-track {
    background-color: transparent;
  }

  .movie-card {
    flex: 0 0 auto;
    text-align: center;
  }

  .movie-card img {
    width: 200px;
    border-radius: 20px;
  }

  .movie-info h3 {
    margin-top: 10px;
    font-size: 14px;
  }

  .info h2 {
    margin-bottom: 20px;
    font-size: 1.6em;
    text-transform: uppercase;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero img {
    height: 75vh;
  }

  .overlay-text h1 {
    font-size: 1.8em;
  }

  .info {
    padding: 25px 18px 50px;
    margin-top: 0;
  }

  .movie-card { max-width: 180px; }
}


@media (min-width: 769px) {
  body {
    background-color: #d2c6da; 
  }

  .app {
    max-width: 100%;
    border-radius: 0;
    background-color: #d2c6da;
  }

  .hero {
    background-color: #d2c6da;
  }

  .hero img {
    height: 85vh;
    border-radius: 40px;
  }

  .overlay-text h1 {
    font-size: 2.6em;
  }

  .search {
    width: 220px;
  }

  .info {
    background-color: #ffffff;
    margin-top: 40px;
    border-radius: 40px;
    padding: 60px;
  }
  
}

.boton-filmoteca {
  display: inline-block;
  background-color: white;   
  color: black;              
  font-weight: bold;
  text-transform: uppercase; 
  border: none;
  border-radius: 30px;       
  padding: 12px 28px;
  font-size: 14px;
  text-decoration: none;     
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;       
}

.boton-filmoteca:hover {
  background-color: #cbb7e6; 
  color: white;              
  cursor: pointer;
}
@media (min-width: 1024px) {
  .destacados-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 30px;
    background-color: #dde5b6;
    border-radius: 40px;
    padding: 40px;
    margin-top: 40px;
  }

  .destacados-container .info {
    flex: 1;
    background-color: #fff;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
  }

  .destacados-container img {
    width: 100%;
    border-radius: 20px;
  }

  .destacados-container h2 {
    margin-bottom: 15px;
    font-size: 1.4em;
    text-transform: uppercase;
  }
}
