* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../fondo.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 122, 0, 0.2);
}

@media (max-width: 992px) {
  nav {
    padding: 15px 25px;
  }
}

nav .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #FF7A00;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

nav .logo img {
  height: 40px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.3s;
  text-transform: uppercase;
}

nav ul li a:hover {
  color: #FF7A00;
}

nav .btn-store {
  background: #FF7A00;
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.5);
}

.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../fondo.jpg') no-repeat center center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.92);
  /* Más oscuro pero aún algo translúcido */
  padding: 40px;
  border-radius: 15px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #FFA500;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.btn {
  text-decoration: none;
  padding: 15px 35px;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-light {
  background: white;
  color: black;
  margin-right: 15px;
}

.btn-light:hover {
  background: #FF7A00;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 122, 0, 0.4);
}

.btn-orange {
  background: linear-gradient(135deg, #FF7A00, #ff5500);
  color: white;
}

.btn-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 122, 0, 0.6);
}

.section {
  padding: 60px 20px;
  text-align: center;
}

.dark {
  background-color: rgba(20, 20, 20, 0.9);
}

.darker {
  background-color: rgba(10, 10, 10, 0.92);
}

.section h2 {
  font-size: 2.5rem;
  color: #FF7A00;
  margin-bottom: 20px;
}

.section .desc {
  max-width: 600px;
  margin: 0 auto;
  color: #ccc;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  padding: 35px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 0, 0.1), transparent);
  transition: 0.5s;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(255, 122, 0, 0.5);
  box-shadow: 0 0 30px rgba(255, 122, 0, 0.15);
}

.card h3 {
  color: #FF7A00;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.steps li {
  list-style: none;
  padding: 10px;
  font-size: 1.2rem;
}

.creators a {
  color: #FF7A00;
  text-decoration: none;
}

footer {
  background: rgba(0, 0, 0, 0.95);
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}


.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
  justify-items: center;
}

.gallery img,
.gallery video {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
}

.gallery img:hover,
.gallery video:hover {
  transform: scale(1.05);
}

.faction-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

.tab-btn {
  background-color: #2e2e2e;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s, transform 0.2s;
}

.tab-btn:hover {
  background-color: #444;
  transform: scale(1.03);
}

.tab-btn.active {
  background-color: #ff6600;
  font-weight: bold;
  box-shadow: 0 0 10px #ff6600;
}

/* ==========================================================================
   SECTION: FACCIONES (REWRITE)
   ========================================================================== */
.faction-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 25px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tab-btn span {
  color: #FF7A00;
}

.tab-btn.active {
  background: #e66e00;
  /* Richer, darker orange */
  border-color: #e66e00;
  color: #111;
  /* Dark text for contrast */
  box-shadow: 0 0 20px rgba(230, 110, 0, 0.4);
}

.tab-btn.active span {
  color: #111;
}

.tabs-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  min-height: 400px;
}

.tab-content {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tab-content.active-tab {
  display: block;
  opacity: 1;
}

.faction-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

@media (min-width: 992px) {
  .faction-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faction-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
  text-align: left;
}

.faction-item:hover {
  background: rgba(255, 122, 0, 0.05);
  border-color: rgba(255, 122, 0, 0.3);
  transform: translateY(-5px);
}

.f-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 2rem;
  color: #FF7A00;
  flex-shrink: 0;
}

.f-info {
  flex-grow: 1;
}

.f-info h4 {
  margin-bottom: 5px;
  font-size: 1.2rem;
  color: #fff;
}

.f-info p {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.f-link {
  color: #FF7A00 !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.f-link:hover {
  text-decoration: underline;
}

.faction-item.f-ilegal:hover {
  background: rgba(255, 0, 0, 0.05);
  border-color: rgba(255, 0, 0, 0.3);
}

.f-ilegal .f-link {
  color: #ff4444 !important;
}

.f-ilegal .f-icon {
  color: #ff4444;
}

.buzon-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  gap: 15px;
  flex-wrap: wrap;
}

.buzon-btn {
  background-color: #2e2e2e;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.buzon-btn:hover {
  background-color: #444;
  transform: scale(1.05);
  box-shadow: 0 0 10px #ff7a00;
}

.buzon-btn.active {
  background-color: #ff7a00;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 15px #ff7a00;
}

.section.dark h2,
.section.dark .desc {
  margin-bottom: 1em;
  /* espacio entre texto */
}

.section.dark .buttons {
  margin-top: 1.5em;
  /* espacio arriba para separar botón del texto */
  position: static;
  /* evita posiciones absolutas o flotados */
  float: none;
  display: inline-block;
  /* que ocupe solo lo necesario */
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: 5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 5px;
}

.hero-content h1 span {
  color: #FF7A00;
}

.hero-content p {
  color: #ddd;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* RESPONSIVE IMPROVEMENTS */
@media (max-width: 768px) {
  nav {
    padding: 10px 15px;
    flex-direction: row;
    /* Mantener logo y "menú" alineados si es posible */
    justify-content: space-between;
  }

  nav ul {
    display: none;
    /* Podríamos implementar un menú hamburguesa, pero por ahora simplificamos */
  }

  .hero-content h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 10px;
  }

  .btn-light {
    margin-right: 0;
  }

  #cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  .scroll-indicator p {
    font-size: 0.6rem;
  }
}

/* TABLET FIXES */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 4rem;
  }
}

/* TOUCH DEVICE OPTIMIZATION */
@media (hover: none) {
  .card:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.98);
  }
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.5s;
  z-index: 10;
}

.scroll-indicator p {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #aaa;
  animation: pulseText 2s infinite;
  font-weight: bold;
}

.mouse {
  width: 25px;
  height: 45px;
  border: 2px solid #FF7A00;
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: #FF7A00;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
}

@keyframes pulseText {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
    color: #FF7A00;
  }
}

.scroll-indicator.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
}

/* ADDITIONAL FUTURISTIC TOUCHES */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* UPDATE CARDS */
.update-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 30px !important;
  text-align: left !important;
}

.update-card img {
  width: 150px !important;
  height: 150px !important;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 122, 0, 0.3);
}

.update-info h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.update-info p.date {
  font-weight: bold;
  font-size: 0.9rem;
  opacity: 0.8;
  color: #FF7A00;
}

@media (max-width: 600px) {
  .update-card {
    flex-direction: column !important;
    text-align: center !important;
  }
}

/* PRODUCT MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: 0.4s;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 122, 0, 0.2);
  border-radius: 20px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 50px rgba(255, 122, 0, 0.1);
  transform: scale(0.9);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #FF7A00;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

.close-modal:hover {
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  padding: 40px;
}

@media (max-width: 850px) {
  .modal-grid {
    grid-template-columns: 1fr;
    padding: 25px;
  }
}

.modal-gallery {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 400px;
  background: #000;
}

.main-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.gallery-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.nav-dot.active {
  background: #FF7A00;
  box-shadow: 0 0 10px #FF7A00;
}

.modal-details {
  display: flex;
  flex-direction: column;
}

.modal-details h2 {
  font-size: 2.2rem;
  color: white;
  margin-bottom: 10px;
}

.modal-details .price {
  font-size: 1.8rem;
  color: #FF7A00;
  font-weight: bold;
  margin-bottom: 20px;
}

.modal-details .description {
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 30px;
}

.modal-features {
  list-style: none;
  margin-bottom: 30px;
  padding: 0;
}

.modal-features li {
  margin-bottom: 10px;
  color: #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-features li i {
  color: #FF7A00;
}

.modal-img-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 122, 0, 0.4);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 5;
  backdrop-filter: blur(5px);
}

.modal-nav-btn:hover {
  background: #FF7A00;
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.6);
  border-color: white;
}

.modal-nav-btn.prev {
  left: 10px;
}

.modal-nav-btn.next {
  right: 10px;
}

.modal-gallery .nav-dot.active {
  background: #FF7A00;
  width: 25px;
  border-radius: 10px;
}

/* GALLERY SLIDER */
.gallery-slider {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 122, 0, 0.2);
}

@media (max-width: 768px) {
  .gallery-slider {
    height: 350px;
    margin: 20px;
  }
}

.gallery-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: 1s ease-in-out;
  transform: scale(1.1);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-caption {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: 10px;
  border-left: 4px solid #FF7A00;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  transform: translateY(20px);
  opacity: 0;
  transition: 0.5s 0.5s;
}

.slide.active .slide-caption {
  transform: translateY(0);
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 122, 0, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  font-size: 1.2rem;
}

.slider-btn:hover {
  background: #FF7A00;
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.5);
  border-color: transparent;
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  right: 40px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: 0.3s;
}

.slider-dot.active {
  background: #FF7A00;
  width: 30px;
  border-radius: 10px;
}