/* Estructura principal de la tarjeta */
.resumen-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.resumen-card.vertical {
    display: flex;
    flex-direction: column;
}

.resumen-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resumen-text {
    display: flex;
    flex-direction: column;
}

.resumen-label {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resumen-valor {
    font-size: 1.5rem;
    font-weight: 600;
    color: #101E45;
}

/* Iconos */
.metric-icon {
    width: 2rem;
    height: 2rem;
    stroke-width: 1.5;
    color: #FFD700;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
}

.icon-star {
    fill: #FFD700;
    stroke: none;
    width: 1rem;
    height: 1rem;
}

.icon-check {
    stroke: #28a745;
    stroke-width: 2;
}

.icon-lock {
    stroke: #6c757d;
    stroke-width: 2;
}

/* Botón de información */
.gainovo-info-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #64748b;
    display: inline-flex;
    transition: color 0.2s ease;
}

.gainovo-info-button:hover {
    color: #101E45;
}

/* Estilos de la tabla */
.gainovo-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-family: sans-serif;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gainovo-info-table thead th {
    padding: .75rem;
    background: #f2f4f8;
    font-weight: 600;
    color: #101E45;
    border-bottom: 2px solid #dde2e6;
}

.gainovo-info-table tbody th {
    text-align: left;
    padding: .75rem;
    font-weight: 500;
    background: #fff;
    border-bottom: 1px solid #eceef1;
}

.gainovo-info-table td {
    padding: .75rem;
    border-bottom: 1px solid #eceef1;
    position: relative;
}

.gainovo-info-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

/* Estados de desbloqueo */
.unlocked {
    color: #28a745;
    font-weight: 500;
}

.locked {
    color: #6c757d;
}

.reward-text {
    margin-left: .25rem;
    font-weight: 600;
    color: #101E45;
}

/* Estilos del modal */
#gainovo-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 99999;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#gainovo-info-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.gainovo-modal-content {
    background: white;
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.gainovo-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100000;
    transition: color 0.2s ease;
}

.gainovo-modal-close:hover {
    color: #333;
}

/* Contenedor de información */
.gainovo-info-container {
    padding: 1rem;
    overflow-x: auto;
}

/* Efectos hover para filas de tabla */
.gainovo-info-table tbody tr:hover td {
    background-color: #f0f4ff;
}

/* Estilo para cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .gainovo-modal-content {
        width: 95%;
        padding: 1rem;
        margin: 10px;
    }
    
    .gainovo-info-table {
        font-size: 0.875rem;
    }
    
    .gainovo-info-table th, 
    .gainovo-info-table td {
        padding: 0.5rem;
    }
}