.contenedor-principal { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 15px; 
    font-family: 'Inter', sans-serif; 
    box-sizing: border-box; 
}

.layout-columnas { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
}

/* 2. COLUMNA IZQUIERDA (HEADER Y LOGO) */
.columna-header { 
    flex: 1; 
    min-width: 300px; 
    color: white; 
    display: flex; 
    flex-direction: column; 
}

.header-titulo-img { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 5px; 
}

.logo-juego { 
    width: 100%; 
    max-width: 80px; 
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    object-fit: cover; 
}

.titulo-principal {
    font-size: 20px; 
    margin: 0 0 2px 0; 
    font-weight: 900;
}

.badge-seguro {
    background: rgba(255,255,255,0.1); 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 11px; 
    border: 1px solid rgba(255,255,255,0.2);
}

/* 3. COLUMNA DERECHA (PANELES BLANCOS) */
.columna-datos { 
    flex: 2; 
    min-width: 300px; 
}

.tarjeta-blanca { 
    background: white; 
    border-radius: 16px; 
    padding: 15px; 
    margin-bottom: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}

.titulo-paso { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 15px; 
}

.numero-paso { 
    background: #121620; 
    color: white; 
    width: 28px; 
    height: 28px; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    font-size: 14px; 
}

.texto-paso {
    margin: 0; 
    color: #121620; 
    font-size: 16px; 
    font-weight: 800;
}

/* 4. CAMPOS DE TEXTO (INPUTS) */
.input-jkr { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid #121620; 
    border-radius: 10px; 
    font-weight: 800; 
    font-size: 16px; 
    text-align: center; 
    outline: none; 
    box-sizing: border-box; 
}

select.input-jkr {
    appearance: none; 
    background-color: #ffffff;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23121620%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    padding-right: 35px;
}

#resultado-api {
    margin-top: 5px; 
    font-weight: bold; 
    font-size: 16px; 
    text-align: center; 
    color: #27ae60;
}

 /* 5. TARJETAS DE PRODUCTOS */
.grid-paquetes { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); 
    gap: 10px; 
    align-content: start; /* 👈 agregar esto */
}
.producto-card { 
    background: #ffffff;
    border: 2px solid #000; 
    border-radius: 12px; 
    padding: 5px 5px 20px 5px;
    text-align: center; 
    cursor: pointer; 
    transition: all 0.2s; 
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
   /* min-height: auto;*/
}

/* 🔥 NUEVO: Cards CON imagen */
.producto-card.con-imagen {
    padding: 5px 5px 18px 5px; /* Mismo padding */
    justify-content: flex-start; /* Desde arriba */
}

/* 🔥 NUEVO: Cards SIN imagen (centrado vertical) */
.producto-card:not(.con-imagen) {
     justify-content: center;
    min-height: 35px; /* 🔥 REDUCIDO de 70px a 60px */
    padding: 5px 5px 25px 5px;
}

/* Badge de precio */
.badge-precio {
    position: absolute; 
    bottom: 0;
    left: 0; 
    width: 100%;
    background-color: #121620;
    color: #fff;
    font-weight: bold; 
    font-size: 11px; 
    padding: 3px 5px; /* 🔥 REDUCIDO de 4px a 3px */
    line-height: 1;
    text-align: center;
    border-radius: 0 0 10px 10px;
    box-sizing: border-box;
    z-index: 1;
}

/* Nombre del producto */
.producto-nombre { 
    color: #121620;
    font-size: 13px; 
    font-weight: 800; 
    position: relative;
    z-index: 2;
    margin: 0; /* 🔥 Sin margen */
    padding: 0; /* 🔥 Sin padding */
    line-height: 1.1; /* 🔥 Muy compacto */
    word-break: break-word;
}
/* Wrapper de la imagen */
.producto-imagen-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    width: 100%;
    padding: 0; 
    margin: 0; 
    line-height: 0; 
    flex-grow: 1; /* 🔥 AGREGA ESTA LÍNEA */
}
/* Imagen */
.producto-imagen {
   width: 100%;
    height: auto;
    max-height: 50px; /* 🔥 REDUCIDO de 55px a 50px */
    object-fit: contain;
    display: block;
}

/* Método de pago */
.contenedor-pago-box {
    text-align: center; 
    color: #121620; /* Lo puse un poco más oscuro para que contraste mejor */
    font-size: 14px; 
    /* 🔥 Magia aquí: Arriba 2px, Derecha 15px, Abajo 15px, Izquierda 15px */
    padding: 2px 15px 15px 15px; 
    border: 2px dashed #ccc; 
    border-radius: 10px;
}
.contenedor-input {
    margin-bottom: 5px;
}

/* 6. EXTRAS PARA JUEGOS CON 2 CAMPOS DE ID */
.fila-doble-input {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    margin-bottom: 5px;
}
 
.campo-userid {
    flex: 0 0 65%;
}
 
.campo-zoneid {
    flex: 0 0 32%;
}
 
.titulo-paso--conAyuda {
    justify-content: space-between;
}
 
.grupo-numero-texto {
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.link-ayuda {
    color: #3498db;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
 
.badge-ayuda {
    background: rgba(52, 152, 219, 0.2);
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 11px;
}
 
.modal-ayuda {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
 
.modal-ayuda-contenido {
    width: 92%;
    max-width: 450px;
    position: relative;
    animation: aparecerModal 0.3s ease-out;
}
 
.modal-ayuda-imagen {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    display: block;
}
 
@keyframes aparecerModal {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.fila-mixta-input {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
    margin-bottom: 5px;
}
 
.campo-uid {
    flex: 1 1 180px;
}
 
.campo-servidor {
    flex: 1 1 120px;
}