/* =======================================
    BASE GENERAL
======================================= */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

/* Títulos */
h1, h2, h3, h4 {
    margin: 0;
    letter-spacing: 1px;
}

/* =======================================
    SIDEBAR BASE
======================================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 70px; /* cerrado */
    height: 100vh;
    background: rgba(17,17,17,0.6);
    backdrop-filter: blur(8px);
    border-right: 2px solid rgba(255,193,80,0.35);
    transition: width 0.35s ease, background 0.35s ease;
    overflow: hidden;
    z-index: 99999;
    padding: 8px;
    box-sizing: border-box;
}

/* Abierto */
.sidebar.open {
    width: 200px;
    background: rgba(17,17,17,0.6);
    backdrop-filter: blur(8px);
}

/* Hamburger */
.sidebar-top {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}

.hamburger {
    width: 28px;
    height: 28px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.hamburger span {
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(90deg, #ffd25a, #ffb700);
    box-shadow: 0 0 6px rgba(255,193,80,0.4);
    transition: 0.3s ease;
}

/* Animación */
.sidebar.open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}
.sidebar.open .hamburger span:nth-child(2) {
    opacity: 0;
}
.sidebar.open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Sección de botones */
.sidebar-icons {
    background: rgba(255,215,120,0.05);
    border-radius: 12px;
    padding: 12px 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Botones iconos */
.icon-btn {
    width: 100%;
    height: 50px;
    border: none;
    cursor: pointer;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    padding-right: 6px;
    transition: opacity 0.25s ease, justify-content 0.35s ease;
}

.sidebar.open .icon-btn {
    justify-content: flex-start;
    padding-left: 18px;
    padding-right: 18px;
}

.icon-btn:hover {
    opacity: 0.85;
}

.icon-btn .icon {
    font-size: 20px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: #ffe7a3;
    flex-shrink: 0;
}

.icon-btn .label {
    display: none;
    margin-left: 14px;
    font-size: 17px;
    color: #ffffff;
  font-family: "Inter", sans-serif;
    white-space: nowrap;
}

.sidebar.open .icon-btn .label {
    display: inline;
    opacity: 0;
    animation: fadeInText 0.25s forwards;
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

/* Separador */
.sidebar-icons hr {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(255,215,120,0.25);
    margin: 24px auto;
    transition: width 0.35s ease, margin 0.35s ease;
}

.sidebar.open .sidebar-icons hr {
    width: calc(100% - 36px);
    margin-left: 18px;
}

/* Eliminar focus */
.sidebar * {
    outline: none !important;
    box-shadow: none !important;
}

/* =======================================
    MAIN CONTENT (ajuste para sidebar)
======================================= */
/* Margin dinámico al abrir sidebar */
.page-wrapper {
    margin-left: 40px; /* cerrado */
    transition: margin-left 0.35s ease;
}

.sidebar.open ~ .page-wrapper {
    margin-left: 175px; /* abierto */
}


/* =======================================
    HEADER
======================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    font-size: 34px;
    font-weight: 900;
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

nav a {
    color: #f1c40f;
    text-decoration: none;
    margin: 0 18px;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s ease;
}

nav a:hover {
    color: #fff;
    text-shadow: 0 0 8px #f1c40f;
}

nav .btn {
    padding: 12px 25px;
    border-radius: 10px;
    background: linear-gradient(45deg, #ffe27a, #d4a405);
    color: #000;
    font-weight: 900;
    box-shadow: 0 0 15px rgba(255,215,0,0.5);
}

nav .btn:hover {
    background: linear-gradient(45deg, #d4a405, #ffe27a);
    transform: scale(1.05);
}

/* =======================================
    HERO
======================================= */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 60px;
    gap: 40px;
    background: radial-gradient(circle at center, #1a1a1a, #0b0b0b);
}

.hero img {
    width: 550px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(255,215,0,0.4));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.casino-name {
    font-size: 90px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 5px;
}

.hero-content h2 {
    font-size: 42px;
    margin-top: 10px;
    color: #f1c40f;
}

.hero-content p {
    margin: 20px 0 30px;
    font-size: 20px;
    opacity: 0.85;
    max-width: 500px;
}

.btn {
    padding: 15px 35px;
    background: linear-gradient(45deg, #f1c40f, #d4ac0d);
    color: #111;
    font-weight: 900;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 25px rgba(241,196,15,0.6);
    transition: 0.3s ease;
}

.btn:hover {
    transform: translateY(-5px) scale(1.03);
    background: linear-gradient(45deg, #d4ac0d, #f1c40f);
}

/* =======================================
    POPULAR GAMES
======================================= */
.games {
    padding: 90px 60px;
    text-align: center;
}

.games-title {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
    margin-bottom: 5px;
}

.games-subtitle {
    color: #cfcfcf;
    font-size: 18px;
    margin-bottom: 40px;
}

.games-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 0 auto;
    padding: 0;
}

.game-card img {
    width: 160px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.game-card img:hover {
    transform: scale(1.05);
}

.game-name {
    color: #fff;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,215,0,0.4);
}

/* =======================================
    RESPONSIVE
======================================= */
@media screen and (max-width: 900px) {
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 2px solid rgba(255,193,80,0.35);
        flex-direction: row;
        justify-content: space-around;
    }

    .sidebar-icons {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }

    .main-content {
        margin-left: 0;
        padding: 10px 20px;
    }

    .hero {
        flex-direction: column;
        padding: 60px 20px;
    }

    .hero img {
        width: 90%;
    }
}

  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
  }

  .casino-name {
    font-size: 90px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 5px;
  }

  .hero-content h2 {
    font-size: 42px;
    margin-top: 10px;
    color: #f1c40f;
  }

  .hero-content p {
    margin: 20px 0 30px;
    font-size: 20px;
    opacity: 0.85;
    max-width: 500px;
  }

  /* Botón principal */
  .btn {
    padding: 15px 35px;
    background: linear-gradient(45deg, #f1c40f, #d4ac0d);
    color: #111;
    font-weight: 900;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 25px rgba(241,196,15,0.6);
    transition: 0.3s ease;
  }

  .btn:hover {
    transform: translateY(-5px) scale(1.03);
    background: linear-gradient(45deg, #d4ac0d, #f1c40f);
  }
  /* =======================================
    POPULAR GAMES (NUEVO DISEÑO PREMIUM)
  ======================================= */
  .games {
      padding: 90px 60px;
      text-align: center;
  }

  .games-title {
      font-size: 48px;
      font-weight: 900;
      color: #ffffff;
      text-shadow: 0 0 10px rgba(255,215,0,0.5);
      margin-bottom: 5px;
  }

  .games-subtitle {
      color: #cfcfcf;
      font-size: 18px;
      margin-bottom: 40px;
  }

  /* Contenedor de tarjetas usando flexbox para centrar */
  .games-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;  /* Centra las tarjetas */
      gap: 40px;                 /* Tarjetas muy pegadas */
      margin: 0 auto;
      padding: 0;
  }

  /* Contenedor de tarjeta */
  .game-card {
      background: transparent !important;
      padding: 0 !important;
      margin: 0;                 /* Sin margen extra */
      border: none !important;
      box-shadow: none !important;
      display: inline-block;
  }

  /* Imagen dentro de la tarjeta */
  .game-card img {
      width: 160px;              /* Tamaño fijo */
      height: auto;
      object-fit: contain;
      border: none;
      padding: 0;
      background: transparent;
      display: block;
      cursor: pointer;
      transition: transform 0.2s ease;
      border-radius: 12px;       /* Bordes redondeados */
  }

  /* Efecto hover solo sobre la imagen */
  .game-card img:hover {
      transform: scale(1.05);
  }

  /* Título del juego */
  .game-name {
      color: #fff;
      margin-top: 12px;
      font-size: 18px;
      font-weight: 800;
      letter-spacing: 1px;
      text-shadow: 0 0 10px rgba(255,215,0,0.4);
  }

  /* =======================================
    PROMOTIONS
    ======================================= */
  .promotions {
      margin: 0 auto;
      max-width: 1600px;
      text-align: center;
      position: relative;
      padding: 60px 30px;
  }

  /* BACKGROUND */
  .promotions::before {
      content: "";
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 99%;
      height: 100%;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 22px;
      backdrop-filter: blur(5px);
      z-index: 0;
  }

  .promotions * {
      position: relative;
      z-index: 2;
  }

  /* TITULO Y DESCRIPCION */
  .promo-title {
      font-size: 36px;
      font-weight: 700;
      color: white;
      margin-bottom: 8px;
  }

  .promo-desc {
      font-size: 16px;
      color: #dcdcdc;
      margin-bottom: 30px;
  }

  .promo-carousel-wrapper {
      position: relative;
      overflow-x: auto; /* <- permite scroll horizontal */
      scroll-behavior: smooth; /* para animación suave */
      padding: 0 50px; /* espacio para flechas */
  }

  /* SOMBRAS FIJAS EN LOS LADOS */
  .promo-carousel-wrapper::before,
  .promo-carousel-wrapper::after {
      content: "";
      position: absolute;
      top: 0;
      width: 80px;
      height: 100%;
      z-index: 3;
      pointer-events: none;
  }

  .promo-carousel-wrapper::before {
      left: 0;
      background: linear-gradient(to right, rgba(0,0,0,0.85), transparent);
  }

  .promo-carousel-wrapper::after {
      right: 0;
      background: linear-gradient(to left, rgba(0,0,0,0.85), transparent);
  }

  .promo-carousel {
      display: flex;
      gap: 20px;
      overflow-x: auto;
      scroll-behavior: smooth;
      padding: 20px 0;
      flex-wrap: nowrap;
      scroll-snap-type: x mandatory;
  }

  .promo-carousel::-webkit-scrollbar {
      display: none;
  }

  /* FLECHAS */
  .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255,215,0,0.8);
      border: none;
      border-radius: 50%;
      width: 35px;
      height: 35px;
      cursor: pointer;
      z-index: 5;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 18px;
      color: #111;
      transition: 0.2s;
  }

  .carousel-btn:hover {
      background: rgba(255,215,0,1);
  }

  .carousel-btn.prev {
      left: 10px;
  }

  .carousel-btn.next {
      right: 10px;
  }

  /* ELIMINADO: sombras del carrusel (causaban que se movieran)
  .promo-carousel::before,
  .promo-carousel::after { ... }
  */

  /* CARDS */
  .promo-card {
      position: relative;
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      background: linear-gradient(145deg, #1b1b1b, #0c0c0c);
      padding: 0;
      border-radius: 20px;
      width: 430px;
      height: 150px;
      border: 1px solid rgba(255, 215, 0, 0.18);
      box-shadow: 0 5px 25px rgba(0,0,0,0.7);
      transition: transform 0.3s, opacity 0.3s;
      scroll-snap-align: center;
  }

  /* CARDS DIFUMINADOS */
  .promo-card.inactive {
      opacity: 0.3;
      transform: scale(0.9);
  }

  /* INNER WRAPPER */
  .promo-inner {
      width: 100%;
      height: 100%;
      padding: 22px;
      overflow: hidden;
      border-radius: 20px;
      display: flex;
      align-items: center;
  }

  /* ICON */
  .promo-card img {
      width: 85px;
      height: 85px;
      margin-right: 20px;
      border-radius: 50%;
      padding: 6px;
      background: radial-gradient(circle, #2c2c2c, #0d0d0d);
      box-shadow: 0 0 12px rgba(255,215,0,0.28);
  }

  /* TEXTO */
  .promo-card h4 {
      font-size: 22px;
      font-weight: 700;
      color: #fff;
      margin: 0;
  }

  .promo-card p {
      font-size: 15px;
      color: #d1d1d1;
      margin: 4px 0 0;
  }

  /* READ MORE */
  .promo-footer {
      font-size: 14px;
      color: #ffd700;
      margin-top: 6px;
      display: inline-block;
      font-weight: 600;
      opacity: 0.8;
      transition: 0.2s;
  }

  .promo-footer:hover {
      opacity: 1;
      text-decoration: underline;
  }

  /* BADGES */
  .promo-badge {
      position: absolute;
      top: -9px;
      left: -9px;
      background: #ffd700;
      color: #111;
      font-size: 13px;
      padding: 5px 12px;
      border-radius: 0 10px 10px 10px;
      font-weight: 700;
      box-shadow: 0 0 10px rgba(255,215,0,0.45);
      z-index: 10;
  }

  .promo-badge.purple {
      background: #b44bff;
      color: white;
      box-shadow: 0 0 10px rgba(180,75,255,0.45);
  }
    /* 🔒 Locked Card Overlay */
    .promo-card.locked {
        position: relative;
        overflow: hidden;
        filter: blur(2px) brightness(0.6);
        pointer-events: none;
    }

    /* Capa oscura transparente */
    .promo-card.locked::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
        z-index: 2;
    }

    /* Ícono de candado */
    .promo-card.locked::before {
        content: "🔒 LOCKED";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 22px;
        font-weight: 700;
        color: white;
        text-shadow: 0px 2px 6px black;
        z-index: 3;
        pointer-events: none;
    }
    /* =======================================
      LATEST WINNERS — PREMIUM CENTERED DESIGN
    ======================================= */

    .latest-winners-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 80px 0;
    }

    .lw-title {
        font-size: 50px;
        color: #ffd700;
        margin-bottom: 35px;
        font-weight: 900;
        text-shadow: 0 0 12px rgba(255,215,0,0.5);
        text-align: center;
    }

    .lw-table {
        width: 90%;
        max-width: 1000px;
        background: #0a0a0a;
        border-radius: 20px;
        padding: 25px 0;
        border: 2px solid rgba(255,215,0,0.15);
        box-shadow: 0 0 25px rgba(255,215,0,0.15);
        backdrop-filter: blur(4px);
    }

    /* header */
    .lw-header, .lw-row {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr 0.7fr 1fr;
        padding: 15px 40px;
        align-items: center;
    }

    .lw-header {
        font-weight: bold;
        font-size: 15px;
        color: #ffe27a;
        opacity: 0.85;
        border-bottom: 1px solid rgba(255,215,0,0.25);
    }

    /* filas */
    .lw-row {
        font-size: 17px;
        color: #eaeaea;
        border-bottom: 1px solid rgba(255,215,0,0.1);
    }

    .lw-row:last-child {
        border-bottom: none;
    }

    /* GAME */
    .lw-game {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 600;
        color: #fff;
    }

    .lw-game img {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        object-fit: cover;
        background: #ffffff;
        box-shadow: 0 0 10px rgba(255,215,0,0.35);
    }

    /* Amount */
    .lw-amount {
        color: #ffd700;
        font-weight: 900;
        text-shadow: 0 0 8px rgba(255,215,0,0.4);
    }

    /* Result */
    .lw-result.win {
        color: #7aff7a;
        font-weight: 900;
        text-shadow: 0 0 8px rgba(0,255,0,0.4);
    }
  /* =======================================
    TESTIMONIALS
  ======================================= */
  .testimonials {
    padding: 90px 60px;
    background: #111;
    text-align: center;
  }

  .testimonials h3 {
    font-size: 45px;
    color: #f1c40f;
    margin-bottom: 40px;
  }

  .testimonial-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .testimonial {
    background: #0b0b0b;
    border: 1px solid rgba(255,215,0,0.25);
    width: 330px;
    padding: 25px;
    border-radius: 14px;
    font-style: italic;
    transition: 0.3s ease;
  }

  .testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(255,215,0,0.4);
  }

  .testimonial strong {
    color: #fff;
    font-size: 18px;
    display: block;
    margin-top: 10px;
  }

  /* =======================================
    REGISTER SECTION
  ======================================= */
  .register {
    padding: 100px 60px;
    text-align: center;
  }

  .register h3 {
    font-size: 45px;
    color: #f1c40f;
  }

  .register p {
    margin-bottom: 25px;
    opacity: 0.8;
  }

  .register-form {
    width: 350px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .register-form input {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    font-size: 16px;
  }

  .register-form input:focus {
    outline: 2px solid #f1c40f;
  }

  .register-form .btn {
    margin-top: 10px;
  }

  /* =======================================
    FOOTER
  ======================================= */
  footer {
    background: #111;
    padding: 25px;
    text-align: center;
    color: #aaa;
    border-top: 1px solid rgba(255,215,0,0.2);
    font-size: 14px;
  }
