:root {
  --text-color: #1a1a1a;
  --orange-accent: #FE6E36;
  --bg-gradient: #0E1116;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0E1116;
  padding-top: 80px; /* La misma altura que tu navbar */
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  /* Ajustamos el padding: 20px arriba/abajo para darle altura */
  padding: 20px 40px; 
  
  /* Quitamos el height: 60px fijo para que no se colapse */
  min-height: 80px; 
  
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  
  /* Fondo y efecto cristal */
  background: rgba(0, 0, 0, 0.15); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Borde sutil para definir la separación */
  border-bottom: 1px solid #272B34;
  
  /* Importante para que el width: 100% no cause scroll horizontal */
  box-sizing: border-box; 
  transition: transform 0.3s ease, background 0.3s ease; /* Suaviza el movimiento */
}

.header-hidden {
    transform: translateY(-100%);
}

.header-scrolled {
    background: rgba(14, 17, 22, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* IMPORTANTE: Ajusta los colores de los textos para que se vean sobre el fondo oscuro */
.nav-item, .logo {
  color: white !important;
}

.arrow::after {
  border-color: white; /* Cambia el color de la flechita a blanco */
}


/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    height: 100%; /* Se adapta a la altura del navbar */
}

.main-logo {
    height: 50px; /* Ajusta este valor según el alto de tu logo */
    width: auto;  /* Mantiene la proporción original */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05); /* Un toque sutil al pasar el mouse */
}

.brand-name {
  letter-spacing: -0.5px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-item {
  color: #333;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.arrow::after {
  content: '';
  border: solid #555;
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 2px;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* Button Section */
.btn-contact {
  background-color: var(--orange-accent);
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.btn-contact:hover {
  opacity: 0.9;
}



/* Contenedor Principal */
.hero-carousel {
  padding: 20px 40px;
  background-color: #0E1116; /* Fondo muy oscuro como el sitio */
}

.carousel-container {
  position: relative;
  background: linear-gradient(135deg, #0E1116 0%, #0E1116 100%);
  border-radius: 24px;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border: 1px solid #272B34;
}

/* Efecto de Luces de Fondo (Glow) */
.carousel-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(20, 50, 150, 0.2) 0%, transparent 70%);
  transform: rotate(-15deg);
  pointer-events: none;
}

/* Contenido Izquierda */
.slide-content {
  position: relative;
  z-index: 2;
  padding-left: 30px;
  width: 50%;
  padding-top: 200px;
}

.partnership {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.partner-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 600;
}

.separator {
  color: #4a5a85;
  font-size: 24px;
}

.slide-title {
  color: white;
  font-size: 33px;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 30px;
  font-weight: 600;
}

/* Botón Spin */
.btn-spin {
  display: inline-block;
  background: white;
  color: black;
  padding: 12px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}

.btn-spin:hover {
  transform: scale(1.05);
}

/* Imagen Derecha */
.slide-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Miniaturas */
.carousel-thumbnails {
  position: absolute;
  bottom: 30px;
  right: 40px;
  display: flex;
  gap: 12px;
  z-index: 3;
}

.thumb {
  width: 80px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumb.active, .thumb:hover {
  border-color: #FA7A39;
  opacity: 1;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Asegúrate de que los slides estén uno encima del otro */
.carousel-container {
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* El slide activo mantiene el alto del contenedor */
}


.thumb.active {
    border-color: #FA7A39;
    opacity: 1;
    transform: scale(1.05);
}

/* Contenedor relativo para que los slides se encimen */
.carousel-container {
    position: relative;
    height: 400px; /* Asegúrate de que tenga altura fija */
    overflow: hidden;
}

/* Todos los slides ocultos por defecto */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out; /* Efecto suave */
    display: flex; /* Para alinear contenido */
    align-items: center;
}

/* Solo el slide con clase .active se muestra */
.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}



/* --- FORTUNE SPIN SECTION --- */
.fortune-spin-section {
    padding: 30px 40px;
    background-color: #0E1116;
    color: white;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 20px;
    margin-top: 5px;
}

.sparkle-icon {
    color: #ffb86c;
}

/* --- FORTUNE SPIN SECTION --- */

.gachapon-wrapper {
    /* Eliminamos background-color sólido y añadimos la imagen */
    background-image: url('img/bg-pre-spin.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    border: 1px solid #272B34;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    position: relative;
    padding: 20px;
    z-index: 1;
}

/* 1. ELIMINAMOS O CAMBIAMOS EL DEGRADADO ANTIGUO */
/* Si quieres quitar el brillo naranja por completo, borra este bloque. 
   Si quieres que la imagen se vea un poco más oscura para que resalten las máquinas, 
   podemos convertir este ::before en una capa de ajuste: */
.gachapon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Capa oscura semitransparente para que el texto y las máquinas resalten sobre la imagen */
    background: rgba(14, 17, 22, 0.6); 
    pointer-events: none;
    z-index: -1; /* Se coloca detrás del contenido pero delante de la imagen de fondo */
}



/* Banner Lateral */
.gacha-banner {
    width: 250px;
    padding: 20px;
    z-index: 2;
    flex-shrink: 0;
    align-content: center;
}

.meet-title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.meet-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.btn-learn-more {
    display: inline-block;
    background: linear-gradient(135deg, #FA7A39 0%, #ff6b35 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

/* CAROUSEL ARRASTRABLE (Scroll x) */
.gacha-carousel {
    flex-grow: 1;
    overflow-x: auto; /* ACTIVA EL SCROLL HORIZONTAL */
    padding-bottom: 15px; /* Espacio para la barra de scroll si aparece */
    cursor: grab; /* Indica que se puede arrastrar */
}

/* Ocultar barra de scroll en Webkit (Safari/Chrome) */
.gacha-carousel::-webkit-scrollbar {
    display: none;
}

.gacha-track {
    display: flex;
    gap: 20px;
    padding-left: 10px;
    padding-right: 40px;
}

/* TARJETAS GACHA */
.gacha-card {
    /* Calculamos el ancho: (100% / 3) menos el margen de los gaps para que quepan 3 exactas */
    width: calc((100% / 3) - 15px); 
    min-width: 280px; /* Evita que se encojan demasiado en pantallas medianas */
    background-color: #13171D;
    border: 1px solid #272B34;
    border-radius: 20px; /* Bordes un poco más redondeados por el tamaño */
    padding: 25px; /* Más aire interno */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-out {
    background-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.badge-vrf {
    background-color: rgba(255, 50, 100, 0.1);
    color: #ff608c;
}

.badge-spins {
    background-color: rgba(0, 255, 180, 0.1);
    color: #00ffca;
}

/* Imagen y Logos */
.card-image-container {
    height: 250px; /* Aumentado de 140px a 200px */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 20px 0;
}

.machine-image {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    /* Efecto de sombra para dar profundidad a la máquina */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

.machine-logo {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-size: cover;
}



.card-footer {
    text-align: center;
    margin-top: 10px;
}

.machine-title {
    font-size: 16px; /* Aumentado */
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.price {
    font-size: 20px; /* Aumentado */
    font-weight: 700;
    color: white;
}

.currency {
    color: #94a3b8;
    font-weight: 500;
}

.strikethrough {
    color: #4a5a85;
    text-decoration: strikethrough;
    font-size: 11px;
    margin-left: 4px;
}

/* Espaciador para final de scroll */
.scroll-spacer {
    width: 20px;
    flex-shrink: 0;
}


/* --- SECCIÓN RONIN NFT LAUNCHPAD --- */
.launchpad-section {
    padding: 30px 40px; /* Mismo padding que la sección de arriba */
    background-color: #0E1116; /* Fondo oscuro principal */
}

/* Contenedor principal con el gradiente azul */
.launchpad-banner {
    background: linear-gradient(135deg, #FA7A39 0%, #D45121 50%, #8B2E10 100%);
    border-radius: 20px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden; /* Mantiene la ilustración dentro de los bordes redondeados */
    border: 1px solid #272B34;
}

/* --- Columna Izquierda: Contenido --- */
.launchpad-content {
    flex: 1;
    max-width: 65%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Cabecera del banner (Icono y etiqueta) */
.launchpad-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.rocket-icon {
    width: 20px; /* Ajusta el tamaño de tu icono de cohete */
    height: 20px;
}

.launchpad-tag {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
}

/* Título Principal */
.launchpad-title {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    color: white;
    margin: 0;
}

/* Descripción */
.launchpad-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #e2e8f0;
    margin: 0 0 20px 0;
    max-width: 90%;
}

/* Botón "Apply Now" (Blanco) */
.btn-apply-now {
    display: inline-block;
    background-color: white;
    color: #1a1a1a;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.2s, transform 0.2s;
    border: none;
    width: fit-content;
}

.btn-apply-now:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* --- Columna Derecha: Ilustración --- */
.launchpad-image {
    flex: 0 0 15%; /* Ocupa el 35% del ancho */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
}

/* Efecto de círculo de luz (Brillo azul claro) */
.circle-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(135, 206, 250, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
}

/* Imagen de la ilustración */
.illustration-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2; /* Encima del brillo */
}

.machine-image {
    /* Evita que se pueda seleccionar la imagen */
    user-select: none;
    -webkit-user-select: none;
    
    /* Evita que se pueda arrastrar (drag and drop) */
    pointer-events: none; 
    
    /* Nota: 'pointer-events: none' hace que los clicks pasen a través de la imagen. 
       Si necesitas que la imagen sea clickeable, usa solo las siguientes: */
    -webkit-user-drag: none;
    user-drag: none;
}


/* Quita el subrayado de absolutamente todos los enlaces (<a>) */
a {
    text-decoration: none !important;
    color: inherit; /* Mantiene el color que ya definiste en lugar del azul por defecto */
}

/* Opcional: Asegura que al pasar el mouse tampoco aparezca */
a:hover {
    text-decoration: none !important;
}

.btn-contact.connected {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    color: #00ff88;
    font-family: monospace; /* Las direcciones se ven mejor en mono */
}


footer {
    background-color: #0E1116; /* Color oscuro del fondo */
    padding: 30px 40px;
    border-top: 1px solid #272B34; /* Línea divisoria superior sutil */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px; /* O el ancho máximo que estés usando */
    margin: 0 auto;
}

.footer-copyright {
    color: #94a3b8; /* Color gris suave para el texto */
    font-size: 14px;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 25px; /* Espaciado entre los enlaces */
}

.footer-links a {
    color: #cbd5e1; /* Color de los enlaces */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff; /* Brillo al pasar el mouse */
}




/* --- RESPONSIVE DESIGN --- */

/* 1. TABLETS (Menos de 1024px) */
@media (max-width: 1024px) {
    .nav-links {
        gap: 15px; /* Reducimos espacio entre links */
    }

    .slide-title {
        font-size: 28px;
    }

    .launchpad-banner {
        padding: 40px;
    }
}

/* 2. MÓVILES GRANDES / TABLETS VERTICALES (Menos de 768px) */
@media (max-width: 768px) {
    /* Navbar: Ocultamos links y mostramos solo logo y botón (o menú hamburguesa si lo tuvieras) */
    .nav-links {
        display: none; /* Idealmente aquí pondrías un menú lateral/hamburguesa */
    }

    .navbar {
        padding: 15px 20px;
    }

    /* Hero Carousel */
    .carousel-container {
        height: 500px; /* Más alto para acomodar el texto arriba */
        flex-direction: column;
    }

    .slide-content {
        width: 100%;
        padding: 40px 20px;
        padding-top: 60px;
        text-align: center;
        z-index: 5;
        background: linear-gradient(to bottom, rgba(14, 17, 22, 0.8), transparent);
    }

    .partnership {
        justify-content: center;
    }

    .carousel-thumbnails {
        right: 50%;
        transform: translateX(50%); /* Centramos miniaturas */
        bottom: 15px;
    }

    /* Fortune Spin Section */
    .gachapon-wrapper {
        flex-direction: column; /* Banner arriba, cards abajo */
        padding: 15px;
    }

    .gacha-banner {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Launchpad Banner */
    .launchpad-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .launchpad-content {
        max-width: 100%;
        align-items: center;
    }

    .launchpad-image {
        display: none; /* Ocultamos la ilustración en móvil para ahorrar espacio */
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* 3. MÓVILES PEQUEÑOS (Menos de 480px) */
@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        min-height: 70px;
    }

    .main-logo {
        height: 40px;
    }

    .btn-contact {
        padding: 10px 15px;
        font-size: 12px;
    }

    .slide-title {
        font-size: 24px;
    }

    .section-header {
        font-size: 20px;
    }

    .gacha-card {
        min-width: 250px; /* Tarjetas un poco más angostas */
    }

    .launchpad-title {
        font-size: 26px;
    }
}