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

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  padding-bottom: 60px; 
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 6px 10px;
  border-bottom: 1px solid #222;
}

.header-icons a {
  text-decoration: none;  
}

.user-icon img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.user-icon img:hover {
  transform: scale(1.05);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: left;
  margin-left: 1px; 
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-bar {
  background-color: #222;
  border: none;
  border-radius: 20px;
  padding: 10px 30px;
  color: #fff;
  font-size: 13px;
  outline: none;
  width: 90px;
  transition: width 0.3s ease;
}

.search-bar:focus {
  width: 120px;
}

.user-icon img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #333;
  object-fit: cover;
}


.stories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  background-color: #600;
  padding: 10px;
  scrollbar-width: none;
}

.stories::-webkit-scrollbar {
  display: none;
}

.story {
  background: #300;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid #900;
}

.circle {
  font-size: 26px;
  line-height: 1;
}


main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.main-image {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 600px; 
  border-radius: 4px;
  margin: 0 auto;
}

.overlay-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  padding: 16px;
  border-radius: 4px;
}

.overlay-text h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fff;
}

.overlay-text p {
  font-size: 13px;
  color: #ddd;
  line-height: 1.4;
}

/* BOTÓN */
.boton-no-entrar {
  display: block;
  background: #c00;
  color: #fff;
  text-align: center;
  padding: 12px;
  margin: 20px auto;
  width: 80%;
  max-width: 400px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.boton-no-entrar:hover {
  background: #ff1a1a;
}

/* CARTELERA */
.cartelera {
  margin: 40px 0 100px 0;
  padding: 0 20px;
}

.cartelera-boton {
  display: block;
  background-color: #6a0d0d;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cartelera-boton:hover {
  background-color: #8b1515;
  transform: scale(1.02);
}

.cartelera-noticia {
  background-color: #300;
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.cartelera-noticia .categoria {
  display: inline-block;
  background-color: #600;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.cartelera-noticia h4 {
  margin: 10px 0 4px;
  font-size: 16px;
}

.cartelera-noticia .fecha {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 10px;
}

.imagenes-noticia {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.imagenes-noticia img {
  width: 32%;
  border-radius: 4px;
}

.cartelera-noticia .imagen-principal {
  width: 100%;
  height: 300px; 
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
}

.amigos {
  display: flex;
  align-items: center;
  background: #eee;
  color: #111;
  font-size: 13px;
  padding: 8px;
  border-radius: 4px;
  margin-top: 10px;
}

.amigos img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
}

.ver-mas {
  text-align: center;
  margin-top: 15px;
}

.ver-mas a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: #440000;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.ver-mas a:hover {
  background: #660000;
}

/* FOOTER FIJO */

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  border-top: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 25px;
  font-size: 15px;
  z-index: 10;
}

.nav-item {
  flex-basis: 33.3%;
  display: flex;
  justify-content: center;
}

.nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #aaa;
  text-decoration: none;  
}

.nav-item a:hover,
.nav-item.active a {
  color: #fff;
}

.nav-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-item.active img,
.nav-item a:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.nav-item span {
  font-size: 15px;
  text-align: center;
}


.nav-item:nth-child(1) {
  justify-content: flex-start;
}
.nav-item:nth-child(2) {
  justify-content: center;
}
.nav-item:nth-child(3) {
  justify-content: flex-end;
}